gdbserver: turn prepare_to_access_memory & done_accessing_memory into methods
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's prepare_to_access_memory and
4 done_accessing_memory ops into methods of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target ops.
7 (class process_target): Add the target ops.
8 * target.cc (process_target::prepare_to_access_memory): Define.
9 (process_target::done_accessing_memory): Define.
10 (prepare_to_access_memory): Update.
11 (done_accessing_memory): Update.
12
13 Update the derived classes and callers below.
14
15 * linux-low.cc (linux_target_ops): Update.
16 (linux_prepare_to_access_memory): Turn into ...
17 (linux_process_target::prepare_to_access_memory): ... this.
18 (linux_done_accessing_memory): Turn into ...
19 (linux_process_target::done_accessing_memory): ... this.
20 * linux-low.h (class linux_process_target): Update.
21 * lynx-low.cc (lynx_target_ops): Update.
22 * nto-low.cc (nto_target_ops): Update.
23 * win32-low.cc (win32_target_ops): Update.
24
25 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
26
27 Turn process_stratum_target's fetch_registers and store_registers
28 ops into methods of process_target.
29
30 * target.h (struct process_stratum_target): Remove the target ops.
31 (class process_target): Add the target ops.
32 (fetch_inferior_registers): Update the macro.
33 (store_inferior_registers): Update the macro.
34
35 Update the derived classes and callers below.
36
37 * linux-low.cc (linux_target_ops): Update.
38 (linux_fetch_registers): Turn into ...
39 (linux_process_target::fetch_registers): ... this.
40 (linux_store_registers): Turn into ...
41 (linux_process_target::store_registers): ... this.
42 * linux-low.h (class linux_process_target): Update.
43 * lynx-low.cc (lynx_target_ops): Update.
44 (lynx_fetch_registers): Turn into ...
45 (lynx_process_target::fetch_registers): ... this.
46 (lynx_store_registers): Turn into ...
47 (lynx_process_target::store_registers): ... this.
48 * lynx-low.h (class lynx_process_target): Update.
49 * nto-low.cc (nto_target_ops): Update.
50 (nto_fetch_registers): Turn into ...
51 (nto_process_target::fetch_registers): ... this.
52 (nto_store_registers): Turn into ...
53 (nto_process_target::store_registers): ... this.
54 * nto-low.h (class nto_process_target): Update.
55 * win32-low.cc (win32_target_ops): Update.
56 (win32_fetch_inferior_registers): Turn into ...
57 (win32_process_target::fetch_registers): ... this.
58 (win32_store_inferior_registers): Turn into ...
59 (win32_process_target::store_registers): ... this.
60 * win32-low.h (class win32_process_target): Update.
61
62 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
63
64 Turn process_stratum_target's wait op into a method of
65 process_target.
66
67 * target.h (struct process_stratum_target): Remove the target op.
68 (class process_target): Add the target op.
69
70 Update the derived classes and callers below.
71
72 * target.cc (target_wait): Update.
73 * linux-low.cc (linux_target_ops): Update.
74 (linux_wait): Turn into ...
75 (linux_process_target::wait): ... this.
76 * linux-low.h (class linux_process_target): Update.
77 * lynx-low.cc (lynx_target_ops): Update.
78 (lynx_wait): Turn into ...
79 (lynx_process_target::wait): ... this.
80 * lynx-low.h (class lynx_process_target): Update.
81 * nto-low.cc (nto_target_ops): Update.
82 (nto_wait): Turn into ...
83 (nto_process_target::wait): ... this.
84 * nto-low.h (class nto_process_target): Update.
85 * win32-low.cc (win32_target_ops): Update.
86 (win32_wait): Turn into ...
87 (win32_process_target::wait): ... this.
88 (do_initial_child_stuff): Update.
89 * win32-low.h (class win32_process_target): Update.
90
91 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
92
93 Turn process_stratum_target's resume op into a method of
94 process_target.
95
96 * target.h (struct process_stratum_target): Remove the target op.
97 (class process_target): Add the target op.
98
99 Update the derived classes and callers below.
100
101 * server.cc (resume): Update.
102 * target.cc (target_stop_and_wait): Update.
103 (target_continue_no_signal): Update.
104 (target_continue): Update.
105 * linux-low.cc (linux_target_ops): Update.
106 (linux_resume): Turn into ...
107 (linux_process_target::resume): ... this.
108 * linux-low.h (class linux_process_target): Update.
109 * lynx-low.cc (lynx_target_ops): Update.
110 (lynx_resume): Turn into ...
111 (lynx_process_target::resume): ... this.
112 * lynx-low.h (class lynx_process_target): Update.
113 * nto-low.cc (nto_target_ops): Update.
114 (nto_resume): Turn into ...
115 (nto_process_target::resume): ... this.
116 * nto-low.h (class nto_process_target): Update.
117 * win32-low.cc (win32_target_ops): Update.
118 (win32_resume): Turn into ...
119 (win32_process_target::resume): ... this.
120 (win32_process_target::detach): Update.
121 (do_initial_child_stuff): Update.
122 * win32-low.h (class win32_process_target): Update.
123
124 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
125
126 Turn process_stratum_target's thread_alive op into a method of
127 process_target.
128
129 * target.h (struct process_stratum_target): Remove the target op.
130 (class process_target): Add the target op.
131 (mythread_alive): Update the macro.
132
133 Update the derived classes and callers below.
134
135 * linux-low.cc (linux_target_ops): Update.
136 (linux_thread_alive): Turn into ...
137 (linux_process_target::thread_alive): ... this.
138 (wait_for_sigstop): Update.
139 * linux-low.h (class linux_process_target): Update.
140 * lynx-low.cc (lynx_target_ops): Update.
141 (lynx_thread_alive): Turn into ...
142 (lynx_process_target::thread_alive): ... this.
143 * lynx-low.h (class lynx_process_target): Update.
144 * nto-low.cc (nto_target_ops): Update.
145 (nto_thread_alive): Turn into ...
146 (nto_process_target::thread_alive): ... this.
147 * nto-low.h (class nto_process_target): Update.
148 * win32-low.cc (win32_target_ops): Update.
149 (win32_thread_alive): Turn into ...
150 (win32_process_target::thread_alive): ... this.
151 * win32-low.h (class win32_process_target): Update.
152
153 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
154
155 Turn process_stratum_target's join op into a method of
156 process_target.
157
158 * target.h (struct process_stratum_target): Remove the target op.
159 (class process_target): Add the target op.
160 (join_inferior): Update the macro.
161
162 Update the derived classes and callers below.
163
164 * linux-low.cc (linux_target_ops): Update.
165 (linux_join): Turn into ...
166 (linux_process_target::join): ... this.
167 * linux-low.h (class linux_process_target): Update.
168 * lynx-low.cc (lynx_target_ops): Update.
169 (lynx_join): Turn into ...
170 (lynx_process_target::join): ... this.
171 * lynx-low.h (class lynx_process_target): Update.
172 * nto-low.cc (nto_target_ops): Update.
173 (nto_process_target::join): Define.
174 * nto-low.h (class nto_process_target): Update.
175 * win32-low.cc (win32_target_ops): Update.
176 (win32_join): Turn into ...
177 (win32_process_target::join): ... this.
178 * win32-low.h (class win32_process_target): Update.
179
180 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181
182 Turn process_stratum_target's mourn op into a method of
183 process_target.
184
185 * target.h (struct process_stratum_target): Remove the target op.
186 (class process_target): Add the target op.
187
188 Update the derived classes and callers below.
189
190 * target.cc (target_mourn_inferior): Update.
191 * linux-low.cc (linux_target_ops): Update.
192 (linux_mourn): Turn into ...
193 (linux_process_target::mourn): ... this.
194 (handle_extended_wait): Update.
195 (linux_process_target::kill): Update.
196 (linux_process_target::detach): Update.
197 * linux-low.h (class linux_process_target): Update.
198 * lynx-low.cc (lynx_target_ops): Update.
199 (lynx_mourn): Turn into ...
200 (lynx_process_target::mourn): ... this.
201 * lynx-low.h (class lynx_process_target): Update.
202 * nto-low.cc (nto_target_ops): Update.
203 (nto_mourn): Turn into ...
204 (nto_process_target::mourn): ... this.
205 * nto-low.h (class nto_process_target): Update.
206 * win32-low.cc (win32_target_ops): Update.
207 (win32_mourn): Turn into ...
208 (win32_process_target::mourn): ... this.
209 * win32-low.h (class win32_process_target): Update.
210
211 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
212
213 Turn process_stratum_target's detach op into a method of
214 process_target.
215
216 * target.h (struct process_stratum_target): Remove the target op.
217 (class process_target): Add the target op.
218 (detach_inferior): Update the macro.
219
220 Update the derived classes and callers below.
221
222 * linux-low.cc (linux_target_ops): Update.
223 (linux_detach): Turn into ...
224 (linux_process_target::detach): ... this.
225 * linux-low.h (class linux_process_target): Update.
226 * lynx-low.cc (lynx_target_ops): Update.
227 (lynx_detach): Turn into ...
228 (lynx_process_target::detach): ... this.
229 * lynx-low.h (class lynx_process_target): Update.
230 * nto-low.cc (nto_target_ops): Update.
231 (nto_detach): Turn into ...
232 (nto_process_target::detach): ... this.
233 * nto-low.h (class nto_process_target): Update.
234 * win32-low.cc (win32_target_ops): Update.
235 (win32_detach): Turn into ...
236 (win32_process_target::detach): ... this.
237 * win32-low.h (class win32_process_target): Update.
238
239 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
240
241 Turn process_stratum_target's kill op into a method of
242 process_target.
243
244 * target.h (struct process_stratum_target): Remove the target op.
245 (class process_target): Add the target op.
246
247 Update the derived classes and callers below.
248
249 * target.cc (kill_inferior): Update.
250 * linux-low.cc (linux_target_ops): Update.
251 (linux_kill): Turn into ...
252 (linux_process_target::kill): ... this.
253 * linux-low.h (class linux_process_target): Update.
254 * lynx-low.cc (lynx_target_ops): Update.
255 (lynx_kill): Turn into ...
256 (lynx_process_target::kill): ... this.
257 * lynx-low.h (class lynx_process_target): Update.
258 * nto-low.cc (nto_target_ops): Update.
259 (nto_kill): Turn into ...
260 (nto_process_target::kill): ... this.
261 * nto-low.h (class nto_process_target): Update.
262 * win32-low.cc (win32_target_ops): Update.
263 (win32_kill): Turn into ...
264 (win32_process_target::kill): ... this.
265 * win32-low.h (class win32_process_target): Update.
266
267 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268
269 Turn process_stratum_target's attach op into a method of
270 process_target.
271
272 * target.h (struct process_stratum_target): Remove the target op.
273 (class process_target): Add the target op.
274 (myattach): Update the macro.
275
276 Update the derived classes and callers below.
277
278 * linux-low.cc (linux_target_ops): Update.
279 (linux_attach): Turn into ...
280 (linux_process_target::attach): ... this.
281 * linux-low.h (class linux_process_target): Update.
282 * lynx-low.cc (lynx_target_ops): Update.
283 (lynx_attach): Turn into ...
284 (lynx_process_target::attach): ... this.
285 * lynx-low.h (class lynx_process_target): Update.
286 * nto-low.cc (nto_target_ops): Update.
287 (nto_attach): Turn into ...
288 (nto_process_target::attach): ... this.
289 * nto-low.h (class nto_process_target): Update.
290 * win32-low.cc (win32_target_ops): Update.
291 (win32_attach): Turn into ...
292 (win32_process_target::attach): ... this.
293 * win32-low.h (class win32_process_target): Update.
294
295 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
296
297 Turn process_stratum_target's post_create_inferior op into a method
298 of process_target.
299
300 * target.h (struct process_stratum_target): Remove the target op.
301 (class process_target): Add the target op.
302 (target_post_create_inferior): Update the macro.
303 * target.cc (process_target::post_create_inferior): Define.
304
305 Update the derived classes and callers below.
306
307 * linux-low.cc (linux_target_ops): Update.
308 (linux_post_create_inferior): Turn into ...
309 (linux_process_target::post_create_inferior): ... this.
310 * linux-low.h (class linux_process_target): Update.
311 * lynx-low.cc (lynx_target_ops): Update.
312 * nto-low.cc (nto_target_ops): Update.
313 * win32-low.cc (win32_target_ops): Update.
314
315 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
316
317 Turn process_stratum_target's create_inferior op into a method of
318 process_target.
319
320 * target.h (struct process_stratum_target): Remove the target op.
321 (class process_target): Add the target op.
322 (create_inferior): Rename the macro to ...
323 (target_create_inferior): ... this.
324
325 Update the derived classes and callers below.
326
327 * server.cc (handle_v_run): Update.
328 (captured_main): Update.
329 (process_serial_event): Update.
330 * linux-low.cc (linux_target_ops): Update.
331 (linux_create_inferior): Turn into ...
332 (linux_process_target::create_inferior): ... this.
333 * linux-low.h (class linux_process_target): Update.
334 * lynx-low.cc (lynx_target_ops): Update.
335 (lynx_create_inferior): Turn into ...
336 (lynx_process_target::create_inferior): ... this.
337 * lynx-low.h (class lynx_process_target): Update.
338 * nto-low.cc (nto_target_ops): Update.
339 (nto_create_inferior): Turn into ...
340 (nto_process_target::create_inferior): ... this.
341 * nto-low.h (class nto_process_target): Update.
342 * win32-low.cc (win32_target_ops): Update.
343 (win32_create_inferior): Turn into ...
344 (win32_process_target::create_inferior): ... this.
345 * win32-low.h (class win32_process_target): Update.
346
347 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
348
349 * target.h (class process_target): New class definition.
350 (struct process_stratum_target) <pt>: New field with type
351 'process_target*'.
352 * linux-low.h (class linux_process_target): Define as a derived
353 class of 'process_target'.
354 * linux-low.cc (linux_target_ops): Add a linux_process_target*
355 as the 'pt' field.
356 * lynx-low.h (class lynx_process_target): Define as a derived
357 class of 'process_target'.
358 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
359 as the 'pt' field.
360 * nto-low.h (class nto_process_target): Define as a derived
361 class of 'process_target'.
362 * nto-low.cc (nto_target_ops): Add an nto_process_target*
363 as the 'pt' field.
364 * win32-low.h (class win32_process_target): Define as a derived
365 class of 'process_target'.
366 * win32-low.cc (win32_target_ops): Add a win32_process_target*
367 as the 'pt' field.
368
369 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * configure: Regenerate.
372
373 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
374 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * linux-riscv-low.cc: New file.
377 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
378 and nat/riscv-linux-tdesc.c.
379 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
380 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
381 Define.
382
383 2020-02-14 Tom Tromey <tom@tromey.com>
384
385 * acinclude.m4: Don't include acx_configure_dir.m4.
386 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
387 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
388 (all, install-only, uninstall, clean-info, clean)
389 (maintainer-clean): Don't recurse.
390 (subdir_do, all-lib): Remove.
391 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
392 (GNULIB_H): Remove.
393 (generated_files): Update.
394 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
395 * configure: Rebuild.
396 * configure.ac: Don't configure gnulib or libiberty.
397 (GNULIB): Update.
398
399 2020-02-14 Eli Zaretskii <eliz@gnu.org>
400
401 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
402 preparing the command line for CreateProcess.
403 (win32_create_inferior): Reflect the program name in debugging
404 output that shows the process and its command line.
405
406 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
407
408 * Makefile.in: Rename source files from .c to .cc.
409 * %.c: Rename to %.cc.
410 * configure.ac: Rename server.c to server.cc.
411 * configure: Re-generate.
412
413 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
414
415 * Makefile.in: Rename gdbsupport source files from .c to .cc.
416
417 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
418
419 * win32-low.c (win32_create_inferior): Set signal_pid.
420
421 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
422 Pedro Alves <palves@redhat.com>
423
424 Skip building gdbserver in a cross-configuration.
425 * configure.srv: Set $gdbserver_host depending on whether $target
426 is $host. Use $gdbserver_host instead of $host.
427
428 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
429
430 * configure: Re-generate.
431
432 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
433
434 * configure: Re-generate.
435
436 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
437
438 * acinclude.m4: Update warning.m4 path.
439
440 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
441
442 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
443 (handle_exception): Set siginfo_er.
444 (win32_xfer_siginfo): New function.
445
446 2020-02-07 Tom Tromey <tom@tromey.com>
447 Pedro Alves <palves@redhat.com>
448
449 * README: Update build documentation.
450 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
451 host, not target.
452 * configure.ac: Update paths.
453 * configure: Rebuild.
454 * acinclude.m4: Update paths.
455 * Makefile.in: Update include paths.
456 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
457 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
458 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
459 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
460 (%-generated.c): Update paths.
461 * Move entire directory from ../gdb/gdbserver.
462
463 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
464
465 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
466
467 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
468
469 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
470 assignment instead of srv_linux_obj.
471
472 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
473
474 * server.c (handle_qxfer_libraries): Write segment-address with
475 paddress.
476
477 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
478
479 * Makefile.in (install-strip): New target.
480 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
481 * aclocal.m4: Regenerate.
482 * configure: Regenerate.
483 * configure.ac: Add AM_PROG_INSTALL_STRIP.
484
485 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
486
487 * Makefile.in (SFILES): Adjust paths to point to real files.
488 (OBS): Move waitstatus.o to target/waitstatus.o.
489 (TAGS): Transform paths appropriately.
490 (%.o): Rename to...
491 (nat/%.o): ... this pattern rule.
492 (%.o): Rename to...
493 (target/%.o): ... this pattern rule.
494 * configure.srv: Adjust paths throughout to include nat/ prefix
495 with the revant files.
496 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
497 * configure: Regenerate.
498
499 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
500
501 * Makefile.in (TAGS): Remove config files from the recipe.
502
503 2020-01-14 Tom Tromey <tom@tromey.com>
504
505 * configure: Rebuild.
506 * configure.ac: Remove any checks that were added to common.m4.
507 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
508 lib-link.m4.
509
510 2020-01-14 Tom Tromey <tom@tromey.com>
511
512 * server.h: Include config.h.
513 * gdbreplay.c: Include config.h.
514 * configure: Rebuild.
515 * configure.ac: Don't source common.host.
516 * acinclude.m4: Update path.
517 * Makefile.in (INCSUPPORT): New variable.
518 (INCLUDE_CFLAGS): Add INCSUPPORT.
519 (SFILES): Update paths.
520 (version-generated.c): Update path to create-version.sh.
521 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
522
523 2020-01-14 Tom Tromey <tom@tromey.com>
524
525 * configure.ac (LIBS): Use WIN32APILIBS.
526 (USE_WIN32API): Don't define.
527 * configure: Rebuild.
528
529 2020-01-14 Tom Tromey <tom@tromey.com>
530
531 * configure: Rebuild.
532
533 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
534
535 * Makefile.in (%-generated.c): Remove rule for files from
536 regformats/i386.
537
538 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
539
540 * configure: Re-generate.
541
542 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
543
544 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
545 Define to static.
546 * tracepoint.c (stop_tracing, flush_trace_buffer,
547 about_to_request_buffer_space, get_trace_state_variable_value,
548 set_trace_state_variable_value, gdb_collect): Add declaration.
549
550 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
551
552 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
553 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
554 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
555 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
556 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
557 static.
558
559 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
560
561 * inferiors.c: Include gdbsupport/common-inferior.h.
562
563 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
564
565 * hostio-errno.c: Include hostio.h.
566
567 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
568
569 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
570 prerequisite.
571
572 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
575 * linux-arm-tdesc.h: Include arch/arm.h.
576
577 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
580
581 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
584 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
585
586 2020-01-10 Pedro Alves <palves@redhat.com>
587
588 * fork-child.c (post_fork_inferior): Pass target down to
589 startup_inferior.
590 * inferiors.c (switch_to_thread): Add process_stratum_target
591 parameter.
592 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
593 * nto-low.c (nto_target_ops): Now a process_stratum_target.
594 * linux-low.c (linux_target_ops): Now a process_stratum_target.
595 * remote-utils.c (prepare_resume_reply): Pass the target to
596 switch_to_thread.
597 * target.c (the_target): Now a process_stratum_target.
598 (done_accessing_memory): Pass the target to switch_to_thread.
599 (set_target_ops): Ajust to use process_stratum_target.
600 * target.h (struct target_ops): Rename to ...
601 (struct process_stratum_target): ... this.
602 (the_target, set_target_ops): Adjust.
603 (prepare_to_access_memory): Adjust comment.
604 * win32-low.c (child_xfer_memory): Adjust to use
605 process_stratum_target.
606 (win32_target_ops): Now a process_stratum_target.
607
608 2020-01-06 Eli Zaretskii <eliz@gnu.org>
609 Pedro Alves <palves@redhat.com>
610
611 * win32-low.c (get_child_debug_event): Extract the fatal exception
612 from the exit status and convert to the equivalent Posix signal
613 number.
614 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
615 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
616
617 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
618
619 * Makefile.in: Use INSTALL_PROGRAM_ENV.
620
621 2020-01-01 Joel Brobecker <brobecker@adacore.com>
622
623 * server.c (gdbserver_version): Change copyright year to 2020.
624 * gdbreplay.c (gdbreplay_version): Likewise.
625
626 2019-12-19 Christian Biesinger <cbiesinger@google.com>
627
628 * configure: Regenerate.
629 * configure.ac: Quote variable arguments of test.
630
631 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
632
633 * Makefile.in: Fix build with GNU Make 3.81
634
635 2019-12-16 Tom Tromey <tromey@adacore.com>
636
637 * server.c (get_exec_file): Constify result.
638
639 2019-12-10 Christian Biesinger <cbiesinger@google.com>
640
641 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
642 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
643 * config.in: Regenerate.
644 * configure: Regenerate.
645 * configure.ac: Don't check for strerror.
646 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
647 Call safe_strerror instead of strerror.
648 * server.h (strerror): Remove this now-unnecessary declaration.
649 * tracepoint.c (init_named_socket): Call safe_strerror instead of
650 strerror.
651 (gdb_agent_helper_thread): Likewise.
652 * utils.c (perror_with_name): Likewise.
653
654 2019-11-26 Tom Tromey <tom@tromey.com>
655
656 * configure, config.in: Rebuild.
657
658 2019-11-26 Tom Tromey <tom@tromey.com>
659
660 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
661 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
662 gdb_sigmask.
663 * configure, config.in: Rebuild.
664
665 2019-11-26 Tom Tromey <tom@tromey.com>
666
667 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
668 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
669 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
670 * acinclude.m4: Include ax_pthread.m4.
671 * config.in, configure: Rebuild.
672
673 2019-11-26 Christian Biesinger <cbiesinger@google.com>
674
675 * debug.c (debug_set_output): Call safe_strerror instead of
676 strerror.
677 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
678 (linux_kill_one_lwp): Likewise.
679 (linux_detach_one_lwp): Likewise.
680 (linux_wait_for_event_filtered): Likewise.
681 (store_register): Likewise.
682 * lynx-low.c (lynx_attach): Likewise.
683 * mem-break.c (insert_memory_breakpoint): Likewise.
684 (remove_memory_breakpoint): Likewise.
685 (delete_fast_tracepoint_jump): Likewise.
686 (set_fast_tracepoint_jump): Likewise.
687 (uninsert_fast_tracepoint_jumps_at): Likewise.
688 (reinsert_fast_tracepoint_jumps_at): Likewise.
689 * nto-low.c (nto_xfer_memory): Likewise.
690 (nto_resume): Likewise.
691
692 2019-11-20 Luis Machado <luis.machado@linaro.org>
693
694 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
695 instead of register count.
696 * tdesc.c (tdesc_contains_feature): New function.
697 * tdesc.h (tdesc_contains_feature): New prototype.
698
699 2019-11-15 Christian Biesinger <cbiesinger@google.com>
700
701 * Makefile.in: Add safe-strerror.c.
702 * configure: Regenerate.
703 * configure.ac: Don't source common.host.
704
705 2019-11-15 Christian Biesinger <cbiesinger@google.com>
706
707 * config.in: Regenerate.
708 * configure: Regenerate.
709
710 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * ax.c (ax_printf): Handle size_t_arg.
713
714 2019-11-06 Christian Biesinger <cbiesinger@google.com>
715
716 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
717 * mi/mi-main.c (output_cores): Likewise.
718 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
719 (linux_xfer_osdata_modules): Likewise.
720 * remote.c (register_remote_support_xml): Likewise.
721 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
722 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
723
724 2019-11-01 Christian Biesinger <cbiesinger@google.com>
725
726 * configure: Regenerate.
727 * configure.ac: Remove check for strerror_r.
728
729 2019-10-31 Christian Biesinger <cbiesinger@google.com>
730
731 * config.in: Regenerate.
732 * configure: Regenerate.
733 * configure.ac: Also check for strerror_r.
734
735 2019-10-31 Christian Biesinger <cbiesinger@google.com>
736
737 * ax.h (debug_agent): Remove duplicate declaration.
738
739 2019-10-26 Tom de Vries <tdevries@suse.de>
740
741 * linux-aarch64-low.c: Fix typos in comments.
742 * linux-arm-low.c: Same.
743 * linux-low.c: Same.
744 * linux-ppc-low.c: Same.
745 * proc-service.c: Same.
746 * regcache.h: Same.
747 * server.c: Same.
748 * tracepoint.c: Same.
749 * win32-low.c: Same.
750
751 2019-10-25 Tom Tromey <tromey@adacore.com>
752
753 * utils.c (xstrdup): Remove.
754
755 2019-10-23 Tom Tromey <tom@tromey.com>
756
757 * configure, config.in: Rebuild.
758
759 2019-10-23 Tom Tromey <tom@tromey.com>
760
761 * configure: Rebuild.
762 * acinclude.m4: Use m4_include, not sinclude.
763
764 2019-10-17 Tom Tromey <tromey@adacore.com>
765
766 * configure: Rebuild.
767 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
768 in AC_CONFIG_FILES invocation.
769 * Makefile.in (stamp-h, Makefile): Use new-style config.status
770 invocation.
771
772 2019-10-16 Christian Biesinger <cbiesinger@google.com>
773
774 * server.c: Include xml-builtin.h.
775 (get_xml_features): Don't declare xml_builtins here.
776
777 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
778
779 * Makefile.in: Remove references to vec-ipa.o.
780
781 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * Makefile.in: Remove references to vec.c.
784
785 2019-10-02 Christian Biesinger <cbiesinger@google.com>
786
787 * server.c (server_waiting): Change to bool.
788 (extended_protocol): Likewise.
789 (response_needed): Likewise.
790 (exit_requested): Likewise.
791 (run_once): Likewise.
792 (report_no_resumed): Likewise.
793 (non_stop): Likewise.
794 (disable_packet_vCont): Likewise.
795 (disable_packet_Tthread): Likewise.
796 (disable_packet_qC): Likewise.
797 (disable_packet_qfThreadInfo): Likewise.
798 (handle_general_set): Update.
799 (handle_detach): Update.
800 (handle_monitor_command): Update.
801 (handle_query): Update.
802 (captured_main): Update.
803 (process_serial_event): Update.
804 * server.h (server_waiting): Change to bool.
805 (disable_packet_vCont): Likewise.
806 (disable_packet_Tthread): Likewise.
807 (disable_packet_qC): Likewise.
808 (disable_packet_qfThreadInfo): Likewise.
809 (run_once): Likewise.
810 (non_stop): Likewise.
811 * target.c (target_stop_and_wait): Update.
812
813 2019-10-02 Tom Tromey <tromey@adacore.com>
814
815 * Makefile.in (SFILES): Add common-inferior.c.
816 (OBS): Add common-inferior.o.
817 * server.c (startup_with_shell): Don't define.
818
819 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
820
821 * linux-low.c (linux_low_read_btrace): Update for change to
822 std::vector.
823
824 2019-09-20 Christian Biesinger <cbiesinger@google.com>
825
826 * debug.c (debug_threads): Remove comment in favor of the header.
827 * debug.h (using_threads): Add declaration.
828 (debug_threads): Add comment.
829 * linux-aarch64-low.c: Include debug.h and remove declaration of
830 debug_threads.
831 * nto-low.c: Likewise.
832 * remote-utils.c: Likewise.
833 * thread-db.c: Likewise.
834
835 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
836
837 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
838 and powerpc-cell64l-ipa.o.
839 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
840 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
841 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
842 (spu*-*-*): Remove.
843
844 * spu-low.c: Remove file.
845
846 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
847 (parse_spufs_run): Remove.
848 (ppc_get_pc): Remove Cell/B.E. support.
849 (ppc_set_pc): Likewise.
850 (ppc_breakpoint_at): Likewise.
851 (ppc_arch_setup): Likewise.
852 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
853 tdesc_powerpc_cell32l.
854 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
855 or init_registers_powerpc_cell32l.
856 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
857 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
858 or init_registers_powerpc_cell32l.
859 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
860 (init_registers_powerpc_cell32l): Remove prototype.
861 (init_registers_powerpc_cell64l): Likewise.
862
863 * target.h (struct target_ops): Remove qxfer_spu member.
864 * server.c (handle_qxfer_spu): Remove.
865 (qxfer_packets): Remove entry for "spu".
866 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
867 * linux-low.c (SPUFS_MAGIC): Remove.
868 (spu_enumerate_spu_ids): Remove.
869 (linux_qxfer_spu): Remove.
870 (linux_target_ops): Remove qxfer_spu member.
871 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
872 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
873 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
874
875 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
876
877 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
878 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
879 * config.in: Regenerate.
880 * configure: Regenerate.
881
882 2019-08-15 Tom Tromey <tromey@adacore.com>
883
884 * target.c (target_write_memory): Use gdb::byte_vector.
885
886 2019-08-15 Tom Tromey <tromey@adacore.com>
887
888 * tracepoint.c (write_inferior_data_pointer)
889 (write_inferior_integer, write_inferior_int8)
890 (write_inferior_uinteger, m_tracepoint_action_download)
891 (r_tracepoint_action_download, x_tracepoint_action_download)
892 (l_tracepoint_action_download, clear_inferior_trace_buffer)
893 (download_agent_expr, download_tracepoint_1)
894 (download_trace_state_variables, upload_fast_traceframes): Update.
895 * server.c (gdb_write_memory): Update.
896 * remote-utils.c (relocate_instruction): Update.
897 * proc-service.c (ps_pdwrite): Update.
898 * mem-break.c (remove_memory_breakpoint)
899 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
900 (uninsert_fast_tracepoint_jumps_at)
901 (reinsert_fast_tracepoint_jumps_at): Update.
902 * linux-x86-low.c (append_insns)
903 (i386_install_fast_tracepoint_jump_pad)
904 (amd64_write_goto_address, i386_write_goto_address): Update.
905 * linux-s390-low.c (append_insns, s390_write_goto_address):
906 Update.
907 * linux-ppc-low.c (ppc_relocate_instruction)
908 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
909 (ppc_write_goto_address): Update.
910 * linux-aarch64-low.c (append_insns): Update.
911 * target.h (struct target_ops): Update.
912 (write_inferior_memory): Don't declare.
913 * target.c (target_write_memory): Rename from
914 write_inferior_memory. Remove old target_write_memory.
915
916 2019-08-15 Tom Tromey <tromey@adacore.com>
917
918 * target.c (write_inferior_memory): Use std::vector.
919
920 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
921
922 PR build/24886
923 * configure.ac: Drop enable-libmcheck support.
924 * configure, config.in: Rebuild.
925 * acinclude.m4: Don't include it.
926
927 2019-07-19 Alan Hayward <alan.hayward@arm.com>
928
929 * configure.srv: Remove Arm xml files.
930
931 2019-07-19 Alan Hayward <alan.hayward@arm.com>
932
933 * configure.srv: Add new files. Remove xml generated files.
934 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
935 registers.
936 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
937 * linux-aarch32-tdesc.c: New file.
938 * linux-aarch32-tdesc.h: New file.
939 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
940 * linux-arm-low.c (init_registers_arm, tdesc_arm)
941 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
942 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
943 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
944 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
945 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
946 (arm_read_description): Call arm_linux_read_description.
947 (initialize_low_arch): Don't init registers.
948 * linux-arm-tdesc.c: New file.
949 * linux-arm-tdesc.h: New file.
950
951 2019-07-10 Alan Hayward <alan.hayward@arm.com>
952
953 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
954 Move counter inside for.
955 (arm_read_description): Check ptrace earlier.
956 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
957
958 2019-07-09 Tom Tromey <tom@tromey.com>
959
960 * configure: Rebuild.
961 * configure.ac: Change common to gdbsupport.
962 * acinclude.m4: Change common to gdbsupport.
963 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
964 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
965 common to gdbsupport.
966 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
967 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
968 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
969 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
970 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
971 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
972 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
973 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
974 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
975 common to gdbsupport.
976
977 2019-07-04 Alan Hayward <alan.hayward@arm.com>
978
979 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
980 defines.
981 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
982
983 2019-07-04 Alan Hayward <alan.hayward@arm.com>
984
985 * configure.srv: Remove legacy xml.
986 * linux-aarch64-low.c (initialize_low_arch): Remove
987 initialize_low_tdesc call.
988 * linux-aarch64-tdesc-selftest.c: Remove file.
989 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
990 * linux-x86-low.c (initialize_low_arch): Remove
991 initialize_low_tdesc call.
992 * linux-x86-tdesc-selftest.c: Remove file.
993 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
994
995 2019-06-20 Tom de Vries <tdevries@suse.de>
996
997 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
998 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
999
1000 2019-06-19 Tom de Vries <tdevries@suse.de>
1001
1002 * debug.h (debug_write): Change return type to ssize_t.
1003 * debug.c (debug_write): Same.
1004
1005 2019-06-14 Tom Tromey <tom@tromey.com>
1006
1007 * configure.ac: Use new path to gnulib.
1008 * configure: Rebuild.
1009 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1010 to gnulib.
1011
1012 2019-06-11 Tom Tromey <tom@tromey.com>
1013
1014 * Makefile.in (SFILES): Add alloc.c.
1015 (OBS): Add alloc.o.
1016 (IPA_OBJS): Add alloc-ipa.o.
1017 (alloc-ipa.o): New target.
1018 (%.o: ../%.c): New pattern rule.
1019
1020 2019-06-10 Tom Tromey <tromey@adacore.com>
1021
1022 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1023 end warning with a newline.
1024 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1025 newline.
1026 * thread-db.c (attach_thread): Don't end warning with a newline.
1027 (thread_db_notice_clone): Likewise.
1028 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1029 newline.
1030 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1031 end warning with a newline.
1032
1033 2019-06-04 Pedro Alves <palves@redhat.com>
1034
1035 * server.c (captured_main): Use make_unique_xstrdup.
1036
1037 2019-06-02 Tom Tromey <tom@tromey.com>
1038
1039 * gdbreplay.c (fromhex): Remove.
1040 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1041
1042 2019-05-29 Tom Tromey <tromey@adacore.com>
1043
1044 * configure: Rebuild.
1045
1046 2019-05-06 Kevin Buettner <kevinb@redhat.com>
1047
1048 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1049 sign extension code on 32-bit builds.
1050
1051 2019-05-03 Eli Zaretskii <eliz@gnu.org>
1052
1053 * remote-utils.c:
1054 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1055
1056 2019-04-19 Tom Tromey <tom@tromey.com>
1057
1058 * server.c (struct vstop_notif): Derive from notif_event.
1059 <base>: Remove.
1060 (queue_stop_reply): Update.
1061 (remove_all_on_match_ptid): Change type. Rewrite.
1062 (discard_queued_stop_replies): Rewrite.
1063 (in_queued_stop_replies_ptid): Change type.
1064 (in_queued_stop_replies): Rewrite.
1065 (notif_stop): Update.
1066 (queue_stop_reply_callback): Update.
1067 (captured_main): Don't call initialize_notif.
1068 (push_stop_notification): Update.
1069 * notif.c (notif_write_event, handle_notif_ack)
1070 (notif_event_enque, notif_push): Update.
1071 (notif_event_xfree, initialize_notif): Remove.
1072 * notif.h (struct notif_event): Include <list>, not
1073 "common/queue.h".
1074 (struct notif_server) <queue>: Now a std::list.
1075 (notif_event_p): Remove typedef.
1076 (initialize_notif): Don't declare.
1077 (struct notif_event): Add virtual destructor.
1078
1079 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1080
1081 * ax.c (ax_vdebug): Call debug_printf.
1082 * debug.c (debug_write): New function.
1083 * debug.h (debug_write): New declaration.
1084 * linux-low.c (sigchld_handler): Call debug_write.
1085
1086 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1087
1088 * debug.c (debug_set_output): New function.
1089 (debug_vprintf): Send output to debug_file.
1090 (debug_flush): Likewise.
1091 * debug.h (debug_set_output): New declaration.
1092 * server.c (handle_monitor_command): Add debug-file option.
1093 (captured_main): Likewise.
1094
1095 2019-04-17 Alan Hayward <alan.hayward@arm.com>
1096
1097 * debug.c (remote_debug): Add definition.
1098 * debug.h (remote_debug): Add declaration.
1099 * hostio.c (remote_debug): Remove declaration.
1100 * remote-utils.c (struct ui_file): Likewise.
1101 (remote_debug): Likewise.
1102 * remote-utils.h (remote_debug): Likewise,
1103 * server.c (remote_debug): Remove definition.
1104
1105 2019-04-10 Kevin Buettner <kevinb@redhat.com>
1106
1107 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1108 when using a 64-bit gdbserver.
1109
1110 2019-04-09 Tom Tromey <tromey@adacore.com>
1111
1112 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1113
1114 2019-04-08 Tom Tromey <tom@tromey.com>
1115
1116 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1117 throw.
1118 (linux_resume_one_lwp): Likewise.
1119
1120 2019-04-08 Tom Tromey <tom@tromey.com>
1121
1122 * gdbreplay.c: Update.
1123 * linux-low.c: Update.
1124 * server.c: Update.
1125
1126 2019-04-08 Tom Tromey <tom@tromey.com>
1127
1128 * server.c: Use C++ exception handling.
1129 * linux-low.c: Use C++ exception handling.
1130 * gdbreplay.c: Use C++ exception handling.
1131
1132 2019-04-08 Tom Tromey <tom@tromey.com>
1133
1134 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1135 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1136 (captured_main, main): Update.
1137 * gdbreplay.c (main): Update.
1138
1139 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1140
1141 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1142 value in argument pointer, return 1 if the entry is found and 0
1143 otherwise. Move comment.
1144 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1145 * linux-low.h (linux_get_auxv): Declare.
1146 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1147
1148 2019-04-05 Tom Tromey <tromey@adacore.com>
1149
1150 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1151 variables.
1152
1153 2019-03-28 Alan Hayward <alan.hayward@arm.com>
1154
1155 * linux-low.c (AT_HWCAP2): Add define if not already included.
1156
1157 2019-03-26 Alan Hayward <alan.hayward@arm.com>
1158
1159 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1160 (aarch64_arch_setup): Call linux_get_hwcap.
1161 * linux-arm-low.c (arm_get_hwcap): Remove function.
1162 (arm_read_description): Call linux_get_hwcap.
1163 * linux-low.c (linux_get_auxv): New function.
1164 (linux_get_hwcap): Likewise.
1165 (linux_get_hwcap2): Likewise.
1166 * linux-low.h (linux_get_hwcap): New declaration.
1167 (linux_get_hwcap2): Likewise.
1168 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1169 (ppc_arch_setup): Call linux_get_hwcap.
1170 * linux-s390-low.c (s390_get_hwcap): Remove function.
1171 (s390_arch_setup): Call linux_get_hwcap.
1172
1173 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1174 Jiong Wang <jiong.wang@arm.com>
1175
1176 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1177 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1178 to fail.
1179 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1180
1181 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1182 Jiong Wang <jiong.wang@arm.com>
1183
1184 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1185 (aarch64_get_hwcap): New function.
1186 (aarch64_arch_setup): Read APIA hwcap.
1187
1188 2019-03-22 Alan Hayward <alan.hayward@arm.com>
1189 Jiong Wang <jiong.wang@arm.com>
1190
1191 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1192 (initialize_low_tracepoint): Likewise.
1193 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1194 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1195 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1196 (aarch64_linux_read_description): Likewise.
1197 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1198
1199 2019-03-12 John Baldwin <jhb@FreeBSD.org>
1200
1201 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1202 i386_create_target_description for 'segments' parameter.
1203 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1204 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1205 * win32-i386-low.c (i386_arch_setup): Likewise.
1206
1207 2019-03-12 Tom Tromey <tromey@adacore.com>
1208
1209 * linux-low.c (iterate_over_lwps): Update.
1210
1211 2019-03-06 Tom Tromey <tom@tromey.com>
1212
1213 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1214 (captured_main): Use SCOPE_EXIT.
1215
1216 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1217
1218 * configure.srv: Use '$enable_unittest' instead of '$development'
1219 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1220 case.
1221
1222 2019-02-27 Tom Tromey <tromey@adacore.com>
1223
1224 * gdbreplay.c (logchar): Handle \r\n.
1225
1226 2019-02-07 Alan Hayward <alan.hayward@arm.com>
1227
1228 * linux-low.c (linux_attach): Add process before lwp.
1229 * server.c (attach_inferior): Check if already attached.
1230
1231 2019-02-07 Tom Tromey <tom@tromey.com>
1232
1233 * x86-tdesc.h: Rename include guard.
1234 * x86-low.h: Add include guard.
1235 * wincecompat.h: Rename include guard.
1236 * win32-low.h: Add include guard.
1237 * utils.h: Rename include guard.
1238 * tracepoint.h: Rename include guard.
1239 * tdesc.h: Rename include guard.
1240 * target.h: Rename include guard.
1241 * server.h: Rename include guard.
1242 * remote-utils.h: Rename include guard.
1243 * regcache.h: Rename include guard.
1244 * nto-low.h: Rename include guard.
1245 * notif.h: Add include guard.
1246 * mem-break.h: Rename include guard.
1247 * lynx-low.h: Add include guard.
1248 * linux-x86-tdesc.h: Add include guard.
1249 * linux-s390-tdesc.h: Add include guard.
1250 * linux-ppc-tdesc-init.h: Add include guard.
1251 * linux-low.h: Add include guard.
1252 * linux-aarch64-tdesc.h: Add include guard.
1253 * linux-aarch32-low.h: Add include guard.
1254 * inferiors.h: Rename include guard.
1255 * i387-fp.h: Rename include guard.
1256 * hostio.h: Rename include guard.
1257 * gdbthread.h: Rename include guard.
1258 * gdb_proc_service.h: Rename include guard.
1259 * event-loop.h: Rename include guard.
1260 * dll.h: Rename include guard.
1261 * debug.h: Rename include guard.
1262 * ax.h: Rename include guard.
1263
1264 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1265
1266 PR gdb/23985
1267 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1268 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1269
1270 2019-01-25 Tom Tromey <tom@tromey.com>
1271
1272 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1273
1274 2019-01-25 Tom Tromey <tom@tromey.com>
1275
1276 * win32-low.c: Fix common/ includes.
1277 * win32-i386-low.c: Fix common/ includes.
1278 * tracepoint.c: Fix common/ includes.
1279 * thread-db.c: Fix common/ includes.
1280 * target.h: Fix common/ includes.
1281 * symbol.c: Fix common/ includes.
1282 * spu-low.c: Fix common/ includes.
1283 * server.h: Fix common/ includes.
1284 * server.c: Fix common/ includes.
1285 * remote-utils.c: Fix common/ includes.
1286 * regcache.h: Fix common/ includes.
1287 * regcache.c: Fix common/ includes.
1288 * nto-x86-low.c: Fix common/ includes.
1289 * notif.h: Fix common/ includes.
1290 * mem-break.h: Fix common/ includes.
1291 * lynx-low.c: Fix common/ includes.
1292 * lynx-i386-low.c: Fix common/ includes.
1293 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1294 * linux-x86-low.c: Fix common/ includes.
1295 * linux-low.c: Fix common/ includes.
1296 * inferiors.h: Fix common/ includes.
1297 * i387-fp.c: Fix common/ includes.
1298 * hostio.c: Fix common/ includes.
1299 * hostio-errno.c: Fix common/ includes.
1300 * gdbthread.h: Fix common/ includes.
1301 * gdbreplay.c: Fix common/ includes.
1302 * fork-child.c: Fix common/ includes.
1303 * event-loop.c: Fix common/ includes.
1304 * ax.c:
1305 (enum gdb_agent_op): Fix common/ includes.
1306
1307 2019-01-21 Tom Tromey <tom@tromey.com>
1308
1309 * tracepoint.c: Fix includes.
1310 * remote-utils.c: Fix includes.
1311 * linux-x86-low.c: Fix includes.
1312
1313 2019-01-01 Joel Brobecker <brobecker@adacore.com>
1314
1315 * gdbreplay.c (gdbreplay_version): Update copyright year in
1316 version message.
1317 * server.c (gdbserver_version): Likewise.
1318
1319 2018-12-05 Alan Hayward <alan.hayward@arm.com>
1320
1321 * linux-low.c (add_lwp): Switch ordering.
1322
1323 2018-11-29 Tom Tromey <tom@tromey.com>
1324
1325 * win32-low.c (win32_join): Take pid, not process.
1326 * target.h (struct target_ops) <join>: Change argument type.
1327 (join_inferior): Change argument name.
1328 * spu-low.c (spu_join): Take pid, not process.
1329 * server.c (handle_detach): Preserve pid before destroying
1330 process.
1331 * lynx-low.c (lynx_join): Take pid, not process.
1332 * linux-low.c (linux_join): Take pid, not process.
1333
1334 2018-11-23 Alan Hayward <alan.hayward@arm.com>
1335
1336 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1337 (aarch64_cannot_fetch_register): Likewise.
1338 (struct linux_target_ops): Update references.
1339
1340 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1341
1342 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1343
1344 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1345
1346 * configure.srv (ipa_ppc_linux_regobj): Add
1347 powerpc-isa207-htm-vsx32l-ipa.o and
1348 powerpc-isa207-htm-vsx64l-ipa.o.
1349 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1350 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1351 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1352 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1353 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1354 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1355 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1356 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1357 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1358 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1359 (init_registers_powerpc_isa207_htm_vsx32l)
1360 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1361 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1362 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1363 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1364 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1365 (ppc_store_tm_ctarregset): New functions.
1366 (ppc_regsets): Add entries for HTM regsets.
1367 (ppc_arch_setup): Set htm in features struct when needed. Set
1368 sizes for the HTM regsets.
1369 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1370 (initialize_low_arch): Call
1371 init_registers_powerpc_isa207_htm_vsx32l and
1372 init_registers_powerpc_isa207_htm_vsx64l.
1373 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1374 PPC_TDESC_ISA207_HTM_VSX.
1375 (initialize_low_tracepoint): Call
1376 init_registers_powerpc_isa207_htm_vsx32l and
1377 init_registers_powerpc_isa207_htm_vsx64l.
1378
1379 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1380
1381 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1382 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1383 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1384 (ppc_store_pmuregset): New functions.
1385 (ppc_regsets): Add entries for ebb and pmu regsets.
1386 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1387 pmu regsets are available. Set sizes for these regsets.
1388
1389 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1390
1391 * configure.srv (ipa_ppc_linux_regobj): Add
1392 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1393 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1394 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1395 rs6000/powerpc-isa207-vsx32l.xml, and
1396 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1397 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1398 <PPC_TDESC_ISA207_VSX>: New enum value.
1399 (init_registers_powerpc_isa207_vsx32l): Declare.
1400 (init_registers_powerpc_isa207_vsx64l): Declare.
1401 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1402 (ppc_store_tarregset): New function.
1403 (ppc_regsets): Add entry for the TAR regset.
1404 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1405 size for the TAR regsets.
1406 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1407 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1408 and init_registers_powerpc_isa207_vsx64l.
1409 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1410 (initialize_low_tracepoint): Call
1411 init_registers_powerpc_isa207_vsx32l and
1412 init_registers_powerpc_isa207_vsx64l.
1413
1414 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1415 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1416
1417 * configure.srv (ipa_ppc_linux_regobj): Add
1418 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1419 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1420 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1421 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1422 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1423 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1424 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1425 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1426 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1427 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1428 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1429 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1430 (ppc_hwcap): Add comment.
1431 (ppc_hwcap2): New global.
1432 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1433 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1434 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1435 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1436 when needed. Set sizes for the the DSCR and PPR regsets.
1437 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1438 (initialize_low_arch): Call
1439 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1440 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1441 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1442 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1443 (initialize_low_tracepoint): Call
1444 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1445 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1446
1447 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1448
1449 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1450
1451 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1452 Simon Marchi <simark@simark.ca>
1453
1454 * acinclude.m4: Include "../selftest.m4".
1455 * configure: Regenerate.
1456 * configure.ac: Use "GDB_AC_SELFTEST".
1457 * configure.srv: Use "$enable_unittests" instead of
1458 "$development" when checking whether unit tests have been
1459 enabled.
1460 * server.c (captured_main): Update message informing that
1461 selftests have been disabled.
1462
1463 2018-10-04 Tom Tromey <tom@tromey.com>
1464
1465 * configure: Rebuild.
1466
1467 2018-10-04 Tom Tromey <tom@tromey.com>
1468
1469 * server.c (handle_status): Rename inner "thread".
1470 (process_serial_event): Declare "res" in 'm' case.
1471 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1472 (iterate_over_lwps): Rename inner "thread".
1473 (linux_qxfer_libraries_svr4): Rename inner "len".
1474 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1475
1476 2018-10-01 Gary Benson <gbenson@redhat.com>
1477
1478 * gdb_proc_service.h: Moved common code to
1479 common/gdb_proc_service.h.
1480
1481 2018-10-01 Gary Benson <gbenson@redhat.com>
1482
1483 * gdb_proc_service.h: Synchronize comments and whitespace with
1484 GDB's version of this file.
1485
1486 2018-09-25 Tom Tromey <tom@tromey.com>
1487
1488 * configure: Rebuild.
1489 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1490
1491 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
1494 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
1495 ($(IPA_LIB)): Sort IPA_OBJS.
1496
1497 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * Makefile.in: Remove references to $(ADD_DEPS).
1500
1501 2018-09-16 Tom Tromey <tom@tromey.com>
1502
1503 * remote-utils.c (remote_open): Use GNU style for metasyntactic
1504 variables.
1505 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
1506 variables.
1507
1508 2018-09-05 Tom Tromey <tom@tromey.com>
1509
1510 * configure: Rebuild.
1511
1512 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 PR build/23399
1515 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
1516
1517 2018-08-27 Tom Tromey <tom@tromey.com>
1518
1519 PR build/23087:
1520 * configure: Rebuild.
1521
1522 2018-08-27 Tom Tromey <tom@tromey.com>
1523
1524 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
1525 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
1526 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
1527 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
1528 (s390x_emit_stack_adjust): Add casts to unsigned char.
1529
1530 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
1531
1532 PR gdb/23374
1533 PR gdb/23375
1534 * server.h (struct client_state) <disable_randomization>:
1535 Initialize to 1.
1536
1537 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1538
1539 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
1540 variable.
1541 (mips_supply_ptrace_register): Likewise.
1542
1543 2018-07-22 Tom Tromey <tom@tromey.com>
1544
1545 * configure: Rebuild.
1546
1547 2018-07-22 Tom Tromey <tom@tromey.com>
1548
1549 * win32-low.c (win32_create_inferior): Remove unused variables.
1550 * gdbreplay.c (remote_open): Remove unused variable.
1551 * remote-utils.c (remote_prepare): Remove unused variable.
1552 * x86-tdesc.h (X86_TDESC_H): Define.
1553 (amd64_expedite_regs): Define conditionally.
1554 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
1555 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
1556 * remote-utils.c (readchar): Remove unused variable.
1557
1558 2018-07-13 Pedro Alves <palves@redhat.com>
1559
1560 * linux-low.c (linux_kill): Change parameter to process_info
1561 pointer instead of pid. Adjust.
1562 * lynx-low.c (lynx_kill): Likewise.
1563 * nto-low.c (nto_kill): Likewise.
1564 * spu-low.c (spu_kill): Likewise.
1565 * win32-low.c (win32_kill): Likewise.
1566 * server.c (handle_v_kill, kill_inferior_callback)
1567 (detach_or_kill_for_exit): Adjust.
1568 * target.c (kill_inferior): Change parameter to process_info
1569 pointer instead of pid. Adjust.
1570 * target.h (struct target_ops) <kill>: Change parameter to
1571 process_info pointer instead of pid. Adjust all implementations
1572 and callers.
1573 (kill_inferior): Likewise.
1574
1575 2018-07-13 Pedro Alves <palves@redhat.com>
1576
1577 * linux-low.c (linux_detach, linux_join): Change parameter to
1578 process_info pointer instead of pid. Adjust.
1579 * lynx-low.c (lynx_detach, lynx_join): Likewise.
1580 * nto-low.c (nto_detach): Likewise.
1581 * spu-low.c (spu_detach, spu_join): Likewise.
1582 * win32-low.c (win32_detach, win32_join): Likewise.
1583 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
1584 * target.h (struct target_ops) <detach, join>: Change parameter to
1585 process_info pointer instead of pid. Adjust all implementations
1586 and callers.
1587 (detach_inferior, join_inferior): Rename 'pid' parameter to
1588 'proc'.
1589
1590 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1591 Jan Kratochvil <jan.kratochvil@redhat.com>
1592 Paul Fertser <fercerpav@gmail.com>
1593 Tsutomu Seki <sekiriki@gmail.com>
1594
1595 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
1596 (OBS): Add 'common/netstuff.o'.
1597 (GDBREPLAY_OBS): Likewise.
1598 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
1599 (remote_open): Implement support for IPv6
1600 connections.
1601 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
1602 and 'wspiapi.h'.
1603 (handle_accept_event): Accept connections from IPv6 sources.
1604 (remote_prepare): Handle IPv6-style hostnames; implement
1605 support for IPv6 connections.
1606 (remote_open): Implement support for printing connections from
1607 IPv6 sources.
1608
1609 2018-07-11 Pedro Alves <palves@redhat.com>
1610
1611 PR gdb/23377
1612 * mem-break.c (any_persistent_commands): Add process_info
1613 parameter and use it instead of relying on the current process.
1614 Change return type to bool.
1615 * mem-break.h (any_persistent_commands): Add process_info
1616 parameter and change return type to bool.
1617 * server.c (handle_detach): Remove require_running_or_return call.
1618 Look up the process_info for the process we're about to detach.
1619 If not found, return back error to GDB. Adjust
1620 any_persistent_commands call to pass down a process pointer.
1621
1622 2018-07-11 Pedro Alves <palves@redhat.com>
1623
1624 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
1625 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
1626 instead of collect_register_by_name.
1627 * regcache.c (regcache_raw_get_unsigned_by_name): New.
1628 * regcache.h (regcache_raw_get_unsigned_by_name): New.
1629
1630 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1631 Pedro Alves <palves@redhat.com>
1632
1633 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
1634
1635 2018-07-03 Tom Tromey <tom@tromey.com>
1636
1637 * linux-low.c: Update.
1638 * lynx-low.c: Update.
1639 * mem-break.c: Update.
1640 * nto-low.c: Update.
1641 * remote-utils.c: Update.
1642 * server.c: Update.
1643 * spu-low.c: Update.
1644 * target.c: Update.
1645 * win32-low.c: Update.
1646
1647 2018-07-03 Tom Tromey <tom@tromey.com>
1648
1649 * server.c: Update.
1650
1651 2018-07-03 Tom Tromey <tom@tromey.com>
1652
1653 * linux-low.c: Update.
1654
1655 2018-07-03 Tom Tromey <tom@tromey.com>
1656
1657 * target.c: Update.
1658
1659 2018-07-03 Tom Tromey <tom@tromey.com>
1660
1661 * linux-low.c: Update.
1662 * linux-mips-low.c: Update.
1663 * lynx-low.c: Update.
1664 * nto-low.c: Update.
1665 * remote-utils.c: Update.
1666 * server.c: Update.
1667 * spu-low.c: Update.
1668 * target.c: Update.
1669 * thread-db.c: Update.
1670
1671 2018-07-03 Tom Tromey <tom@tromey.com>
1672
1673 * linux-low.c: Update.
1674 * linux-mips-low.c: Update.
1675 * lynx-low.c: Update.
1676 * mem-break.c: Update.
1677 * nto-low.c: Update.
1678 * remote-utils.c: Update.
1679 * server.c: Update.
1680 * spu-low.c: Update.
1681 * target.c: Update.
1682 * tracepoint.c: Update.
1683
1684 2018-07-03 Tom Tromey <tom@tromey.com>
1685
1686 * linux-low.c: Update.
1687 * linux-ppc-low.c: Update.
1688 * linux-x86-low.c: Update.
1689 * proc-service.c: Update.
1690 * server.c: Update.
1691 * spu-low.c: Update.
1692 * thread-db.c: Update.
1693 * win32-low.c: Update.
1694
1695 2018-07-03 Tom Tromey <tom@tromey.com>
1696
1697 * linux-low.c: Update.
1698 * lynx-low.c: Update.
1699 * nto-low.c: Update.
1700 * remote-utils.c: Update.
1701 * spu-low.c: Update.
1702 * thread-db.c: Update.
1703 * win32-low.c: Update.
1704
1705 2018-06-29 Joel Brobecker <brobecker@adacore.com>
1706
1707 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
1708 parameter in call to 'amd64_create_target_description'.
1709
1710 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1711
1712 * x86-tdesc.h: Remove executable permission flag.
1713
1714 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1715
1716 * configure.ac: Remove AC_PREREQ, add missing quoting.
1717 * configure: Re-generate.
1718 * config.in: Re-generate.
1719 * aclocal.m4: Re-generate.
1720
1721 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
1722
1723 * tracepoint.h (current_traceframe): Remove declaration.
1724
1725 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1726
1727 * linux-aarch64-low.c (is_sve_tdesc): New function.
1728 (aarch64_sve_regs_copy_to_regcache): Likewise.
1729 (aarch64_sve_regs_copy_from_regcache): Likewise.
1730 (aarch64_regs_info): Add SVE checks.
1731 (initialize_low_arch): Initialize SVE.
1732
1733 2018-06-18 Alan Hayward <alan.hayward@arm.com>
1734
1735 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
1736
1737 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1738
1739 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
1740 (initialize_low_tracepoint): Likewise
1741 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
1742 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
1743 param.
1744 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
1745 checks.
1746 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
1747
1748 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1749
1750 * server.h (PBUFSIZ): Increase size
1751
1752 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1753
1754 * regcache.c (regcache::raw_compare): New function.
1755 * regcache.h (regcache::raw_compare): New declaration.
1756
1757 2018-06-11 Alan Hayward <alan.hayward@arm.com>
1758
1759 * regcache.c (new_register_cache): Use new.
1760 (free_register_cache): Use delete.
1761 (register_data): Use const.
1762 (supply_register): Move body inside regcache.
1763 (regcache::raw_supply): New override function.
1764 (collect_register): Move body inside regcache.
1765 (regcache::raw_collect): New override function.
1766 (regcache::get_register_status): New override function.
1767 * regcache.h (struct regcache): Inherit from reg_buffer_common.
1768
1769 2018-06-09 Tom Tromey <tom@tromey.com>
1770
1771 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
1772 declare queue.
1773 (event_queue): Use std::queue.
1774 (gdb_event_xfree): Remove.
1775 (initialize_event_loop, process_event, wait_for_event): Update.
1776
1777 2018-06-08 Stan Cox <scox@redhat.com>
1778
1779 * win32-low.c (win32_create_inferior): last_ptid and last_status
1780 moved to client_state.
1781
1782 2018-06-08 Pedro Alves <palves@redhat.com>
1783
1784 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
1785 common/common-exceptions.o, common/common-utils.o,
1786 common/errors.o, common/print-utils.o and utils.o.
1787 * gdbreplay.c: Include "common-defs.h" instead of the two
1788 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
1789 string.h or alloca.h.
1790 (perror_with_name): Delete.
1791 (remote_open): Use xstrdup instead of strdup.
1792 (main): Rename to ...
1793 (captured_main): ... this.
1794 (main): New.
1795
1796 2018-06-08 Tom Tromey <tom@tromey.com>
1797
1798 * linux-low.c (linux_low_read_btrace): Update.
1799
1800 2018-06-04 Stan Cox <scox@redhat.com>
1801
1802 * server.h (struct client_state): New.
1803 * server.c (cont_thread, general_thread, multi_process)
1804 (report_fork_events, report_vfork_events, report_exec_events)
1805 (report_thread_events, swbreak_feature, hwbreak_feature)
1806 (vCont_supported, disable_randomization, pass_signals)
1807 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
1808 Moved to client_state.
1809 * remote-utils.c (remote_debug, noack_mode)
1810 (transport_is_reliable): Moved to client_state.
1811 * tracepoint.c (current_traceframe): Moved to client_state.
1812
1813 Update all callers.
1814 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
1815 linux-low.c, remote-utils.h, target.c: Use client_state.
1816
1817 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1818
1819 * configure.srv: Add new c/h file.
1820
1821 2018-05-31 Alan Hayward <alan.hayward@arm.com>
1822
1823 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
1824 null VQ.
1825
1826 2018-05-25 Maciej W. Rozycki <macro@mips.com>
1827
1828 * gdb.arch/mips-fpregset-core.exp: New test.
1829 * gdb.arch/mips-fpregset-core.c: New test source.
1830
1831 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
1832
1833 PR server/23198
1834 * hostio.c (require_int): Do not report overflow for integers
1835 between 0xfffffff and 0x7fffffff.
1836
1837 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1838
1839 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
1840 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
1841 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
1842 functions.
1843 (the_low_target): Wire them.
1844
1845 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1846
1847 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
1848 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
1849 mode. Call collect_register_by_name with vscr using
1850 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
1851 (ppc_store_vrregset): Add and set vscr_offset variable as in
1852 ppc_fill_vrregset. Call supply_register_by_name with vscr using
1853 vscr_offset.
1854
1855 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1856
1857 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
1858 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
1859 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
1860
1861 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1862
1863 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
1864 (ppc_store_vsxregset): Likewise.
1865 (ppc_fill_vrregset): Likewise.
1866 (ppc_store_vrregset): Likewise.
1867 (ppc_fill_evrregset): Likewise.
1868 (ppc_store_evrregset): Likewise.
1869 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
1870 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
1871 needed.
1872
1873 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1874
1875 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
1876 wordsize of the inferior. Call ppc_linux_target_wordsize.
1877
1878 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
1879
1880 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
1881 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
1882 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
1883 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
1884 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
1885 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
1886 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
1887 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
1888 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
1889 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
1890 (tdesc_powerpc_e500l): Remove.
1891 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
1892 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
1893 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
1894 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
1895 linux-ppc-tdesc.h.
1896 (ppc_arch_setup): Remove target description matching code. Fill a
1897 ppc_linux_features struct and call ppc_linux_match_description
1898 with it.
1899
1900 2018-05-22 Maciej W. Rozycki <macro@mips.com>
1901
1902 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
1903 width of the requested register exceeds the width of the
1904 `ptrace' data type.
1905 (mips_cannot_store_register): Likewise.
1906
1907 2018-05-21 Maciej W. Rozycki <macro@mips.com>
1908
1909 * linux-mips-low.c (mips_fetch_register): New function. Update
1910 preceding comment.
1911 (mips_store_gregset): Supply 0 rather than $restart for $zero.
1912 (the_low_target): Wire `mips_fetch_register'.
1913
1914 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1915
1916 * lynx-i386-low.c (LYNXOS_178): New macro.
1917 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
1918 the layout on LynxOS-178.
1919 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
1920 handle floating point registers that are not supported by
1921 LynxOS-178.
1922
1923 2018-05-10 Tom Tromey <tom@tromey.com>
1924
1925 * configure: Rebuild.
1926
1927 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1928
1929 PR server/23158:
1930 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
1931 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
1932 Use it to set the expedite_regs field in the given tdesc.
1933 * x86-tdesc.h: New file.
1934 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
1935 Adjust following the addition of the new expedite_regs parameter
1936 to init_target_desc.
1937 * linux-tic6x-low.c (tic6x_read_description): Likewise.
1938 * linux-x86-tdesc.c: #include "x86-tdesc.h".
1939 (i386_linux_read_description, amd64_linux_read_description):
1940 Adjust following the addition of the new expedite_regs parameter
1941 to init_target_desc.
1942 * lynx-i386-low.c: #include "x86-tdesc.h".
1943 (lynx_i386_arch_setup): Adjust following the addition of the new
1944 expedite_regs parameter to init_target_desc.
1945 * nto-x86-low.c: #include "x86-tdesc.h".
1946 (nto_x86_arch_setup): Adjust following the addition of the new
1947 expedite_regs parameter to init_target_desc.
1948 * win32-i386-low.c: #include "x86-tdesc.h".
1949 (i386_arch_setup): Adjust following the addition of the new
1950 expedite_regs parameter to init_target_desc.
1951
1952 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1953
1954 PR server/23158:
1955 * win32-low.c (win32_create_inferior): Add call to my_wait
1956 setting last_status global.
1957
1958 2018-05-10 Joel Brobecker <brobecker@adacore.com>
1959
1960 PR server/23158:
1961 * win32-low.c (create_process): Only call gdb_tilde_expand if
1962 inferior_cwd is not NULL.
1963
1964 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
1967 registers to the cache if their values have changed.
1968 (i387_xsave_to_cache): Provide default values for x87 control
1969 registers when these features are available, but disabled.
1970 * regcache.c (supply_register_by_name_zeroed): New function.
1971 * regcache.h (supply_register_by_name_zeroed): Declare new
1972 function.
1973
1974 2018-05-07 Tom Tromey <tom@tromey.com>
1975
1976 * configure: Rebuild.
1977
1978 2018-05-04 Tom Tromey <tom@tromey.com>
1979
1980 * configure: Rebuild.
1981
1982 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 Pedro Alves <palves@redhat.com>
1984
1985 * linux-aarch64-low.c (aarch64_stopped_data_address):
1986 Likewise.
1987
1988 2018-04-27 Tom Tromey <tom@tromey.com>
1989
1990 * configure: Rebuild.
1991
1992 2018-04-23 Tom Tromey <tom@tromey.com>
1993
1994 * configure: Rebuild.
1995
1996 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
1997
1998 * Makefile.in (depcomp): Add "..".
1999 (all_deps_files): New and use it.
2000
2001 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2002
2003 * configure.srv (aarch64*-*-linux*): Don't include xml.
2004 (i[34567]86-*-cygwin*): Likewise.
2005 (i[34567]86-*-linux*): Likewise.
2006 (i[34567]86-*-lynxos*): Likewise.
2007 (i[34567]86-*-mingw32ce*): Likewise.
2008 (i[34567]86-*-mingw*): Likewise.
2009 (i[34567]86-*-nto*): Likewise.
2010 (tic6x-*-uclinux): Likewise.
2011 (x86_64-*-linux*): Likewise.
2012 (x86_64-*-mingw*): Likewise.
2013 (x86_64-*-cygwin*): Likewise.
2014
2015 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2016
2017 * tdesc.c: Remove xml parameter.
2018
2019 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2020
2021 * server.c (get_features_xml): Remove cast.
2022 * tdesc.c (void target_desc::accept): Fill in function.
2023 (tdesc_get_features_xml): Remove old xml creation.
2024 (print_xml_feature::visit_pre): Add xml vistor.
2025 * tdesc.h (struct target_desc): Make xmltarget mutable.
2026 (tdesc_get_features_xml): Remove declaration.
2027
2028 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2029
2030 * tdesc.c (tdesc_architecture_name): Add new function.
2031 (tdesc_osabi_name): Likewise.
2032 (tdesc_get_features_xml): Use new functions.
2033
2034 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2035
2036 * tdesc.c (tdesc_create_flags): Remove.
2037 (tdesc_add_flag): Likewise.
2038 (tdesc_named_type): Likewise.
2039 (tdesc_create_union): Likewise.
2040 (tdesc_create_struct): Likewise.
2041 (tdesc_create_vector): Likewise.
2042 (tdesc_add_bitfield): Likewise.
2043 (tdesc_add_field): Likewise.
2044 (tdesc_set_struct_size): Likewise.
2045
2046 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2047
2048 * tdesc.c (~target_desc): Remove implictly deleted items.
2049 (init_target_desc): Iterate all features.
2050 (tdesc_get_features_xml): Use vector.
2051 (tdesc_create_feature): Create feature.
2052 * tdesc.h (tdesc_feature) Remove
2053 (target_desc): Add features.
2054
2055 2018-04-18 Alan Hayward <alan.hayward@arm.com>
2056
2057 * Makefile.in: Add common/tdesc.c
2058 * tdesc.c (init_target_desc): init all reg_defs from register
2059 vector.
2060 (tdesc_create_reg): Create tdesc_reg.
2061 * tdesc.h (tdesc_feature): Add register vector.
2062
2063 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 * tdesc.h (struct target_desc) <features>: Change type to
2066 std::vector<std::string>.
2067 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2068 changes.
2069 (tdesc_get_features_xml): Likewise.
2070 (tdesc_create_feature): Likewise.
2071
2072 2018-03-26 Alan Hayward <alan.hayward@arm.com>
2073
2074 * regcache.c (find_register_by_number): Return a ref.
2075 (find_regno): Use references.
2076 (register_size): Likewise.
2077 (register_data): Likewise.
2078 * tdesc.c (target_desc::~target_desc): Remove free calls.
2079 (target_desc::operator==): Use std::vector compare.
2080 (init_target_desc): Use reference.
2081 (tdesc_create_reg): Use reg constructors.
2082 * tdesc.h (struct target_desc): Replace pointer with object.
2083
2084 2018-03-23 Alan Hayward <alan.hayward@arm.com>
2085
2086 * regcache.c (find_register_by_number): Make static.
2087 (find_regno): Use find_register_by_number
2088 * regcache.h (struct reg): Remove declaration.
2089
2090 2018-03-23 Alan Hayward <alan.hayward@arm.com>
2091
2092 * tdesc.c (target_desc::~target_desc): Move to here.
2093 (target_desc::operator==): Likewise.
2094 * tdesc.h (target_desc::~target_desc): Move from here.
2095 (target_desc::operator==): Likewise.
2096
2097 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098
2099 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2100
2101 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102
2103 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2104 S390_TDESC_GS.
2105 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2106 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2107 and init_registers_s390_gs_linux64.
2108
2109 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2110
2111 * linux-s390-low.c (s390_fill_gs): Remove function.
2112 (s390_fill_gsbc): Remove function.
2113 (s390_regsets): Set fill functions for the guarded storage regsets
2114 to NULL.
2115
2116 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117
2118 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2119 the word size. Add comment.
2120 (s390_get_wordsize): New function.
2121 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2122 pswm with it. Instead, use s390_get_wordsize to determine the
2123 word size first and derive the correct tdesc from that directly.
2124
2125 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * Makefile.in: Include silent-rules.mk.
2128 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2129 (COMPILE): Add ECHO_CXX.
2130 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2131 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2132 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2133 (version-generated.c): Add ECHO_GEN.
2134 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2135 (IPAGENT_COMPILE): Add ECHO_CXX.
2136 (%-generated.c): Add ECHO_REGDAT.
2137
2138 2018-03-14 Tom Tromey <tom@tromey.com>
2139
2140 PR cli/14977:
2141 * ax.c (ax_printf): Special case for NULL.
2142
2143 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2144
2145 * linux-low.c (linux_qxfer_libraries_svr4): Use
2146 xml_escape_text_append.
2147
2148 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2151
2152 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * server.c (handle_general_set): Remove unnecessary xstrdup.
2155
2156 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2157
2158 * server.c (parse_debug_format_options): Adjust to
2159 delim_string_to_char_ptr_vec changes.
2160 * thread-db.c (thread_db_load_search): Adjust to
2161 dirnames_to_char_ptr_vec changes.
2162
2163 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2164
2165 * target.h (target_enable_btrace, target_disable_btrace)
2166 (target_read_btrace, target_read_btrace_conf): Turn macro into
2167 inline function. Throw error if target method is not defined.
2168 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2169 check for btrace target method. Be prepared to handle exceptions
2170 from btrace target methods.
2171
2172 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2173
2174 * server.c (captured_main): Change order of error message printed
2175 when the current working directory cannot be found.
2176
2177 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2178
2179 * server.c: Include "filenames.h" and "pathstuff.h".
2180 (program_name): Delete variable.
2181 (program_path): New anonymous class.
2182 (get_exec_wrapper): Use "program_path" instead of
2183 "program_name".
2184 (handle_v_run): Likewise.
2185 (captured_main): Likewise.
2186 (process_serial_event): Likewise.
2187
2188 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2189
2190 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2191 (OBJS): Add "pathstuff.o".
2192 * server.c (current_directory): New global variable.
2193 (captured_main): Initialize "current_directory".
2194
2195 2018-02-26 Alan Hayward <alan.hayward@arm.com>
2196
2197 * tdesc.c: Use common/tdesc.h.
2198 * tdesc.h: Likewise.
2199
2200 2018-02-20 Alan Hayward <alan.hayward@arm.com>
2201 Simon Marchi <simon.marchi@ericsson.com>
2202
2203 * Makefile.in: Switch order of make rules.
2204
2205 2018-02-19 Alan Hayward <alan.hayward@arm.com>
2206
2207 * Makefile.in: Add common directory in build.
2208 * configure.ac: Add common reference.
2209 * configure: Regenerate.
2210
2211 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2212
2213 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2214 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2215 * spu-low.c (spu_target_ops): Likewise.
2216 * win32-low.c (win32_target_ops): Likewise.
2217 * server.c (supported_btrace_packets): Report packets unconditionally.
2218 * target.h (target_ops) <supports_btrace>: Remove.
2219 (target_supports_btrace): Remove.
2220
2221 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2222
2223 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2224 (handle_btrace_disable): Change return type to void. Use exceptions
2225 to report errors.
2226 (handle_btrace_general_set): Catch exception and copy message to
2227 return message.
2228
2229 2018-02-08 Tom Tromey <tom@tromey.com>
2230
2231 * linux-low.c (install_software_single_step_breakpoints): Use
2232 make_scoped_restore.
2233 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2234 (do_restore_current_thread_cleanup): Remove.
2235 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2236 declare.
2237
2238 2018-02-08 Tom Tromey <tom@tromey.com>
2239
2240 * mem-break.c (set_raw_breakpoint_at): Use
2241 gdb::unique_xmalloc_ptr.
2242
2243 2018-01-30 Pedro Alves <palves@redhat.com>
2244
2245 PR gdb/13211
2246 * target.c (target_terminal::terminal_state): Rename to ...
2247 (target_terminal::m_terminal_state): ... this.
2248
2249 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2250
2251 * linux-low.c (handle_extended_wait): Surround call to
2252 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2253
2254 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2255
2256 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2257 linux_ptrace_attach_fail_reason_string now returning an
2258 std::string.
2259 (linux_attach): Likewise.
2260 * thread-db.c (attach_thread): Likewise.
2261
2262 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2263
2264 PR gdb/21559
2265 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2266 checking for fs_base/gs_base fields in struct user_regs_struct.
2267 * configure: Regenerate.
2268
2269 2018-01-16 Yao Qi <yao.qi@linaro.org>
2270
2271 PR gdb/18749
2272 * linux-low.c (fetch_register): Call supply_register instead of
2273 error.
2274
2275 2018-01-08 Yao Qi <yao.qi@linaro.org>
2276 Simon Marchi <simon.marchi@ericsson.com>
2277
2278 * Makefile.in (OBS): Remove selftest.o.
2279 * configure.ac: Set srv_selftest_objs if $development is true.
2280 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2281 * configure: Re-generated.
2282 * server.c (captured_main): Wrap variable selftest_filter with
2283 GDB_SELF_TEST.
2284
2285 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * server.c (parse_debug_format_options): Return std::string.
2288 (handle_monitor_command, captured_main): Adjust.
2289
2290 2018-01-05 Pedro Alves <palves@redhat.com>
2291
2292 PR gdb/18653
2293 * server.c (captured_main): Pass quiet=false to
2294 save_original_signals_state.
2295
2296 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2297
2298 * gdbreplay.c (gdbreplay_version): Update copyright year in
2299 version message.
2300 * server.c (gdbserver_version): Likewise.
2301
2302 2017-12-08 Tom Tromey <tom@tromey.com>
2303
2304 * ax.c (ax_printf): Update.
2305
2306 2017-12-07 Yao Qi <yao.qi@linaro.org>
2307
2308 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2309 aarch64_linux_read_description.
2310 * linux-amd64-ipa.c (idx2mask): New array.
2311 (get_ipa_tdesc): Move idx2mask out.
2312 (initialize_low_tracepoint): Initialize target descriptions.
2313 * linux-i386-ipa.c (idx2mask): New array.
2314 (get_ipa_tdesc): Move idx2mask out.
2315 (initialize_low_tracepoint): Initialize target descriptions.
2316
2317 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * tdesc.c (struct tdesc_type): Change return type.
2320 (tdesc_add_flag): Change parameter type.
2321 (tdesc_add_bitfield): Likewise.
2322 (tdesc_add_field): Likewise.
2323 (tdesc_set_struct_size): Likewise.
2324
2325 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2326
2327 * regcache.c (registers_to_string): Remove unused variable.
2328
2329 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * inferiors.c (for_each_inferior_with_data): Remove.
2332 * inferiors.h (for_each_inferior_with_data): Remove.
2333 * server.c (handle_qxfer_threads_worker): Change parameter type.
2334 (handle_qxfer_threads_proper): Use for_each_thread.
2335
2336 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2337
2338 * inferiors.c (for_each_inferior): Remove.
2339 (clear_inferiors): Use for_each_thread.
2340 * inferiors.h (for_each_inferior): Remove.
2341 * linux-low.c (linux_wait_for_event_filtered): Use
2342 for_each_thread.
2343 (linux_stabilize_threads): Likewise.
2344 * regcache.c (regcache_release): Likewise.
2345 * server.c (gdb_wants_all_threads_stopped): Likewise.
2346 (clear_pending_status_callback): Remove.
2347 (handle_status): Use for_each_thread.
2348 (captured_main): Likewise.
2349 * win32-low.c (child_init_thread_list): Likewise.
2350 (win32_clear_inferiors): Likewise.
2351 (fake_breakpoint_event): Likewise.
2352
2353 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2354
2355 * inferiors.h (find_inferior): Remove.
2356 * inferiors.c (find_inferior): Remove.
2357
2358 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2359
2360 * linux-low.c (resume_status_pending_p): Update comment.
2361 (need_step_over_p): Update comment.
2362
2363 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * linux-low.c (proceed_one_lwp): Return void, change parameter
2366 type.
2367 (unsuspend_and_proceed_one_lwp): Likewise.
2368 (proceed_all_lwps): Use for_each_thread.
2369 (unstop_all_lwps): Likewise.
2370
2371 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * linux-low.c (linux_resume_one_thread): Return void, take
2374 parameter directly.
2375 (linux_resume): Use for_each_thread.
2376
2377 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * linux-low.c (send_sigstop_callback): Return void, change
2380 parameter type. Rename to...
2381 (send_sigstop): ... this.
2382 (suspend_and_send_sigstop_callback): Return void, change parameter
2383 type. Rename to...
2384 (suspend_and_send_sigstop): ... this.
2385 (stop_all_lwps): Use for_each_thread.
2386
2387 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * linux-low.c (lwp_running): Return bool, remove unused
2390 argument.
2391 (linux_stabilize_threads): Use find_thread.
2392
2393 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2394
2395 * linux-low.c (select_singlestep_lwp_callback): Remove.
2396 (count_events_callback): Remove.
2397 (select_event_lwp_callback): Remove.
2398 (select_event_lwp): Use find_thread/for_each_thread.
2399
2400 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2401
2402 * linux-low.c (not_stopped_callback): Return bool, take filter
2403 argument directly.
2404 (linux_wait_for_event_filtered): Use find_thread.
2405 (linux_wait_1): Likewise.
2406
2407 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2408
2409 * linux-low.c (same_lwp): Remove.
2410 (find_lwp_pid): Use find_thread.
2411
2412 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2413
2414 * linux-low.c (delete_lwp_callback): Remove.
2415 (linux_mourn): Use for_each_thread.
2416
2417 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2420 args parameter, don't check for pid.
2421 (linux_detach): Use for_each_thread.
2422
2423 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * linux-low.c (struct counter): Remove.
2426 (second_thread_of_pid_p): Remove.
2427 (last_thread_of_process_p): Use find_thread.
2428
2429 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2430
2431 * inferiors.c (find_inferior_in_random): Remove.
2432 * inferiors.h (find_inferior_in_random): Remove.
2433 * linux-low.c (status_pending_p_callback): Return bool, accept
2434 parameter ptid directly.
2435 (linux_wait_for_event_filtered): Use find_thread_in_random.
2436 (linux_wait_1): Likewise.
2437
2438 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * inferiors.c (find_inferior_id): Remove.
2441 (find_thread_ptid): Move implemention from find_inferior_id to
2442 here.
2443 * inferiors.h (find_inferior_id): Remove.
2444 * server.c (handle_status): Use find_thread_ptid.
2445 (process_serial_event): Likewise.
2446 * thread-db.c (find_one_thread): Likewise.
2447 (thread_db_thread_handle): Likewise.
2448 * win32-low.c (thread_rec): Likewise.
2449 (child_delete_thread): Likewise.
2450 (win32_thread_alive): Likewise.
2451 (get_child_debug_event): Likewise.
2452
2453 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * linux-mips-low.c (update_watch_registers_callback): Return
2456 void, remove pid_p parameter, don't check for pid.
2457 (mips_insert_point, mips_remove_point): Use for_each_thread.
2458
2459 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * lynx.low (lynx_delete_thread_callback): Remove.
2462 (lynx_mourn): Use for_each_thread.
2463
2464 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2465
2466 * regcache.c (regcache_invalidate_one): Remove.
2467 (regcache_invalidate_pid): use for_each_thread.
2468
2469 2017-11-26 Tom Tromey <tom@tromey.com>
2470
2471 * linux-low.c (linux_create_inferior): Update.
2472
2473 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2474
2475 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2476
2477 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2478
2479 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2480 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2481 * linux-aarch64-tdesc-selftest.c: New file.
2482 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2483
2484 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2485
2486 * configure.srv: Add new file.
2487 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2488 * linux-aarch64-tdesc-selftest.c: New file.
2489 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2490
2491 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2492
2493 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
2494 * linux-aarch64-low.c (initialize_low_arch): Remove init.
2495 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
2496
2497 2017-11-24 Alan Hayward <alan.hayward@arm.com>
2498
2499 * configure.srv: Add new files.
2500 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
2501 aarch64_linux_read_description.
2502 * linux-aarch64-low.c (aarch64_linux_read_description):
2503 Merge with aarch64_arch_setup.
2504 (aarch64_arch_setup): Call aarch64_linux_read_description.
2505 * linux-aarch64-tdesc.c: New file.
2506 * linux-aarch64-tdesc.h: New file.
2507
2508 2017-11-24 Yao Qi <yao.qi@linaro.org>
2509
2510 * configure.srv: Set $srv_regobj for tic6x-linux.
2511 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
2512 (tic6x_read_description): Move some code to tic6x_arch_setup.
2513 (tic6x_tdesc_test): New function.
2514 (initialize_low_arch): Call selftests::register_test.
2515
2516 2017-11-22 Yao Qi <yao.qi@linaro.org>
2517
2518 * remote-utils.c (prepare_resume_reply): Use memcpy.
2519
2520 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2521
2522 * linux-low.c (kill_one_lwp_callback): Return void, take
2523 argument directly, don't filter on pid.
2524 (linux_kill): Use for_each_thread.
2525
2526 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2527
2528 * linux-low.c (need_step_over_p): Return bool, remove dummy
2529 argument.
2530 (linux_resume, proceed_all_lwps): Use find_thread.
2531
2532 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2533
2534 * linux-low.c (resume_status_pending_p): Return bool, remove
2535 flag_p argument.
2536 (linux_resume): Use find_thread.
2537
2538 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2539
2540 * linux-low.c (struct thread_resume_array): Remove.
2541 (linux_set_resume_request): Return void, take arguments
2542 directly.
2543 (linux_resume): Use for_each_thread.
2544
2545 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2546
2547 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
2548 return bool, remove data argument.
2549 (linux_stabilize_threads): Use find_thread.
2550
2551 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2552
2553 * linux-low.c (unsuspend_one_lwp): Remove.
2554 (unsuspend_all_lwps): Use for_each_thread, inline code from
2555 unsuspend_one_lwp.
2556
2557 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2558
2559 * gdbthread.h (find_thread): Add overload with ptid_t filter.
2560 * linux-low.c (struct iterate_over_lwps_args): Remove.
2561 (iterate_over_lwps_filter): Remove.
2562 (iterate_over_lwps): Use find_thread.
2563
2564 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2565
2566 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
2567 (linux_handle_new_gdb_connection): Use for_each_thread, inline
2568 code from reset_lwp_ptrace_options_callback.
2569
2570 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2571
2572 * linux-arm-low.c (struct update_registers_data): Remove.
2573 (update_registers_callback): Return void, take arguments
2574 directly, don't check thread's pid.
2575 (arm_insert_point, arm_remove_point): Use for_each_thread.
2576
2577 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2578
2579 * win32-low.c (continue_one_thread): Return void, take argument
2580 directly.
2581 (child_continue): Use for_each_thread.
2582
2583 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2584
2585 * win32-i386-low.c (update_debug_registers_callback): Rename
2586 to ...
2587 (update_debug_registers): ... this, return void, remove pid_p arg.
2588 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
2589
2590 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2591
2592 * inferiors.h (struct process_info): Add constructor, initialize
2593 fields..
2594 <syscalls_to_catch>: Change type to std::vector<int>.
2595 * inferiors.c (add_process): Allocate process_info with new.
2596 (remove_process): Free process_info with delete.
2597 * linux-low.c (handle_extended_wait): Adjust.
2598 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
2599 * server.c (handle_general_set): Adjust.
2600
2601 2017-11-16 Pedro Alves <palves@redhat.com>
2602
2603 * remote-utils.c (remote_close): Block SIGIO signals instead of
2604 uninstalling the SIGIO handler.
2605
2606 2017-11-16 Alan Hayward <alan.hayward@arm.com>
2607
2608 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
2609
2610 2017-11-16 Yao Qi <yao.qi@linaro.org>
2611
2612 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
2613 (tic6x_store_gregset): Likewise.
2614 (tic6x_usrregs_info): Move it up.
2615
2616 2017-11-15 Alan Hayward <alan.hayward@arm.com>
2617
2618 * Makefile.in: Update arch rules.
2619 * configure.srv: Explicitly mark arch/ files.
2620
2621 2017-11-13 Andreas Schwab <schwab@suse.de>
2622
2623 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
2624 function.
2625 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
2626
2627 2017-11-06 Pedro Alves <palves@redhat.com>
2628
2629 * config.in, configure: Regenerate.
2630
2631 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2632
2633 * target.c (struct thread_search): Remove.
2634 (thread_search_callback): Remove.
2635 (prepare_to_access_memory): Use for_each_thread instead of
2636 find_inferior. Inline code from thread_search_callback.
2637
2638 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2639
2640 * server.c (struct visit_actioned_threads_data): Remove.
2641 (visit_actioned_threads): Change prototype to take arguments
2642 directly.
2643 (resume): Use find_thread instead of find_inferior.
2644
2645 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2646
2647 * server.c (queue_stop_reply_callback): Change prototype, return
2648 void.
2649 (find_status_pending_thread_callback): Remove.
2650 (handle_status): Replace find_inferior with find_thread and
2651 for_each_thread.
2652
2653 2017-10-25 Alan Hayward <alan.hayward@arm.com>
2654
2655 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
2656 with REGNO.
2657 (aarch64_store_gregset): Likewise.
2658 (aarch64_fill_fpregset): Likewise.
2659 (aarch64_store_fpregset): Likewise.
2660
2661 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2662
2663 * gdbthread.h (find_thread, for_each_thread): New functions.
2664 * inferiors.c (thread_of_pid): Remove.
2665 (find_any_thread_of_pid): Use find_thread.
2666 * linux-low.c (num_lwps): Use for_each_thread.
2667
2668 2017-10-17 Yao Qi <yao.qi@linaro.org>
2669
2670 * Makefile.in: Remove one rule.
2671 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
2672
2673 2017-10-17 Yao Qi <yao.qi@linaro.org>
2674
2675 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
2676 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
2677
2678 2017-10-17 Yao Qi <yao.qi@linaro.org>
2679
2680 * configure.srv: Rename arm.o with arch/arm.o.
2681
2682 2017-10-17 Yao Qi <yao.qi@linaro.org>
2683
2684 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
2685 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
2686 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
2687 (arch-i386.o, arch-amd64.o): Remove rules.
2688 (arch/%.o): New rule.
2689 Update POSTCOMPILE and COMPILE.pre.
2690 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2691 * configure: Re-generated.
2692 * configure.srv: Replace arch-i386.o with arch/i386.o.
2693 Replace arch-amd64.o with arch/amd64.o.
2694
2695 2017-10-16 Yao Qi <yao.qi@linaro.org>
2696
2697 * configure: Regenerated.
2698
2699 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2700
2701 * inferiors.h: (struct inferior_list): Remove.
2702 (struct inferior_list_entry); Remove.
2703 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
2704 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
2705 get_first_inferior): Remove.
2706 (for_each_inferior, for_each_inferior_with_data, find_inferior,
2707 find_inferior_id, find_inferior_in_random): Change signature.
2708 * inferiors.c (all_threads): Change type to
2709 std::list<thread_info *>.
2710 (get_thread): Remove macro.
2711 (find_inferior, find_inferior_id): Change signature, implement
2712 using find_thread.
2713 (find_inferior_in_random): Change signature, implement using
2714 find_thread_in_random.
2715 (for_each_inferior, for_each_inferior_with_data): Change
2716 signature, implement using for_each_thread.
2717 (add_inferior_to_list, remove_inferior): Remove.
2718 (add_thread, get_first_thread, thread_of_pid,
2719 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
2720 (get_first_inferior, one_inferior_p, clear_inferior_list):
2721 Remove.
2722 (clear_inferiors, get_thread_process): Update.
2723 * gdbthread.h: Include <list>.
2724 (struct thread_info) <entry>: Remove field.
2725 <id>: New field.
2726 (all_threads): Change type to std::list<thread_info *>.
2727 (get_first_inferior): Add doc.
2728 (find_thread, for_each_thread, find_thread_in_random): New
2729 functions.
2730 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
2731 * linux-arm-low.c (update_registers_callback): Update.
2732 * linux-low.c (second_thread_of_pid_p): Update.
2733 (kill_one_lwp_callback, linux_detach_lwp_callback,
2734 delete_lwp_callback, status_pending_p_callback, same_lwp,
2735 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
2736 iterate_over_lwps, not_stopped_callback,
2737 resume_stopped_resumed_lwps, count_events_callback,
2738 select_singlestep_lwp_callback, select_event_lwp_callback,
2739 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
2740 suspend_and_send_sigstop_callback, wait_for_sigstop,
2741 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
2742 lwp_running, linux_set_resume_request, resume_status_pending_p,
2743 need_step_over_p, start_step_over, linux_resume_one_thread,
2744 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
2745 reset_lwp_ptrace_options_callback): Update.
2746 * linux-mips-low.c (update_watch_registers_callback): Update.
2747 * regcache.c (regcache_invalidate_one, regcache_invalidate):
2748 Update.
2749 (free_register_cache_thread_one): Remove.
2750 (regcache_release): Update.
2751 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
2752 handle_qxfer_threads_worker): Update.
2753 (handle_query): Update, use list iterator.
2754 (visit_actioned_threads, handle_pending_status,
2755 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
2756 clear_pending_status_callback, set_pending_status_callback,
2757 find_status_pending_thread_callback, handle_status,
2758 process_serial_event): Update.
2759 * target.c (thread_search_callback): Update.
2760 * thread-db.c (thread_db_get_tls_address): Update.
2761 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
2762 Update.
2763 * win32-i386-low.c (update_debug_registers_callback): Update.
2764 * win32-low.c (delete_thread_info, child_delete_thread,
2765 continue_one_thread, suspend_one_thread,
2766 get_child_debug_event): Adjust.
2767
2768 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
2771 * inferiors.h: Include <list>.
2772 (struct process_info) <entry>: Remove field.
2773 <pid>: New field.
2774 (pid_of): Change macro to function.
2775 (ptid_of, lwpid_of): Remove macro.
2776 (all_processes): Change type to std::list<process_info *>.
2777 (ALL_PROCESSES): Remove macro.
2778 (for_each_process, find_process): New function.
2779 * inferiors.c (all_processes): Change type to
2780 std::list<process_info *>.
2781 (find_thread_process): Adjust.
2782 (add_process): Likewise.
2783 (remove_process): Likewise.
2784 (find_process_pid): Likewise.
2785 (get_first_process): Likewise.
2786 (started_inferior_callback): Remove.
2787 (have_started_inferiors_p): Adjust.
2788 (attached_inferior_callback): Remove.
2789 (have_attached_inferiors_p): Adjust.
2790 * linux-low.c (check_zombie_leaders): Likewise.
2791 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
2792 (x86_linux_update_xmltarget): Adjust.
2793 * server.c (handle_query): Likewise.
2794 (gdb_reattached_process): Remove.
2795 (handle_status): Adjust.
2796 (kill_inferior_callback): Likewise.
2797 (detach_or_kill_inferior): Remove.
2798 (print_started_pid): Likewise.
2799 (print_attached_pid): Likewise.
2800 (detach_or_kill_for_exit): Update.
2801 (process_serial_event): Likewise.
2802 * linux-arm-low.c (arm_new_fork): Likewise.
2803
2804 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 * dll.h: Include <list>.
2807 (struct dll_info): Add constructor.
2808 <entry>: Remove field.
2809 (all_dlls): Change type to std::list<dll_info>.
2810 * dll.c: Include <algorithm>.
2811 (get_dll): Remove macro.
2812 (all_dlls): Change type to std::list<dll_info *>.
2813 (free_one_dll): Remove.
2814 (match_dll): Likewise.
2815 (loaded_dll): Adjust.
2816 (unloaded_dll): Adjust to all_dlls type change, use
2817 std::find_if. Inline code from match_dll.
2818 (clear_dlls): Adjust to all_dlls type change.
2819 * server.c (emit_dll_description): Remove.
2820 (handle_qxfer_libraries): Adjust to all_dlls type change,
2821 integrate emit_dll_description's functionality.
2822
2823 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2824
2825 * linux-low.h (struct linux_target_ops) <delete_process>: New
2826 field.
2827 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
2828 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
2829 (struct linux_target_ops): Add delete_process callback.
2830 * linux-arm-low.c (arm_delete_process): New.
2831 (struct linux_target_ops): Add delete_process callback.
2832 * linux-bfin-low.c (struct linux_target_ops): Likewise.
2833 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
2834 * linux-m32r-low.c (struct linux_target_ops): Likewise.
2835 * linux-mips-low.c (mips_linux_delete_process): New.
2836 (struct linux_target_ops): Add delete_process callback.
2837 * linux-ppc-low.c (struct linux_target_ops): Likewise.
2838 * linux-s390-low.c (struct linux_target_ops): Likewise.
2839 * linux-sh-low.c (struct linux_target_ops): Likewise.
2840 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
2841 * linux-tile-low.c (struct linux_target_ops): Likewise.
2842 * linux-x86-low.c (x86_linux_delete_process): New.
2843 (struct linux_target_ops): Add delete_process callback.
2844 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
2845
2846 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2847
2848 * linux-aarch64-low.c (the_low_target): Add thread delete
2849 callback.
2850 * linux-arm-low.c (arm_delete_thread): New function.
2851 (the_low_target): Add thread delete callback.
2852 * linux-bfin-low.c (the_low_target): Likewise.
2853 * linux-crisv32-low.c (the_low_target): Likewise.
2854 * linux-low.c (delete_lwp): Invoke delete_thread callback if
2855 set.
2856 * linux-low.h (struct linux_target_ops) <delete_thread>: New
2857 field.
2858 * linux-m32r-low.c (the_low_target): Add thread delete callback.
2859 * linux-mips-low.c (mips_linux_delete_thread): New function.
2860 (the_low_target): Add thread delete callback.
2861 * linux-ppc-low.c (the_low_target): Likewise.
2862 * linux-s390-low.c (the_low_target): Likewise.
2863 * linux-sh-low.c (the_low_target): Likewise.
2864 * linux-tic6x-low.c (the_low_target): Likewise.
2865 * linux-tile-low.c (the_low_target): Likewise.
2866 * linux-x86-low.c (the_low_target): Likewise.
2867 * linux-xtensa-low.c (the_low_target): Likewise.
2868
2869 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
2870
2871 * win32-low.c: Include "common-inferior.h".
2872
2873 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2874
2875 * inferiors.c (set_inferior_cwd): New function.
2876 * server.c (handle_general_set): Handle QSetWorkingDir packet.
2877 (handle_query): Inform that QSetWorkingDir is supported.
2878 * win32-low.c (create_process): Pass the inferior's cwd to
2879 CreateProcess.
2880
2881 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2882
2883 * inferiors.c (current_inferior_cwd): New global variable.
2884 (get_inferior_cwd): New function.
2885 * inferiors.h (struct process_info) <cwd>: New field.
2886
2887 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2888
2889 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
2890 (OBS): Add gdb_tilde_expand.o.
2891
2892 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
2893
2894 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
2895 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2896
2897 2017-09-29 Pedro Alves <palves@redhat.com>
2898
2899 * ax.c (gdb_parse_agent_expr): Constify.
2900 * ax.h (gdb_parse_agent_expr): Constify.
2901 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
2902 Constify.
2903 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
2904 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
2905 * remote-utils.h (read_ptid): Constify.
2906 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
2907 (process_point_options, process_serial_event): Constify.
2908 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
2909 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
2910 (cmd_qtbuffer): Constify.
2911
2912 2017-09-29 Pedro Alves <palves@redhat.com>
2913
2914 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
2915 fails.
2916
2917 2017-09-29 Pedro Alves <palves@redhat.com>
2918
2919 * linux-low.c (handle_extended_wait): Pass parent thread instead
2920 of process to thread_db_notice_clone.
2921 * linux-low.h (thread_db_notice_clone): Replace parent process
2922 parameter with parent thread parameter.
2923 * thread-db.c (find_one_thread): Add comment.
2924 (thread_db_notice_clone): Replace parent process parameter with
2925 parent thread parameter. Temporarily switch to the parent thread.
2926
2927 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
2928
2929 * gdbthread.h: Include "common-gdbthread.h".
2930 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
2931 "if" when validating the ptid.
2932 * remote-utils.c: Include "gdbthread.h".
2933 (prepare_resume_reply): Use "switch_to_thread".
2934 * target.c (done_accessing_memory): Likewise.
2935
2936 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2937
2938 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
2939 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
2940 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
2941 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
2942 s390x-gs-linux64-ipa.o to ipa_obj.
2943 * linux-s390-low.c (HWCAP_S390_GS): New define.
2944 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
2945 New functions.
2946 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
2947 (s390_arch_setup): Check for guarded-storage support and choose
2948 appropriate tdesc.
2949 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
2950 init_registers_s390x_gs_linux64.
2951 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
2952 enum value.
2953 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
2954 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
2955
2956 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
2957
2958 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
2959
2960 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2961
2962 * linux-low.h (struct lwp_info): Add new field, thread_handle.
2963 (thread_db_thread_handle): Declare.
2964 * linux-low.c (linux_target_ops): Initialize thread_handle.
2965 * server.c (handle_qxfer_threads_worker): Add support for
2966 "handle" attribute.
2967 * target.h (struct target_ops): Add new function pointer,
2968 thread_handle.
2969 (target_thread_handle): Define.
2970 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
2971 field in lwp.
2972 (thread_db_thread_handle): New function.
2973
2974 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2975
2976 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
2977 * linux-low.h (thread_db_notice_clone): Declare.
2978 * thread-db.c (thread_db_notice_clone): New function.
2979
2980 2017-09-21 Pedro Alves <palves@redhat.com>
2981
2982 * server.c (gdb_read_memory, handle_status, process_serial_event)
2983 (handle_serial_event, handle_target_event): Adjust to
2984 set_desired_thread prototype change.
2985 * target.c (set_desired_thread): Remove 'use_general' parameter
2986 and adjust.
2987 * target.h (set_desired_thread): Remove 'use_general' parameter.
2988
2989 2017-09-20 Tom Tromey <tom@tromey.com>
2990
2991 * target.c (target_terminal::terminal_state): Define.
2992 (target_terminal::init): Rename from target_terminal_init.
2993 (target_terminal::inferior): Rename from
2994 target_terminal_inferior.
2995 (target_terminal::ours): Rename from target_terminal_ours.
2996 (target_terminal::ours_for_output, target_terminal::info): New.
2997
2998 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2999
3000 * server.c (accumulate_file_name_length): Remove.
3001 (emit_dll_description): Adjust to std::string change.
3002 (handle_qxfer_libraries): Use std::string to hold document.
3003
3004 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3005
3006 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3007 return type of xml_escape_text.
3008 * server.c (emit_dll_description): Likewise.
3009
3010 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3011
3012 * server.c (captured_main): Accept argument for --selftest.
3013 Update run_tests call.
3014 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3015 when registering selftests.
3016
3017 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3018
3019 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3020 instead of "VEC" for "target_desc.reg_defs".
3021 (regcache_cpy): Likewise.
3022 (registers_to_string): Likewise.
3023 (registers_from_string): Likewise.
3024 (find_regno): Likewise.
3025 (supply_regblock): Likewise.
3026 (regcache_raw_read_unsigned): Likewise.
3027 * tdesc.c (init_target_desc): Likewise.
3028 (tdesc_create_reg): Likewise.
3029 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3030 (struct target_desc) <reg_defs>: Convert to "std::vector".
3031 (target_desc): Do not initialize "reg_defs".
3032 (~target_desc): Update code to use "std::vector" instead of "VEC"
3033 for "target_desc.reg_defs".
3034 (operator==): Likewise.
3035
3036 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3037
3038 * inferiors.h (thread_to_gdb_id): Remove.
3039 * inferiors.c (thread_to_gdb_id): Remove.
3040 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3041 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3042 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3043 Likewise.
3044 * nto-low.c (nto_fetch_registers, nto_store_registers,
3045 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3046
3047 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3048
3049 * inferiors.h (gdb_id_to_thread_id): Remove.
3050 * inferiors.c (gdb_id_to_thread_id): Remove.
3051 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3052 removal. Move pid declaration closer to where it's used.
3053
3054 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3055
3056 * server.c (handle_detach): New function.
3057 (process_serial_event): Move code out, call handle_detach.
3058
3059 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3060
3061 * server.c (require_running): Rename to ...
3062 (require_running_or_return): ... this ...
3063 (require_running_or_break): ... and this.
3064 (handle_query, process_serial_event): Adjust.
3065
3066 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3067
3068 * linux-low.c (linux_set_resume_request): Remove unused
3069 variables.
3070
3071 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3072
3073 * server.c (first_thread_of): Remove.
3074 (process_serial_event): Replace usage of first_thread_of with
3075 find_any_thread_of_pid.
3076 * tracepoint.c (same_process_p): Remove.
3077 (gdb_agent_about_to_close): Replace usage of same_process_p with
3078 find_any_thread_of_pid.
3079 * linux-x86-low.c (same_process_callback): Remove.
3080 (x86_arch_setup_process_callback): Replace usage of
3081 same_process_callback with find_any_thread_of_pid.
3082 * thread-db.c (any_thread_of): Remove.
3083 (switch_to_process): Replace usage of any_thread_of with
3084 find_any_thread_of_pid.
3085 * inferiors.c (thread_pid_matches_callback): Remove.
3086 (find_thread_process): Adjust to use find_any_thread_of_pid.
3087
3088 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3089
3090 * regcache.c (get_thread_regcache): Guard calls to "memset"
3091 with "!VEC_empty".
3092
3093 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3094
3095 * linux-low.c (handle_extended_wait): Use
3096 "allocate_target_description" instead of "XNEW".
3097 * linux-x86-low.c (initialize_low_arch): Likewise.
3098
3099 2017-09-05 Yao Qi <yao.qi@linaro.org>
3100
3101 * configure.srv (srv_i386_regobj): Remove.
3102 (srv_amd64_regobj): Remove.
3103 (srv_regobj): Set it to "" for x86 non-linux targets.
3104 * linux-x86-tdesc.c (i386_linux_read_description):
3105 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3106 (init_registers_i386): Remove the declaration.
3107 (tdesc_i386): Remove the declaration.
3108 (lynx_i386_arch_setup): Call i386_create_target_description.
3109 * nto-x86-low.c: Likewise.
3110 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3111 [!__x86_64__]: include arch/i386.h.
3112 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3113
3114 2017-09-05 Yao Qi <yao.qi@linaro.org>
3115
3116 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3117 i386/amd64-XXX-linux from it.
3118
3119 2017-09-05 Yao Qi <yao.qi@linaro.org>
3120
3121 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3122 false.
3123 (ipa_amd64_linux_regobj): Remove.
3124 (ipa_x32_linux_regobj): Remove.
3125
3126 2017-09-05 Yao Qi <yao.qi@linaro.org>
3127
3128 * Makefile.in (arch-amd64.o): New rule.
3129 * configure.srv: Append arch-amd64.o.
3130 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3131 (get_ipa_tdesc): Call amd64_linux_read_description.
3132 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3133 and init_registers_amd64_XXX.
3134 * linux-x86-low.c (x86_linux_read_description): Call
3135 amd64_linux_read_description.
3136 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3137 (initialize_low_arch): Don't call init_registers_x32_XXX and
3138 init_registers_amd64_XXX.
3139 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3140 and tdesc_amd64_XXX.
3141 [__x86_64__] (amd64_tdesc_test): New function.
3142 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3143 and init_registers_amd64_XXX.
3144 * linux-x86-tdesc.c: Include arch/amd64.h.
3145 (xcr0_to_tdesc_idx): New function.
3146 (i386_linux_read_description): New function.
3147 (amd64_get_ipa_tdesc_idx): New function.
3148 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3149 (amd64_get_ipa_tdesc): Declare.
3150
3151 2017-09-05 Yao Qi <yao.qi@linaro.org>
3152
3153 * configure.srv (srv_i386_linux_xmlfiles): Remove
3154 i386/i386-XXX-linux.xml from it.
3155
3156 2017-09-05 Yao Qi <yao.qi@linaro.org>
3157
3158 * configure.srv: Set srv_i386_linux_regobj empty if $development
3159 is false.
3160 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3161 initialize_low_tdesc.
3162 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3163 with #if initialize_low_tdesc.
3164 * linux-x86-tdesc-selftest.c: New file.
3165 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3166
3167 2017-09-05 Yao Qi <yao.qi@linaro.org>
3168
3169 * Makefile.in (arch-i386.o): New rule.
3170 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3171 (x86_64-*-linux*): Likewise.
3172 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3173 include arch/i386.h.
3174 (i386_linux_read_description): Remove code and call
3175 i386_create_target_description.
3176 * tdesc.c (allocate_target_description): New function.
3177 * tdesc.h (set_tdesc_architecture): Remove declaration.
3178 (set_tdesc_osabi): Likewise.
3179
3180 2017-09-05 Yao Qi <yao.qi@linaro.org>
3181
3182 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3183 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3184 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3185 .xmltarget.
3186 * server.c (get_features_xml): Call tdesc_get_features_xml.
3187 * tdesc.c (set_tdesc_architecture): New function.
3188 (set_tdesc_osabi): New function.
3189 (tdesc_get_features_xml): New function.
3190 (tdesc_create_feature): Add an argument.
3191 * tdesc.h (struct target_desc) <features>: New field.
3192 <arch, osabi>: New field.
3193 (~target_desc): xfree features, arch, and osabi.
3194 (target_desc::oerator==): Don't compare .xmltarget.
3195 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3196 (set_tdesc_osabi): Likewise.
3197 (tdesc_get_features_xml): Likewise.
3198
3199 2017-09-05 Yao Qi <yao.qi@linaro.org>
3200
3201 * linux-x86-tdesc.c: Include selftest.h.
3202 (i386_tdesc_test): New function.
3203 (initialize_low_tdesc): Call selftests::register_test.
3204 * tdesc.h: Include regdef.h.
3205 (target_desc): Override operator == and !=.
3206
3207 2017-09-05 Yao Qi <yao.qi@linaro.org>
3208
3209 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3210 (ipa_obj): Likewise.
3211 * linux-i386-ipa.c: Include common/x86-xstate.h
3212 (get_ipa_tdesc): Call i386_linux_read_description.
3213 (initialize_low_tracepoint): Don't call init_registers_XXX
3214 functions, call initialize_low_tdesc instead.
3215 * linux-x86-low.c (x86_linux_read_description): Call
3216 i386_linux_read_description.
3217 (initialize_low_arch): Don't call init_registers_i386_XXX
3218 functions, call initialize_low_tdesc.
3219 * linux-x86-tdesc.c: New file.
3220 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3221 (i386_get_ipa_tdesc_idx): Declare.
3222 (i386_get_ipa_tdesc): Declare.
3223 (initialize_low_tdesc): Declare.
3224
3225 2017-09-05 Yao Qi <yao.qi@linaro.org>
3226
3227 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3228 instead of 0.
3229
3230 2017-09-05 Yao Qi <yao.qi@linaro.org>
3231
3232 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3233 * regcache.c (get_thread_regcache): Use VEC_length.
3234 (init_register_cache): Likewise.
3235 (regcache_cpy): Likewise.
3236 (registers_to_string): Iterate reg_defs via VEC_iterate.
3237 (find_regno): Likewise.
3238 (find_register_by_number): Use VEC_index.
3239 (register_size): Call find_register_by_number.
3240 (register_data): Call find_register_by_number.
3241 (supply_regblock): Use VEC_length.
3242 (regcache_raw_read_unsigned): Likewise.
3243 * tdesc.c (init_target_desc): Iterate reg_defs via
3244 VEC_iterate.
3245 (default_description): Update initializer.
3246 (copy_target_description): Don't update field num_registers.
3247 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3248 <num_registers>: Remove.
3249
3250 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3251
3252 * Makefile.in (.SECONDARY): Define target.
3253
3254 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3255
3256 * linux-low.c (linux_wait_1): Adjust.
3257 * server.c (queue_stop_reply_callback): Adjust.
3258
3259 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3260
3261 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3262 QEnvironmentUnset and QEnvironmentReset packets.
3263 (handle_query): Inform remote that QEnvironmentHexEncoded,
3264 QEnvironmentUnset and QEnvironmentReset are supported.
3265
3266 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3267
3268 * inferiors.h (inferior_target_data): Rename to ...
3269 (thread_target_data): ... this.
3270 (inferior_regcache_data): Rename to ...
3271 (thread_regcache_data): ... this.
3272 (set_inferior_regcache_data): Rename to ...
3273 (set_thread_regcache_data): ... this.
3274 * inferiors.c (inferior_target_data): Rename to ...
3275 (thread_target_data): ... this.
3276 (inferior_regcache_data): Rename to ...
3277 (thread_regcache_data): ... this.
3278 (set_inferior_regcache_data): Rename to ...
3279 (set_thread_regcache_data): ... this.
3280 (free_one_thread): Update.
3281 * linux-low.h (get_thread_lwp): Update.
3282 * regcache.c (get_thread_regcache): Update.
3283 (regcache_invalidate_thread): Update.
3284 (free_register_cache_thread): Update.
3285 * win32-i386-low.c (update_debug_registers_callback): Update.
3286 (win32_get_current_dr): Update.
3287 * win32-low.c (thread_rec): Update.
3288 (delete_thread_info): Update.
3289 (continue_one_thread): Update.
3290 (suspend_one_thread): Update.
3291
3292 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3293
3294 * inferiors.c (set_inferior_target_data): Remove.
3295 * inferiors.h (set_inferior_target_data): Remove.
3296
3297 2017-08-18 Yao Qi <yao.qi@linaro.org>
3298
3299 * Makefile.in (OBS): Add selftest.o.
3300 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3301 * configure, config.in: Re-generated.
3302 * server.c: Include common/sefltest.h.
3303 (captured_main): Handle option --selftest.
3304
3305 2017-08-09 Yao Qi <yao.qi@linaro.org>
3306
3307 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3308 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3309 i386-avx-mpx.o and i386-mmx.o.
3310 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3311 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3312 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3313 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3314 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3315 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3316 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3317 i386/amd64-avx-mpx.xml.
3318
3319 2017-08-09 Yao Qi <yao.qi@linaro.org>
3320
3321 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3322 and x32-avx-avx512.o.
3323 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3324 i386/x32-avx-avx512.xml.
3325
3326 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3327
3328 * tracepoint.h (enum class fast_tpoint_collect_result): New
3329 enumeration.
3330 (fast_tracepoint_collecting): Change return type to
3331 fast_tpoint_collect_result.
3332 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3333 * linux-low.h: Include tracepoint.h.
3334 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3335 fast_tpoint_collect_result.
3336 * linux-low.c (handle_tracepoints): Adjust.
3337 (linux_fast_tracepoint_collecting): Change return type to
3338 fast_tpoint_collect_result.
3339 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3340 linux_wait_1, stuck_in_jump_pad_callback,
3341 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3342 proceed_one_lwp): Adjust to type change.
3343
3344 2017-07-10 Yao Qi <yao.qi@linaro.org>
3345
3346 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3347
3348 2017-06-29 Yao Qi <yao.qi@linaro.org>
3349
3350 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3351 Remove.
3352 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3353
3354 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3355
3356 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3357
3358 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3359
3360 * linux-low.c (linux_create_inferior): Adjust code to access the
3361 environment information via 'gdb_environ' class.
3362 * lynx-low.c (lynx_create_inferior): Likewise.
3363 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3364 (get_environ): Return a pointer to 'our_environ'.
3365 (captured_main): Initialize 'our_environ'.
3366 * server.h (get_environ): Adjust prototype.
3367 * spu-low.c (spu_create_inferior): Adjust code to access the
3368 environment information via 'gdb_environ' class.
3369
3370 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3371
3372 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3373 usage of "register" keyword.
3374
3375 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3376
3377 * configure: Re-generate.
3378
3379 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3380
3381 * configure: Re-generate.
3382
3383 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3384
3385 * Makefile.in (COMPILE.pre): Add "-x c++".
3386
3387 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3388
3389 * fork-child.c: Conditionally include <signal.h>.
3390
3391 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3392
3393 * server.c (handle_general_set): Handle new packet
3394 "QStartupWithShell".
3395 (handle_query): Add "QStartupWithShell" to the list of supported
3396 packets.
3397 (gdbserver_usage): Add help text explaining the
3398 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3399 options.
3400 (captured_main): Recognize and act upon the presence of the new
3401 CLI options.
3402
3403 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3404 Pedro Alves <palves@redhat.com>
3405
3406 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3407 * configure: Regenerate.
3408 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3409 "fork-inferior.o".
3410 (i[34567]86-*-lynxos*): Likewise.
3411 (spu*-*-*): Likewise.
3412 * fork-child.c: New file.
3413 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3414 and "environ.h".
3415 (linux_ptrace_fun): New function.
3416 (linux_create_inferior): Adjust function prototype to reflect
3417 change on "target.h". Adjust function code to use
3418 "fork_inferior".
3419 (linux_request_interrupt): Delete "signal_pid".
3420 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3421 (lynx_ptrace_fun): New function.
3422 (lynx_create_inferior): Adjust function prototype to reflect
3423 change on "target.h". Adjust function code to use
3424 "fork_inferior".
3425 * nto-low.c (nto_create_inferior): Adjust function prototype and
3426 code to reflect change on "target.h". Update comments.
3427 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3428 "common-terminal.h" and "environ.h".
3429 (terminal_fd): Moved to fork-child.c.
3430 (old_foreground_pgrp): Likewise.
3431 (restore_old_foreground_pgrp): Likewise.
3432 (last_status): Make it global.
3433 (last_ptid): Likewise.
3434 (our_environ): New variable.
3435 (startup_with_shell): Likewise.
3436 (program_name): Likewise.
3437 (program_argv): Rename to...
3438 (program_args): ...this.
3439 (wrapper_argv): New variable.
3440 (start_inferior): Delete function.
3441 (get_exec_wrapper): New function.
3442 (get_exec_file): Likewise.
3443 (get_environ): Likewise.
3444 (prefork_hook): Likewise.
3445 (post_fork_inferior): Likewise.
3446 (postfork_hook): Likewise.
3447 (postfork_child_hook): Likewise.
3448 (handle_v_run): Update code to deal with arguments coming from the
3449 remote host. Update calls from "start_inferior" to
3450 "create_inferior".
3451 (captured_main): Likewise. Initialize environment variable. Call
3452 "have_job_control".
3453 * server.h (post_fork_inferior): New prototype.
3454 (get_environ): Likewise.
3455 (last_status): Declare.
3456 (last_ptid): Likewise.
3457 (signal_pid): Likewise.
3458 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3459 (spu_ptrace_fun): New function.
3460 (spu_create_inferior): Adjust function prototype to reflect change
3461 on "target.h". Adjust function code to use "fork_inferior".
3462 * target.c (target_terminal_init): New function.
3463 (target_terminal_inferior): Likewise.
3464 (target_terminal_ours): Likewise.
3465 * target.h: Include <vector>.
3466 (struct target_ops) <create_inferior>: Update prototype.
3467 (create_inferior): Update macro.
3468 * utils.c (gdb_flush_out_err): New function.
3469 * win32-low.c (win32_create_inferior): Adjust function prototype
3470 and code to reflect change on "target.h".
3471
3472 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3473
3474 * inferiors.c (switch_to_thread): New function.
3475
3476 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3477
3478 * Makefile.in (SFILE): Add "common/job-control.c".
3479 (OBS): Add "job-control.o".
3480
3481 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3482
3483 * Makefile: Remove "@host_makefile_frag@".
3484
3485 2017-05-05 Pedro Alves <palves@redhat.com>
3486
3487 * configure: Regenerate.
3488
3489 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3490
3491 * configure: Regenerate.
3492
3493 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
3496 software_single_step change of return type to
3497 std::vector<CORE_ADDR>.
3498 * linux-low.c (install_software_single_step_breakpoints):
3499 Likewise.
3500 * linux-low.h (install_software_single_step_breakpoints):
3501 Likewise.
3502
3503 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3504
3505 * remote-utils.c: Include "gdb_termios.h" instead of
3506 "terminal.h".
3507 * terminal.h: Delete file.
3508
3509 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3510
3511 * server.c: Include <vector>.
3512 <program_argv, wrapper_argv>: Convert to std::vector.
3513 (start_inferior): Rewrite function to use C++.
3514 (handle_v_run): Likewise. Update code that calculates the argv
3515 based on the vRun packet; use C++.
3516 (captured_main): Likewise.
3517
3518 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3519
3520 * server.c (handle_v_cont): Initialize thread_resume::thread
3521 with null_ptid.
3522
3523 2017-04-05 Pedro Alves <palves@redhat.com>
3524
3525 * configure: Regenerate.
3526
3527 2017-04-05 Pedro Alves <palves@redhat.com>
3528
3529 * gdbreplay.c (sync_error): Constify.
3530 * linux-x86-low.c (push_opcode): Constify.
3531
3532 2017-04-05 Pedro Alves <palves@redhat.com>
3533
3534 * win32-low.c (get_child_debug_event)
3535 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
3536 Report TARGET_WAITKIND_SPURIOUS instead.
3537
3538 2017-04-05 Pedro Alves <palves@redhat.com>
3539
3540 * remote-utils.c (remote_prepare, remote_open): Constify.
3541 * remote-utils.h (remote_prepare, remote_open): Constify.
3542 * server.c (captured_main): Constify 'port' handling.
3543
3544 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
3545
3546 * Makefile.in (clean): Clear .deps.
3547
3548 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * .gitignore: Remove generated files, replace with wildcard.
3551 * (clean): Replace removal of generated files with wildcard.
3552 (version.c): Replace with...
3553 (version-generated.c): ...this.
3554 (xml-builtin.c): Replace with...
3555 (xml-builtin-generated.c): ...this.
3556 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
3557 (%.c: *regformats*): Replace with...
3558 (%-generated.c: *regformats*): ...this.
3559
3560 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3561
3562 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
3563 (xtensa_fill_gregset): Call collect_register_by_name for
3564 threadptr register.
3565 (xtensa_store_gregset): Call supply_register_by_name for
3566 threadptr register.
3567
3568 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3569
3570 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
3571 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
3572 (xtensa_store_gregset): Call supply_register for all registers in
3573 a0_regnum..a0_regnum + C0_NREGS range.
3574
3575 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3576
3577 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
3578 (ax-ipa.o: ax.c): Remove.
3579 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
3580 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
3581 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
3582 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
3583 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
3584
3585 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
3588 (print-utils-ipa.o: ../common/print-utils.c): Remove.
3589 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
3590 (errors-ipa.o: ../common/errors.c): Remove.
3591 (format-ipa.o: ../common/format.c): Remove.
3592 (common-utils-ipa.o: ../common/common-utils.c): Remove.
3593
3594 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3595
3596 * Makefile.in (%-ipa.o: %.c): New rule.
3597 (tracepoint-ipa.o: tracepoint.c): Remove.
3598 (utils-ipa.o: utils.c): Remove.
3599 (remote-utils-ipa.o: remote-utils.c): Remove.
3600 (regcache-ipa.o: regcache.c): Remove.
3601 (i386-linux-ipa.o: i386-linux.c): Remove.
3602 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
3603 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
3604 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
3605 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
3606 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
3607 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
3608 (amd64-linux-ipa.o: amd64-linux.c): Remove.
3609 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
3610 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
3611 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
3612 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
3613 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
3614 (aarch64-ipa.o: aarch64.c): Remove.
3615 (s390-linux32-ipa.o: s390-linux32.c): Remove.
3616 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
3617 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
3618 (s390-linux64-ipa.o: s390-linux64.c): Remove.
3619 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
3620 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
3621 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
3622 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
3623 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
3624 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
3625 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
3626 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
3627 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
3628 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
3629 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
3630 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
3631 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
3632 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
3633 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
3634 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
3635 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
3636 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
3637 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
3638 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
3639 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
3640 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
3641 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
3642 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
3643 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
3644 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
3645 (tdesc-ipa.o: tdesc.c): Remove.
3646 (x32-linux-ipa.o: x32-linux.c): Remove.
3647 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
3648 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
3649
3650 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * Makefile.in (%.o: ../arch/%.c): New rule.
3653 (arm.o: ../arch/arm.c): Remove.
3654 (arm-linux.o: ../arch/arm-linux.c): Remove.
3655 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
3656 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
3657
3658 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3659
3660 * Makefile.in (%.o: ../nat/%.c): New rule.
3661 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
3662 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
3663 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
3664 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
3665 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
3666 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
3667 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
3668 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
3669 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
3670 (linux-personality.o: ../nat/linux-personality.c): Remove.
3671 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
3672 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
3673 (x86-linux.o: ../nat/x86-linux.c): Remove.
3674 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
3675 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
3676
3677 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3678
3679 * Makefile.in (%.o: ../common/%.c): New rule.
3680 (signals.o: ../common/signals.c): Remove.
3681 (print-utils.o: ../common/print-utils.c): Remove.
3682 (rsp-low.o: ../common/rsp-low.c): Remove.
3683 (common-utils.o: ../common/common-utils.c): Remove.
3684 (posix-strerror.o: ../common/posix-strerror.c): Remove.
3685 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
3686 (vec.o: ../common/vec.c): Remove.
3687 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
3688 (xml-utils.o: ../common/xml-utils.c): Remove.
3689 (ptid.o: ../common/ptid.c): Remove.
3690 (buffer.o: ../common/buffer.c): Remove.
3691 (format.o: ../common/format.c): Remove.
3692 (filestuff.o: ../common/filestuff.c): Remove.
3693 (agent.o: ../common/agent.c): Remove.
3694 (errors.o: ../common/errors.c): Remove.
3695 (environ.o: ../common/environ.c): Remove.
3696 (common-debug.o: ../common/common-debug.c): Remove.
3697 (cleanups.o: ../common/cleanups.c): Remove.
3698 (common-exceptions.o: ../common/common-exceptions.c): Remove.
3699 (fileio.o: ../common/fileio.c): Remove.
3700 (common-regcache.o: ../common/common-regcache.c): Remove.
3701 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
3702 (new-op.o: ../common/new-op.c): Remove.
3703 (btrace-common.o: ../common/btrace-common.c): Remove.
3704
3705 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3706
3707 * Makefile.in (%.o: ../target/%.c): New rule.
3708 (waitstatus.o: ../target/waitstatus.c): Remove.
3709
3710 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3711
3712 * Makefile.in
3713 (%.c: ../regformats/%.dat,
3714 (%.c: ../regformats/arm/%.dat,
3715 (%.c: ../regformats/i386/%.dat,
3716 (%.c: ../regformats/rs6000/%.dat): New rules.
3717 (aarch64.c): Remove.
3718 (reg-arm.c): Remove.
3719 (arm-with-iwmmxt.c): Remove.
3720 (arm-with-vfpv2.c): Remove.
3721 (arm-with-vfpv3.c): Remove.
3722 (arm-with-neon.c): Remove.
3723 (reg-bfin.c): Remove.
3724 (reg-cris.c): Remove.
3725 (reg-crisv32.c): Remove.
3726 (i386.c): Remove.
3727 (i386-linux.c): Remove.
3728 (i386-avx.c): Remove.
3729 (i386-avx-linux.c): Remove.
3730 (i386-avx-avx512.c): Remove.
3731 (i386-avx-avx512-linux.c): Remove.
3732 (i386-mpx.c): Remove.
3733 (i386-mpx-linux.c): Remove.
3734 (i386-avx-mpx-avx512-pku.c): Remove.
3735 (i386-avx-mpx-avx512-pku-linux.c): Remove.
3736 (i386-avx-mpx.c): Remove.
3737 (i386-avx-mpx-linux.c): Remove.
3738 (i386-mmx.c): Remove.
3739 (i386-mmx-linux.c): Remove.
3740 (reg-ia64.c): Remove.
3741 (reg-m32r.c): Remove.
3742 (reg-m68k.c): Remove.
3743 (reg-cf.c): Remove.
3744 (mips-linux.c): Remove.
3745 (mips-dsp-linux.c): Remove.
3746 (mips64-linux.c): Remove.
3747 (mips64-dsp-linux.c): Remove.
3748 (nios2-linux.c): Remove.
3749 (powerpc-32.c): Remove.
3750 (powerpc-32l.c): Remove.
3751 (powerpc-altivec32l.c): Remove.
3752 (powerpc-cell32l.c): Remove.
3753 (powerpc-vsx32l.c): Remove.
3754 (powerpc-isa205-32l.c): Remove.
3755 (powerpc-isa205-altivec32l.c): Remove.
3756 (powerpc-isa205-vsx32l.c): Remove.
3757 (powerpc-e500l.c): Remove.
3758 (powerpc-64l.c): Remove.
3759 (powerpc-altivec64l.c): Remove.
3760 (powerpc-cell64l.c): Remove.
3761 (powerpc-vsx64l.c): Remove.
3762 (powerpc-isa205-64l.c): Remove.
3763 (powerpc-isa205-altivec64l.c): Remove.
3764 (powerpc-isa205-vsx64l.c): Remove.
3765 (s390-linux32.c): Remove.
3766 (s390-linux32v1.c): Remove.
3767 (s390-linux32v2.c): Remove.
3768 (s390-linux64.c): Remove.
3769 (s390-linux64v1.c): Remove.
3770 (s390-linux64v2.c): Remove.
3771 (s390-te-linux64.c): Remove.
3772 (s390-vx-linux64.c): Remove.
3773 (s390-tevx-linux64.c): Remove.
3774 (s390x-linux64.c): Remove.
3775 (s390x-linux64v1.c): Remove.
3776 (s390x-linux64v2.c): Remove.
3777 (s390x-te-linux64.c): Remove.
3778 (s390x-vx-linux64.c): Remove.
3779 (s390x-tevx-linux64.c): Remove.
3780 (tic6x-c64xp-linux.c): Remove.
3781 (tic6x-c64x-linux.c): Remove.
3782 (tic6x-c62x-linux.c): Remove.
3783 (reg-sh.c): Remove.
3784 (reg-sparc64.c): Remove.
3785 (reg-spu.c): Remove.
3786 (amd64.c): Remove.
3787 (amd64-linux.c): Remove.
3788 (amd64-avx.c): Remove.
3789 (amd64-avx-linux.c): Remove.
3790 (amd64-avx-avx512.c): Remove.
3791 (amd64-avx-avx512-linux.c): Remove.
3792 (amd64-mpx.c): Remove.
3793 (amd64-mpx-linux.c): Remove.
3794 (amd64-avx-mpx-avx512-pku.c): Remove.
3795 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
3796 (amd64-avx-mpx.c): Remove.
3797 (amd64-avx-mpx-linux.c): Remove.
3798 (x32.c): Remove.
3799 (x32-linux.c): Remove.
3800 (x32-avx.c): Remove.
3801 (x32-avx-linux.c): Remove.
3802 (x32-avx-avx512.c): Remove.
3803 (x32-avx-avx512-linux.c): Remove.
3804 (reg-xtensa.c): Remove.
3805 (reg-tilegx.c): Remove.
3806 (reg-tilegx32.c): Remove.
3807
3808 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
3809
3810 * Makefile.in (SFILES): Add "common/environ.c".
3811 (OBJS): Add "common/environ.h".
3812
3813 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3814
3815 * configure.ac: Check if the fs_base and gs_base members of
3816 `struct user_regs_struct' exist.
3817 * config.in: Regenerated.
3818 * configure: Likewise.
3819
3820 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
3821
3822 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
3823 target_read_memory.
3824 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
3825 (get_next_pcs_syscall_next_pc): Likewise.
3826
3827 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
3828
3829 * win32-i386-low.c: Fix incorrect reference to a couple source files.
3830 * nto-x86-low.c: Likewise.
3831
3832 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
3833
3834 * Makefile.in: Include disable-implicit-rules.mk.
3835
3836 2016-11-23 Pedro Alves <palves@redhat.com>
3837
3838 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
3839 (debug_vprintf): Use std::chrono::steady_clock instead of
3840 gettimeofday. Use '.' instead of ':'.
3841 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
3842 (get_timestamp): Use std::chrono::steady_clock instead of
3843 gettimeofday.
3844
3845 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3846
3847 * Makefile.in: Fix whitespace formatting.
3848
3849 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * Makefile.in (SFILES, OBS): Flatten list and order
3852 alphabetically.
3853
3854 2016-11-23 Pedro Alves <palves@redhat.com>
3855
3856 * event-loop.c (handle_file_event): Use warning.
3857 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
3858 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3859 Use warning.
3860
3861 2016-11-23 Pedro Alves <palves@redhat.com>
3862
3863 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
3864 output.
3865 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
3866 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
3867 debug_printf and debug_flush for debug output.
3868 * server.c (handle_general_set): Likewise.
3869 * thread-db.c (try_thread_db_load): Use debug_printf for debug
3870 output.
3871
3872 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * Makefile.in (.c.o): Replace rule with ...
3875 (%.o: %.c): ... this one.
3876
3877 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3878
3879 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
3880 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
3881 make.
3882 * configure.ac: Remove checks for the make program.
3883 * configure: Re-generate.
3884
3885 2016-10-28 Pedro Alves <palves@redhat.com>
3886
3887 * Makefile.in (CXX_DIALECT): Get from configure.
3888 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
3889 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
3890 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
3891 * config.in: Regenerate.
3892 * configure: Regenerate.
3893
3894 2016-10-27 Yao Qi <yao.qi@linaro.org>
3895
3896 * linux-low.c (linux_supports_range_stepping): Return true if
3897 can_software_single_step return true.
3898
3899 2016-10-27 Yao Qi <yao.qi@linaro.org>
3900
3901 * inferiors.c (find_inferior_in_random): New function.
3902 * inferiors.h (find_inferior_in_random): Declare.
3903 * linux-low.c (linux_wait_for_event_filtered): Call
3904 find_inferior_in_random instead of find_inferior.
3905
3906 2016-10-27 Yao Qi <yao.qi@linaro.org>
3907
3908 * linux-low.c (linux_wait_1): If single-step breakpoints are
3909 inserted, remove them.
3910
3911 2016-10-26 Pedro Alves <palves@redhat.com>
3912
3913 * linux-low.c (handle_extended_wait): Link parent/child fork
3914 threads.
3915 (linux_wait_1): Unlink them.
3916 (linux_set_resume_request): Ignore resume requests for
3917 already-resumed and unhandled fork child threads.
3918 * linux-low.h (struct lwp_info) <fork_relative>: New field.
3919 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
3920 New functions.
3921 (handle_v_requests) <vCont>: Don't call require_running.
3922 * server.h (in_queued_stop_replies): New declaration.
3923
3924 2016-10-24 Yao Qi <yao.qi@linaro.org>
3925
3926 PR server/20733
3927 * linux-aarch64-low.c (append_insns): Cast the return value to
3928 'uint32_t *'.
3929
3930 2016-10-10 Yao Qi <yao.qi@linaro.org>
3931
3932 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
3933
3934 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
3935
3936 * target.c (target_supports_multi_process): New function, moved
3937 from...
3938 * target.h (target_supports_multi_process): ... here. Remove
3939 macro.
3940
3941 2016-10-05 Tom Tromey <tom@tromey.com>
3942
3943 PR remote/20655:
3944 * tracepoint.c (handle_tracepoint_bkpts): Check
3945 ipa_error_tracepoint, not ipa_stopping_tracepoint.
3946
3947 2016-10-05 Yao Qi <yao.qi@linaro.org>
3948
3949 * configure.srv: Update the path of arm-*.xml files.
3950
3951 2016-10-05 Terry Guo <terry.guo@arm.com>
3952 Yao Qi <yao.qi@linaro.org>
3953
3954 * Makefile.in: Adjust the path of rules.
3955 * configure.srv: Update the path of xml files.
3956 * regformats/arm-with-iwmmxt.dat: Regenerated.
3957 * regformats/arm-with-neon.dat: Likewise.
3958 * regformats/arm-with-vfpv2.dat: Likewise.
3959 * regformats/arm-with-vfpv3.dat Likewise.
3960
3961 2016-09-30 Yao Qi <yao.qi@linaro.org>
3962
3963 PR gdbserver/20627
3964 * target.c (target_stop_and_wait): Don't call
3965 target_continue_no_signal, use resume_stop instead.
3966
3967 2016-09-26 Yao Qi <yao.qi@linaro.org>
3968
3969 * linux-low.c (linux_wait_1): Call debug_exit.
3970
3971 2016-09-23 Pedro Alves <palves@redhat.com>
3972
3973 * Makefile.in (SFILES): Add common/new-op.c.
3974 (OBS): Add common/new-op.o.
3975 (new-op.o): New rule.
3976
3977 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
3978
3979 * .gitinore: Ignore more files.
3980
3981 2016-09-21 Yao Qi <yao.qi@linaro.org>
3982
3983 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
3984 23.
3985
3986 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
3987
3988 * server.c (start_inferior): Call target_mourn_inferior instead of
3989 mourn_inferior; pass ptid_t argument to it.
3990 (resume): Likewise.
3991 (handle_target_event): Likewise.
3992 * target.c (target_mourn_inferior): New function.
3993 * target.h (mourn_inferior): Delete macro.
3994
3995 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
3996
3997 * linux-low.c (lwp_is_stepping): New function.
3998
3999 2016-09-06 Carl Love <cel@us.ibm.com>
4000
4001 * server.c (start_inferior): Fixed comment, requested comment change
4002 didn't get updated correctly. Removed reference to ptrace () call as
4003 it is only true on Linux systems.
4004
4005 2016-09-06 Carl Love <cel@us.ibm.com>
4006
4007 * server.c (start_inferior): Do not call
4008 function target_post_create_inferior () if the
4009 inferior process has already exited.
4010
4011 2016-09-05 Pedro Alves <palves@redhat.com>
4012
4013 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4014 (COMPILE.pre, CC_LD): Use CXX directly.
4015 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4016 * acinclude.m4: Don't include build-with-cxx.m4.
4017 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4018 * configure: Regenerate.
4019
4020 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4021
4022 PR gdb/19495
4023 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4024 call writing data to own_buf.
4025
4026 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4027
4028 * target.c (mywait): Call target_wait instead of
4029 the_target->wait.
4030 (target_wait): New function.
4031
4032 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4033
4034 * server.c (start_inferior): New variable 'ptid'. Replace calls
4035 to the_target->resume by target_continue{,_no_signal}, depending
4036 on the case.
4037 * target.c (target_stop_and_wait): Call target_continue_no_signal
4038 instead of the_target->resume.
4039 (target_continue): New function.
4040
4041 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4042
4043 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4044
4045 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4046
4047 PR server/20491
4048 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4049 ps_prochandle.
4050 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4051 * linux-arm-low.c (ps_get_thread_area): Likewise.
4052 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4053 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4054 * linux-mips-low.c (ps_get_thread_area): Likewise.
4055 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4056 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4057 * linux-x86-low.c (ps_get_thread_area): Likewise.
4058 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4059
4060 2016-08-19 Pedro Alves <palves@redhat.com>
4061
4062 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4063
4064 2016-08-19 Pedro Alves <palves@redhat.com>
4065
4066 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4067 comment. Use memcpy instead of casting through unsigned long.
4068
4069 2016-08-19 Pedro Alves <palves@redhat.com>
4070
4071 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4072 allocating around 0x80000000.
4073
4074 2016-08-19 Pedro Alves <palves@redhat.com>
4075
4076 PR gdb/20415
4077 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4078 (x32-avx512-linux-ipa.o): New rules.
4079 * configure.ac (x86_64-*-linux*): New x32 check.
4080 * configure.srv (ipa_x32_linux_regobj): New.
4081 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4082 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4083 descriptions.
4084 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4085 descriptions.
4086 * configure: Regenerate.
4087
4088 2016-08-09 Pedro Alves <palves@redhat.com>
4089
4090 PR gdb/18653
4091 * Makefile.in (OBS): Add signals-state-save-restore.o.
4092 (signals-state-save-restore.o): New rule.
4093 * config.in: Regenerate.
4094 * configure: Regenerate.
4095 * linux-low.c: Include "signals-state-save-restore.h".
4096 (linux_create_inferior): Call
4097 restore_original_signals_state.
4098 * server.c: Include "dispositions-save-restore.h".
4099 (captured_main): Call save_original_signals_state.
4100
4101 2016-08-05 Pedro Alves <palves@redhat.com>
4102
4103 * configure: Regenerate.
4104
4105 2016-08-04 Yao Qi <yao.qi@linaro.org>
4106
4107 * linux-low.c (regsets_fetch_inferior_registers): Check
4108 errno is ESRCH or not.
4109
4110 2016-08-02 Yao Qi <yao.qi@linaro.org>
4111
4112 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4113 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4114 (thread_db_load_search): Update.
4115 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4116 td_ta_set_event and td_ta_event_getmsg.
4117
4118 2016-07-26 Pedro Alves <palves@redhat.com>
4119
4120 PR server/20414
4121 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4122 of unsigned long for 64-bit registers and use uint32_t instead of
4123 unsigned int for 32-bit registers.
4124
4125 2016-07-26 Pedro Alves <palves@redhat.com>
4126
4127 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4128 to 'ptrace'.
4129
4130 2016-07-21 Tom Tromey <tom@tromey.com>
4131
4132 * configure: Rebuild.
4133
4134 2016-07-21 Yao Qi <yao.qi@linaro.org>
4135
4136 * mem-break.c (find_gdb_breakpoint): Cast bp to
4137 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4138
4139 2016-07-21 Yao Qi <yao.qi@linaro.org>
4140
4141 * server.c (handle_v_requests): Support s and S actions
4142 if target_supports_software_single_step return true.
4143
4144 2016-07-21 Yao Qi <yao.qi@linaro.org>
4145
4146 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4147 is resume_step, call maybe_hw_step.
4148 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4149 and unstop them.
4150 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4151 breakpoints or not.
4152 (proceed_one_lwp): If resume request is resume_step, install
4153 reinsert breakpoints and call maybe_hw_step.
4154
4155 2016-07-21 Yao Qi <yao.qi@linaro.org>
4156
4157 * linux-low.c (proceed_one_lwp): Declare.
4158 (linux_resume_one_thread): Remove local variable 'step'.
4159 Lift code enqueue signal. Call proceed_one_lwp instead of
4160 linux_resume_one_lwp.
4161
4162 2016-07-21 Yao Qi <yao.qi@linaro.org>
4163
4164 * linux-low.c (linux_resume_one_thread): Call
4165 enqueue_pending_signal.
4166
4167 2016-07-21 Yao Qi <yao.qi@linaro.org>
4168
4169 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4170 * inferiors.c (do_restore_current_thread_cleanup): New function.
4171 (make_cleanup_restore_current_thread): Likewise.
4172 * linux-low.c (install_software_single_step_breakpoints): Call
4173 make_cleanup_restore_current_thread. Switch current_thread to
4174 thread.
4175
4176 2016-07-21 Yao Qi <yao.qi@linaro.org>
4177
4178 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4179 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4180 (clone_one_breakpoint): Likewise.
4181 (delete_reinsert_breakpoints): Change parameter to thread.
4182 Callers updated.
4183 (has_reinsert_breakpoints): Likewise.
4184 (uninsert_reinsert_breakpoints): Likewise.
4185 (reinsert_reinsert_breakpoints): Likewise.
4186 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4187 (delete_reinsert_breakpoints): Likewise.
4188 (reinsert_reinsert_breakpoints): Likewise.
4189 (uninsert_reinsert_breakpoints): Likewise.
4190 (has_reinsert_breakpoints): Likewise.
4191
4192 2016-07-21 Yao Qi <yao.qi@linaro.org>
4193
4194 * inferiors.c (get_thread_process): Make parameter const.
4195 * inferiors.h (get_thread_process): Update declaration.
4196 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4197 Add new parameters child_thread and parent_thread. Callers
4198 updated.
4199 * mem-break.h (clone_all_breakpoints): Update declaration.
4200
4201 2016-07-21 Yao Qi <yao.qi@linaro.org>
4202
4203 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4204 <command_list, handler>: Remove.
4205 (struct gdb_breakpoint): New.
4206 (struct other_breakpoint): New.
4207 (struct reinsert_breakpoint): New.
4208 (is_gdb_breakpoint): New function.
4209 (any_persistent_commands): Update command_list if
4210 is_gdb_breakpoint returns true.
4211 (set_breakpoint): Create breakpoints according to their types.
4212 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4213 (set_gdb_breakpoint_1): Likewise.
4214 (set_gdb_breakpoint): Likewise.
4215 (clear_breakpoint_conditions): Change parameter type to
4216 'struct gdb_breakpoint *'.
4217 (clear_breakpoint_commands): Likewise.
4218 (clear_breakpoint_conditions_and_commands): Likewise.
4219 (add_condition_to_breakpoint): Likewise.
4220 (add_breakpoint_condition): Likewise.
4221 (add_commands_to_breakpoint): Likewise.
4222 (check_breakpoints): Check other_breakpoint.
4223 (clone_one_breakpoint): Clone breakpopint according to its type.
4224 * mem-break.h (struct gdb_breakpoint): Declare.
4225 (set_gdb_breakpoint): Update declaration.
4226 (clear_breakpoint_conditions_and_commands): Likewise.
4227 (add_breakpoint_condition): Likewise.
4228 (add_breakpoint_commands): Likewise.
4229 * server.c (process_point_options): Change parameter type to
4230 'struct gdb_breakpoint *'.
4231
4232 2016-07-21 Yao Qi <yao.qi@linaro.org>
4233
4234 * mem-break.c (set_breakpoint_at): Rename it to ...
4235 (set_breakpoint_type_at): ... it.
4236 (set_breakpoint_at): Call set_breakpoint_type_at.
4237 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4238 * mem-break.h (set_breakpoint_at): Update comments.
4239
4240 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4241
4242 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4243 to buf parameter.
4244 (nios2_store_gregset): Likewise.
4245
4246 2016-07-01 Pedro Alves <palves@redhat.com>
4247 Antoine Tremblay <antoine.tremblay@ericsson.com>
4248
4249 * linux-low.c: Change interface to take the target lwp_info
4250 pointer directly and return void. Handle detaching from a zombie
4251 thread.
4252 (linux_detach_lwp_callback): New function.
4253 (linux_detach): Detach from the leader thread after detaching from
4254 the clone threads.
4255
4256 2016-06-28 Yao Qi <yao.qi@linaro.org>
4257
4258 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4259 for variable new_offset.
4260 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4261 (aarch64_ftrace_insn_reloc_cb): Likewise.
4262 (aarch64_ftrace_insn_reloc_tb): Likewise.
4263 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4264 PRIx64 instead of PRIx32.
4265
4266 2016-06-28 Yao Qi <yao.qi@linaro.org>
4267
4268 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4269 (the_low_target): Install arm_get_syscall_trapinfo.
4270
4271 2016-06-28 Yao Qi <yao.qi@linaro.org>
4272
4273 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4274 function.
4275 (the_low_target): Install aarch64_get_syscall_trapinfo.
4276
4277 2016-06-28 Yao Qi <yao.qi@linaro.org>
4278
4279 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4280 Callers updated.
4281 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4282 Remove parameter sysno.
4283 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4284 sysret.
4285
4286 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4287
4288 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4289 (s390_emit_ne_goto): Likewise.
4290 (s390_emit_lt_goto): Likewise.
4291 (s390_emit_le_goto): Likewise.
4292 (s390_emit_gt_goto): Likewise.
4293 (s390_emit_ge_goto): Likewise.
4294 (s390x_emit_eq_goto): Likewise.
4295 (s390x_emit_ne_goto): Likewise.
4296 (s390x_emit_lt_goto): Likewise.
4297 (s390x_emit_le_goto): Likewise.
4298 (s390x_emit_gt_goto): Likewise.
4299 (s390x_emit_ge_goto): Likewise.
4300 (s390_emit_ops_impl): Mark variable static.
4301 (s390x_emit_ops): Likewise.
4302
4303 2016-06-17 Yao Qi <yao.qi@linaro.org>
4304
4305 * linux-low.c (handle_extended_wait): Call
4306 uninsert_reinsert_breakpoints for the parent process. Remove
4307 reinsert breakpoints from the child process. Reinsert them to
4308 the parent process when vfork is done.
4309 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4310 (reinsert_reinsert_breakpoints): New function.
4311 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4312 (reinsert_reinsert_breakpoints): Declare.
4313
4314 2016-06-17 Yao Qi <yao.qi@linaro.org>
4315
4316 * linux-low.c (handle_extended_wait): If the parent is doing
4317 step-over, remove the reinsert breakpoints from the forked child.
4318
4319 2016-06-17 Yao Qi <yao.qi@linaro.org>
4320
4321 * linux-low.c (unsuspend_all_lwps): Declare.
4322 (linux_low_filter_event): If thread exited, call finish_step_over.
4323 If step-over is finished, unsuspend other threads.
4324
4325 2016-06-17 Yao Qi <yao.qi@linaro.org>
4326
4327 * linux-low.c (linux_resume_one_lwp_throw): Assert
4328 has_reinsert_breakpoints returns false.
4329 * mem-break.c (delete_disabled_breakpoints): Assert
4330 bp type isn't reinsert_breakpoint.
4331
4332 2016-06-17 Yao Qi <yao.qi@linaro.org>
4333
4334 * linux-low.c (maybe_hw_step): New function.
4335 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4336 (finish_step_over): Switch current_thread to lwp temporarily,
4337 and assert has_reinsert_breakpoints returns true.
4338 (proceed_one_lwp): Call maybe_hw_step.
4339 * mem-break.c (has_reinsert_breakpoints): New function.
4340 * mem-break.h (has_reinsert_breakpoints): Declare.
4341
4342 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4343
4344 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4345
4346 2016-05-17 Yao Qi <yao.qi@linaro.org>
4347
4348 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4349 instead of find_inferior.
4350
4351 2016-05-05 Yao Qi <yao.qi@linaro.org>
4352
4353 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4354 Initialize res to zero.
4355
4356 2016-05-05 Yao Qi <yao.qi@linaro.org>
4357
4358 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4359 to uint32_t.
4360
4361 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4362
4363 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4364 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4365 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4366
4367 2016-04-28 Par Olsson <par.olsson@windriver.com>
4368 Simon Marchi <simon.marchi@ericsson.com>
4369
4370 * tracepoint.c (write_inferior_int8): New function.
4371 (cmd_qtenable_disable): Write enable flag using
4372 write_inferior_int8.
4373
4374 2016-04-25 Yao Qi <yao.qi@linaro.org>
4375
4376 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4377 (need_step_over_p): Return zero if the LWP has pending signals
4378 can be delivered on software single step target.
4379
4380 2016-04-25 Yao Qi <yao.qi@linaro.org>
4381
4382 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4383 return instead of error.
4384
4385 2016-04-22 Yao Qi <yao.qi@linaro.org>
4386
4387 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4388 to 23.
4389
4390 2016-04-22 Yao Qi <yao.qi@linaro.org>
4391
4392 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4393 signal when stepping over breakpoint with software single
4394 step.
4395
4396 2016-04-21 Pedro Alves <palves@redhat.com>
4397
4398 * linux-s390-low.c (s390_collect_ptrace_register)
4399 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4400 add casts.
4401 (s390_check_regset): Use void * instead of gdb_byte *.
4402
4403 2016-04-20 Pedro Alves <palves@redhat.com>
4404
4405 * configure: Renegerate.
4406
4407 2016-04-20 Yao Qi <yao.qi@linaro.org>
4408
4409 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4410 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4411 number 16.
4412 (arm_store_gregset): Likewise.
4413
4414 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4415
4416 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4417 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4418 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4419 (amd64-avx-mpx-linux.c): New rules.
4420 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4421 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4422 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4423 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4424 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4425 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4426 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4427 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4428 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4429 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4430 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4431 * linux-x86-low.c (x86_linux_read_description): Add case for
4432 X86_XSTATE_AVX_MPX_MASK.
4433 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4434 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4435 init_registers_i386_avx_mpx_linux.
4436 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4437 (initialize_low_tracepoint): Call
4438 init_registers_i386_avx_mpx_linux.
4439 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4440 (initialize_low_tracepoint): Call
4441 init_registers_amd64_avx_mpx_linux.
4442 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4443 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4444 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4445 declarations.
4446
4447 2016-04-18 Pedro Alves <palves@redhat.com>
4448
4449 * configure: Regenerate.
4450
4451 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4452
4453 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4454 (aarch64_emit_sub): Likewise.
4455
4456 2016-04-12 Pedro Alves <palves@redhat.com>
4457
4458 * utils.c (prepare_to_throw_exception): Delete.
4459
4460 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4461
4462 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4463
4464 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4465
4466 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4467
4468 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4469
4470 * linux-aarch64-ipa.c: Add <elf.h> include.
4471 * linux-ppc-ipa.c: Add <elf.h> include.
4472 * linux-s390-ipa.c: Add <elf.h> include.
4473
4474 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4475
4476 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4477 (get_raw_reg_ptr): Likewise.
4478 (get_trace_state_variable_value_ptr): Likewise.
4479 (set_trace_state_variable_value_ptr): Likewise.
4480 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4481 char *.
4482
4483 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4484 Marcin Kościelnicki <koriakin@0x04.net>
4485
4486 PR/17221
4487 * linux-ppc-low.c (emit_insns): New function.
4488 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4489 (ppc_emit_prologue): New function.
4490 (ppc_emit_epilogue): New function.
4491 (ppc_emit_add): New function.
4492 (ppc_emit_sub): New function.
4493 (ppc_emit_mul): New function.
4494 (ppc_emit_lsh): New function.
4495 (ppc_emit_rsh_signed): New function.
4496 (ppc_emit_rsh_unsigned): New function.
4497 (ppc_emit_ext): New function.
4498 (ppc_emit_zero_ext): New function.
4499 (ppc_emit_log_not): New function.
4500 (ppc_emit_bit_and): New function.
4501 (ppc_emit_bit_or): New function.
4502 (ppc_emit_bit_xor): New function.
4503 (ppc_emit_bit_not): New function.
4504 (ppc_emit_equal): New function.
4505 (ppc_emit_less_signed): New function.
4506 (ppc_emit_less_unsigned): New function.
4507 (ppc_emit_ref): New function.
4508 (ppc_emit_const): New function.
4509 (ppc_emit_reg): New function.
4510 (ppc_emit_pop): New function.
4511 (ppc_emit_stack_flush): New function.
4512 (ppc_emit_swap): New function.
4513 (ppc_emit_stack_adjust): New function.
4514 (ppc_emit_call): New function.
4515 (ppc_emit_int_call_1): New function.
4516 (ppc_emit_void_call_2): New function.
4517 (ppc_emit_if_goto): New function.
4518 (ppc_emit_goto): New function.
4519 (ppc_emit_eq_goto): New function.
4520 (ppc_emit_ne_goto): New function.
4521 (ppc_emit_lt_goto): New function.
4522 (ppc_emit_le_goto): New function.
4523 (ppc_emit_gt_goto): New function.
4524 (ppc_emit_ge_goto): New function.
4525 (ppc_write_goto_address): New function.
4526 (ppc_emit_ops_impl): New static variable.
4527 (ppc64v1_emit_prologue): New function.
4528 (ppc64v2_emit_prologue): New function.
4529 (ppc64_emit_epilogue): New function.
4530 (ppc64_emit_add): New function.
4531 (ppc64_emit_sub): New function.
4532 (ppc64_emit_mul): New function.
4533 (ppc64_emit_lsh): New function.
4534 (ppc64_emit_rsh_signed): New function.
4535 (ppc64_emit_rsh_unsigned): New function.
4536 (ppc64_emit_ext): New function.
4537 (ppc64_emit_zero_ext): New function.
4538 (ppc64_emit_log_not): New function.
4539 (ppc64_emit_bit_and): New function.
4540 (ppc64_emit_bit_or): New function.
4541 (ppc64_emit_bit_xor): New function.
4542 (ppc64_emit_bit_not): New function.
4543 (ppc64_emit_equal): New function.
4544 (ppc64_emit_less_signed): New function.
4545 (ppc64_emit_less_unsigned): New function.
4546 (ppc64_emit_ref): New function.
4547 (ppc64_emit_const): New function.
4548 (ppc64v1_emit_reg): New function.
4549 (ppc64v2_emit_reg): New function.
4550 (ppc64_emit_pop): New function.
4551 (ppc64_emit_stack_flush): New function.
4552 (ppc64_emit_swap): New function.
4553 (ppc64v1_emit_call): New function.
4554 (ppc64v2_emit_call): New function.
4555 (ppc64v1_emit_int_call_1): New function.
4556 (ppc64v2_emit_int_call_1): New function.
4557 (ppc64v1_emit_void_call_2): New function.
4558 (ppc64v2_emit_void_call_2): New function.
4559 (ppc64_emit_if_goto): New function.
4560 (ppc64_emit_eq_goto): New function.
4561 (ppc64_emit_ne_goto): New function.
4562 (ppc64_emit_lt_goto): New function.
4563 (ppc64_emit_le_goto): New function.
4564 (ppc64_emit_gt_goto): New function.
4565 (ppc64_emit_ge_goto): New function.
4566 (ppc64v1_emit_ops_impl): New static variable.
4567 (ppc64v2_emit_ops_impl): New static variable.
4568 (ppc_emit_ops): New function.
4569 (linux_low_target): Wire in ppc_emit_ops.
4570
4571 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
4572 Marcin Kościelnicki <koriakin@0x04.net>
4573
4574 PR/17221
4575 * Makefile.in: Add powerpc-*-ipa.o
4576 * configure.srv: Add ipa_obj for powerpc*-linux.
4577 * linux-ppc-ipa.c: New file.
4578 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
4579 includes.
4580 (PPC_FIELD): New macro.
4581 (PPC_SEXT): New macro.
4582 (PPC_OP6): New macro.
4583 (PPC_BO): New macro.
4584 (PPC_LI): New macro.
4585 (PPC_BD): New macro.
4586 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
4587 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
4588 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
4589 (ppc_get_thread_area): New function.
4590 (is_elfv2_inferior): New function.
4591 (gen_ds_form): New function.
4592 (GEN_STD): New macro.
4593 (GEN_STDU): New macro.
4594 (GEN_LD): New macro.
4595 (GEN_LDU): New macro.
4596 (gen_d_form): New function.
4597 (GEN_ADDI): New macro.
4598 (GEN_ADDIS): New macro.
4599 (GEN_LI): New macro.
4600 (GEN_LIS): New macro.
4601 (GEN_ORI): New macro.
4602 (GEN_ORIS): New macro.
4603 (GEN_LWZ): New macro.
4604 (GEN_STW): New macro.
4605 (GEN_STWU): New macro.
4606 (gen_xfx_form): New function.
4607 (GEN_MFSPR): New macro.
4608 (GEN_MTSPR): New macro.
4609 (GEN_MFCR): New macro.
4610 (GEN_MTCR): New macro.
4611 (GEN_SYNC): New macro.
4612 (GEN_LWSYNC): New macro.
4613 (gen_x_form): New function.
4614 (GEN_OR): New macro.
4615 (GEN_MR): New macro.
4616 (GEN_LWARX): New macro.
4617 (GEN_STWCX): New macro.
4618 (GEN_CMPW): New macro.
4619 (gen_md_form): New function.
4620 (GEN_RLDICL): New macro.
4621 (GEN_RLDICR): New macro.
4622 (gen_i_form): New function.
4623 (GEN_B): New macro.
4624 (GEN_BL): New macro.
4625 (gen_b_form): New function.
4626 (GEN_BNE): New macro.
4627 (GEN_LOAD): New macro.
4628 (GEN_STORE): New macro.
4629 (gen_limm): New function.
4630 (gen_atomic_xchg): New function.
4631 (gen_call): New function.
4632 (ppc_relocate_instruction): New function.
4633 (ppc_install_fast_tracepoint_jump_pad): New function.
4634 (ppc_get_min_fast_tracepoint_insn_len): New function.
4635 (ppc_get_ipa_tdesc_idx): New function.
4636 (the_low_target): Wire in the new functions.
4637 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
4638 tdescs.
4639 * linux-ppc-tdesc.h: New file.
4640
4641 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4642
4643 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4644 (alloc_jump_pad_buffer): New function.
4645 * linux-amd64-ipa.c: Add <sys/mman.h> include.
4646 (alloc_jump_pad_buffer): New function.
4647 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
4648 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4649 (alloc_jump_pad_buffer): New function.
4650 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
4651 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
4652 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
4653 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
4654
4655 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4656
4657 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
4658 * linux-amd64-ipa.c: Likewise.
4659 * linux-i386-ipa.c: Likewise.
4660 * linux-s390-ipa.c: Likewise.
4661 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
4662 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
4663 set_trace_state_variable_value_ptr.
4664 (struct ipa_sym_addresses): Likewise.
4665 (symbol_list): Likewise.
4666 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
4667 accessing gdb_collect directly.
4668 (gdb_collect_ptr_type): New typedef.
4669 (get_raw_reg_ptr_type): New typedef.
4670 (get_trace_state_variable_value_ptr_type): New typedef.
4671 (set_trace_state_variable_value_ptr_type): New typedef.
4672 (gdb_collect_ptr): New global.
4673 (get_raw_reg_ptr): New global.
4674 (get_trace_state_variable_value_ptr): New global.
4675 (set_trace_state_variable_value_ptr): New global.
4676 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
4677 accessing get_raw_reg directly.
4678 (get_get_tsv_func_addr): Likewise for
4679 get_trace_state_variable_value_ptr.
4680 (get_set_tsv_func_addr): Likewise for
4681 set_trace_state_variable_value_ptr.
4682 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
4683
4684 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
4685
4686 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
4687
4688 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4689
4690 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
4691 packets.
4692 (relocate_instruction): Remove own_buf.
4693 * server.c (own_buf): Make global.
4694 (handle_v_requests): Make global.
4695 * server.h (own_buf): New declaration.
4696 (handle_v_requests): New prototype.
4697
4698 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4699
4700 PR 18377
4701 * linux-s390-low.c (add_insns): New function.
4702 (s390_emit_prologue): New function.
4703 (s390_emit_epilogue): New function.
4704 (s390_emit_add): New function.
4705 (s390_emit_sub): New function.
4706 (s390_emit_mul): New function.
4707 (s390_emit_lsh): New function.
4708 (s390_emit_rsh_signed): New function.
4709 (s390_emit_rsh_unsigned): New function.
4710 (s390_emit_ext): New function.
4711 (s390_emit_log_not): New function.
4712 (s390_emit_bit_and): New function.
4713 (s390_emit_bit_or): New function.
4714 (s390_emit_bit_xor): New function.
4715 (s390_emit_bit_not): New function.
4716 (s390_emit_equal): New function.
4717 (s390_emit_less_signed): New function.
4718 (s390_emit_less_unsigned): New function.
4719 (s390_emit_ref): New function.
4720 (s390_emit_if_goto): New function.
4721 (s390_emit_goto): New function.
4722 (s390_write_goto_address): New function.
4723 (s390_emit_litpool): New function.
4724 (s390_emit_const): New function.
4725 (s390_emit_call): New function.
4726 (s390_emit_reg): New function.
4727 (s390_emit_pop): New function.
4728 (s390_emit_stack_flush): New function.
4729 (s390_emit_zero_ext): New function.
4730 (s390_emit_swap): New function.
4731 (s390_emit_stack_adjust): New function.
4732 (s390_emit_set_r2): New function.
4733 (s390_emit_int_call_1): New function.
4734 (s390_emit_void_call_2): New function.
4735 (s390_emit_eq_goto): New function.
4736 (s390_emit_ne_goto): New function.
4737 (s390_emit_lt_goto): New function.
4738 (s390_emit_le_goto): New function.
4739 (s390_emit_gt_goto): New function.
4740 (s390_emit_ge_goto): New function.
4741 (s390x_emit_prologue): New function.
4742 (s390x_emit_epilogue): New function.
4743 (s390x_emit_add): New function.
4744 (s390x_emit_sub): New function.
4745 (s390x_emit_mul): New function.
4746 (s390x_emit_lsh): New function.
4747 (s390x_emit_rsh_signed): New function.
4748 (s390x_emit_rsh_unsigned): New function.
4749 (s390x_emit_ext): New function.
4750 (s390x_emit_log_not): New function.
4751 (s390x_emit_bit_and): New function.
4752 (s390x_emit_bit_or): New function.
4753 (s390x_emit_bit_xor): New function.
4754 (s390x_emit_bit_not): New function.
4755 (s390x_emit_equal): New function.
4756 (s390x_emit_less_signed): New function.
4757 (s390x_emit_less_unsigned): New function.
4758 (s390x_emit_ref): New function.
4759 (s390x_emit_if_goto): New function.
4760 (s390x_emit_const): New function.
4761 (s390x_emit_call): New function.
4762 (s390x_emit_reg): New function.
4763 (s390x_emit_pop): New function.
4764 (s390x_emit_stack_flush): New function.
4765 (s390x_emit_zero_ext): New function.
4766 (s390x_emit_swap): New function.
4767 (s390x_emit_stack_adjust): New function.
4768 (s390x_emit_int_call_1): New function.
4769 (s390x_emit_void_call_2): New function.
4770 (s390x_emit_eq_goto): New function.
4771 (s390x_emit_ne_goto): New function.
4772 (s390x_emit_lt_goto): New function.
4773 (s390x_emit_le_goto): New function.
4774 (s390x_emit_gt_goto): New function.
4775 (s390x_emit_ge_goto): New function.
4776 (s390_emit_ops): New function.
4777 (struct linux_target_ops): Fill in emit_ops hook.
4778
4779 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4780
4781 PR 18377
4782 * Makefile.in: Add s390 IPA files.
4783 * configure.srv: Build IPA for s390.
4784 * linux-s390-ipa.c: New file.
4785 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
4786 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
4787 (tdesc_s390_linux32): Likewise.
4788 (init_registers_s390_linux32v1): Likewise.
4789 (tdesc_s390_linux32v1): Likewise.
4790 (init_registers_s390_linux32v2): Likewise.
4791 (tdesc_s390_linux32v2): Likewise.
4792 (init_registers_s390_linux64): Likewise.
4793 (tdesc_s390_linux64): Likewise.
4794 (init_registers_s390_linux64v1): Likewise.
4795 (tdesc_s390_linux64v1): Likewise.
4796 (init_registers_s390_linux64v2): Likewise.
4797 (tdesc_s390_linux64v2): Likewise.
4798 (init_registers_s390_te_linux64): Likewise.
4799 (tdesc_s390_te_linux64): Likewise.
4800 (init_registers_s390_vx_linux64): Likewise.
4801 (tdesc_s390_vx_linux64): Likewise.
4802 (init_registers_s390_tevx_linux64): Likewise.
4803 (tdesc_s390_tevx_linux64): Likewise.
4804 (init_registers_s390x_linux64): Likewise.
4805 (tdesc_s390x_linux64): Likewise.
4806 (init_registers_s390x_linux64v1): Likewise.
4807 (tdesc_s390x_linux64v1): Likewise.
4808 (init_registers_s390x_linux64v2): Likewise.
4809 (tdesc_s390x_linux64v2): Likewise.
4810 (init_registers_s390x_te_linux64): Likewise.
4811 (tdesc_s390x_te_linux64): Likewise.
4812 (init_registers_s390x_vx_linux64): Likewise.
4813 (tdesc_s390x_vx_linux64): Likewise.
4814 (init_registers_s390x_tevx_linux64): Likewise.
4815 (tdesc_s390x_tevx_linux64): Likewise.
4816 (have_hwcap_s390_vx): New static variable.
4817 (s390_arch_setup): Fill have_hwcap_s390_vx.
4818 (s390_get_thread_area): New function.
4819 (s390_ft_entry_gpr_esa): New const.
4820 (s390_ft_entry_gpr_zarch): New const.
4821 (s390_ft_entry_misc): New const.
4822 (s390_ft_entry_fr): New const.
4823 (s390_ft_entry_vr): New const.
4824 (s390_ft_main_31): New const.
4825 (s390_ft_main_64): New const.
4826 (s390_ft_exit_fr): New const.
4827 (s390_ft_exit_vr): New const.
4828 (s390_ft_exit_misc): New const.
4829 (s390_ft_exit_gpr_esa): New const.
4830 (s390_ft_exit_gpr_zarch): New const.
4831 (append_insns): New function.
4832 (s390_relocate_instruction): New function.
4833 (s390_install_fast_tracepoint_jump_pad): New function.
4834 (s390_get_min_fast_tracepoint_insn_len): New function.
4835 (s390_get_ipa_tdesc_idx): New function.
4836 (struct linux_target_ops): Wire in the above functions.
4837 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
4838 * linux-s390-tdesc.h: New file.
4839
4840 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4841
4842 * linux-s390-low.c (s390_supports_tracepoints): New function.
4843 (struct linux_target_ops): Fill supports_tracepoints hook.
4844
4845 2016-03-18 Yao Qi <yao.qi@linaro.org>
4846
4847 * linux-low.c (lwp_signal_can_be_delivered): New function.
4848 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
4849
4850 2016-03-18 Yao Qi <yao.qi@linaro.org>
4851
4852 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
4853 0 if signal is enqueued. Remove 'signal' from one debugging
4854 message. Move one debugging message to some lines below.
4855 Remove code setting 'signal' to 0.
4856
4857 2016-03-18 Yao Qi <yao.qi@linaro.org>
4858
4859 * linux-low.c (linux_low_filter_event): Remove redundant
4860 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
4861
4862 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
4863
4864 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
4865 (struct linux_target_ops): Wire in the above.
4866
4867 2016-03-03 Yao Qi <yao.qi@linaro.org>
4868
4869 * linux-low.c: Update comments to start_step_over.
4870
4871 2016-03-03 Yao Qi <yao.qi@linaro.org>
4872
4873 PR server/19736
4874 * linux-low.c (handle_extended_wait): Set child suspended
4875 if event_lwp->bp_reinsert isn't zero.
4876
4877 2016-03-02 Yao Qi <yao.qi@linaro.org>
4878
4879 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
4880 enqueue_pending_signal.
4881
4882 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
4883
4884 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
4885 is actually loaded.
4886
4887 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4888
4889 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
4890 (s390_regmap_3264) [!__s390x__]: New global.
4891 (s390_collect_ptrace_register): Skip map entries containing -1.
4892 (s390_supply_ptrace_register): Ditto.
4893 (s390_fill_gprs_high): New function.
4894 (s390_store_gprs_high): New function.
4895 (s390_regsets): Add NT_S390_HIGH_GPRS.
4896 (s390_get_hwcap): Enable on 31-bit.
4897 (have_hwcap_s390_high_gprs): Enable on 31-bit.
4898 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
4899 Detect NT_S390_HIGH_GPRS.
4900 (s390_usrregs_info_3264): Enable on 31-bit.
4901 (s390_regs_info): Enable regs_info_3264 on 31-bit.
4902 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
4903
4904 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
4905
4906 PR gdb/13808
4907 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
4908 * configure.srv: Ditto.
4909 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
4910 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
4911 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
4912 (init_registers_amd64_linux): Remove prototype.
4913 (tdesc_amd64_linux): Remove declaration.
4914 (get_ipa_tdesc): New function.
4915 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4916 initialize remaining tdescs.
4917 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
4918 (init_registers_i386_linux): Remove prototype.
4919 (tdesc_i386_linux): Remove declaration.
4920 (get_ipa_tdesc): New function.
4921 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
4922 initialize remaining tdescs.
4923 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
4924 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
4925 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
4926 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
4927 (x86_get_ipa_tdesc_idx): New function.
4928 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
4929 * linux-x86-tdesc.h: New file.
4930 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
4931 (target_get_ipa_tdesc_idx): New macro.
4932 * tracepoint.c (ipa_tdesc_idx): New macro.
4933 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
4934 (symbol_list): Add ipa_tdesc_idx.
4935 (cmd_qtstart): Write ipa_tdesc_idx in the target.
4936 (ipa_tdesc): Remove.
4937 (ipa_tdesc_idx): New variable.
4938 (get_context_regcache): Use get_ipa_tdesc.
4939 (gdb_collect): Ditto.
4940 (gdb_probe): Ditto.
4941 * tracepoint.h (get_ipa_tdesc): New prototype.
4942 (ipa_tdesc): Remove.
4943
4944 2016-02-24 Pedro Alves <palves@redhat.com>
4945
4946 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
4947 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
4948 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
4949 Factor out common code between the USE_SIGTRAP_SIGINFO and
4950 !USE_SIGTRAP_SIGINFO blocks.
4951 (linux_low_filter_event): Call save_stop_reason instead of
4952 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
4953 Update comments.
4954 (linux_wait_1): Update comments.
4955
4956 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
4957
4958 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
4959 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
4960 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
4961 ppc_insert_point, ppc_remove_point.
4962
4963 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
4964
4965 * linux-s390-low.c (s390_supports_z_point_type): New function.
4966 (struct linux_target_ops): Wire s390_supports_z_point_type in.
4967
4968 2016-02-16 Yao Qi <yao.qi@linaro.org>
4969
4970 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
4971 PC. Get pc from regcache_read_pc.
4972
4973 2016-02-12 Yao Qi <yao.qi@linaro.org>
4974
4975 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
4976 or linux_get_pc_32bit.
4977 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
4978
4979 2016-02-12 Yao Qi <yao.qi@linaro.org>
4980
4981 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
4982 arm_linux_get_next_pcs_fixup.
4983
4984 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
4985
4986 * tracepoint.c (x_tracepoint_action_download): Change
4987 write_inferior_data_ptr to write_inferior_data_pointer.
4988 (cmd_qtstart): Likewise.
4989 (write_inferior_data_ptr): Remove.
4990 (download_agent_expr): Change write_inferior_data_ptr to
4991 write_inferior_data_pointer.
4992 (download_tracepoint_1): Likewise.
4993 (download_tracepoint): Likewise.
4994 (download_trace_state_variables): Likewise.
4995
4996 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
4997 Marcin Kościelnicki <koriakin@0x04.net>
4998
4999 * tracepoint.c (struct tracepoint_action_ops): Remove.
5000 (struct tracepoint_action): Remove ops.
5001 (m_tracepoint_action_download, r_tracepoint_action_download)
5002 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5003 size and offset accordingly.
5004 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5005 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5006 (tracepoint_action_send, tracepoint_action_download): New functions.
5007 Helpers for trace action handlers.
5008 (add_tracepoint_action): Remove setup actions ops.
5009 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5010
5011 2016-02-10 Yao Qi <yao.qi@linaro.org>
5012
5013 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5014
5015 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5016
5017 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5018 to AC_OUTPUT.
5019 * configure: Regenerate.
5020
5021 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5024 void * to gdb_byte *.
5025 * linux-low.c (siginfo_fixup): Likewise.
5026 (linux_xfer_siginfo): Likewise.
5027 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5028 Likewise.
5029 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5030
5031 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5032
5033 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5034 to srv_tgtobj.
5035 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5036 to srv_tgtobj.
5037 * linux-x86-low.c [__x86_64__]: Include
5038 "nat/amd64-linux-siginfo.h".
5039 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5040 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5041 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5042 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5043 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5044 (cpt_si_fd, si_timerid, si_overrun): Move from
5045 nat/amd64-linux-siginfo.c.
5046 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5047
5048 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5049
5050 * server.c (skip_to_semicolon): Remove.
5051 (process_point_options): Use strchrnul instead of
5052 skip_to_semicolon.
5053
5054 2016-01-26 Yao Qi <yao.qi@linaro.org>
5055
5056 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5057 * linux-low.c (install_software_single_step_breakpoints): Don't
5058 call regcache_read_pc.
5059 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5060 argument pc.
5061
5062 2016-01-26 Yao Qi <yao.qi@linaro.org>
5063
5064 * linux-low.c (install_software_single_step_breakpoints): Call
5065 regcache_read_pc instead of get_pc.
5066
5067 2016-01-26 Yao Qi <yao.qi@linaro.org>
5068
5069 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5070 (unblock_async_io): Rename to ...
5071 (block_unblock_async_io): ... it. New function.
5072 (enable_async_io): Don't install SIGIO handler. Unblock it
5073 instead.
5074 (disable_async_io): Don't ignore SIGIO. Block it instead.
5075 (initialize_async_io): Install SIGIO handler. Don't call
5076 unblock_async_io.
5077
5078 2016-01-26 Yao Qi <yao.qi@linaro.org>
5079
5080 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5081 first character is '\003', call *the_target->request_interrupt.
5082
5083 2016-01-25 Yao Qi <yao.qi@linaro.org>
5084
5085 * remote-utils.c (new_thread_notify): Remove.
5086 (dead_thread_notify): Likewise.
5087 * remote-utils.h (new_thread_notify): Remove declaration.
5088 (dead_thread_notify): Likewise.
5089
5090 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5091
5092 * gdb.trace/pending.exp: Fix expected message on continue.
5093
5094 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5095
5096 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5097 it works properly on big-endian machines where sizeof (CORE_ADDR)
5098 != sizeof (void *).
5099
5100 2016-01-21 Pedro Alves <palves@redhat.com>
5101
5102 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5103 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5104 * configure: Regenerate.
5105
5106 2016-01-21 Yao Qi <yao.qi@linaro.org>
5107
5108 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5109 is_thumb and set it according to CPSR saved on the stack.
5110 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5111 arm_sigreturn_next_pc.
5112
5113 2016-01-18 Yao Qi <yao.qi@linaro.org>
5114
5115 * linux-low.c (linux_set_pc_64bit): New function.
5116 (linux_get_pc_64bit): New function.
5117 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5118 Declare.
5119 * linux-sparc-low.c (debug_threads): Remove declaration.
5120 (sparc_get_pc): Remove.
5121 (the_low_target): Use linux_get_pc_64bit instead of
5122 sparc_get_pc.
5123 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5124 (the_low_target): Use linux_get_pc_64bit and
5125 linux_set_pc_64bit.
5126
5127 2016-01-18 Yao Qi <yao.qi@linaro.org>
5128
5129 * linux-arm-low.c (debug_threads): Remove declaration.
5130 (arm_get_pc, arm_set_pc): Remove.
5131 (the_low_target): Use linux_get_pc_32bit and
5132 linux_set_pc_32bit.
5133 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5134 (the_low_target): Use linux_get_pc_32bit and
5135 linux_set_pc_32bit.
5136 * linux-cris-low.c (debug_threads): Remove declaration.
5137 (cris_get_pc, cris_set_pc,): Remove.
5138 (the_low_target): Use linux_get_pc_32bit and
5139 linux_set_pc_32bit.
5140 * linux-crisv32-low.c (debug_threads): Remove declaration.
5141 (cris_get_pc, cris_set_pc): Remove.
5142 (the_low_target): Use linux_get_pc_32bit and
5143 linux_set_pc_32bit.
5144 * linux-low.c: Include inttypes.h.
5145 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5146 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5147 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5148 (the_low_target): Use linux_get_pc_32bit and
5149 linux_set_pc_32bit.
5150 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5151 (the_low_target): Use linux_get_pc_32bit and
5152 linux_set_pc_32bit.
5153 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5154 (the_low_target): Use linux_get_pc_32bit and
5155 linux_set_pc_32bit.
5156 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5157 (the_low_target): Use linux_get_pc_32bit and
5158 linux_set_pc_32bit.
5159 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5160 (the_low_target): Use linux_get_pc_32bit and
5161 linux_set_pc_32bit.
5162
5163 2016-01-18 Gary Benson <gbenson@redhat.com>
5164
5165 * configure.ac (AC_FUNC_FORK): New check.
5166 * config.in: Regenerate.
5167 * configure: Likewise.
5168
5169 2016-01-14 Yao Qi <yao.qi@linaro.org>
5170
5171 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5172 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5173 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5174 arm_get_next_pcs_ctor.
5175
5176 2016-01-12 Josh Stone <jistone@redhat.com>
5177 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5178
5179 * inferiors.h: Include "gdb_vecs.h".
5180 (struct process_info): Add syscalls_to_catch.
5181 * inferiors.c (remove_process): Free syscalls_to_catch.
5182 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5183 syscall_return stops.
5184 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5185 * server.c (handle_general_set): Handle QCatchSyscalls.
5186 (handle_query): Report support for QCatchSyscalls.
5187 * target.h (struct target_ops): Add supports_catch_syscall.
5188 (target_supports_catch_syscall): New macro.
5189 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5190 (struct lwp_info): Add syscall_state.
5191 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5192 Maintain syscall_state and syscalls_to_catch across exec.
5193 (get_syscall_trapinfo): New function, proxy to the_low_target.
5194 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5195 (linux_low_filter_event): Toggle syscall_state entry/return for
5196 syscall traps, and set it ignored for all others.
5197 (gdb_catching_syscalls_p): New function.
5198 (gdb_catch_this_syscall_p): New function.
5199 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5200 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5201 (linux_supports_catch_syscall): New function.
5202 (linux_target_ops): Install it.
5203 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5204 (the_low_target): Install it.
5205
5206 2016-01-12 Mike Frysinger <vapier@gentoo.org>
5207
5208 * acinclude.m4: Include new ../warning.m4 file.
5209 * configure: Regenerated.
5210 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5211
5212 2016-01-12 Mike Frysinger <vapier@gentoo.org>
5213
5214 * ax.c (is_goto_target): Mark static.
5215 * linux-low.c (register_addr): Likewise.
5216 (linux_fetch_registers, linux_store_registers): Likewise.
5217 * mem-break.c (any_persistent_commands): Fix old prototype.
5218 (add_commands_to_breakpoint): Mark static.
5219 * regcache.c (find_register_by_name): Delete unused func.
5220 * remote-utils.c (hex_or_minus_one): Mark static.
5221 * server.c (monitor_show_help): Mark static.
5222 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5223 handle_v_requests): Likewise.
5224
5225 2016-01-12 Pedro Alves <palves@redhat.com>
5226
5227 Remove use of the registered trademark symbol throughout.
5228
5229 2016-01-08 Yao Qi <yao.qi@linaro.org>
5230
5231 * remote-utils.c (getpkt): If c is '\003', call target hook
5232 request_interrupt.
5233
5234 2016-01-06 Yao Qi <yao.qi@linaro.org>
5235
5236 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5237 linux-aarch32-low.c.
5238 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5239 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5240 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5241 (thumb2_breakpoint): Declare.
5242 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5243 linux-aarch32-low.h.
5244 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5245 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5246 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5247
5248 2016-01-01 Joel Brobecker <brobecker@adacore.com>
5249
5250 * gdbreplay.c (gdbreplay_version): Change copyright year in
5251 version message.
5252 * server.c (gdbserver_version): Likewise.
5253
5254 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5255
5256 * server.c (crc32_table): Delete.
5257 (crc32): Use libiberty's xcrc32 function.
5258
5259 2015-12-22 Joel Brobecker <brobecker@adacore.com>
5260
5261 * lynx-low.c (lynx_delete_thread_callback): New function.
5262 (lynx_mourn): Properly delete our process and all of its
5263 threads. Remove call to clear_inferiors.
5264
5265 2015-12-22 Joel Brobecker <brobecker@adacore.com>
5266
5267 * target.c (thread_search_callback): Add check that
5268 the thread_stopped target callback is not NULL before
5269 calling it.
5270
5271 2015-12-21 Yao Qi <yao.qi@linaro.org>
5272
5273 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5274 arm breakpoint.
5275
5276 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5277
5278 * server.c (handle_query): Call target_supports_software_single_step.
5279
5280 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5281
5282 * linux-low.c (single_step): New function.
5283 (linux_resume_one_lwp_throw): Call single_step.
5284 (start_step_over): Likewise.
5285
5286 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5287
5288 * Makefile.in (SFILES): Append arch/arm-linux.c,
5289 arch/arm-get-next-pcs.c.
5290 (arm-linux.o): New rule.
5291 (arm-get-next-pcs.o): New rule.
5292 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5293 arm-linux.o.
5294 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5295 to linux-aarch32-low.c.
5296 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5297 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5298 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5299 (thumb2_breakpoint_len): Likewise.
5300 (arm_is_thumb_mode): Make non-static.
5301 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5302 from linux-aarch32-low.c.
5303 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5304 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5305 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5306 (thumb2_breakpoint_len): Likewise.
5307 (arm_is_thumb_mode): New declaration.
5308 * linux-arm-low.c: Include arch/arm-linux.h
5309 aarch/arm-get-next-pcs.h, sys/syscall.h.
5310 (get_next_pcs_ops): New struct.
5311 (get_next_pcs_addr_bits_remove): New function.
5312 (get_next_pcs_is_thumb): New function.
5313 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5314 (arm_sigreturn_next_pc): Likewise.
5315 (get_next_pcs_syscall_next_pc): Likewise.
5316 (arm_gdbserver_get_next_pcs): Likewise.
5317 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5318 Initialize.
5319 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5320 * server.h: Include gdb_vecs.h.
5321
5322 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5323
5324 * Makefile.in (SFILES): Append common/common-regcache.c.
5325 (OBS): Append common-regcache.o.
5326 (common-regcache.o): New rule.
5327 * regcache.c (init_register_cache): Initialize cache to
5328 REG_UNAVAILABLE.
5329 (regcache_raw_read_unsigned): New function.
5330 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5331 register_status enum.
5332
5333 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5334
5335 * linux-aarch64-low.c (the_low_targets): Rename
5336 breakpoint_reinsert_addr to get_next_pcs.
5337 * linux-arm-low.c (the_low_targets): Likewise.
5338 * linux-bfin-low.c (the_low_targets): Likewise.
5339 * linux-cris-low.c (the_low_targets): Likewise.
5340 * linux-crisv32-low.c (the_low_targets): Likewise.
5341 * linux-low.c (can_software_single_step): Likewise.
5342 (install_software_single_step_breakpoints): New function.
5343 (start_step_over): Use install_software_single_step_breakpoints.
5344 * linux-low.h: New CORE_ADDR vector.
5345 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5346 get_next_pcs.
5347 * linux-mips-low.c (the_low_targets): Likewise.
5348 * linux-nios2-low.c (the_low_targets): Likewise.
5349 * linux-sparc-low.c (the_low_targets): Likewise.
5350
5351 2015-12-17 Pedro Alves <palves@redhat.com>
5352
5353 * linux-low.c (linux_kill_one_lwp): Remove references to
5354 LinuxThreads.
5355 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5356 to 'kill'.
5357 (linux_init_signals): Delete.
5358 (initialize_low): Adjust.
5359 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5360
5361 2015-12-16 Pedro Alves <palves@redhat.com>
5362
5363 * configure.ac (compiler warning flags): When testing a
5364 -Wno-foo option, check whether -Wfoo works instead.
5365 * configure: Regenerate.
5366
5367 2015-12-11 Don Breazeal <donb@codesourcery.com>
5368
5369 * server.c (process_serial_event): Don't exit from gdbserver
5370 in remote mode if there are still active inferiors.
5371
5372 2015-12-11 Yao Qi <yao.qi@linaro.org>
5373
5374 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5375 arm_breakpoint_at if the process is 32-bit.
5376
5377 2015-12-11 Yao Qi <yao.qi@linaro.org>
5378
5379 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5380 arm breakpoint.
5381
5382 2015-12-07 Yao Qi <yao.qi@linaro.org>
5383
5384 * configure.srv: Append arm.o to srv_tgtobj for
5385 aarch64*-*-linux* target.
5386 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5387 from linux-arm-low.c.
5388 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5389 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5390 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5391 (thumb2_breakpoint_len): Likewise.
5392 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5393 (arm_breakpoint_kinds): Likewise.
5394 (arm_breakpoint_kind_from_pc): Likewise.
5395 (arm_sw_breakpoint_from_kind): Likewise.
5396 (arm_breakpoint_kind_from_current_state): Likewise.
5397 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5398 (arm_sw_breakpoint_from_kind): Declare.
5399 (arm_breakpoint_kind_from_current_state): Declare.
5400 (arm_breakpoint_at): Declare.
5401 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5402 arm_sw_breakpoint_from_kind if process is 32-bit.
5403 (aarch64_breakpoint_kind_from_pc): New function.
5404 (aarch64_breakpoint_kind_from_current_state): New function.
5405 (the_low_target): Initialize fields breakpoint_kind_from_pc
5406 and breakpoint_kind_from_current_state.
5407 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5408 linux-aarch32-low.c.
5409 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5410 (arm_breakpoint, arm_breakpoint_len): Likewise.
5411 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5412 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5413 (arm_is_thumb_mode): Likewise.
5414 (arm_breakpoint_at): Likewise.
5415 (arm_breakpoint_kind_from_pc): Likewise.
5416 (arm_sw_breakpoint_from_kind): Likewise.
5417 (arm_breakpoint_kind_from_current_state): Likewise.
5418
5419 Revert:
5420 2015-08-04 Yao Qi <yao.qi@linaro.org>
5421
5422 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5423 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5424 * server.c (extended_protocol): Remove "static".
5425 * server.h (extended_protocol): Declare it.
5426
5427 2015-12-04 Josh Stone <jistone@redhat.com>
5428
5429 * target.h (struct target_ops) <arch_setup>: Rename to ...
5430 (struct target_ops) <post_create_inferior>: ... this.
5431 (target_arch_setup): Rename to ...
5432 (target_post_create_inferior): ... this, calling post_create_inferior.
5433 * server.c (start_inferior): Update target_arch_setup calls to
5434 target_post_create_inferior.
5435 * linux-low.c (linux_low_ptrace_options): Forward declare.
5436 (linux_arch_setup): Update its comment for general use.
5437 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5438 (struct linux_target_ops): Use linux_post_create_inferior.
5439 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5440 to post_create_inferior.
5441 * nto-low.c (struct nto_target_ops): Likewise.
5442 * spu-low.c (struct spu_target_ops): Likewise.
5443 * win32-low.c (struct win32_target_ops): Likewise.
5444
5445 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5446
5447 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5448
5449 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5450
5451 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5452 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5453 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5454 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5455 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5456 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5457 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5458 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5459 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5460 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5461 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5462 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5463
5464 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5465
5466 * linux-low.c (linux_look_up_symbols): Don't call
5467 linux_supports_traceclone.
5468 * linux-low.h (thread_db_init): Remove use_events argument.
5469 * thread-db.c (thread_db_use_event): Remove global variable.
5470 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5471 (struct thread_db) <td_create_bp>: Remove field.
5472 (thread_db_create_event): Remove function.
5473 (thread_db_enable_reporting): Likewise.
5474 (find_one_thread): Don't check for thread_db_use_events.
5475 (attach_thread): Likewise.
5476 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5477 (try_thread_db_load_1): Don't check for thread_db_use_events.
5478 (thread_db_init): Remove use_events argument and thread events
5479 handling.
5480 (remove_thread_event_breakpoints): Remove function.
5481 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5482
5483 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5484
5485 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5486 New function.
5487 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5488 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5489 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5490 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5491 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5492 Initialize.
5493 * linux-crisv32-low.c (cris_supports_hardware_single_step):
5494 New function.
5495 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5496 * linux-low.c (can_hardware_single_step): Use
5497 supports_hardware_single_step.
5498 (can_software_single_step): New function.
5499 (start_step_over): Call can_software_single_step.
5500 (linux_supports_hardware_single_step): New function.
5501 (struct target_ops) <supports_software_single_step>: Initialize.
5502 * linux-low.h (struct linux_target_ops)
5503 <supports_hardware_single_step>: Initialize.
5504 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
5505 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5506 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
5507 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
5508 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
5509 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5510 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
5511 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5512 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
5513 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
5514 Initialize.
5515 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
5516 (struct linux_target_ops) <tile_supports_hardware_single_step>:
5517 Initialize.
5518 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
5519 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5520 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
5521 New function.
5522 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5523 * target.h (struct target_ops): <supports_software_single_step>:
5524 New field.
5525 (target_supports_software_single_step): New macro.
5526
5527 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5528
5529 * linux-low.c (linux_wait_1): Fix pc advance condition.
5530 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
5531 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
5532
5533 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5534
5535 * linux-arm-low.c (arm_is_thumb_mode): New function.
5536 (arm_breakpoint_at): Use arm_is_thumb_mode.
5537 (arm_breakpoint_kind_from_current_state): New function.
5538 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
5539 Initialize.
5540 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
5541 (linux_breakpoint_kind_from_current_state): New function.
5542 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
5543 * linux-low.h (struct linux_target_ops)
5544 <breakpoint_kind_from_current_state>: New field.
5545 * target.h (struct target_ops): Likewise.
5546 (target_breakpoint_kind_from_current_state): New macro.
5547
5548 2015-11-30 Pedro Alves <palves@redhat.com>
5549
5550 * linux-low.c (linux_resume): Wake up the event loop before
5551 returning.
5552
5553 2015-11-30 Pedro Alves <palves@redhat.com>
5554
5555 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
5556 check.
5557 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
5558 to -1.
5559 * target.c (struct thread_search): New structure.
5560 (thread_search_callback): New function.
5561 (prev_general_thread): New global.
5562 (prepare_to_access_memory, done_accessing_memory): New functions.
5563 * target.h (prepare_to_access_memory, done_accessing_memory):
5564 Replace macros with function declarations.
5565
5566 2015-11-30 Pedro Alves <palves@redhat.com>
5567
5568 PR 14618
5569 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
5570 report TARGET_WAITKIND_NO_RESUMED.
5571 * remote-utils.c (prepare_resume_reply): Handle
5572 TARGET_WAITKIND_NO_RESUMED.
5573 * server.c (report_no_resumed): New global.
5574 (handle_query) <qSupported>: Handle "no-resumed+". Report
5575 "no-resumed+" support.
5576 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
5577 return error if the client doesn't support no-resumed events.
5578 (push_stop_notification): New function.
5579 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
5580 events if the client supports them.
5581
5582 2015-11-30 Pedro Alves <palves@redhat.com>
5583
5584 * linux-low.c (thread_still_has_status_pending_p): Don't check
5585 vCont;t here.
5586 (lwp_resumed): New function.
5587 (status_pending_p_callback): Return early if the LWP is not
5588 supposed to be resumed.
5589
5590 2015-11-30 Pedro Alves <palves@redhat.com>
5591
5592 * linux-low.c (handle_extended_wait): Assert that the LWP's
5593 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
5594 thread create events, leave the new child's status pending.
5595 (linux_low_filter_event): If GDB wants to hear about thread exit
5596 events, leave the LWP marked dead and don't delete it.
5597 (linux_wait_for_event_filtered): Don't check for thread exit.
5598 (filter_exit_event): New function.
5599 (linux_wait_1): Use it, when returning an exit event.
5600 (linux_resume_one_lwp_throw): Assert that the LWP's
5601 waitstatus is TARGET_WAITKIND_IGNORE.
5602 * remote-utils.c (prepare_resume_reply): Handle
5603 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
5604 * server.c (report_thread_events): New global.
5605 (handle_general_set): Handle QThreadEvents.
5606 (handle_query) <qSupported>: Handle and report QThreadEvents+;
5607 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
5608 TARGET_WAITKIND_THREAD_EXITED.
5609 * server.h (report_thread_events): Declare.
5610
5611 2015-11-30 Pedro Alves <palves@redhat.com>
5612
5613 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
5614 the thread's last_resume_kind was resume_stop.
5615
5616 2015-11-30 Pedro Alves <palves@redhat.com>
5617
5618 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
5619 before returning.
5620
5621 2015-11-30 Pedro Alves <palves@redhat.com>
5622
5623 * server.c (handle_v_requests): Handle vCtrlC.
5624
5625 2015-11-30 Pedro Alves <palves@redhat.com>
5626
5627 * gdbthread.h (find_any_thread_of_pid): Declare.
5628 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
5629 functions.
5630 * server.c (handle_query): If current_thread is NULL, look for
5631 another thread of the selected process.
5632
5633 2015-11-26 Daniel Colascione <dancol@dancol.org>
5634 Simon Marchi <simon.marchi@ericsson.com>
5635
5636 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
5637 * server.c (handle_qxfer_threads_worker): Refactor to include thread
5638 name in reply.
5639 * target.h (struct target_ops) <thread_name>: New field.
5640 (target_thread_name): New macro.
5641
5642 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5643
5644 * regcache.h (regcache_invalidate_pid): Add declaration.
5645 * regcache.c (regcache_invalidate_pid): New function, extracted
5646 from regcache_invalidate.
5647 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
5648 Add trivial documentation comment.
5649 * lynx-low.c: Use regcache_invalidate_pid instead of
5650 regcache_invalidate.
5651
5652 2015-11-23 Joel Brobecker <brobecker@adacore.com>
5653
5654 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
5655 and Elf64_auxv_t if the target is Android.
5656
5657 2015-11-22 Doug Evans <xdje42@gmail.com>
5658
5659 * target.h: #include <sys/types.h>.
5660
5661 2015-11-19 Pedro Alves <palves@redhat.com>
5662
5663 * linux-low.c (linux_process_qsupported): Change prototype.
5664 Adjust.
5665 * linux-low.h (struct linux_target_ops) <process_qsupported>:
5666 Change prototype.
5667 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
5668 and adjust to loop over all features.
5669 * server.c (handle_query) <qSupported>: Adjust to call
5670 target_process_qsupported once, passing it a vector of unprocessed
5671 features.
5672 * target.h (struct target_ops) <process_qsupported>: Change
5673 prototype.
5674 (target_process_qsupported): Adjust.
5675
5676 2015-11-19 Pedro Alves <palves@redhat.com>
5677
5678 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
5679 mode.
5680 * configure: Regenerate.
5681
5682 2015-11-19 Pedro Alves <palves@redhat.com>
5683
5684 * configure: Regenerate.
5685
5686 2015-11-19 Yao Qi <yao.qi@linaro.org>
5687
5688 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
5689 type to uint32_t.
5690
5691 2015-11-19 Yao Qi <yao.qi@linaro.org>
5692
5693 * linux-aarch64-low.c (enum aarch64_operand_type): New.
5694 (struct aarch64_operand): Move enum out.
5695
5696 2015-11-19 Yao Qi <yao.qi@linaro.org>
5697
5698 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
5699 struct user_fpsimd_state *.
5700 (aarch64_store_fpregset): Likewise.
5701
5702 2015-11-19 Yao Qi <yao.qi@linaro.org>
5703
5704 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
5705 struct user_pt_regs *.
5706 (aarch64_store_gregset): Likewise.
5707
5708 2015-11-18 Pedro Alves <palves@redhat.com>
5709
5710 * Makefile.in (all_object_files): Add $IPA_OBJS.
5711
5712 2015-11-17 Pedro Alves <palves@redhat.com>
5713
5714 * win32-low.c (win32_resume): Use gdb_signal_from_host,
5715 GDB_SIGNAL_0 and gdb_signal_to_string.
5716
5717 2015-11-17 Pedro Alves <palves@redhat.com>
5718
5719 * win32-low.c (handle_output_debug_string): Remove parameter.
5720 (win32_kill): Remove our_status local and adjust call to
5721 handle_output_debug_string.
5722 (get_child_debug_event): Adjust call to
5723 handle_output_debug_string.
5724
5725 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5726
5727 * linux-mips-low.c (mips_fill_gregset): Add cast.
5728 (mips_store_gregset): Likewise.
5729 (mips_fill_fpregset): Likewise.
5730 (mips_store_fpregset): Likewise.
5731
5732 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * linux-mips-low.c (mips_add_watchpoint): Rename private to
5735 priv.
5736
5737 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5738
5739 * linux-mips-low.c (mips_linux_new_thread): Change type of
5740 watch_type to enum target_hw_bp_type.
5741
5742 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5743
5744 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
5745 Change return type to arm_hwbp_type.
5746
5747 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5748
5749 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
5750 (arm_store_gregset): Likewise.
5751 * linux-arm-low.c (arm_get_hwcap): Likewise.
5752 (arm_read_description): Likewise.
5753
5754 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5755
5756 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
5757
5758 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5759
5760 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
5761 (ppc_fill_vsxregset): Likewise.
5762 (ppc_store_vsxregset): Likewise.
5763 (ppc_fill_vrregset): Likewise.
5764 (ppc_store_vrregset): Likewise.
5765 (ppc_fill_evrregset): Likewise.
5766 (ppc_store_evrregset): Likewise.
5767
5768 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5769
5770 * linux-ppc-low.c (ppc_usrregs_info): Remove
5771 forward-declaration.
5772 (ppc_arch_setup): Move lower in file.
5773
5774 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
5775
5776 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
5777 (ps_pdwrite): Likewise.
5778
5779 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
5780
5781 * linux-arm-low.c (arm_new_thread): Move pointer dereference
5782 to after assert checks.
5783
5784 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * proc-service.c (ps_pdread): Add/adjust casts.
5787 (ps_pdwrite): Add/adjust casts.
5788
5789 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5790
5791 * server.c (handle_search_memory_1): Cast return value of
5792 memmem.
5793
5794 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * server.c (write_qxfer_response): Change type of data to
5797 gdb_byte *.
5798
5799 2015-10-29 Pedro Alves <palves@redhat.com>
5800
5801 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
5802
5803 2015-10-29 Pedro Alves <palves@redhat.com>
5804
5805 * tracepoint.c (clear_installed_tracepoints): Add casts.
5806
5807 2015-10-29 Pedro Alves <palves@redhat.com>
5808
5809 * server.c (handle_v_cont, process_serial_event): Add enum
5810 gdb_signal casts to signal parsing code.
5811
5812 2015-10-29 Pedro Alves <palves@redhat.com>
5813
5814 * linux-low.h (NULL_REGSET): Define.
5815 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5816 * linux-arm-low.c (arm_regsets): Likewise.
5817 * linux-crisv32-low.c (cris_regsets): Likewise.
5818 * linux-m68k-low.c (m68k_regsets): Likewise.
5819 * linux-mips-low.c (mips_regsets): Likewise.
5820 * linux-nios2-low.c (nios2_regsets): Likewise.
5821 * linux-ppc-low.c (ppc_regsets): Likewise.
5822 * linux-s390-low.c (s390_regsets): Likewise.
5823 * linux-sh-low.c (sh_regsets): Likewise.
5824 * linux-sparc-low.c (sparc_regsets): Likewise.
5825 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5826 * linux-tile-low.c (tile_regsets): Likewise.
5827 * linux-x86-low.c (x86_regsets): Likewise.
5828 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5829
5830 2015-10-29 Pedro Alves <palves@redhat.com>
5831
5832 * linux-low.h (NULL_REGSET): Define.
5833 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
5834 * linux-arm-low.c (arm_regsets): Likewise.
5835 * linux-crisv32-low.c (cris_regsets): Likewise.
5836 * linux-m68k-low.c (m68k_regsets): Likewise.
5837 * linux-mips-low.c (mips_regsets): Likewise.
5838 * linux-nios2-low.c (nios2_regsets): Likewise.
5839 * linux-ppc-low.c (ppc_regsets): Likewise.
5840 * linux-s390-low.c (s390_regsets): Likewise.
5841 * linux-sh-low.c (sh_regsets): Likewise.
5842 * linux-sparc-low.c (sparc_regsets): Likewise.
5843 * linux-tic6x-low.c (tic6x_regsets): Likewise.
5844 * linux-tile-low.c (tile_regsets): Likewise.
5845 * linux-x86-low.c (x86_regsets): Likewise.
5846 * linux-xtensa-low.c (xtensa_regsets): Likewise.
5847
5848 2015-10-26 Doug Evans <dje@google.com>
5849
5850 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
5851
5852 2015-10-26 Doug Evans <dje@google.com>
5853
5854 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
5855
5856 2015-10-26 Doug Evans <dje@google.com>
5857
5858 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
5859 for debug_printf.
5860 (attach_thread, find_new_threads_callback): Ditto.
5861
5862 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5863
5864 * mem-break.h (set_breakpoint_data): Remove.
5865
5866 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5867
5868 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
5869 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5870 (initialize_low): Remove set_breakpoint_data call.
5871 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
5872 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
5873 (initialize_low): Remove set_breakpoint_data call.
5874 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
5875 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
5876 (initialize_low): Remove set_breakpoint_data call.
5877
5878 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
5879
5880 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
5881 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
5882 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
5883 * target.h (target_breakpoint_kind_from_pc): New macro.
5884
5885 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
5886
5887 * linux-low.c (default_breakpoint_kind_from_pc): New function.
5888 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
5889 the default breakpoint kind.
5890
5891 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5892
5893 * linux-arm-low.c (arm_supports_z_point_type): Add software
5894 breakpoint support.
5895
5896 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5897
5898 * linux-arm-low.c: Refactor breakpoint definitions.
5899 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
5900 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
5901
5902 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5903
5904 * Makefile.in: Add arm.c/o.
5905 * configure.srv: Likewise.
5906 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
5907 (arm_breakpoint_kind_from_pc): New function.
5908 (arm_sw_breakpoint_from_kind): Return proper kind.
5909 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
5910
5911 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5912
5913 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
5914 removal.
5915 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
5916 (struct raw_breakpoint) <size>: Remove.
5917 (struct raw_breakpoint) <kind>: Add.
5918 (bp_size): New function.
5919 (bp_opcode): Likewise.
5920 (find_raw_breakpoint_at): Adjust for kind.
5921 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
5922 (remove_memory_breakpoint): Adjust for kind call bp_size.
5923 (set_raw_breakpoint_at): Adjust for kind.
5924 (set_breakpoint): Likewise.
5925 (set_breakpoint_at): Call breakpoint_kind_from_pc.
5926 (delete_raw_breakpoint): Adjust for kind.
5927 (delete_breakpoint): Likewise.
5928 (find_gdb_breakpoint): Likewise.
5929 (set_gdb_breakpoint_1): Likewise.
5930 (set_gdb_breakpoint): Likewise.
5931 (delete_gdb_breakpoint_1): Likewise.
5932 (delete_gdb_breakpoint): Likewise.
5933 (uninsert_raw_breakpoint): Likewise.
5934 (reinsert_raw_breakpoint): Likewise.
5935 (set_breakpoint_data): Remove.
5936 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
5937 (check_mem_read): Adjust for kind call bp_size.
5938 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
5939 (clone_one_breakpoint): Adjust for kind.
5940 * mem-break.h (set_gdb_breakpoint): Likewise.
5941 (delete_gdb_breakpoint): Likewise.
5942 * server.c (process_serial_event): Likewise.
5943
5944 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
5945
5946 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
5947 (struct linux_target_ops) <breakpoint>: Remove.
5948 (struct linux_target_ops) <breakpoint_len>: Remove.
5949 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5950 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5951 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
5952 (arm_sw_breakpoint_from_kind): New function.
5953 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
5954 (struct linux_target_ops) <breakpoint>: Remove.
5955 (struct linux_target_ops) <breakpoint_len>: Remove.
5956 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5957 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5958 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
5959 (struct linux_target_ops) <breakpoint>: Remove.
5960 (struct linux_target_ops) <breakpoint_len>: Remove.
5961 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5962 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5963 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
5964 (struct linux_target_ops) <breakpoint>: Remove.
5965 (struct linux_target_ops) <breakpoint_len>: Remove.
5966 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5967 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5968 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
5969 and sw_breakpoint_from_kind to increment the pc.
5970 (linux_breakpoint_kind_from_pc): New function.
5971 (linux_sw_breakpoint_from_kind): New function.
5972 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
5973 (initialize_low): Call breakpoint_kind_from_pc and
5974 sw_breakpoint_from_kind to replace breakpoint_data/len.
5975 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
5976 New field.
5977 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
5978 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
5979 (struct linux_target_ops) <breakpoint>: Remove.
5980 (struct linux_target_ops) <breakpoint_len>: Remove.
5981 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5982 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5983 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
5984 (struct linux_target_ops) <breakpoint>: Remove.
5985 (struct linux_target_ops) <breakpoint_len>: Remove.
5986 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5987 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5988 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
5989 (struct linux_target_ops) <breakpoint>: Remove.
5990 (struct linux_target_ops) <breakpoint_len>: Remove.
5991 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5992 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5993 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
5994 (struct linux_target_ops) <breakpoint>: Remove.
5995 (struct linux_target_ops) <breakpoint_len>: Remove.
5996 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
5997 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
5998 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
5999 (struct linux_target_ops) <breakpoint>: Remove.
6000 (struct linux_target_ops) <breakpoint_len>: Remove.
6001 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6002 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6003 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6004 (struct linux_target_ops) <breakpoint>: Remove.
6005 (struct linux_target_ops) <breakpoint_len>: Remove.
6006 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6007 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6008 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6009 (struct linux_target_ops) <breakpoint>: Remove.
6010 (struct linux_target_ops) <breakpoint_len>: Remove.
6011 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6012 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6013 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6014 (struct linux_target_ops) <breakpoint>: Remove.
6015 (struct linux_target_ops) <breakpoint_len>: Remove.
6016 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6017 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6018 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6019 (struct linux_target_ops) <breakpoint>: Remove.
6020 (struct linux_target_ops) <breakpoint_len>: Remove.
6021 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6022 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6023 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6024 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6025 (struct linux_target_ops) <breakpoint>: Remove.
6026 (struct linux_target_ops) <breakpoint_len>: Remove.
6027 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6028 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6029 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6030 (struct linux_target_ops) <breakpoint>: Remove.
6031 (struct linux_target_ops) <breakpoint_len>: Remove.
6032 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6033 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6034
6035 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6036
6037 * linux-cris-low.c (cris_get_pc): Remove void arg.
6038
6039 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6040
6041 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6042 variable name.
6043
6044 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6045
6046 * inferiors.c (thread_pid_matches_callback): New function.
6047 (find_thread_process): New function.
6048 (remove_thread): Reset current_thread.
6049 (remove_process): Assert threads have been removed first.
6050
6051 2015-10-15 Yao Qi <yao.qi@linaro.org>
6052
6053 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6054 if it is 3.
6055 (aarch64_remove_point): Likewise.
6056 * regcache.c (regcache_register_size): New function.
6057
6058 2015-10-12 Yao Qi <yao.qi@linaro.org>
6059
6060 * linux-aarch64-low.c: Update all callers as emit_load_store
6061 is renamed to aarch64_emit_load_store.
6062
6063 2015-10-12 Yao Qi <yao.qi@linaro.org>
6064
6065 * linux-aarch64-low.c: Update all callers of function renaming
6066 from emit_insn to aarch64_emit_insn.
6067
6068 2015-10-12 Yao Qi <yao.qi@linaro.org>
6069
6070 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6071 arch/aarch64-insn.h.
6072 (struct aarch64_memory_operand): Likewise.
6073 (ENCODE): Likewise.
6074 (emit_insn): Move to arch/aarch64-insn.c.
6075 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6076 (emit_load_store): Move to arch/aarch64-insn.c.
6077 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6078 (can_encode_int32): Remove.
6079
6080 2015-10-12 Yao Qi <yao.qi@linaro.org>
6081
6082 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6083 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6084 (aarch64_relocate_instruction): Likewise.
6085 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6086 (struct aarch64_insn_visitor): Likewise.
6087
6088 2015-10-12 Yao Qi <yao.qi@linaro.org>
6089
6090 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6091 (struct aarch64_insn_visitor): New.
6092 (struct aarch64_insn_relocation_data): New.
6093 (aarch64_ftrace_insn_reloc_b): New function.
6094 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6095 (aarch64_ftrace_insn_reloc_cb): Likewise.
6096 (aarch64_ftrace_insn_reloc_tb): Likewise.
6097 (aarch64_ftrace_insn_reloc_adr): Likewise.
6098 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6099 (aarch64_ftrace_insn_reloc_others): Likewise.
6100 (visitor): New.
6101 (aarch64_relocate_instruction): Use visitor.
6102
6103 2015-10-12 Yao Qi <yao.qi@linaro.org>
6104
6105 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6106 int. Add argument buf.
6107 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6108 aarch64_relocate_instruction.
6109
6110 2015-10-12 Yao Qi <yao.qi@linaro.org>
6111
6112 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6113 argument insn. Remove local variable insn. Don't call
6114 target_read_uint32.
6115 (aarch64_install_fast_tracepoint_jump_pad): Call
6116 target_read_uint32.
6117
6118 2015-09-30 Yao Qi <yao.qi@linaro.org>
6119
6120 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6121 (emit_load_store_pair): Likewise.
6122
6123 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6124
6125 * dll.c (match_dll): Add cast(s).
6126 (unloaded_dll): Likewise.
6127 * linux-low.c (second_thread_of_pid_p): Likewise.
6128 (delete_lwp_callback): Likewise.
6129 (count_events_callback): Likewise.
6130 (select_event_lwp_callback): Likewise.
6131 (linux_set_resume_request): Likewise.
6132 * server.c (accumulate_file_name_length): Likewise.
6133 (emit_dll_description): Likewise.
6134 (handle_qxfer_threads_worker): Likewise.
6135 (visit_actioned_threads): Likewise.
6136 * thread-db.c (any_thread_of): Likewise.
6137 * tracepoint.c (same_process_p): Likewise.
6138 (match_blocktype): Likewise.
6139 (build_traceframe_info_xml): Likewise.
6140
6141 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6142
6143 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6144 assignment.
6145 (gdb_unparse_agent_expr): Likewise.
6146 * hostio.c (require_data): Likewise.
6147 (handle_pread): Likewise.
6148 * linux-low.c (disable_regset): Likewise.
6149 (fetch_register): Likewise.
6150 (store_register): Likewise.
6151 (get_dynamic): Likewise.
6152 (linux_qxfer_libraries_svr4): Likewise.
6153 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6154 (set_fast_tracepoint_jump): Likewise.
6155 (uninsert_fast_tracepoint_jumps_at): Likewise.
6156 (reinsert_fast_tracepoint_jumps_at): Likewise.
6157 (validate_inserted_breakpoint): Likewise.
6158 (clone_agent_expr): Likewise.
6159 * regcache.c (init_register_cache): Likewise.
6160 * remote-utils.c (putpkt_binary_1): Likewise.
6161 (decode_M_packet): Likewise.
6162 (decode_X_packet): Likewise.
6163 (look_up_one_symbol): Likewise.
6164 (relocate_instruction): Likewise.
6165 (monitor_output): Likewise.
6166 * server.c (handle_search_memory): Likewise.
6167 (handle_qxfer_exec_file): Likewise.
6168 (handle_qxfer_libraries): Likewise.
6169 (handle_qxfer): Likewise.
6170 (handle_query): Likewise.
6171 (handle_v_cont): Likewise.
6172 (handle_v_run): Likewise.
6173 (captured_main): Likewise.
6174 * target.c (write_inferior_memory): Likewise.
6175 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6176 * tracepoint.c (init_trace_buffer): Likewise.
6177 (add_tracepoint_action): Likewise.
6178 (add_traceframe): Likewise.
6179 (add_traceframe_block): Likewise.
6180 (cmd_qtdpsrc): Likewise.
6181 (cmd_qtdv): Likewise.
6182 (cmd_qtstatus): Likewise.
6183 (response_source): Likewise.
6184 (response_tsv): Likewise.
6185 (cmd_qtnotes): Likewise.
6186 (gdb_collect): Likewise.
6187 (initialize_tracepoint): Likewise.
6188
6189 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6190
6191 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6192 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6193 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6194 <NOP>: New.
6195 (enum aarch64_condition_codes): New enum.
6196 (w0): New static global.
6197 (fp): Likewise.
6198 (lr): Likewise.
6199 (struct aarch64_memory_operand) <type>: New
6200 MEMORY_OPERAND_POSTINDEX type.
6201 (postindex_memory_operand): New helper function.
6202 (emit_ret): New function.
6203 (emit_load_store_pair): New function, factored out of emit_stp
6204 with support for MEMORY_OPERAND_POSTINDEX.
6205 (emit_stp): Rewrite using emit_load_store_pair.
6206 (emit_ldp): New function.
6207 (emit_load_store): Likewise.
6208 (emit_ldr): Mention post-index instruction in comment.
6209 (emit_ldrh): New function.
6210 (emit_ldrb): New function.
6211 (emit_ldrsw): Mention post-index instruction in comment.
6212 (emit_str): Likewise.
6213 (emit_subs): New function.
6214 (emit_cmp): Likewise.
6215 (emit_and): Likewise.
6216 (emit_orr): Likewise.
6217 (emit_orn): Likewise.
6218 (emit_eor): Likewise.
6219 (emit_mvn): Likewise.
6220 (emit_lslv): Likewise.
6221 (emit_lsrv): Likewise.
6222 (emit_asrv): Likewise.
6223 (emit_mul): Likewise.
6224 (emit_sbfm): Likewise.
6225 (emit_sbfx): Likewise.
6226 (emit_ubfm): Likewise.
6227 (emit_ubfx): Likewise.
6228 (emit_csinc): Likewise.
6229 (emit_cset): Likewise.
6230 (emit_nop): Likewise.
6231 (emit_ops_insns): New helper function.
6232 (emit_pop): Likewise.
6233 (emit_push): Likewise.
6234 (aarch64_emit_prologue): New function.
6235 (aarch64_emit_epilogue): Likewise.
6236 (aarch64_emit_add): Likewise.
6237 (aarch64_emit_sub): Likewise.
6238 (aarch64_emit_mul): Likewise.
6239 (aarch64_emit_lsh): Likewise.
6240 (aarch64_emit_rsh_signed): Likewise.
6241 (aarch64_emit_rsh_unsigned): Likewise.
6242 (aarch64_emit_ext): Likewise.
6243 (aarch64_emit_log_not): Likewise.
6244 (aarch64_emit_bit_and): Likewise.
6245 (aarch64_emit_bit_or): Likewise.
6246 (aarch64_emit_bit_xor): Likewise.
6247 (aarch64_emit_bit_not): Likewise.
6248 (aarch64_emit_equal): Likewise.
6249 (aarch64_emit_less_signed): Likewise.
6250 (aarch64_emit_less_unsigned): Likewise.
6251 (aarch64_emit_ref): Likewise.
6252 (aarch64_emit_if_goto): Likewise.
6253 (aarch64_emit_goto): Likewise.
6254 (aarch64_write_goto_address): Likewise.
6255 (aarch64_emit_const): Likewise.
6256 (aarch64_emit_call): Likewise.
6257 (aarch64_emit_reg): Likewise.
6258 (aarch64_emit_pop): Likewise.
6259 (aarch64_emit_stack_flush): Likewise.
6260 (aarch64_emit_zero_ext): Likewise.
6261 (aarch64_emit_swap): Likewise.
6262 (aarch64_emit_stack_adjust): Likewise.
6263 (aarch64_emit_int_call_1): Likewise.
6264 (aarch64_emit_void_call_2): Likewise.
6265 (aarch64_emit_eq_goto): Likewise.
6266 (aarch64_emit_ne_goto): Likewise.
6267 (aarch64_emit_lt_goto): Likewise.
6268 (aarch64_emit_le_goto): Likewise.
6269 (aarch64_emit_gt_goto): Likewise.
6270 (aarch64_emit_ge_got): Likewise.
6271 (aarch64_emit_ops_impl): New static global variable.
6272 (aarch64_emit_ops): New target function, return
6273 &aarch64_emit_ops_impl.
6274 (struct linux_target_ops): Install it.
6275
6276 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6277
6278 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6279 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6280 aarch64-ipa.o.
6281 * linux-aarch64-ipa.c: New file.
6282 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6283 and endian.h.
6284 (aarch64_get_thread_area): New target method.
6285 (extract_signed_bitfield): New helper function.
6286 (aarch64_decode_ldr_literal): New function.
6287 (enum aarch64_opcodes): New enum.
6288 (struct aarch64_register): New struct.
6289 (struct aarch64_operand): New struct.
6290 (x0): New static global.
6291 (x1): Likewise.
6292 (x2): Likewise.
6293 (x3): Likewise.
6294 (x4): Likewise.
6295 (w2): Likewise.
6296 (ip0): Likewise.
6297 (sp): Likewise.
6298 (xzr): Likewise.
6299 (aarch64_register): New helper function.
6300 (register_operand): Likewise.
6301 (immediate_operand): Likewise.
6302 (struct aarch64_memory_operand): New struct.
6303 (offset_memory_operand): New helper function.
6304 (preindex_memory_operand): Likewise.
6305 (enum aarch64_system_control_registers): New enum.
6306 (ENCODE): New macro.
6307 (emit_insn): New helper function.
6308 (emit_b): New function.
6309 (emit_bcond): Likewise.
6310 (emit_cb): Likewise.
6311 (emit_tb): Likewise.
6312 (emit_blr): Likewise.
6313 (emit_stp): Likewise.
6314 (emit_ldp_q_offset): Likewise.
6315 (emit_stp_q_offset): Likewise.
6316 (emit_load_store): Likewise.
6317 (emit_ldr): Likewise.
6318 (emit_ldrsw): Likewise.
6319 (emit_str): Likewise.
6320 (emit_ldaxr): Likewise.
6321 (emit_stxr): Likewise.
6322 (emit_stlr): Likewise.
6323 (emit_data_processing_reg): Likewise.
6324 (emit_data_processing): Likewise.
6325 (emit_add): Likewise.
6326 (emit_sub): Likewise.
6327 (emit_mov): Likewise.
6328 (emit_movk): Likewise.
6329 (emit_mov_addr): Likewise.
6330 (emit_mrs): Likewise.
6331 (emit_msr): Likewise.
6332 (emit_sevl): Likewise.
6333 (emit_wfe): Likewise.
6334 (append_insns): Likewise.
6335 (can_encode_int32_in): New helper function.
6336 (aarch64_relocate_instruction): New function.
6337 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6338 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6339 (struct linux_target_ops): Install aarch64_get_thread_area,
6340 aarch64_install_fast_tracepoint_jump_pad and
6341 aarch64_get_min_fast_tracepoint_insn_len.
6342
6343 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6344
6345 * Makefile.in (aarch64-insn.o): New rule.
6346 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6347
6348 2015-09-21 Yao Qi <yao.qi@linaro.org>
6349
6350 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6351
6352 2015-09-21 Yao Qi <yao.qi@linaro.org>
6353
6354 * tracepoint.c (max_jump_pad_size): Remove.
6355
6356 2015-09-18 Yao Qi <yao.qi@linaro.org>
6357
6358 * linux-aarch64-low.c: Don't include sys/uio.h.
6359 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6360
6361 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
6362
6363 * tracepoint.c (eval_result_type): Change prototype.
6364 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6365
6366 2015-09-15 Pedro Alves <palves@redhat.com>
6367
6368 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6369 Check whether to report exec events instead of checking whether
6370 multiprocess is enabled.
6371
6372 2015-09-15 Pedro Alves <palves@redhat.com>
6373
6374 PR remote/18965
6375 * remote-utils.c (prepare_resume_reply): Merge
6376 TARGET_WAITKIND_VFORK_DONE switch case with the
6377 TARGET_WAITKIND_FORKED case.
6378
6379 2015-09-15 Yao Qi <yao.qi@linaro.org>
6380
6381 * server.c (handle_query): Check string comparison using
6382 "else if" instead of "if".
6383
6384 2015-09-15 Yao Qi <yao.qi@linaro.org>
6385
6386 * server.c (vCont_supported): New global variable.
6387 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6388 matches. Append ";vContSupported+" to own_buf.
6389 (handle_v_requests): Append ";s;S" to own_buf if target supports
6390 hardware single step or vCont_supported is false.
6391 (capture_main): Set vCont_supported to zero.
6392
6393 2015-09-15 Yao Qi <yao.qi@linaro.org>
6394
6395 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6396 it to ...
6397 (linux_supports_hardware_single_step): ... New function.
6398 (linux_target_ops): Update.
6399 * lynx-low.c (lynx_target_ops): Set field
6400 supports_hardware_single_step to target_can_do_hardware_single_step.
6401 * nto-low.c (nto_target_ops): Likewise.
6402 * spu-low.c (spu_target_ops): Likewise.
6403 * win32-low.c (win32_target_ops): Likewise.
6404 * target.c (target_can_do_hardware_single_step): New function.
6405 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6406 Remove. <supports_hardware_single_step>: New field.
6407 (target_supports_conditional_breakpoints): Remove.
6408 (target_supports_hardware_single_step): New macro.
6409 (target_can_do_hardware_single_step): Declare.
6410 * server.c (handle_query): Use target_supports_hardware_single_step
6411 instead of target_supports_conditional_breakpoints.
6412
6413 2015-09-15 Yao Qi <yao.qi@linaro.org>
6414
6415 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6416 function.
6417 (struct linux_target_ops the_low_target): Install
6418 aarch64_linux_siginfo_fixup.
6419
6420 2015-09-11 Don Breazeal <donb@codesourcery.com>
6421 Luis Machado <lgustavo@codesourcery.com>
6422
6423 * linux-low.c (linux_mourn): Static declaration.
6424 (linux_arch_setup): Move in front of
6425 handle_extended_wait.
6426 (linux_arch_setup_thread): New function.
6427 (handle_extended_wait): Handle exec events. Call
6428 linux_arch_setup_thread. Make event_lwp argument a
6429 pointer-to-a-pointer.
6430 (check_zombie_leaders): Do not check stopped threads.
6431 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6432 (linux_low_filter_event): Add lwp and thread for exec'ing
6433 non-leader thread if leader thread has been deleted.
6434 Refactor code into linux_arch_setup_thread and call it.
6435 Pass child lwp pointer by reference to handle_extended_wait.
6436 (linux_wait_for_event_filtered): Update comment.
6437 (linux_wait_1): Prevent clobbering exec event status.
6438 (linux_supports_exec_events): New function.
6439 (linux_target_ops) <supports_exec_events>: Initialize new member.
6440 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6441 new member.
6442 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6443 * server.c (report_exec_events): New global variable.
6444 (handle_query): Handle qSupported query for exec-events feature.
6445 (captured_main): Initialize report_exec_events.
6446 * server.h (report_exec_events): Declare new global variable.
6447 * target.h (struct target_ops) <supports_exec_events>: New
6448 member.
6449 (target_supports_exec_events): New macro.
6450 * win32-low.c (win32_target_ops) <supports_exec_events>:
6451 Initialize new member.
6452
6453 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6454
6455 * linux-low.c (linux_low_enable_btrace): Remove.
6456 (linux_target_ops): Replace linux_low_enable_btrace with
6457 linux_enable_btrace.
6458
6459 2015-09-03 Yao Qi <yao.qi@linaro.org>
6460
6461 * linux-aarch64-low.c (aarch64_insert_point): Call
6462 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6463 returns true.
6464
6465 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6466
6467 * linux-low.c (check_stopped_by_breakpoint): Use
6468 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6469
6470 2015-08-27 Pedro Alves <palves@redhat.com>
6471
6472 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6473
6474 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6477 the XNEW-family equivalent.
6478 (compile_bytecodes): Likewise.
6479 * dll.c (loaded_dll): Likewise.
6480 * event-loop.c (append_callback_event): Likewise.
6481 (create_file_handler): Likewise.
6482 (create_file_event): Likewise.
6483 * hostio.c (handle_open): Likewise.
6484 * inferiors.c (add_thread): Likewise.
6485 (add_process): Likewise.
6486 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6487 * linux-arm-low.c (arm_new_process): Likewise.
6488 (arm_new_thread): Likewise.
6489 * linux-low.c (add_to_pid_list): Likewise.
6490 (linux_add_process): Likewise.
6491 (handle_extended_wait): Likewise.
6492 (add_lwp): Likewise.
6493 (enqueue_one_deferred_signal): Likewise.
6494 (enqueue_pending_signal): Likewise.
6495 (linux_resume_one_lwp_throw): Likewise.
6496 (linux_resume_one_thread): Likewise.
6497 (linux_read_memory): Likewise.
6498 (linux_write_memory): Likewise.
6499 * linux-mips-low.c (mips_linux_new_process): Likewise.
6500 (mips_linux_new_thread): Likewise.
6501 (mips_add_watchpoint): Likewise.
6502 * linux-x86-low.c (initialize_low_arch): Likewise.
6503 * lynx-low.c (lynx_add_process): Likewise.
6504 * mem-break.c (set_raw_breakpoint_at): Likewise.
6505 (set_breakpoint): Likewise.
6506 (add_condition_to_breakpoint): Likewise.
6507 (add_commands_to_breakpoint): Likewise.
6508 (clone_agent_expr): Likewise.
6509 (clone_one_breakpoint): Likewise.
6510 * regcache.c (new_register_cache): Likewise.
6511 * remote-utils.c (look_up_one_symbol): Likewise.
6512 * server.c (queue_stop_reply): Likewise.
6513 (start_inferior): Likewise.
6514 (queue_stop_reply_callback): Likewise.
6515 (handle_target_event): Likewise.
6516 * spu-low.c (fetch_ppc_memory): Likewise.
6517 (store_ppc_memory): Likewise.
6518 * target.c (set_target_ops): Likewise.
6519 * thread-db.c (thread_db_load_search): Likewise.
6520 (try_thread_db_load_1): Likewise.
6521 * tracepoint.c (add_tracepoint): Likewise.
6522 (add_tracepoint_action): Likewise.
6523 (create_trace_state_variable): Likewise.
6524 (cmd_qtdpsrc): Likewise.
6525 (cmd_qtro): Likewise.
6526 (add_while_stepping_state): Likewise.
6527 * win32-low.c (child_add_thread): Likewise.
6528 (get_image_name): Likewise.
6529
6530 2015-08-25 Yao Qi <yao.qi@linaro.org>
6531
6532 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
6533
6534 2015-08-25 Yao Qi <yao.qi@linaro.org>
6535
6536 * Makefile.in (aarch64-linux.o): New rule.
6537 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
6538 srv_tgtobj.
6539 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
6540 (aarch64_init_debug_reg_state): Make it extern.
6541 (aarch64_linux_prepare_to_resume): Remove.
6542
6543 2015-08-25 Yao Qi <yao.qi@linaro.org>
6544
6545 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
6546 lwp_arch_private_info and ptid_of_lwp.
6547
6548 2015-08-25 Yao Qi <yao.qi@linaro.org>
6549
6550 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
6551 Find proc_info by find_process_pid. All callers updated.
6552
6553 2015-08-25 Yao Qi <yao.qi@linaro.org>
6554
6555 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
6556 Remove.
6557 (debug_reg_change_callback): Remove.
6558 (aarch64_notify_debug_reg_change): Remove.
6559
6560 2015-08-25 Yao Qi <yao.qi@linaro.org>
6561
6562 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
6563 Call current_lwp_ptid.
6564
6565 2015-08-25 Yao Qi <yao.qi@linaro.org>
6566
6567 * linux-aarch64-low.c (debug_reg_change_callback): Use
6568 debug_printf.
6569
6570 2015-08-25 Yao Qi <yao.qi@linaro.org>
6571
6572 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
6573
6574 2015-08-25 Yao Qi <yao.qi@linaro.org>
6575
6576 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
6577
6578 2015-08-25 Yao Qi <yao.qi@linaro.org>
6579
6580 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
6581 the code.
6582
6583 2015-08-25 Yao Qi <yao.qi@linaro.org>
6584
6585 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
6586 Remove.
6587 (debug_reg_change_callback): Remove argument entry and add argument
6588 lwp. Remove local variable thread. Don't print thread id in the
6589 debugging output. Don't check whether pid of thread equals to pid.
6590 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
6591 iterate_over_lwps instead find_inferior.
6592
6593 2015-08-24 Pedro Alves <palves@redhat.com>
6594
6595 * inferiors.c (get_first_process): New function.
6596 * inferiors.h (get_first_process): New declaration.
6597 * remote-utils.c (read_ptid): Default to the first process in the
6598 list, instead of to the current thread's process.
6599
6600 2015-08-24 Pedro Alves <palves@redhat.com>
6601
6602 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
6603 * event-loop.c: Likewise.
6604 * remote-utils.c: Likewise.
6605 * tracepoint.c: Likewise.
6606
6607 2015-08-24 Pedro Alves <palves@redhat.com>
6608
6609 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
6610 ptid_get_lwp.
6611
6612 2015-08-21 Pedro Alves <palves@redhat.com>
6613
6614 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
6615 instead of literal 1.
6616
6617 2015-08-21 Pedro Alves <palves@redhat.com>
6618
6619 * tdesc.c (default_description): Explicitly zero-initialize.
6620
6621 2015-08-21 Pedro Alves <palves@redhat.com>
6622
6623 PR gdb/18749
6624 * inferiors.c (remove_thread): Discard any pending stop reply for
6625 this thread.
6626 * server.c (remove_all_on_match_pid): Rename to ...
6627 (remove_all_on_match_ptid): ... this. Work with a filter ptid
6628 instead of a pid.
6629 (discard_queued_stop_replies): Change parameter to a ptid. Now
6630 extern.
6631 (handle_v_kill, kill_inferior_callback, captured_main)
6632 (process_serial_event): Adjust.
6633 * server.h (discard_queued_stop_replies): Declare.
6634
6635 2015-08-21 Pedro Alves <palves@redhat.com>
6636
6637 * linux-low.c (wait_for_sigstop): Always switch to no thread
6638 selected if the previously current thread dies.
6639 * lynx-low.c (lynx_request_interrupt): Use the first thread's
6640 process instead of the current thread's.
6641 * remote-utils.c (input_interrupt): Don't check if there's no
6642 current thread.
6643 * server.c (gdb_read_memory, gdb_write_memory): If setting the
6644 current thread to the general thread fails, error out.
6645 (handle_qxfer_auxv, handle_qxfer_libraries)
6646 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
6647 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
6648 (handle_query): Check if there's a thread selected instead of
6649 checking whether there's any thread in the thread list.
6650 (handle_qxfer_threads, handle_qxfer_btrace)
6651 (handle_qxfer_btrace_conf): Don't error out early if there's no
6652 thread in the thread list.
6653 (handle_v_cont, myresume): Don't set the current thread to the
6654 continue thread.
6655 (process_serial_event) <Hg handling>: Also set thread_id if the
6656 previous general thread is still alive.
6657 (process_serial_event) <g/G handling>: If setting the current
6658 thread to the general thread fails, error out.
6659 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
6660 thread's lwp instead of the current thread's.
6661 * target.c (set_desired_thread): If the desired thread was not
6662 found, leave the current thread pointing to NULL. Return an int
6663 (boolean) indicating success.
6664 * target.h (set_desired_thread): Change return type to int.
6665
6666 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
6667
6668 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
6669 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
6670 #includes.
6671 (ps_get_thread_area): New function.
6672
6673 2015-08-19 Gary Benson <gbenson@redhat.com>
6674
6675 * hostio.c (handle_pread): Do not attempt to read more data
6676 than hostio_reply_with_data can fit in a packet.
6677
6678 2015-08-18 Joel Brobecker <brobecker@adacore.com>
6679
6680 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
6681
6682 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
6683
6684 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
6685
6686 2015-08-06 Pedro Alves <palves@redhat.com>
6687
6688 * tracepoint.c (expr_eval_result): Now an int.
6689
6690 2015-08-06 Pedro Alves <palves@redhat.com>
6691
6692 * gdbthread.h (struct regcache): Forward declare.
6693 (struct thread_info) <regcache_data>: Now a struct regcache
6694 pointer.
6695 * inferiors.c (inferior_regcache_data)
6696 (set_inferior_regcache_data): Now work with struct regcache
6697 pointers.
6698 * inferiors.h (struct regcache): Forward declare.
6699 (inferior_regcache_data, set_inferior_regcache_data): Now work
6700 with struct regcache pointers.
6701 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
6702 (free_register_cache_thread): Remove struct regcache pointer
6703 casts.
6704
6705 2015-08-06 Pedro Alves <palves@redhat.com>
6706
6707 * server.c (captured_main): On error, print the exception message
6708 to stderr, and if run_once is set, throw a quit.
6709
6710 2015-08-06 Pedro Alves <palves@redhat.com>
6711
6712 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
6713 the current thread.
6714
6715 2015-08-06 Pedro Alves <palves@redhat.com>
6716
6717 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
6718 reading beyond the passed in buffer length.
6719
6720 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6721
6722 * tracepoint.c (symbol_list) <required>: Remove.
6723
6724 2015-08-06 Pedro Alves <palves@redhat.com>
6725
6726 * linux-low.c (handle_extended_wait): Set the fork child's suspend
6727 count if stopping and suspending threads.
6728 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
6729 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
6730 (linux_detach): Complete an ongoing step-over.
6731 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
6732 throughout.
6733 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
6734 (linux_wait_1): If passing a signal to the inferior after
6735 finishing a step-over, unsuspend and re-resume all lwps. If we
6736 see a single-step event but the thread should be continuing, don't
6737 pass the trap to gdb.
6738 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
6739 internal_error instead of gdb_assert.
6740 (enqueue_pending_signal): New function.
6741 (check_ptrace_stopped_lwp_gone): Add debug output.
6742 (start_step_over): Use internal_error instead of gdb_assert.
6743 (complete_ongoing_step_over): New function.
6744 (linux_resume_one_thread): Don't resume a suspended thread.
6745 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
6746 it stepping.
6747
6748 2015-08-06 Pedro Alves <palves@redhat.com>
6749
6750 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
6751 (linux_thread_alive): Use lwp_is_marked_dead.
6752 (extended_event_reported): Delete.
6753 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
6754 instead of extended_event_reported.
6755 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
6756 as well.
6757 (lwp_is_marked_dead): New function.
6758 (lwp_running): Use lwp_is_marked_dead.
6759 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
6760 comment.
6761
6762 2015-08-06 Pedro Alves <palves@redhat.com>
6763
6764 * linux-low.c (linux_wait_1): Move fork event output out of the
6765 !report_to_gdb check. Pass event_child->waitstatus to
6766 target_waitstatus_to_string instead of ourstatus.
6767
6768 2015-08-04 Yao Qi <yao.qi@linaro.org>
6769
6770 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
6771 if current_thread is 32 bit.
6772
6773 2015-08-04 Yao Qi <yao.qi@linaro.org>
6774
6775 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6776 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6777 * server.c (extended_protocol): Remove "static".
6778 * server.h (extended_protocol): Declare it.
6779
6780 2015-08-04 Yao Qi <yao.qi@linaro.org>
6781
6782 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
6783 both aarch64 and aarch32.
6784 (aarch64_set_pc): Likewise.
6785
6786 2015-08-04 Yao Qi <yao.qi@linaro.org>
6787
6788 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
6789 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
6790 arm-with-neon.xml to srv_xmlfiles.
6791 * linux-aarch64-low.c: Include linux-aarch32-low.h.
6792 (is_64bit_tdesc): New function.
6793 (aarch64_linux_read_description): New function.
6794 (aarch64_arch_setup): Call aarch64_linux_read_description.
6795 (regs_info): Rename to regs_info_aarch64.
6796 (aarch64_regs_info): Return right regs_info.
6797 (initialize_low_arch): Call initialize_low_arch_aarch32.
6798
6799 2015-08-04 Yao Qi <yao.qi@linaro.org>
6800
6801 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
6802 * linux-aarch32-low.c: New file.
6803 * linux-aarch32-low.h: New file.
6804 * linux-arm-low.c (arm_fill_gregset): Move it to
6805 linux-aarch32-low.c.
6806 (arm_store_gregset): Likewise.
6807 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
6808 (arm_store_vfpregset): Call arm_store_vfpregset_num.
6809 (arm_arch_setup): Check if PTRACE_GETREGSET works.
6810 (regs_info): Rename to regs_info_arm.
6811 (arm_regs_info): Return regs_info_aarch32 if
6812 have_ptrace_getregset is 1 and target description is
6813 arm_with_neon or arm_with_vfpv3.
6814 (initialize_low_arch): Don't call init_registers_arm_with_neon.
6815 Call initialize_low_arch_aarch32 instead.
6816
6817 2015-08-04 Yao Qi <yao.qi@linaro.org>
6818
6819 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
6820 * linux-low.c: ... here.
6821 * linux-low.h (have_ptrace_getregset): Declare it.
6822
6823 2015-08-04 Pedro Alves <palves@redhat.com>
6824
6825 * thread-db.c (struct thread_db): Use new typedefs.
6826 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
6827 CHK calls.
6828 (disable_thread_event_reporting): Cast result of dlsym to
6829 destination function pointer type.
6830 (thread_db_mourn): Use td_ta_delete_ftype.
6831
6832 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
6833
6834 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
6835 arch variant.
6836 (CDX_BREAKPOINT): Define for R2.
6837 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
6838 (the_low_target): Add comments.
6839
6840 2015-07-30 Yao Qi <yao.qi@linaro.org>
6841
6842 * linux-arm-low.c (arm_hwcap): Remove it.
6843 (arm_read_description): New local variable arm_hwcap. Don't
6844 set arm_hwcap to zero.
6845
6846 2015-07-30 Yao Qi <yao.qi@linaro.org>
6847
6848 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
6849 Use regcache->tdesc instead.
6850 (arm_store_wmmxregset): Likewise.
6851 (arm_fill_vfpregset): Likewise.
6852 (arm_store_vfpregset): Likewise.
6853
6854 2015-07-30 Yao Qi <yao.qi@linaro.org>
6855
6856 * linux-arm-low.c: Include arch/arm.h.
6857 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
6858 (arm_store_gregset): Likewise.
6859
6860 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6861
6862 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
6863 ptrace's 4th parameter.
6864
6865 2015-07-27 Yao Qi <yao.qi@linaro.org>
6866
6867 * configure.srv (case aarch64*-*-linux*): Don't set
6868 srv_linux_usrregs.
6869
6870 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
6871
6872 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
6873 sys/ptrace.h.
6874 * linux-arm-low.c: Likewise.
6875 * linux-cris-low.c: Likewise.
6876 * linux-crisv32-low.c: Likewise.
6877 * linux-low.c: Likewise.
6878 * linux-m68k-low.c: Likewise.
6879 * linux-mips-low.c: Likewise.
6880 * linux-nios2-low.c: Likewise.
6881 * linux-s390-low.c: Likewise.
6882 * linux-sparc-low.c: Likewise.
6883 * linux-tic6x-low.c: Likewise.
6884 * linux-tile-low.c: Likewise.
6885 * linux-x86-low.c: Likewise.
6886
6887 2015-07-24 Pedro Alves <palves@redhat.com>
6888
6889 * config.in: Regenerate.
6890 * configure: Regenerate.
6891
6892 2015-07-24 Pedro Alves <palves@redhat.com>
6893
6894 * acinclude.m4: Include ../ptrace.m4.
6895 * configure.ac: Call GDB_AC_PTRACE.
6896 * config.in, configure: Regenerate.
6897
6898 2015-07-24 Yao Qi <yao.qi@linaro.org>
6899
6900 * linux-low.c (linux_create_inferior): Remove setting to
6901 proc->priv->new_inferior.
6902 (linux_attach): Likewise.
6903 (linux_low_filter_event): Likewise.
6904 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
6905
6906 2015-07-24 Yao Qi <yao.qi@linaro.org>
6907
6908 * linux-low.c (linux_arch_setup): New function.
6909 (linux_low_filter_event): If proc->tdesc is NULL and
6910 proc->attached is true, call the_low_target.arch_setup.
6911 Otherwise, keep status pending, and return.
6912 (linux_resume_one_lwp_throw): Don't call get_pc if
6913 thread->while_stepping isn't NULL. Don't call
6914 get_thread_regcache if proc->tdesc is NULL.
6915 (need_step_over_p): Return 0 if proc->tdesc is NULL.
6916 (linux_target_ops): Install arch_setup.
6917 * server.c (start_inferior): Call the_target->arch_setup.
6918 * target.h (struct target_ops) <arch_setup>: New field.
6919 (target_arch_setup): New marco.
6920 * lynx-low.c (lynx_target_ops): Update.
6921 * nto-low.c (nto_target_ops): Update.
6922 * spu-low.c (spu_target_ops): Update.
6923 * win32-low.c (win32_target_ops): Update.
6924
6925 2015-07-24 Yao Qi <yao.qi@linaro.org>
6926
6927 * linux-low.c (linux_add_process): Don't set
6928 proc->priv->new_inferior.
6929 (linux_create_inferior): Set proc->priv->new_inferior to 1.
6930 (linux_attach): Likewise.
6931
6932 2015-07-24 Yao Qi <yao.qi@linaro.org>
6933
6934 * server.c (start_inferior): Code refactor.
6935
6936 2015-07-24 Yao Qi <yao.qi@linaro.org>
6937
6938 * server.c (process_serial_event): Set general_thread.
6939
6940 2015-07-21 Yao Qi <yao.qi@linaro.org>
6941
6942 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
6943 aarch64_linux_get_debug_reg_capacity.
6944
6945 2015-07-17 Yao Qi <yao.qi@linaro.org>
6946
6947 * Makefile.in (aarch64-linux-hw-point.o): New rule.
6948 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
6949 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
6950 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6951 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6952 (AARCH64_HWP_ALIGNMENT): Likewise.
6953 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6954 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6955 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6956 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6957 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6958 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6959 (struct aarch64_debug_reg_state): Likewise.
6960 (struct arch_lwp_info): Likewise.
6961 (aarch64_align_watchpoint): Likewise.
6962 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6963 (aarch64_watchpoint_length): Likewise.
6964 (aarch64_point_encode_ctrl_reg): Likewise
6965 (aarch64_point_is_aligned): Likewise.
6966 (aarch64_align_watchpoint): Likewise.
6967 (aarch64_linux_set_debug_regs):
6968 (aarch64_dr_state_insert_one_point): Likewise.
6969 (aarch64_dr_state_remove_one_point): Likewise.
6970 (aarch64_handle_breakpoint): Likewise.
6971 (aarch64_handle_aligned_watchpoint): Likewise.
6972 (aarch64_handle_unaligned_watchpoint): Likewise.
6973 (aarch64_handle_watchpoint): Likewise.
6974
6975 2015-07-17 Yao Qi <yao.qi@linaro.org>
6976
6977 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
6978 and don't aarch64_get_debug_reg_state. All callers update.
6979 (aarch64_handle_aligned_watchpoint): Likewise.
6980 (aarch64_handle_unaligned_watchpoint): Likewise.
6981 (aarch64_handle_watchpoint): Likewise.
6982 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
6983 (aarch64_remove_point): Likewise.
6984
6985 2015-07-17 Yao Qi <yao.qi@linaro.org>
6986
6987 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
6988 debug_printf.
6989 (aarch64_handle_unaligned_watchpoint): Likewise.
6990
6991 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6992
6993 Revert the previous 3 commits:
6994 Move gdb_regex* to common/
6995 Move linux_find_memory_regions_full & co.
6996 gdbserver build-id attribute generator
6997
6998 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6999 Jan Kratochvil <jan.kratochvil@redhat.com>
7000
7001 gdbserver build-id attribute generator.
7002 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7003 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7004 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7005 (find_phdr): New.
7006 (get_dynamic): Use find_pdhr to traverse program headers.
7007 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7008 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7009 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7010 (get_hex_build_id): New.
7011 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7012 to reply XML document.
7013
7014 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7015 Jan Kratochvil <jan.kratochvil@redhat.com>
7016
7017 * target.c: Include target/target-utils.h and fcntl.h.
7018 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7019 (target_fileio_read_stralloc): New functions.
7020
7021 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7022
7023 * Makefile.in (OBS): Add gdb_regex.o.
7024 (gdb_regex.o): New.
7025 * config.in: Rebuilt.
7026 * configure: Rebuilt.
7027
7028 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7029 Jan Kratochvil <jan.kratochvil@redhat.com>
7030
7031 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7032 * Makefile.in (OBS): Add target-utils.o.
7033 (linux-maps.o, target-utils.o): New.
7034 * configure.srv (srv_linux_obj): Add linux-maps.o.
7035
7036 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7037
7038 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7039 function, return 1.
7040 (the_low_target): Install it.
7041
7042 2015-07-14 Pedro Alves <palves@redhat.com>
7043
7044 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7045 Instead, ignore ECHILD, and throw an error for other errnos.
7046
7047 2015-07-10 Pedro Alves <palves@redhat.com>
7048
7049 * event-loop.c (struct callback_event) <data>: Change type to
7050 gdb_client_data instance instead of gdb_client_data pointer.
7051 (append_callback_event): Adjust.
7052
7053 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7054
7055 * linux-aarch64-low.c: Add comments for each linux_target_ops
7056 method. Remove comments already covered in target_ops and
7057 linux_target_ops definitions.
7058 (the_low_target): Add comments for each unimplemented method.
7059
7060 2015-07-09 Yao Qi <yao.qi@linaro.org>
7061
7062 * linux-aarch64-low.c (aarch64_regmap): Remove.
7063 (aarch64_usrregs_info): Remove.
7064 (regs_info): Set field usrregs to NULL.
7065
7066 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7067
7068 * linux-low.c: Include "rsp-low.h"
7069 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7070 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7071 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7072 (handle_btrace_enable_pt): New.
7073 (handle_btrace_general_set): Support "pt".
7074 (handle_btrace_conf_general_set): Support "pt:size".
7075
7076 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7077
7078 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7079 Z_PACKET_SW_BP.
7080
7081 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7082
7083 * linux-aarch64-low.c: Remove comment about endianness.
7084 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7085 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7086 memcmp.
7087
7088 2015-06-24 Gary Benson <gbenson@redhat.com>
7089
7090 * linux-i386-ipa.c (stdint.h): Do not include.
7091 * lynx-i386-low.c (stdint.h): Likewise.
7092 * lynx-ppc-low.c (stdint.h): Likewise.
7093 * mem-break.c (stdint.h): Likewise.
7094 * thread-db.c (stdint.h): Likewise.
7095 * tracepoint.c (stdint.h): Likewise.
7096 * win32-low.c (stdint.h): Likewise.
7097
7098 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7099
7100 * server.c (write_qxfer_response): Update call to
7101 remote_escape_output.
7102
7103 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7104 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 Merge multiple hex conversions.
7107 * gdbreplay.c (tohex): Rename to 'fromhex'.
7108 (logchar): Use fromhex.
7109
7110 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7111
7112 * server.c (handle_qxfer_libraries): Set `version' attribute for
7113 <library-list>.
7114
7115 2015-06-10 Gary Benson <gbenson@redhat.com>
7116
7117 * target.h (struct target_ops) <multifs_open>: New field.
7118 <multifs_unlink>: Likewise.
7119 <multifs_readlink>: Likewise.
7120 * linux-low.c (nat/linux-namespaces.h): New include.
7121 (linux_target_ops): Initialize the_target->multifs_open,
7122 the_target->multifs_unlink and the_target->multifs_readlink.
7123 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7124 * hostio.c (hostio_fs_pid): New static variable.
7125 (hostio_handle_new_gdb_connection): New function.
7126 (handle_setfs): Likewise.
7127 (handle_open): Use the_target->multifs_open as appropriate.
7128 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7129 (handle_readlink): Use the_target->multifs_readlink as
7130 appropriate.
7131 (handle_vFile): Handle vFile:setfs packets.
7132 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7133 after target_handle_new_gdb_connection.
7134
7135 2015-06-10 Gary Benson <gbenson@redhat.com>
7136
7137 * configure.ac (AC_CHECK_FUNCS): Add setns.
7138 * config.in: Regenerate.
7139 * configure: Likewise.
7140 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7141 (linux-namespaces.o): New rule.
7142 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7143
7144 2015-06-09 Gary Benson <gbenson@redhat.com>
7145
7146 * hostio.c (handle_open): Process mode argument with
7147 fileio_to_host_mode.
7148
7149 2015-06-01 Yao Qi <yao.qi@linaro.org>
7150
7151 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7152 * linux-x86-low.c: Likewise.
7153
7154 2015-05-28 Don Breazeal <donb@codesourcery.com>
7155
7156 * linux-low.c (handle_extended_wait): Initialize
7157 thread_info.last_resume_kind for new fork children.
7158
7159 2015-05-15 Pedro Alves <palves@redhat.com>
7160
7161 * target.h (target_handle_new_gdb_connection): Rewrite using if
7162 wrapped in do/while.
7163
7164 2015-05-14 Joel Brobecker <brobecker@adacore.com>
7165
7166 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7167 * configure, config.in: Regenerate.
7168 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7169 Declare typedef.
7170
7171 2015-05-12 Don Breazeal <donb@codesourcery.com>
7172
7173 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7174 PTRACE_EVENT_VFORK_DONE.
7175 (linux_low_ptrace_options, extended_event_reported): Add vfork
7176 events.
7177 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7178 and "vforkdone" for RSP 'T' Stop Reply Packet.
7179 * server.h (report_vfork_events): Declare
7180 global variable.
7181
7182 2015-05-12 Don Breazeal <donb@codesourcery.com>
7183
7184 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7185 (the_low_target) <new_fork>: Initialize new member.
7186 * linux-arm-low.c (arm_new_fork): New function.
7187 (the_low_target) <new_fork>: Initialize new member.
7188 * linux-low.c (handle_extended_wait): Call new target function
7189 new_fork.
7190 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7191 * linux-mips-low.c (mips_add_watchpoint): New function
7192 extracted from mips_insert_point.
7193 (the_low_target) <new_fork>: Initialize new member.
7194 (mips_linux_new_fork): New function.
7195 (mips_insert_point): Call mips_add_watchpoint.
7196 * linux-x86-low.c (x86_linux_new_fork): New function.
7197 (the_low_target) <new_fork>: Initialize new member.
7198
7199 2015-05-12 Don Breazeal <donb@codesourcery.com>
7200
7201 * linux-low.c (handle_extended_wait): Implement return value,
7202 rename argument 'event_child' to 'event_lwp', handle
7203 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7204 (linux_low_ptrace_options): New function.
7205 (linux_low_filter_event): Call linux_low_ptrace_options,
7206 use different argument fo linux_enable_event_reporting,
7207 use return value from handle_extended_wait.
7208 (extended_event_reported): New function.
7209 (linux_wait_1): Call extended_event_reported and set
7210 status to report fork events.
7211 (linux_write_memory): Add pid to debug message.
7212 (reset_lwp_ptrace_options_callback): New function.
7213 (linux_handle_new_gdb_connection): New function.
7214 (linux_target_ops): Initialize new structure member.
7215 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7216 * lynx-low.c: Initialize new structure member.
7217 * remote-utils.c (prepare_resume_reply): Implement stop reason
7218 "fork" for "T" stop message.
7219 * server.c (handle_query): Call handle_new_gdb_connection.
7220 * server.h (report_fork_events): Declare global flag.
7221 * target.h (struct target_ops) <handle_new_gdb_connection>:
7222 New member.
7223 (target_handle_new_gdb_connection): New macro.
7224 * win32-low.c: Initialize new structure member.
7225
7226 2015-05-12 Don Breazeal <donb@codesourcery.com>
7227
7228 * mem-break.c (APPEND_TO_LIST): Define macro.
7229 (clone_agent_expr): New function.
7230 (clone_one_breakpoint): New function.
7231 (clone_all_breakpoints): New function.
7232 * mem-break.h: Declare new functions.
7233
7234 2015-05-12 Don Breazeal <donb@codesourcery.com>
7235
7236 * linux-low.c (linux_supports_fork_events): New function.
7237 (linux_supports_vfork_events): New function.
7238 (linux_target_ops): Initialize new structure members.
7239 (initialize_low): Call linux_check_ptrace_features.
7240 * lynx-low.c (lynx_target_ops): Initialize new structure
7241 members.
7242 * server.c (report_fork_events, report_vfork_events):
7243 New global flags.
7244 (handle_query): Add new features to qSupported packet and
7245 response.
7246 (captured_main): Initialize new global variables.
7247 * target.h (struct target_ops) <supports_fork_events>:
7248 New member.
7249 <supports_vfork_events>: New member.
7250 (target_supports_fork_events): New macro.
7251 (target_supports_vfork_events): New macro.
7252 * win32-low.c (win32_target_ops): Initialize new structure
7253 members.
7254
7255 2015-05-12 Gary Benson <gbenson@redhat.com>
7256
7257 * server.c (handle_qxfer_exec_file): Use current process
7258 if annex is empty.
7259
7260 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7261
7262 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7263 Remove HAVE_PTRACE_GETREGS conditionals.
7264 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7265 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7266
7267 2015-05-08 Yao Qi <yao.qi@linaro.org>
7268
7269 * linux-low.c (linux_supports_conditional_breakpoints): New
7270 function.
7271 (linux_target_ops): Install new target method.
7272 * lynx-low.c (lynx_target_ops): Install NULL hook for
7273 supports_conditional_breakpoints.
7274 * nto-low.c (nto_target_ops): Likewise.
7275 * spu-low.c (spu_target_ops): Likewise.
7276 * win32-low.c (win32_target_ops): Likewise.
7277 * server.c (handle_query): Check
7278 target_supports_conditional_breakpoints.
7279 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7280 New field.
7281 (target_supports_conditional_breakpoints): New macro.
7282
7283 2015-05-06 Pedro Alves <palves@redhat.com>
7284
7285 PR server/18081
7286 * server.c (start_inferior): If the process exits, mourn it.
7287
7288 2015-04-21 Gary Benson <gbenson@redhat.com>
7289
7290 * hostio.c (fileio_open_flags_to_host): Factored out to
7291 fileio_to_host_openflags in common/fileio.c. Single use
7292 updated.
7293
7294 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7295
7296 * linux-xtensa-low.c (xtensa_fill_gregset)
7297 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7298 XCHAL_HAVE_LOOP.
7299
7300 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7301
7302 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7303 (regs_info): Replace usrregs pointer with NULL.
7304
7305 2015-04-17 Gary Benson <gbenson@redhat.com>
7306
7307 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7308 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7309 * server.c (handle_qxfer_exec_file): New function.
7310 (qxfer_packets): Add exec-file entry.
7311 (handle_query): Report qXfer:exec-file:read as supported packet.
7312
7313 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7314
7315 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7316
7317 2015-04-09 Gary Benson <gbenson@redhat.com>
7318
7319 * hostio-errno.c (errno_to_fileio_error): Remove function.
7320 Update caller to use remote_fileio_to_fio_error.
7321
7322 2015-04-09 Yao Qi <yao.qi@linaro.org>
7323
7324 * linux-low.c (linux_insert_point): Call
7325 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7326 (linux_remove_point): Call remove_memory_breakpoint if type is
7327 raw_bkpt_type_sw.
7328 * linux-x86-low.c (x86_insert_point): Don't call
7329 insert_memory_breakpoint.
7330 (x86_remove_point): Don't call remove_memory_breakpoint.
7331
7332 2015-04-01 Pedro Alves <palves@redhat.com>
7333 Cleber Rosa <crosa@redhat.com>
7334
7335 * server.c (gdbserver_usage): Reorganize and extend the usage
7336 message.
7337
7338 2015-03-24 Pedro Alves <palves@redhat.com>
7339
7340 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7341 output. Also dump TRAP_TRACE.
7342 (linux_low_filter_event): In debug output, distinguish a
7343 resume_stop SIGSTOP from a delayed SIGSTOP.
7344
7345 2015-03-24 Gary Benson <gbenson@redhat.com>
7346
7347 * linux-x86-low.c (x86_linux_new_thread): Moved to
7348 nat/x86-linux.c.
7349 (x86_linux_prepare_to_resume): Likewise.
7350
7351 2015-03-24 Gary Benson <gbenson@redhat.com>
7352
7353 * Makefile.in (x86-linux-dregs.o): New rule.
7354 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7355 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7356 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7357 (x86_linux_dr_get): Likewise.
7358 (x86_linux_dr_set): Likewise.
7359 (update_debug_registers_callback): Likewise.
7360 (x86_linux_dr_set_addr): Likewise.
7361 (x86_linux_dr_get_addr): Likewise.
7362 (x86_linux_dr_set_control): Likewise.
7363 (x86_linux_dr_get_control): Likewise.
7364 (x86_linux_dr_get_status): Likewise.
7365 (x86_linux_update_debug_registers): Likewise.
7366
7367 2015-03-24 Gary Benson <gbenson@redhat.com>
7368
7369 * linux-x86-low.c (x86_linux_update_debug_registers):
7370 New function, factored out from...
7371 (x86_linux_prepare_to_resume): ...this.
7372
7373 2015-03-24 Gary Benson <gbenson@redhat.com>
7374
7375 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7376 (x86_linux_dr_set): Likewise.
7377 (update_debug_registers_callback): Likewise.
7378 (x86_linux_dr_set_addr): Likewise.
7379 (x86_linux_dr_get_addr): Likewise.
7380 (x86_linux_dr_set_control): Likewise.
7381 (x86_linux_dr_get_control): Likewise.
7382 (x86_linux_dr_get_status): Likewise.
7383 (x86_linux_prepare_to_resume): Likewise.
7384
7385 2015-03-24 Gary Benson <gbenson@redhat.com>
7386
7387 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7388 Use perror_with_name. Pass string through gettext.
7389 (x86_linux_dr_set): Likewise.
7390
7391 2015-03-24 Gary Benson <gbenson@redhat.com>
7392
7393 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7394 (x86_linux_dr_set_addr): ...this.
7395 (x86_dr_low_get_addr): Rename to...
7396 (x86_linux_dr_get_addr): ...this.
7397 (x86_dr_low_set_control): Rename to...
7398 (x86_linux_dr_set_control): ...this.
7399 (x86_dr_low_get_control): Rename to...
7400 (x86_linux_dr_get_control): ...this.
7401 (x86_dr_low_get_status): Rename to...
7402 (x86_linux_dr_get_status): ...this.
7403 (x86_dr_low): Update with new function names.
7404
7405 2015-03-24 Gary Benson <gbenson@redhat.com>
7406
7407 * Makefile.in (x86-linux.o): New rule.
7408 * configure.srv: Add x86-linux.o to relevant targets.
7409 * linux-low.c (lwp_set_arch_private_info): New function.
7410 (lwp_arch_private_info): Likewise.
7411 * linux-x86-low.c: Include nat/x86-linux.h.
7412 (arch_lwp_info): Removed structure.
7413 (update_debug_registers_callback):
7414 Use lwp_set_debug_registers_changed.
7415 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7416 and lwp_set_debug_registers_changed.
7417 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7418
7419 2015-03-24 Gary Benson <gbenson@redhat.com>
7420
7421 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7422 * linux-arm-low.c (arm_new_thread): Likewise.
7423 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7424 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7425 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7426 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7427
7428 2015-03-24 Gary Benson <gbenson@redhat.com>
7429
7430 * linux-low.c (ptid_of_lwp): New function.
7431 (lwp_is_stopped): Likewise.
7432 (lwp_stop_reason): Likewise.
7433 * linux-x86-low.c (update_debug_registers_callback):
7434 Use lwp_is_stopped.
7435 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7436 lwp_stop_reason.
7437
7438 2015-03-24 Gary Benson <gbenson@redhat.com>
7439
7440 * linux-low.h (linux_stop_lwp): Remove declaration.
7441
7442 2015-03-24 Gary Benson <gbenson@redhat.com>
7443
7444 * linux-low.h: Include nat/linux-nat.h.
7445 * linux-low.c (iterate_over_lwps_args): New structure.
7446 (iterate_over_lwps_filter): New function.
7447 (iterate_over_lwps): Likewise.
7448 * linux-x86-low.c (update_debug_registers_callback):
7449 Update signature to what iterate_over_lwps expects.
7450 Remove PID check that iterate_over_lwps now performs.
7451 (x86_dr_low_set_addr): Use iterate_over_lwps.
7452 (x86_dr_low_set_control): Likewise.
7453
7454 2015-03-24 Gary Benson <gbenson@redhat.com>
7455
7456 * linux-x86-low.c (x86_debug_reg_state): New function.
7457 (x86_linux_prepare_to_resume): Use the above.
7458
7459 2015-03-24 Gary Benson <gbenson@redhat.com>
7460
7461 * linux-low.c (current_lwp_ptid): New function.
7462 * linux-x86-low.c: Include nat/linux-nat.h.
7463 (x86_dr_low_get_addr): Use current_lwp_ptid.
7464 (x86_dr_low_get_control): Likewise.
7465 (x86_dr_low_get_status): Likewise.
7466
7467 2015-03-20 Pedro Alves <palves@redhat.com>
7468
7469 * tracepoint.c (cmd_qtstatus): Make "str" const.
7470
7471 2015-03-20 Pedro Alves <palves@redhat.com>
7472
7473 * server.c (handle_general_set): Make "req_str" const.
7474
7475 2015-03-19 Pedro Alves <palves@redhat.com>
7476
7477 * linux-low.c (linux_resume_one_lwp): Rename to ...
7478 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7479 instead call perror_with_name.
7480 (check_ptrace_stopped_lwp_gone): New function.
7481 (linux_resume_one_lwp): Reimplement as wrapper around
7482 linux_resume_one_lwp_throw that swallows errors if the LWP is
7483 gone.
7484
7485 2015-03-19 Pedro Alves <palves@redhat.com>
7486
7487 * linux-low.c (count_events_callback, select_event_lwp_callback):
7488 No longer check whether the thread has resume_stop as last resume
7489 kind.
7490
7491 2015-03-19 Pedro Alves <palves@redhat.com>
7492
7493 * linux-low.c (count_events_callback, select_event_lwp_callback):
7494 Use the lwp's status_pending_p field, not the thread's.
7495
7496 2015-03-19 Pedro Alves <palves@redhat.com>
7497
7498 * linux-low.c (select_event_lwp_callback): Update comments to
7499 no longer mention SIGTRAP.
7500
7501 2015-03-18 Gary Benson <gbenson@redhat.com>
7502
7503 * server.c (handle_query): Do not report vFile:fstat as supported.
7504
7505 2015-03-11 Gary Benson <gbenson@redhat.com>
7506
7507 * hostio.c (sys/types.h): New include.
7508 (sys/stat.h): Likewise.
7509 (common-remote-fileio.h): Likewise.
7510 (handle_fstat): New function.
7511 (handle_vFile): Handle vFile:fstat packets.
7512
7513 2015-03-11 Gary Benson <gbenson@redhat.com>
7514
7515 * configure.ac (AC_CHECK_MEMBERS): Add checks for
7516 struct stat.st_blocks and struct stat.st_blksize.
7517 * configure: Regenerate.
7518 * config.in: Likewise.
7519 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7520 (OBS): Add common-remote-fileio.o.
7521 (common-remote-fileio.o): New rule.
7522
7523 2015-03-09 Pedro Alves <palves@redhat.com>
7524
7525 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
7526 'struct sockaddr' pointer in 'accept' call.
7527
7528 2015-03-09 Pedro Alves <palves@redhat.com>
7529
7530 Revert:
7531 2015-03-07 Pedro Alves <palves@redhat.com>
7532 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7533 or <winsock2.h> here. Instead include "gdb_socket.h".
7534 (remote_open): Use union gdb_sockaddr_u.
7535 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7536 or <winsock2.h> here. Instead include "gdb_socket.h".
7537 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7538 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7539 or <sys/un.h>.
7540 (init_named_socket, gdb_agent_helper_thread): Use union
7541 gdb_sockaddr_u.
7542
7543 2015-03-07 Pedro Alves <palves@redhat.com>
7544
7545 * configure.ac (build_warnings): Move
7546 -Wdeclaration-after-statement to the C-specific set.
7547 * configure: Regenerate.
7548
7549 2015-03-07 Pedro Alves <palves@redhat.com>
7550
7551 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7552 or <winsock2.h> here. Instead include "gdb_socket.h".
7553 (remote_open): Use union gdb_sockaddr_u.
7554 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7555 or <winsock2.h> here. Instead include "gdb_socket.h".
7556 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7557 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7558 or <sys/un.h>.
7559 (init_named_socket, gdb_agent_helper_thread): Use union
7560 gdb_sockaddr_u.
7561
7562 2015-03-07 Pedro Alves <palves@redhat.com>
7563
7564 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
7565 instead.
7566
7567 2015-03-06 Yao Qi <yao.qi@linaro.org>
7568
7569 * linux-aarch64-low.c (aarch64_insert_point): Use
7570 show_debug_regs as a boolean.
7571 (aarch64_remove_point): Likewise.
7572
7573 2015-03-05 Pedro Alves <palves@redhat.com>
7574
7575 * lynx-low.c (lynx_target_ops): Install NULL hooks for
7576 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7577 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
7578 * nto-low.c (nto_target_ops): Likewise.
7579 * spu-low.c (spu_target_ops): Likewise.
7580 * win32-low.c (win32_target_ops): Likewise.
7581
7582 2015-03-04 Pedro Alves <palves@redhat.com>
7583
7584 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
7585 Decide whether a breakpoint triggered based on the SIGTRAP's
7586 siginfo.si_code.
7587 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7588 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7589 (linux_low_filter_event): Check for breakpoints before checking
7590 watchpoints.
7591 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
7592 siginfo.si_code.
7593 (linux_stopped_by_sw_breakpoint)
7594 (linux_supports_stopped_by_sw_breakpoint)
7595 (linux_stopped_by_hw_breakpoint)
7596 (linux_supports_stopped_by_hw_breakpoint): New functions.
7597 (linux_target_ops): Install new target methods.
7598
7599 2015-03-04 Pedro Alves <palves@redhat.com>
7600
7601 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
7602 * server.c (swbreak_feature, hwbreak_feature): New globals.
7603 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
7604 (captured_main): Clear swbreak_feature and hwbreak_feature.
7605 * server.h (swbreak_feature, hwbreak_feature): Declare.
7606 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
7607 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
7608 supports_stopped_by_hw_breakpoint>: New fields.
7609 (target_supports_stopped_by_sw_breakpoint)
7610 (target_stopped_by_sw_breakpoint)
7611 (target_supports_stopped_by_hw_breakpoint)
7612 (target_stopped_by_hw_breakpoint): Declare.
7613
7614 2015-03-04 Pedro Alves <palves@redhat.com>
7615
7616 enum lwp_stop_reason -> enum target_stop_reason
7617 * linux-low.c (check_stopped_by_breakpoint): Adjust.
7618 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
7619 (linux_wait_1, stuck_in_jump_pad_callback)
7620 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
7621 (linux_stopped_by_watchpoint):
7622 * linux-low.h (enum lwp_stop_reason): Delete.
7623 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7624 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7625
7626 2015-03-04 Yao Qi <yao.qi@linaro.org>
7627
7628 * Makefile.in (SFILES): Add linux-aarch64-low.c.
7629
7630 2015-03-03 Gary Benson <gbenson@redhat.com>
7631
7632 * hostio.c (handle_vFile): Fix prefix lengths.
7633
7634 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7635
7636 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
7637 ptr_bits.
7638
7639 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7640
7641 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
7642 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
7643 (clean): Add "rm -f" for above C files.
7644 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
7645 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
7646 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
7647 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
7648 * linux-s390-low.c (HWCAP_S390_VX): New macro.
7649 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
7650 (init_registers_s390x_vx_linux64)
7651 (init_registers_s390x_tevx_linux64)
7652 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7653 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
7654 declarations.
7655 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
7656 (s390_store_vxrs_high): New functions.
7657 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
7658 NT_S390_VXRS_HIGH.
7659 (s390_arch_setup): Add logic for selecting one of the new target
7660 descriptions. Activate the new vector regsets if applicable.
7661 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
7662 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
7663 and init_registers_s390x_tevx_linux64.
7664
7665 2015-03-01 Pedro Alves <palves@redhat.com>
7666
7667 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
7668 parameter.
7669
7670 2015-02-27 Pedro Alves <palves@redhat.com>
7671
7672 * linux-x86-low.c (u_debugreg_offset): New function.
7673 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7674
7675 2015-02-27 Pedro Alves <palves@redhat.com>
7676
7677 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7678 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
7679 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7680 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7681 (ps_lsetfpregs, ps_getpid)
7682 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
7683 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
7684 (ps_lsetxregs, ps_plog): Declare.
7685
7686 2015-02-27 Pedro Alves <palves@redhat.com>
7687
7688 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
7689 IP_AGENT_EXPORT_FUNC.
7690 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
7691 IP_AGENT_EXPORT_FUNC.
7692 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
7693 (IP_AGENT_EXPORT): Delete.
7694 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7695 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7696 (gdb_trampoline_buffer_error, collecting, gdb_collect)
7697 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
7698 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
7699 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
7700 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
7701 (traceframe_read_count, traceframe_write_count)
7702 (traceframes_created, trace_state_variables, get_raw_reg)
7703 (get_trace_state_variable_value, set_trace_state_variable_value)
7704 (ust_loaded, helper_thread_id, cmd_buf): Use
7705 IPA_SYM_EXPORTED_NAME.
7706 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
7707 (tracepoints) Use IP_AGENT_EXPORT_VAR.
7708 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
7709 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7710 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
7711 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
7712 EXTERN_C_PUSH/EXTERN_C_POP.
7713 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
7714 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
7715 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7716 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
7717 (traceframe_write_count, traceframe_read_count)
7718 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
7719 (about_to_request_buffer_space, get_trace_state_variable_value)
7720 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
7721 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
7722 EXTERN_C_PUSH/EXTERN_C_POP.
7723 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
7724 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
7725 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
7726 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7727 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7728 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7729 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
7730 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
7731 Define.
7732 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
7733 (IP_AGENT_EXPORT_VAR_DECL): Define.
7734 (tracing): Declare.
7735 (gdb_agent_get_raw_reg): Declare.
7736
7737 2015-02-27 Tom Tromey <tromey@redhat.com>
7738 Pedro Alves <palves@redhat.com>
7739
7740 Rename symbols whose names are reserved C++ keywords throughout.
7741
7742 2015-02-27 Pedro Alves <palves@redhat.com>
7743
7744 * Makefile.in (COMPILER): New, get it from autoconf.
7745 (CXX): Get from autoconf instead.
7746 (COMPILE.pre): Use COMPILER.
7747 (CC-LD): Rename to ...
7748 (CC_LD): ... this. Use COMPILER.
7749 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
7750 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7751 * acinclude.m4: Include build-with-cxx.m4.
7752 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7753 Disable -Werror by default if building in C++ mode.
7754 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7755 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
7756 the C++ compiler. Save/restore CXXFLAGS too.
7757 * configure: Regenerate.
7758
7759 2015-02-27 Pedro Alves <palves@redhat.com>
7760
7761 * acinclude.m4: Include libiberty.m4.
7762 * configure.ac: Call libiberty_INIT.
7763 * config.in, configure: Regenerate.
7764
7765 2015-02-26 Pedro Alves <palves@redhat.com>
7766
7767 * linux-low.c (linux_wait_1): When incrementing the PC past a
7768 program breakpoint always use the_low_target.breakpoint_len as
7769 increment, rather than the maximum between that and
7770 the_low_target.decr_pc_after_break.
7771
7772 2015-02-23 Pedro Alves <palves@redhat.com>
7773
7774 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
7775 thread was doing a step-over; always adjust the PC if
7776 we stepped over a permanent breakpoint.
7777 (linux_wait_1): If we stepped over breakpoint that was on top of a
7778 permanent breakpoint, manually advance the PC past it.
7779
7780 2015-02-23 Pedro Alves <palves@redhat.com>
7781
7782 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
7783 modes.
7784 (x86_fill_gregset, x86_store_gregset): Use it when handling
7785 $orig_eax.
7786
7787 2015-02-20 Pedro Alves <palves@redhat.com>
7788
7789 * thread-db.c: Include "nat/linux-procfs.h".
7790 (thread_db_init): Skip listing new threads if the kernel supports
7791 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
7792
7793 2015-02-20 Pedro Alves <palves@redhat.com>
7794
7795 * linux-low.c (status_pending_p_callback): Use ptid_match.
7796
7797 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7798
7799 PR breakpoints/16812
7800 * linux-low.c (wstatus_maybe_breakpoint): Remove.
7801 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
7802 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
7803
7804 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
7805
7806 PR breakpoints/15956
7807 * tracepoint.c (cmd_qtinit): Add check for current_thread.
7808
7809 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7810
7811 * linux-low.c (linux_low_btrace_conf): Print size.
7812 * server.c (handle_btrace_conf_general_set): New.
7813 (hanle_general_set): Call handle_btrace_conf_general_set.
7814 (handle_query): Report Qbtrace-conf:bts:size as supported.
7815
7816 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7817
7818 * linux-low.c (linux_low_enable_btrace): Update parameters.
7819 (linux_low_btrace_conf): New.
7820 (linux_target_ops)<to_btrace_conf>: Initialize.
7821 * server.c (current_btrace_conf): New.
7822 (handle_btrace_enable): Rename to ...
7823 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
7824 to target_enable_btrace. Update comment. Update users.
7825 (handle_qxfer_btrace_conf): New.
7826 (qxfer_packets): Add btrace-conf entry.
7827 (handle_query): Report qXfer:btrace-conf:read as supported packet.
7828 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
7829 (target_ops)<read_btrace_conf>: New.
7830 (target_enable_btrace): Update parameters.
7831 (target_read_btrace_conf): New.
7832
7833 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7834
7835 * server.c (handle_btrace_general_set): Remove call to
7836 target_supports_btrace.
7837 (supported_btrace_packets): New.
7838 (handle_query): Call supported_btrace_packets.
7839 * target.h: include btrace-common.h.
7840 (btrace_target_info): Removed.
7841 (supports_btrace, target_supports_btrace): Update parameters.
7842
7843 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
7844
7845 * Makefile.in (SFILES): Add common/btrace-common.c.
7846 (OBS): Add common/btrace-common.o.
7847 (btrace-common.o): Add build rules.
7848 * linux-low: Include btrace-common.h.
7849 (linux_low_read_btrace): Use struct btrace_data. Call
7850 btrace_data_init and btrace_data_fini.
7851
7852 2015-02-06 Pedro Alves <palves@redhat.com>
7853
7854 * thread-db.c (find_new_threads_callback): Add debug output.
7855
7856 2015-02-04 Pedro Alves <palves@redhat.com>
7857
7858 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
7859 (resume_stopped_resumed_lwps): New function.
7860 (linux_wait_for_event_filtered): Use it.
7861
7862 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7863
7864 * Makefile.in (SFILES): Add linux-personality.c.
7865 (linux-personality.o): New rule.
7866 * configure.srv (srv_linux_obj): Add linux-personality.o to the
7867 list of objects to be built.
7868 * linux-low.c: Include nat/linux-personality.h.
7869 (linux_create_inferior): Remove code to disable address space
7870 randomization (moved to ../nat/linux-personality.c). Create
7871 cleanup to disable address space randomization.
7872
7873 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
7874
7875 * Makefile.in (posix-strerror.o): New rule.
7876 (mingw-strerror.o): Likewise.
7877 * configure: Regenerated.
7878 * configure.ac: Source file ../common/common.host. Initialize new
7879 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
7880
7881 2015-01-14 Yao Qi <yao@codesourcery.com>
7882
7883 * Makefile.in (SFILES): Add nat/ppc-linux.c.
7884 (ppc-linux.o): New rule.
7885 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
7886 * configure.ac: AC_CHECK_FUNCS(getauxval).
7887 * config.in: Re-generated.
7888 * configure: Re-generated.
7889 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
7890 ppc64_64bit_inferior_p
7891
7892 2015-01-14 Yao Qi <yao@codesourcery.com>
7893
7894 * linux-ppc-low.c: Include "nat/ppc-linux.h".
7895 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
7896 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
7897 (PT_ORIG_R3, PT_TRAP): Likewise.
7898 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7899 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7900 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7901
7902 2015-01-10 Joel Brobecker <brobecker@adacore.com>
7903
7904 * i387-fp.c (i387_cache_to_xsave): In look over
7905 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
7906 zmmh_low_space field by use of zmmh_high_space.
7907
7908 2015-01-09 Pedro Alves <palves@redhat.com>
7909
7910 * linux-low.c (step_over_bkpt): Move higher up in the file.
7911 (handle_extended_wait): Don't store the stop_pc here.
7912 (get_stop_pc): Adjust comments and rename to ...
7913 (check_stopped_by_breakpoint): ... this. Record whether the LWP
7914 stopped for a software breakpoint or hardware breakpoint.
7915 (thread_still_has_status_pending_p): New function.
7916 (status_pending_p_callback): Use
7917 thread_still_has_status_pending_p. If the event is no longer
7918 interesting, resume the LWP.
7919 (handle_tracepoints): Add assert.
7920 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
7921 (wstatus_maybe_breakpoint): New function.
7922 (cancel_breakpoint): Delete function.
7923 (check_stopped_by_watchpoint): New function, factored out from
7924 linux_low_filter_event.
7925 (lp_status_maybe_breakpoint): Delete function.
7926 (linux_low_filter_event): Remove filter_ptid argument.
7927 Leave thread group exits pending here. Store the LWP's stop PC.
7928 Always leave events pending.
7929 (linux_wait_for_event_filtered): Pull all events out of the
7930 kernel, and leave them all pending.
7931 (count_events_callback, select_event_lwp_callback): Consider all
7932 events.
7933 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
7934 (select_event_lwp): Only give preference to the stepping LWP in
7935 all-stop mode. Adjust comments.
7936 (ignore_event): New function.
7937 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
7938 references to cancel_breakpoints. Adjust to renames. Also give
7939 equal priority to all LWPs that have had events in non-stop mode.
7940 If reporting a software breakpoint event, unadjust the LWP's PC.
7941 (linux_wait): If linux_wait_1 returned an ignored event, retry.
7942 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
7943 Adjust.
7944 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
7945 (resume_status_pending_p): Use thread_still_has_status_pending_p.
7946 (linux_stopped_by_watchpoint): Adjust.
7947 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
7948 * linux-low.h (enum lwp_stop_reason): New.
7949 (struct lwp_info) <stop_pc>: Adjust comment.
7950 <stopped_by_watchpoint>: Delete field.
7951 <stop_reason>: New field.
7952 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7953 * mem-break.c (software_breakpoint_inserted_here)
7954 (hardware_breakpoint_inserted_here): New function.
7955 * mem-break.h (software_breakpoint_inserted_here)
7956 (hardware_breakpoint_inserted_here): Declare.
7957 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
7958 (cancel_breakpoints): Delete.
7959 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
7960 (upload_fast_traceframes): Remove references to
7961 cancel_breakpoints.
7962
7963 2015-01-09 Pedro Alves <palves@redhat.com>
7964
7965 * thread-db.c (find_new_threads_callback): Ignore thread if the
7966 kernel thread ID is -1.
7967
7968 2015-01-09 Pedro Alves <palves@redhat.com>
7969
7970 * linux-low.c (linux_attach_fail_reason_string): Move to
7971 nat/linux-ptrace.c, and rename.
7972 (linux_attach_lwp): Update comment.
7973 (attach_proc_task_lwp_callback): New function.
7974 (linux_attach): Adjust to rename and use
7975 linux_proc_attach_tgid_threads.
7976 (linux_attach_fail_reason_string): Delete declaration.
7977
7978 2015-01-01 Joel Brobecker <brobecker@adacore.com>
7979
7980 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
7981 * server.c (gdbserver_version): Likewise.
7982
7983 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
7984
7985 * remote-utils.c: Include ctype.h.
7986 (input_interrupt): Explicitly handle the case when the char
7987 received is the NUL byte. Improve the printing of non-ASCII
7988 characters.
7989
7990 2014-12-16 Joel Brobecker <brobecker@adacore.com>
7991
7992 * linux-low.c (linux_low_filter_event): Update call to
7993 linux_enable_event_reporting following the addition of
7994 a new parameter to that function.
7995
7996 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
7997
7998 PR server/17457
7999 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8000 (AARCH64_FPCR_REGNO): Likewise.
8001 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8002 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8003 (aarch64_store_fpregset): Likewise.
8004
8005 2014-12-15 Joel Brobecker <brobecker@adacore.com>
8006
8007 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8008 Remove FIXME comment about assumption about N.
8009
8010 2014-12-13 Joel Brobecker <brobecker@adacore.com>
8011
8012 * configure.ac: If large-file support is disabled in GDBserver,
8013 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8014 * configure: Regenerate.
8015
8016 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8017
8018 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8019 warning upon ENODATA from ptrace.
8020 * linux-s390-low.c (s390_store_tdb): New.
8021 (s390_regsets): Add regset for NT_S390_TDB.
8022
8023 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8024
8025 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8026 without a fill_function.
8027 * linux-s390-low.c (s390_fill_last_break): Remove.
8028 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8029 (s390_arch_setup): Use regset's size instead of fill_function for
8030 loop end condition.
8031
8032 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8033
8034 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8035 the regset's store function when ptrace returned an error.
8036 * regcache.c (get_thread_regcache): Invalidate register cache
8037 before fetching inferior's registers.
8038
8039 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8040
8041 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8042 while-loop as for-loop.
8043 (regsets_store_inferior_registers): Likewise.
8044
8045 2014-11-28 Yao Qi <yao@codesourcery.com>
8046
8047 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8048 * config.in, configure: Re-generate.
8049 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8050 is defined.
8051
8052 2014-11-21 Yao Qi <yao@codesourcery.com>
8053
8054 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8055 (AC_CHECK_HEADERS): Remove malloc.h.
8056 * configure: Re-generated.
8057 * config.in: Re-generated.
8058 * server.h: Don't include alloca.h and malloc.h.
8059 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8060 Don't include malloc.h.
8061
8062 2014-11-17 Joel Brobecker <brobecker@adacore.com>
8063
8064 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8065 corresponding ERRNO check in same block.
8066
8067 2014-11-12 Pedro Alves <palves@redhat.com>
8068
8069 * server.c (cont_thread): Update comment.
8070 (start_inferior, attach_inferior): No longer clear cont_thread.
8071 (handle_v_cont): No longer set cont_thread.
8072 (captured_main): Clear cont_thread each time a GDB connects.
8073
8074 2014-11-12 Pedro Alves <palves@redhat.com>
8075
8076 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8077 thread, and don't resume all threads if the Hc thread has exited.
8078
8079 2014-11-12 Pedro Alves <palves@redhat.com>
8080
8081 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8082 the process group instead of to a specific LWP.
8083
8084 2014-10-15 Pedro Alves <palves@redhat.com>
8085
8086 PR server/17487
8087 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8088 parameter.
8089 (arm_set_thread_context): Delete.
8090 (the_low_target): Adjust.
8091 * win32-i386-low.c (debug_registers_changed)
8092 (debug_registers_used): Delete.
8093 (update_debug_registers_callback): New function.
8094 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8095 needing to update their debug registers.
8096 (win32_get_current_dr): New function.
8097 (x86_dr_low_get_addr, x86_dr_low_get_control)
8098 (x86_dr_low_get_status): Fetch the debug register from the thread
8099 record's context.
8100 (i386_initial_stuff): Adjust.
8101 (i386_get_thread_context): Remove current_event parameter. Don't
8102 clear debug_registers_changed nor copy DR values to
8103 debug_reg_state.
8104 (i386_set_thread_context): Delete.
8105 (i386_prepare_to_resume): New function.
8106 (i386_thread_added): Mark the thread as needing to update irs
8107 debug registers.
8108 (the_low_target): Remove i386_set_thread_context and install
8109 i386_prepare_to_resume.
8110 * win32-low.c (win32_get_thread_context): Adjust.
8111 (win32_set_thread_context): Use SetThreadContext
8112 directly.
8113 (win32_prepare_to_resume): New function.
8114 (win32_require_context): New function, factored out from ...
8115 (thread_rec): ... this.
8116 (continue_one_thread): Call win32_prepare_to_resume on each thread
8117 we're about to continue.
8118 (win32_resume): Call win32_prepare_to_resume on the event thread.
8119 * win32-low.h (struct win32_thread_info)
8120 <debug_registers_changed>: New field.
8121 (struct win32_target_ops): Change prototype of set_thread_context,
8122 delete set_thread_context and add prepare_to_resume.
8123 (win32_require_context): New declaration.
8124
8125 2014-10-08 Gary Benson <gbenson@redhat.com>
8126
8127 * server.h: Do not include common-exceptions.h.
8128
8129 2014-10-08 Gary Benson <gbenson@redhat.com>
8130
8131 * server.h: Do not include cleanups.h.
8132
8133 2014-09-30 James Hogan <james.hogan@imgtec.com>
8134
8135 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8136 mips64-dsp-linux.c.
8137
8138 2014-09-23 Yao Qi <yao@codesourcery.com>
8139
8140 * linux-low.c (lp_status_maybe_breakpoint): New function.
8141 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8142 (count_events_callback): Likewise.
8143 (select_event_lwp_callback): Likewise.
8144 (cancel_breakpoints_callback): Likewise.
8145
8146 2014-09-19 Don Breazeal <donb@codesourcery.com>
8147
8148 * linux-low.c (handle_extended_wait): Call
8149 linux_ptrace_get_extended_event.
8150 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8151 linux_is_extended_waitstatus.
8152
8153 2014-09-16 Joel Brobecker <brobecker@adacore.com>
8154
8155 * Makefile.in (CPPFLAGS): Define.
8156 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8157 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8158
8159 2014-09-16 Gary Benson <gbenson@redhat.com>
8160
8161 * inferiors.h (current_inferior): Renamed as...
8162 (current_thread): New variable. All uses updated.
8163 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8164 (maybe_move_out_of_jump_pad): Likewise.
8165 (cancel_breakpoint): Likewise.
8166 (linux_low_filter_event): Likewise.
8167 (wait_for_sigstop): Likewise.
8168 (linux_resume_one_lwp): Likewise.
8169 (need_step_over_p): Likewise.
8170 (start_step_over): Likewise.
8171 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8172 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8173 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8174 and save_inferior as saved_thread.
8175 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8176 saved_thread.
8177 (regcache_invalidate_thread): Likewise.
8178 * remote-utils.c (prepare_resume_reply): Likewise.
8179 * thread-db.c (thread_db_get_tls_address): Likewise.
8180 (disable_thread_event_reporting): Likewise.
8181 (remove_thread_event_breakpoints): Likewise.
8182 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8183 as saved_thread.
8184 * target.h (set_desired_inferior): Renamed as...
8185 (set_desired_thread): New declaration. All uses updated.
8186 * server.c (myresume): Updated comment to reference thread instead
8187 of inferior.
8188 (handle_serial_event): Likewise.
8189 (handle_target_event): Likewise.
8190
8191 2014-09-12 Tom Tromey <tromey@redhat.com>
8192 Gary Benson <gbenson@redhat.com>
8193
8194 * regcache.h: Include common-regcache.h.
8195 (regcache_read_pc): Don't declare.
8196 * regcache.c (get_thread_regcache_for_ptid): New function.
8197
8198 2014-09-11 Tom Tromey <tromey@redhat.com>
8199 Gary Benson <gbenson@redhat.com>
8200
8201 * symbol.c: New file.
8202 * Makefile.in (SFILES): Add symbol.c.
8203 (OBS): Add symbol.o.
8204
8205 2014-09-11 Gary Benson <gbenson@redhat.com>
8206
8207 * target.c (target_stop_ptid, target_continue_ptid): New
8208 functions.
8209
8210 2014-09-11 Tom Tromey <tromey@redhat.com>
8211 Gary Benson <gbenson@redhat.com>
8212
8213 * target.h: Include target/target.h.
8214 * target.c (target_read_memory, target_read_uint32)
8215 (target_write_memory): New functions.
8216
8217 2014-09-11 Gary Benson <gbenson@redhat.com>
8218
8219 * server.h (debug_hw_points): Don't declare.
8220 * server.c (debug_hw_points): Don't define. Replace all uses
8221 with show_debug_regs.
8222 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8223 all uses with show_debug_regs.
8224
8225 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8226
8227 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8228 endianness into account.
8229 (ppc_supply_ptrace_register): Likewise.
8230
8231 2014-09-03 James Hogan <james.hogan@imgtec.com>
8232
8233 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8234 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8235
8236 2014-09-03 Gary Benson <gbenson@redhat.com>
8237
8238 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8239 ALL_DEBUG_ADDRESS_REGISTERS.
8240
8241 2014-09-02 Gary Benson <gbenson@redhat.com>
8242
8243 * i386-low.h: Renamed as...
8244 * x86-low.h: New file. All type, function and variable name
8245 prefixes changed from "i386_" to "x86_". All references updated.
8246 * i386-low.c: Renamed as...
8247 * x86-low.c: New file. All type, function and variable name
8248 prefixes changed from "i386_" to "x86_". All references updated.
8249
8250 2014-09-02 Gary Benson <gbenson@redhat.com>
8251
8252 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8253 (x86_linux_new_thread): Likewise.
8254
8255 2014-08-29 Gary Benson <gbenson@redhat.com>
8256
8257 * server.h (setjmp.h): Do not include.
8258 (toplevel): Do not declare.
8259 (common-exceptions.h): Include.
8260 (cleanups.h): Likewise.
8261 * server.c (toplevel): Do not define.
8262 (exit_code): New static global.
8263 (detach_or_kill_for_exit_cleanup): New function.
8264 (main): New function. Original main renamed to...
8265 (captured_main): New function.
8266 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8267
8268 2014-08-29 Gary Benson <gbenson@redhat.com>
8269
8270 * Makefile.in (SFILES): Add common/common-exceptions.c.
8271 (OBS): Add common-exceptions.o.
8272 (common-exceptions.o): New rule.
8273 * utils.c (prepare_to_throw_exception): New function.
8274
8275 2014-08-29 Gary Benson <gbenson@redhat.com>
8276
8277 * config.in: Regenerate.
8278 * configure: Likewise.
8279
8280 2014-08-29 Gary Benson <gbenson@redhat.com>
8281
8282 * Makefile.in (SFILES): Add common/cleanups.c.
8283 (OBS): cleanups.o.
8284 (cleanups.o): New rule.
8285
8286 2014-08-29 Gary Benson <gbenson@redhat.com>
8287
8288 * utils.c (internal_vwarning): New function.
8289
8290 2014-08-28 Gary Benson <gbenson@redhat.com>
8291
8292 * utils.h (fatal): Remove declaration.
8293 * utils.c (fatal): Remove function.
8294
8295 2014-08-28 Gary Benson <gbenson@redhat.com>
8296
8297 * tracepoint.c (gdb_agent_init): Replace fatal with
8298 perror_with_name.
8299 (initialize_tracepoint): Likewise.
8300
8301 2014-08-28 Gary Benson <gbenson@redhat.com>
8302
8303 * remote-utils.c (remote_prepare): Replace fatal with error.
8304
8305 2014-08-28 Gary Benson <gbenson@redhat.com>
8306
8307 * linux-low.c (linux_async): Replace fatal with warning.
8308 Tidy up and return.
8309 (linux_start_non_stop): Return -1 if linux_async failed.
8310
8311 2014-08-28 Gary Benson <gbenson@redhat.com>
8312
8313 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8314 gdb_assert.
8315 (i386_dr_low_get_addr): Remove vague comment.
8316 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8317 gdb_assert.
8318
8319 2014-08-28 Gary Benson <gbenson@redhat.com>
8320
8321 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8322 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8323 internal_error.
8324 (linux_resume_one_lwp): Likewise.
8325 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8326 gdb_assert.
8327 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8328 with internal_error.
8329 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8330 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8331 (find_register_by_name): Replace fatal with internal_error.
8332 (find_regno): Likewise.
8333 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8334 * thread-db.c (thread_db_create_event): Likewise.
8335 (thread_db_load_search): Likewise.
8336 (try_thread_db_load_1): Likewise.
8337 * tracepoint.c (get_jump_space_head): Replace fatal with
8338 internal_error.
8339 (claim_trampoline_space): Likewise.
8340 (have_fast_tracepoint_trampoline_buffer): Likewise.
8341 (cmd_qtstart): Likewise.
8342 (stop_tracing): Likewise.
8343 (fast_tracepoint_collecting): Likewise.
8344 (target_malloc): Likewise.
8345 (download_tracepoint): Likewise.
8346 (download_trace_state_variables): Replace check with gdb_assert.
8347 (upload_fast_traceframes): Replace fatal with internal_error.
8348
8349 2014-08-19 Tom Tromey <tromey@redhat.com>
8350 Gary Benson <gbenson@redhat.com>
8351
8352 * Makefile.in (SFILES): Add common/common-debug.c.
8353 (OBS): Add common-debug.o.
8354 (common-debug.o): New rule.
8355 * debug.h (debug_printf): Don't declare.
8356 * debug.c (debug_printf): Renamed and rewritten as...
8357 (debug_vprintf): New function.
8358
8359 2014-08-19 Gary Benson <gbenson@redhat.com>
8360
8361 * utils.h: Do not include print-utils.h.
8362
8363 2014-08-19 Tom Tromey <tromey@redhat.com>
8364 Gary Benson <gbenson@redhat.com>
8365
8366 * server.h: Add static assertion.
8367 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8368
8369 2014-08-19 Tom Tromey <tromey@redhat.com>
8370 Gary Benson <gbenson@redhat.com>
8371
8372 * Makefile.in (SFILES): Add common/errors.c.
8373 (OBS): Add errors.o.
8374 (IPA_OBS): Add errors-ipa.o.
8375 (errors.o): New rule.
8376 (errors-ipa.o): Likewise.
8377 * utils.h (perror_with_name, error, warning): Don't declare.
8378 * utils.c (warning): Renamed and rewritten as...
8379 (vwarning): New function.
8380 (error): Renamed and rewritten as...
8381 (verror): New function.
8382 (internal_error): Renamed and rewritten as...
8383 (internal_verror): New function.
8384
8385 2014-08-07 Gary Benson <gbenson@redhat.com>
8386
8387 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8388 * configure: Regenerate.
8389 * config.in: Likewise.
8390 * server.h: Do not include errno.h.
8391 * event-loop.c: Likewise.
8392 * hostio-errno.c: Likewise.
8393 * linux-low.c: Likewise.
8394 * remote-utils.c: Likewise.
8395 * spu-low.c: Likewise.
8396 * utils.c: Likewise.
8397 * gdbreplay.c: Unconditionally include errno.h.
8398
8399 2014-08-07 Gary Benson <gbenson@redhat.com>
8400
8401 * server.h: Do not include string.h.
8402 * event-loop.c: Likewise.
8403 * linux-low.c: Likewise.
8404 * regcache.c: Likewise.
8405 * remote-utils.c: Likewise.
8406 * spu-low.c: Likewise.
8407 * utils.c: Likewise.
8408
8409 2014-08-07 Gary Benson <gbenson@redhat.com>
8410
8411 * server.h: Do not include gdb_assert.h.
8412
8413 2014-08-07 Gary Benson <gbenson@redhat.com>
8414
8415 * server.h: Do not include common-utils.h.
8416
8417 2014-08-07 Gary Benson <gbenson@redhat.com>
8418
8419 * server.h: Do not include ptid.h.
8420 * notif.h: Likewise.
8421
8422 2014-08-07 Gary Benson <gbenson@redhat.com>
8423
8424 * server.h: Do not include gdb_locale.h.
8425
8426 2014-08-07 Gary Benson <gbenson@redhat.com>
8427
8428 * server.h: Do not include gdb/signals.h.
8429 * win32-low.c: Likewise.
8430
8431 2014-08-07 Gary Benson <gbenson@redhat.com>
8432
8433 * server.h: Do not include pathmax.h.
8434
8435 2014-08-07 Gary Benson <gbenson@redhat.com>
8436
8437 * server.h: Do not include libiberty.h.
8438 * linux-bfin-low.c: Likewise.
8439
8440 2014-08-07 Gary Benson <gbenson@redhat.com>
8441
8442 * server.h: Do not include ansidecl.h.
8443
8444 2014-08-07 Gary Benson <gbenson@redhat.com>
8445
8446 * linux-x86-low.c: Do not include stddef.h.
8447 * lynx-ppc-low.c: Likewise.
8448 * tracepoint.c: Likewise.
8449
8450 2014-08-07 Gary Benson <gbenson@redhat.com>
8451
8452 * server.h: Do not include stdarg.h.
8453 * nto-low.c: Likewise.
8454
8455 2014-08-07 Gary Benson <gbenson@redhat.com>
8456
8457 * server.h: Do not include stdlib.h.
8458 * inferiors.c: Likewise.
8459 * linux-low.c: Likewise.
8460 * regcache.c: Likewise.
8461 * spu-low.c: Likewise.
8462 * tracepoint.c: Likewise.
8463 * utils.c: Likewise.
8464
8465 2014-08-07 Gary Benson <gbenson@redhat.com>
8466
8467 * server.h: Do not include stdio.h.
8468 * linux-low.c: Likewise.
8469 * remote-utils.c: Likewise.
8470 * spu-low.c: Likewise.
8471 * utils.c: Likewise.
8472 * wincecompat.c: Likewise.
8473
8474 2014-08-06 Gary Benson <gbenson@redhat.com>
8475
8476 * regcache.c (init_register_cache): Move conditionals inside if.
8477
8478 2014-08-06 Gary Benson <gbenson@redhat.com>
8479
8480 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8481
8482 2014-07-31 Gary Benson <gbenson@redhat.com>
8483
8484 * ax.h: Do not include server.h.
8485 * gdbthread.h: Likewise.
8486 * lynx-low.h: Likewise.
8487 * notif.h: Likewise.
8488
8489 2014-07-30 Gary Benson <gbenson@redhat.com>
8490
8491 * server.h: Include common-defs.h.
8492 Do not include config.h or build-gnulib-gdbserver/config.h.
8493
8494 2014-07-30 Gary Benson <gbenson@redhat.com>
8495
8496 * hostio-errno.c: Move server.h to top of includes list.
8497 * inferiors.c: Likewise.
8498 * linux-x86-low.c: Likewise.
8499 * notif.c: Include server.h.
8500
8501 2014-07-24 Tom Tromey <tromey@redhat.com>
8502 Gary Benson <gbenson@redhat.com>
8503
8504 * server.h (CORE_ADDR): Now unsigned.
8505
8506 2014-07-16 Pedro Alves <palves@redhat.com>
8507
8508 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
8509
8510 2014-07-15 Pedro Alves <palves@redhat.com>
8511
8512 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
8513 copy.
8514
8515 2014-07-11 Pedro Alves <palves@redhat.com>
8516
8517 * linux-low.c (kill_wait_lwp): New function, based on
8518 kill_one_lwp_callback, but use my_waitpid directly.
8519 (kill_one_lwp_callback, linux_kill): Use it.
8520
8521 2014-06-23 Pedro Alves <palves@redhat.com>
8522
8523 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
8524 before setting DR0..DR3.
8525
8526 2014-06-20 Gary Benson <gbenson@redhat.com>
8527
8528 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
8529 * configure: Regenerated.
8530 * config.in: Likewise.
8531
8532 2014-06-20 Gary Benson <gbenson@redhat.com>
8533
8534 * Makefile.in (SFILES): Update locations for files moved
8535 from common to nat.
8536 (object file files): Reordered.
8537
8538 2014-06-20 Gary Benson <gbenson@redhat.com>
8539
8540 * i386-low.h (i386_dr_low_can_set_addr): Removed.
8541 (i386_dr_low_set_addr): Likewise.
8542 (i386_dr_low_get_addr): Likewise.
8543 (i386_dr_low_can_set_control): Likewise.
8544 (i386_dr_low_set_control): Likewise.
8545 (i386_dr_low_get_control): Likewise.
8546 (i386_dr_low_get_status): Likewise.
8547 (i386_get_debug_register_length): Likewise.
8548 * linux-x86-low.c (i386_dr_low_set_addr):
8549 Changed signature. Made static.
8550 (i386_dr_low_get_addr): Likewise.
8551 (i386_dr_low_set_control): Likewise.
8552 (i386_dr_low_get_control): Likewise.
8553 (i386_dr_low_get_status): Likewise.
8554 (i386_dr_low): New global variable.
8555 * win32-i386-low.c (i386_dr_low_set_addr):
8556 Changed signature. Made static.
8557 (i386_dr_low_get_addr): Likewise.
8558 (i386_dr_low_set_control): Likewise.
8559 (i386_dr_low_get_control): Likewise.
8560 (i386_dr_low_get_status): Likewise.
8561 (i386_dr_low): New global variable.
8562
8563 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
8564
8565 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
8566 * Makefile.in (AR, AR_FLAGS): Define.
8567 * configure: Regenerate.
8568
8569 2014-06-19 Gary Benson <gbenson@redhat.com>
8570
8571 * Makefile.in (i386-dregs.o): New rule.
8572 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
8573 * i386-low.c (target.h): Remove include.
8574 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
8575 (DR_CONTROL_SHIFT): Likewise.
8576 (DR_CONTROL_SIZE): Likewise.
8577 (DR_RW_EXECUTE): Likewise.
8578 (DR_RW_WRITE): Likewise.
8579 (DR_RW_READ): Likewise.
8580 (DR_RW_IORW): Likewise.
8581 (DR_LEN_1): Likewise.
8582 (DR_LEN_2): Likewise.
8583 (DR_LEN_4): Likewise.
8584 (DR_LEN_8): Likewise.
8585 (DR_LOCAL_ENABLE_SHIFT): Likewise.
8586 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
8587 (DR_ENABLE_SIZE): Likewise.
8588 (DR_LOCAL_SLOWDOWN): Likewise.
8589 (DR_GLOBAL_SLOWDOWN): Likewise.
8590 (DR_CONTROL_RESERVED): Likewise.
8591 (I386_DR_CONTROL_MASK): Likewise.
8592 (I386_DR_VACANT): Likewise.
8593 (I386_DR_LOCAL_ENABLE): Likewise.
8594 (I386_DR_GLOBAL_ENABLE): Likewise.
8595 (I386_DR_DISABLE): Likewise.
8596 (I386_DR_SET_RW_LEN): Likewise.
8597 (I386_DR_GET_RW_LEN): Likewise.
8598 (I386_DR_WATCH_HIT): Likewise.
8599 (i386_wp_op_t): Likewise.
8600 (i386_show_dr): Likewise.
8601 (i386_length_and_rw_bits): Likewise.
8602 (i386_insert_aligned_watchpoint): Likewise.
8603 (i386_remove_aligned_watchpoint): Likewise.
8604 (i386_handle_nonaligned_watchpoint): Likewise.
8605 i386_update_inferior_debug_regs(): Likewise.
8606 (i386_dr_insert_watchpoint): Likewise.
8607 (i386_dr_remove_watchpoint): Likewise.
8608 (i386_dr_region_ok_for_watchpoint): Likewise.
8609 (i386_dr_stopped_data_address): Likewise.
8610 (i386_dr_stopped_by_watchpoint): Likewise.
8611
8612 2014-06-19 Gary Benson <gbenson@redhat.com>
8613
8614 * i386-low.c (i386_dr_show): Renamed to
8615 i386_show_dr and made static. All uses updated.
8616 (i386_dr_length_and_rw_bits): Renamed to
8617 i386_length_and_rw_bits and made static.
8618 All uses updated.
8619 (i386_dr_insert_aligned_watchpoint): Renamed to
8620 i386_insert_aligned_watchpoint and made static.
8621 All uses updated.
8622 (i386_dr_remove_aligned_watchpoint): Renamed to
8623 i386_remove_aligned_watchpoint and made static.
8624 All uses updated.
8625 (i386_dr_update_inferior_debug_regs): Renamed to
8626 i386_update_inferior_debug_regs and made static.
8627 All uses updated.
8628
8629 2014-06-18 Gary Benson <gbenson@redhat.com>
8630
8631 * i386-low.h (i386_dr_low_can_set_addr): New macro.
8632 (i386_dr_low_can_set_control): Likewise.
8633 (i386_get_debug_register_length): Likewise.
8634 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
8635 (i386_dr_low_can_set_control): Likewise.
8636 (i386_get_debug_register_length): Likewise.
8637
8638 2014-06-17 Gary Benson <gbenson@redhat.com>
8639
8640 * i386-low.h (i386-dregs.h): New include.
8641 (DR_FIRSTADDR): Now in i386-dregs.h.
8642 (DR_LASTADDR): Likewise.
8643 (DR_NADDR): Likewise.
8644 (DR_STATUS): Likewise.
8645 (DR_CONTROL): Likewise.
8646 (i386_debug_reg_state): Likewise.
8647 (i386_dr_insert_watchpoint): Likewise.
8648 (i386_dr_remove_watchpoint): Likewise.
8649 (i386_dr_region_ok_for_watchpoint): Likewise.
8650 (i386_dr_stopped_data_address): Likewise.
8651 (i386_dr_stopped_by_watchpoint): Likewise.
8652 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
8653
8654 2014-06-18 Gary Benson <gbenson@redhat.com>
8655
8656 * i386-low.h (i386_low_insert_watchpoint): Renamed to
8657 i386_dr_insert_watchpoint.
8658 (i386_low_remove_watchpoint): Renamed to
8659 i386_dr_remove_watchpoint.
8660 (i386_low_region_ok_for_watchpoint): Renamed to
8661 i386_dr_region_ok_for_watchpoint.
8662 (i386_low_stopped_data_address): Renamed to
8663 i386_dr_stopped_data_address.
8664 (i386_low_stopped_by_watchpoint): Renamed to
8665 i386_dr_stopped_by_watchpoint.
8666 * i386-low.c (i386_show_dr): Renamed to
8667 i386_dr_show and made nonstatic. All uses updated.
8668 (i386_length_and_rw_bits): Renamed to
8669 i386_dr_length_and_rw_bits and made nonstatic.
8670 All uses updated.
8671 (i386_insert_aligned_watchpoint): Renamed to
8672 i386_dr_insert_aligned_watchpoint and made nonstatic.
8673 All uses updated.
8674 (i386_remove_aligned_watchpoint): Renamed to
8675 i386_dr_remove_aligned_watchpoint and made nonstatic.
8676 All uses updated.
8677 (i386_update_inferior_debug_regs): Renamed to
8678 i386_dr_update_inferior_debug_regs and made nonstatic.
8679 All uses updated.
8680 (i386_low_insert_watchpoint): Renamed to
8681 i386_dr_insert_watchpoint. All uses updated.
8682 (i386_low_remove_watchpoint): Renamed to
8683 i386_dr_remove_watchpoint. All uses updated.
8684 (i386_low_region_ok_for_watchpoint): Renamed to
8685 i386_dr_region_ok_for_watchpoint. All uses updated.
8686 (i386_low_stopped_data_address): Renamed to
8687 i386_dr_stopped_data_address. All uses updated.
8688 (i386_low_stopped_by_watchpoint): Renamed to
8689 i386_dr_stopped_by_watchpoint. All uses updated.
8690
8691 2014-06-18 Gary Benson <gbenson@redhat.com>
8692
8693 * i386-low.c (i386_dr_low_can_set_addr): New macro.
8694 (i386_dr_low_can_set_control): Likewise.
8695 (i386_insert_aligned_watchpoint): New check.
8696
8697 2014-06-18 Gary Benson <gbenson@redhat.com>
8698
8699 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
8700 Renamed to state.
8701
8702 2014-06-18 Gary Benson <gbenson@redhat.com>
8703
8704 * i386-low.c (i386_length_and_rw_bits): Use internal_error
8705 instead of fatal and error.
8706 (i386_handle_nonaligned_watchpoint): Likewise.
8707
8708 2014-06-18 Gary Benson <gbenson@redhat.com>
8709
8710 * i386-low.c (i386_get_debug_register_length): New macro.
8711 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
8712 (i386_show_dr): Use debug_printf instead of fprintf. Use
8713 phex to format values.
8714
8715 2014-06-18 Gary Benson <gbenson@redhat.com>
8716
8717 * i386-low.h: Comment changes.
8718 * i386-low.c: Likewise.
8719
8720 2014-06-18 Gary Benson <gbenson@redhat.com>
8721
8722 * i386-low.c: Whitespace changes.
8723
8724 2014-06-12 Tom Tromey <tromey@redhat.com>
8725
8726 * utils.c (freeargv): Remove.
8727
8728 2014-06-12 Tom Tromey <tromey@redhat.com>
8729
8730 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
8731 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
8732 (parse_debug_format_options): Likewise.
8733 (gdbserver_usage): Likewise.
8734 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
8735 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
8736 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
8737 against libiberty.
8738 ($(LIBGNU)): Depend on libiberty.
8739 (all-lib): Recurse into all subdirs.
8740 (install-only): Invoke "install" target in subdirs.
8741 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
8742 targets.
8743 * configure: Rebuild.
8744 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
8745 for vasprintf, vsnprintf, or gettimeofday.
8746 * configure.srv: Don't add safe-ctype.o or lbasename.o to
8747 srv_tgtobj.
8748
8749 2014-06-05 Joel Brobecker <brobecker@adacore.com>
8750
8751 * development.sh: Delete.
8752 * Makefile.in (config.status): Adjust dependency on development.sh.
8753 * configure.ac: Adjust development.sh source call.
8754 * configure: Regenerate.
8755
8756 2014-06-02 Pedro Alves <palves@redhat.com>
8757
8758 * ax.c (gdb_free_agent_expr): New function.
8759 * ax.h (gdb_free_agent_expr): New declaration.
8760 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
8761 list.
8762 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
8763 static.
8764 (clear_breakpoint_conditions_and_commands): New function.
8765 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
8766 (clear_breakpoint_conditions_and_commands): New declaration.
8767
8768 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8769
8770 * linux-aarch64-low.c (asm/ptrace.h): Include.
8771
8772 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8773
8774 Fix TLS access for -static -pthread.
8775 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
8776 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
8777 (thread_db_load_search, try_thread_db_load_1): Initialize it.
8778
8779 2014-05-20 Pedro Alves <palves@redhat.com>
8780
8781 * linux-aarch64-low.c (aarch64_insert_point)
8782 (aarch64_remove_point): No longer check whether the type is
8783 supported here. Adjust to new interface.
8784 (the_low_target): Install aarch64_supports_z_point_type as
8785 supports_z_point_type method.
8786 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
8787 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
8788 instead of a Z packet char. Adjust.
8789 (arm_supports_z_point_type): New function.
8790 (arm_insert_point, arm_remove_point): Adjust to new interface.
8791 (the_low_target): Install arm_supports_z_point_type.
8792 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
8793 (cris_insert_point, cris_remove_point): Adjust to new interface.
8794 Don't check whether the type is supported here.
8795 (the_low_target): Install cris_supports_z_point_type.
8796 * linux-low.c (linux_supports_z_point_type): New function.
8797 (linux_insert_point, linux_remove_point): Adjust to new interface.
8798 * linux-low.h (struct linux_target_ops) <insert_point,
8799 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
8800 raw_breakpoint pointer parameter.
8801 <supports_z_point_type>: New method.
8802 * linux-mips-low.c (mips_supports_z_point_type): New function.
8803 (mips_insert_point, mips_remove_point): Adjust to new interface.
8804 Use mips_supports_z_point_type.
8805 (the_low_target): Install mips_supports_z_point_type.
8806 * linux-ppc-low.c (the_low_target): Install NULL as
8807 supports_z_point_type method.
8808 * linux-s390-low.c (the_low_target): Install NULL as
8809 supports_z_point_type method.
8810 * linux-sparc-low.c (the_low_target): Install NULL as
8811 supports_z_point_type method.
8812 * linux-x86-low.c (x86_supports_z_point_type): New function.
8813 (x86_insert_point): Adjust to new insert_point interface. Use
8814 insert_memory_breakpoint. Adjust to new
8815 i386_low_insert_watchpoint interface.
8816 (x86_remove_point): Adjust to remove_point interface. Use
8817 remove_memory_breakpoint. Adjust to new
8818 i386_low_remove_watchpoint interface.
8819 (the_low_target): Install x86_supports_z_point_type.
8820 * lynx-low.c (lynx_target_ops): Install NULL as
8821 supports_z_point_type callback.
8822 * nto-low.c (nto_supports_z_point_type): New.
8823 (nto_insert_point, nto_remove_point): Adjust to new interface.
8824 (nto_target_ops): Install nto_supports_z_point_type.
8825 * mem-break.c: Adjust intro comment.
8826 (struct raw_breakpoint) <raw_type, size>: New fields.
8827 <inserted>: Update comment.
8828 <shlib_disabled>: Delete field.
8829 (enum bkpt_type) <gdb_breakpoint>: Delete value.
8830 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
8831 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
8832 (raw_bkpt_type_to_target_hw_bp_type): New function.
8833 (find_enabled_raw_code_breakpoint_at): New function.
8834 (find_raw_breakpoint_at): New type and size parameters. Use them.
8835 (insert_memory_breakpoint): New function, based off
8836 set_raw_breakpoint_at.
8837 (remove_memory_breakpoint): New function.
8838 (set_raw_breakpoint_at): Reimplement.
8839 (set_breakpoint): New, based on set_breakpoint_at.
8840 (set_breakpoint_at): Reimplement.
8841 (delete_raw_breakpoint): Go through the_target->remove_point
8842 instead of assuming memory breakpoints.
8843 (find_gdb_breakpoint_at): Delete.
8844 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
8845 (find_gdb_breakpoint): New function.
8846 (set_gdb_breakpoint_at): Delete.
8847 (z_type_supported): New function.
8848 (set_gdb_breakpoint_1): New function, loosely based off
8849 set_gdb_breakpoint_at.
8850 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
8851 (delete_gdb_breakpoint_at): Delete.
8852 (delete_gdb_breakpoint_1): New function, loosely based off
8853 delete_gdb_breakpoint_at.
8854 (delete_gdb_breakpoint): New function.
8855 (clear_gdb_breakpoint_conditions): Rename to ...
8856 (clear_breakpoint_conditions): ... this. Don't handle a NULL
8857 breakpoint.
8858 (add_condition_to_breakpoint): Make static.
8859 (add_breakpoint_condition): Take a struct breakpoint pointer
8860 instead of an address. Adjust.
8861 (gdb_condition_true_at_breakpoint): Rename to ...
8862 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
8863 z_type parameter.
8864 (gdb_condition_true_at_breakpoint): Reimplement.
8865 (add_breakpoint_commands): Take a struct breakpoint pointer
8866 instead of an address. Adjust.
8867 (gdb_no_commands_at_breakpoint): Rename to ...
8868 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
8869 parameter. Return true if no breakpoint was found. Change debug
8870 output.
8871 (gdb_no_commands_at_breakpoint): Reimplement.
8872 (run_breakpoint_commands): Rename to ...
8873 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
8874 and change return type to boolean.
8875 (run_breakpoint_commands): New function.
8876 (gdb_breakpoint_here): Also check for Z1 breakpoints.
8877 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
8878 breakpoint. Go through the_target->remove_point instead of
8879 assuming memory breakpoint.
8880 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
8881 software and hardware breakpoints.
8882 (reinsert_raw_breakpoint): Go through the_target->insert_point
8883 instead of assuming memory breakpoint.
8884 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
8885 software and hardware breakpoints.
8886 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
8887 Check both software and hardware breakpoints.
8888 (validate_inserted_breakpoint): Assert the breakpoint is a
8889 software breakpoint. Set the inserted flag to -1 instead of
8890 setting shlib_disabled.
8891 (delete_disabled_breakpoints): Adjust.
8892 (validate_breakpoints): Only validate software breakpoints.
8893 Adjust to inserted flag change.
8894 (check_mem_read, check_mem_write): Skip breakpoint types other
8895 than software breakpoints. Adjust to inserted flag change.
8896 * mem-break.h (enum raw_bkpt_type): New enum.
8897 (raw_breakpoint, struct process_info): Forward declare.
8898 (Z_packet_to_target_hw_bp_type): Delete declaration.
8899 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
8900 (set_gdb_breakpoint, delete_gdb_breakpoint)
8901 (clear_breakpoint_conditions): New declarations.
8902 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
8903 (breakpoint_inserted_here): Update comment.
8904 (add_breakpoint_condition, add_breakpoint_commands): Replace
8905 address parameter with a breakpoint pointer parameter.
8906 (gdb_breakpoint_here): Update comment.
8907 (delete_gdb_breakpoint_at): Delete.
8908 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
8909 * server.c (process_point_options): Take a struct breakpoint
8910 pointer instead of an address. Adjust.
8911 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
8912 delete_gdb_breakpoint.
8913 * spu-low.c (spu_target_ops): Install NULL as
8914 supports_z_point_type method.
8915 * target.h: Include mem-break.h.
8916 (struct target_ops) <prepare_to_access_memory>: Update comment.
8917 <supports_z_point_type>: New field.
8918 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8919 instead of a char. Also take a raw breakpoint pointer.
8920 * win32-arm-low.c (the_low_target): Install NULL as
8921 supports_z_point_type.
8922 * win32-i386-low.c (i386_supports_z_point_type): New function.
8923 (i386_insert_point, i386_remove_point): Adjust to new interface.
8924 (the_low_target): Install i386_supports_z_point_type.
8925 * win32-low.c (win32_supports_z_point_type): New function.
8926 (win32_insert_point, win32_remove_point): Adjust to new interface.
8927 (win32_target_ops): Install win32_supports_z_point_type.
8928 * win32-low.h (struct win32_target_ops):
8929 <supports_z_point_type>: New method.
8930 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
8931 instead of a char. Also take a raw breakpoint pointer.
8932
8933 2014-05-20 Pedro Alves <palves@redhat.com>
8934
8935 * mem-break.h: Include break-common.h.
8936 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8937 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
8938 (Z_packet_to_target_hw_bp_type): New declaration.
8939 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
8940 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
8941 (Z_PACKET_ACCESS_WP): Delete macros.
8942 (Z_packet_to_hw_type): Delete function.
8943 * i386-low.h: Don't include break-common.h here.
8944 (Z_packet_to_hw_type): Delete declaration.
8945 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
8946 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8947 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
8948 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
8949 * linux-aarch64-low.c: Don't include break-common.h here.
8950 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
8951 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
8952 (Z_packet_to_target_hw_bp_type): Delete function.
8953 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
8954 function.
8955 (mips_insert_point, mips_remove_point): Use
8956 Z_packet_to_target_hw_bp_type.
8957
8958 2014-05-20 Pedro Alves <palves@redhat.com>
8959
8960 * linux-aarch64-low.c: Include break-common.h.
8961 (enum target_point_type): Delete.
8962 (Z_packet_to_point_type): Rename to ...
8963 (Z_packet_to_target_hw_bp_type): ... this, and return a
8964 target_hw_bp_type instead.
8965 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
8966 instead of an enum target_point_type.
8967 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
8968 breakpoint type.
8969 (aarch64_dr_state_insert_one_point)
8970 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
8971 (aarch64_handle_aligned_watchpoint)
8972 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
8973 Take an enum target_hw_bp_type instead of an enum
8974 target_point_type.
8975 (aarch64_supports_z_point_type): New function.
8976 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
8977 use Z_packet_to_target_hw_bp_type.
8978
8979 2014-05-20 Joel Brobecker <brobecker@adacore.com>
8980
8981 * configure.ac: Only use -Werror by default when DEVELOPMENT
8982 is true.
8983 * configure: Regenerate.
8984
8985 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8986
8987 Fix gdbserver qGetTLSAddr for x86_64 -m32.
8988 * linux-x86-low.c (X86_64_USER_REGS): New.
8989 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
8990
8991 2014-04-28 Yao Qi <yao@codesourcery.com>
8992
8993 * Makefile.in (i386-avx512.c): Fix the typo of generated file
8994 name.
8995
8996 2014-04-25 Pedro Alves <palves@redhat.com>
8997
8998 PR server/16255
8999 * linux-low.c (linux_attach_fail_reason_string): New function.
9000 (linux_attach_lwp): Delete.
9001 (linux_attach_lwp_1): Rename to ...
9002 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9003 argument. Remove "initial" parameter. Return int instead of
9004 void. Don't error or warn here.
9005 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9006 failure to attach to the tgid. Call warning when failing to
9007 attach to an lwp.
9008 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9009 argument. Remove "initial" parameter. Return int instead of
9010 void. Don't error or warn here.
9011 (linux_attach_fail_reason_string): New declaration.
9012 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9013 interface change. Use linux_attach_fail_reason_string.
9014
9015 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
9016 Walfred Tedeschi <walfred.tedeschi@intel.com>
9017
9018 * Makefile.in: Added rules to handle new files
9019 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9020 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9021 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9022 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9023 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9024 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9025 x32-avx512-linux.o.
9026 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9027 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9028 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9029 i386/x32-avx512.xml.
9030 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9031 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9032 i386/x32-avx512-linux.xml.
9033 * i387-fp.c (num_avx512_k_registers): New constant for number
9034 of K registers.
9035 (num_avx512_zmmh_low_registers): New constant for number of
9036 lower ZMM registers (0-15).
9037 (num_avx512_zmmh_high_registers): New constant for number of
9038 higher ZMM registers (16-31).
9039 (num_avx512_ymmh_registers): New contant for number of higher
9040 YMM registers (ymm16-31 added by avx521 on x86_64).
9041 (num_avx512_xmm_registers): New constant for number of higher
9042 XMM registers (xmm16-31 added by AVX512 on x86_64).
9043 (struct i387_xsave): Add space for AVX512 registers.
9044 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9045 Add code to handle AVX512 registers.
9046 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9047 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9048 prototypei from generated file.
9049 (tdesc_amd64_avx512_linux): Likewise.
9050 (init_registers_x32_avx512_linux): Likewise.
9051 (tdesc_x32_avx512_linux): Likewise.
9052 (init_registers_i386_avx512_linux): Likewise.
9053 (tdesc_i386_avx512_linux): Likewise.
9054 (x86_64_regmap): Add AVX512 registers.
9055 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9056 mask.
9057 (initialize_low_arch): Add code to initialize AVX512 registers.
9058
9059 2014-04-23 Pedro Alves <palves@redhat.com>
9060
9061 * mem-break.c (find_gdb_breakpoint_at): Make static.
9062 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9063
9064 2014-04-23 Pedro Alves <palves@redhat.com>
9065
9066 * i386-low.c: Don't include break-common.h here.
9067 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9068 prototype to take target_hw_bp_type as argument instead of a Z
9069 packet char.
9070 * i386-low.h: Include break-common.h here.
9071 (Z_packet_to_hw_type): Declare.
9072 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9073 prototypes.
9074 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9075 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9076 (x86_remove_point): Convert the packet number to a
9077 target_hw_bp_type before calling i386_low_remove_watchpoint.
9078 * win32-i386-low.c (i386_insert_point): Convert the packet number
9079 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9080 (i386_remove_point): Convert the packet number to a
9081 target_hw_bp_type before calling i386_low_remove_watchpoint.
9082
9083 2014-04-23 Pedro Alves <palves@redhat.com>
9084
9085 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9086
9087 2014-04-10 Pedro Alves <palves@redhat.com>
9088
9089 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9090 Check if the condition or command is NULL before checking if the
9091 breakpoint is known. On success, return true.
9092 * mem-break.h (add_breakpoint_condition): Document return.
9093 (add_breakpoint_commands): Add describing comment.
9094 * server.c (skip_to_semicolon): New function.
9095 (process_point_options): Use it.
9096
9097 2014-04-09 Pedro Alves <palves@redhat.com>
9098
9099 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9100 to lwpid_of.
9101
9102 2014-02-27 Pedro Alves <palves@redhat.com>
9103
9104 PR 12702
9105 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9106 macros.
9107 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9108 output.
9109 (last_thread_of_process_p): Take a PID argument instead of a
9110 thread pointer.
9111 (linux_wait_for_lwp): Delete.
9112 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9113 functions.
9114 (linux_low_filter_event): New function, party factored out from
9115 linux_wait_for_event.
9116 (linux_wait_for_event): Rename to ...
9117 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9118 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9119 sigsuspend. Check for zombie leaders.
9120 (linux_wait_for_event): Reimplement as wrapper around
9121 linux_wait_for_event_filtered.
9122 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9123 a normal or signal exit is seen, it's the whole process exiting.
9124 (wait_for_sigstop): No longer a for_each_inferior callback.
9125 Rewrite on top of linux_wait_for_event_filtered.
9126 (stop_all_lwps): Call wait_for_sigstop directly.
9127 * server.c (resume, handle_target_event): Handle
9128 TARGET_WAITKIND_NO_RESUMED.
9129
9130 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9131
9132 * win32-low.c (psapi_get_dll_name,
9133 * win32_CreateToolhelp32Snapshot): Delete.
9134 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9135 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9136 Delete.
9137 (handle_load_dll): Add function description.
9138 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9139
9140 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9141
9142 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9143 Add comment.
9144 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9145 base address when calling win32_add_one_solib.
9146 (handle_load_dll): Delete local variable load_addr.
9147 Remove 0x1000 offset applied to DLL base address when calling
9148 win32_add_one_solib.
9149 (handle_unload_dll): Add comment.
9150
9151 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9152
9153 * win32-low.c (win32_add_all_dlls): Renames
9154 win32_ensure_ntdll_loaded. Rewrite function documentation.
9155 Adjust implementation to always load all DLLs.
9156 Add 0x1000 offset to DLL base address when calling
9157 win32_add_one_solib.
9158 (child_initialization_done): New static global.
9159 (do_initial_child_stuff): Set child_initialization_done to
9160 zero during child initialization, and 1 after. Replace call
9161 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9162 Add comment.
9163 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9164 (handle_unload_dll): Add function documentation.
9165 (get_child_debug_event): Ignore load and unload DLL events
9166 during child initialization.
9167
9168 2014-02-20 Doug Evans <dje@google.com>
9169
9170 Remove global all_lwps.
9171 * inferiors.h (ptid_of): Move here from linux-low.h.
9172 (pid_of, lwpid_of): Ditto.
9173 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9174 parameter is a struct thread_info * now.
9175 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9176 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9177 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9178 directly.
9179 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9180 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9181 * linux-arm-low.c (update_registers_callback): Update, "entry"
9182 parameter is a struct thread_info * now.
9183 Fetch lwpid from current_inferior directly.
9184 (arm_insert_point): Pass &all_threads to find_inferior instead of
9185 &all_lwps.
9186 (arm_remove_point): Ditto.
9187 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9188 (arm_prepare_to_resume): Fetch pid from thread.
9189 (arm_read_description): Fetch lwpid from current_inferior directly.
9190 * linux-low.c (all_lwps): Delete.
9191 (delete_lwp): Delete call to remove_inferior.
9192 (handle_extended_wait): Fetch lwpid from thread.
9193 (add_lwp): Don't set lwp->entry.id. Remove call to
9194 add_inferior_to_list.
9195 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9196 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9197 (kill_one_lwp_callback): Ditto.
9198 (linux_kill): Don't dereference NULL pointer.
9199 Fetch ptid,lwpid from thread.
9200 (get_detach_signal): Fetch ptid from thread.
9201 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9202 Simplify call to regcache_invalidate_thread.
9203 (delete_lwp_callback): Update, "entry" parameter is a
9204 struct thread_info * now. Fetch pid from thread.
9205 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9206 (status_pending_p_callback): Update, "entry" parameter is a
9207 struct thread_info * now. Fetch ptid from thread.
9208 (find_lwp_pid): Update, "entry" parameter is a
9209 struct thread_info * now.
9210 (linux_wait_for_lwp): Fetch pid from thread.
9211 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9212 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9213 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9214 (dequeue_one_deferred_signal): Ditto.
9215 (cancel_breakpoint): Fetch ptid from current_inferior.
9216 (linux_wait_for_event): Pass &all_threads to find_inferior,
9217 not &all_lwps. Fetch ptid, lwpid from thread.
9218 (count_events_callback): Update, "entry" parameter is a
9219 struct thread_info * now.
9220 (select_singlestep_lwp_callback): Ditto.
9221 (select_event_lwp_callback): Ditto.
9222 (cancel_breakpoints_callback): Ditto.
9223 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9224 not &all_lwps.
9225 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9226 (unsuspend_one_lwp): Update, "entry" parameter is a
9227 struct thread_info * now.
9228 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9229 not &all_lwps.
9230 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9231 Fetch lwpid from thread, not lwp.
9232 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9233 Pass &all_threads to find_inferior, not &all_lwps.
9234 (send_sigstop): Fetch lwpid from thread, not lwp.
9235 (send_sigstop_callback): Update, "entry" parameter is a
9236 struct thread_info * now.
9237 (suspend_and_send_sigstop_callback): Ditto.
9238 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9239 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9240 struct thread_info * now.
9241 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9242 from thread, lwp.
9243 (lwp_running): Update, "entry" parameter is a
9244 struct thread_info * now.
9245 (stop_all_lwps): Fetch ptid from thread.
9246 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9247 (linux_resume_one_lwp): Fetch lwpid from thread.
9248 (linux_set_resume_request): Update, "entry" parameter is a
9249 struct thread_info * now. Fetch pid, lwpid from thread.
9250 (resume_status_pending_p): Update, "entry" parameter is a
9251 struct thread_info * now.
9252 (need_step_over_p): Ditto. Fetch lwpid from thread.
9253 (start_step_over): Fetch lwpid from thread.
9254 (linux_resume_one_thread): Update, "entry" parameter is a
9255 struct thread_info * now. Fetch lwpid from thread.
9256 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9257 (proceed_one_lwp): Update, "entry" parameter is a
9258 struct thread_info * now. Fetch lwpid from thread.
9259 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9260 struct thread_info * now.
9261 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9262 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9263 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9264 directly.
9265 (regsets_store_inferior_registers): Ditto.
9266 (fetch_register, store_register): Ditto.
9267 (linux_read_memory, linux_write_memory): Ditto.
9268 (linux_request_interrupt): Ditto.
9269 (linux_read_auxv): Ditto.
9270 (linux_xfer_siginfo): Ditto.
9271 (linux_qxfer_spu): Ditto.
9272 (linux_qxfer_libraries_svr4): Ditto.
9273 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9274 moved to inferiors.h.
9275 (get_lwp): Delete.
9276 (get_thread_lwp): Update.
9277 (struct lwp_info): Delete member "entry". Simplify comment for
9278 member "thread".
9279 (all_lwps): Delete.
9280 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9281 current_inferior directly.
9282 (update_watch_registers_callback): Update, "entry" parameter is a
9283 struct thread_info * now. Fetch pid from thread.
9284 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9285 (mips_insert_point): Fetch lwpid from current_inferior.
9286 Pass &all_threads to find_inferior, not &all_lwps.
9287 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9288 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9289 directly.
9290 (mips_stopped_data_address): Ditto.
9291 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9292 directly.
9293 * linux-tile-low.c (tile_arch_setup): Ditto.
9294 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9295 (update_debug_registers_callback): Update, "entry" parameter is a
9296 struct thread_info * now. Fetch pid from thread.
9297 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9298 Pass &all_threads to find_inferior, not &all_lwps.
9299 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9300 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9301 Pass &all_threads to find_inferior, not &all_lwps.
9302 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9303 (i386_dr_low_get_status): Ditto.
9304 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9305 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9306 (x86_linux_read_description): Ditto.
9307 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9308
9309 2014-02-20 Doug Evans <dje@google.com>
9310
9311 * inferiors.c (get_first_inferior): Fix buglet.
9312
9313 2014-02-19 Doug Evans <dje@google.com>
9314
9315 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9316 * inferiors.c (add_thread): Change result type to struct thread_info *.
9317 All callers updated.
9318 (add_lwp): Call add_thread here instead of in callers.
9319 All callers updated.
9320 * linux-low.h (get_lwp_thread): Rewrite.
9321 (struct lwp_info): New member "thread".
9322
9323 2014-02-19 Doug Evans <dje@google.com>
9324
9325 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9326 All callers updated.
9327
9328 2014-02-19 Doug Evans <dje@google.com>
9329
9330 * inferiors.c (add_thread): Fix whitespace.
9331
9332 2014-02-19 Doug Evans <dje@google.com>
9333
9334 * dll.c (clear_dlls): Replace accessing list implemention details
9335 with API function.
9336 * gdbthread.h (get_first_thread): Declare.
9337 * inferiors.c (for_each_inferior_with_data): New function.
9338 (get_first_thread): New function.
9339 (find_thread_ptid): Simplify.
9340 (get_first_inferior): New function.
9341 (clear_list): Delete.
9342 (one_inferior_p): New function.
9343 (clear_inferior_list): New function.
9344 (clear_inferiors): Update.
9345 * inferiors.h (for_each_inferior_with_data): Declare.
9346 (clear_inferior_list): Declare.
9347 (one_inferior_p): Declare.
9348 (get_first_inferior): Declare.
9349 * linux-low.c (linux_wait_for_event): Replace accessing list
9350 implemention details with API function.
9351 * server.c (target_running): Ditto.
9352 (accumulate_file_name_length): New function.
9353 (emit_dll_description): New function.
9354 (handle_qxfer_libraries): Replace accessing list implemention
9355 details with API function.
9356 (handle_qxfer_threads_worker): New function.
9357 (handle_qxfer_threads_proper): Replace accessing list implemention
9358 details with API function.
9359 (handle_query): Ditto.
9360 (visit_actioned_threads_callback_ftype): New typedef.
9361 (visit_actioned_threads_data): New struct.
9362 (visit_actioned_threads): Rewrite to be find_inferior callback.
9363 (resume): Call find_inferior.
9364 (handle_status): Replace accessing list implemention
9365 details with API function.
9366 (process_serial_event): Replace accessing list implemention details
9367 with API function.
9368 * target.c (set_desired_inferior): Replace accessing list implemention
9369 details with API function.
9370 * tracepoint.c (same_process_p): New function.
9371 (gdb_agent_about_to_close): Replace accessing list implemention
9372 details with API function.
9373 * win32-low.c (child_delete_thread): Replace accessing list
9374 implemention details with API function.
9375 (match_dll_by_basename): New function.
9376 (dll_is_loaded_by_basename): New function.
9377 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9378 details call to dll_is_loaded_by_basename.
9379
9380 2014-02-19 Doug Evans <dje@google.com>
9381
9382 * dll.h (struct dll_info): Add comment.
9383 * gdbthread.h (struct thread_info): Add comment.
9384 (current_ptid): Simplify.
9385 * inferiors.c (add_process): Update.
9386 (remove_process): Update.
9387 * inferiors.h (struct process_info): Rename member "head" to "entry".
9388 * linux-low.c (delete_lwp): Update.
9389 (add_lwp): Update.
9390 (last_thread_of_process_p): Update.
9391 (kill_one_lwp_callback, linux_kill): Update.
9392 (status_pending_p_callback): Update.
9393 (wait_for_sigstop): Update. Simplify read of ptid.
9394 (start_step_over): Update.
9395 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9396 (get_lwp_thread): Update.
9397 (struct lwp_info): Rename member "head" to "entry".
9398 * regcache.h (inferior_list_entry): Delete.
9399 * server.c (kill_inferior_callback): Update.
9400 (detach_or_kill_inferior_callback): Update.
9401 (print_started_pid): Update.
9402 (print_attached_pid): Update.
9403 (process_serial_event): Simplify read of ptid.
9404 * thread-db.c (thread_db_create_event): Update.
9405 (thread_db_get_tls_address): Update.
9406 * win32-low.c (current_inferior_ptid): Simplify.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9411 argument.
9412 (target_supports_btrace): Update.
9413
9414 2014-02-14 Yao Qi <yao@codesourcery.com>
9415
9416 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9417 (rsp-low-ipa.o): New target.
9418
9419 2014-02-12 Tom Tromey <tromey@redhat.com>
9420
9421 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9422 convert_ascii_to_int.
9423 * regcache.c (registers_to_string): Likewise.
9424 * remote-utils.c (decode_M_packet): Likewise.
9425 * server.c (process_serial_event): Likewise.
9426
9427 2014-02-12 Tom Tromey <tromey@redhat.com>
9428
9429 * server.c (handle_query, handle_v_run): Use hex2bin, not
9430 unhexify.
9431 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9432
9433 2014-02-12 Tom Tromey <tromey@redhat.com>
9434
9435 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9436 convert_int_to_ascii.
9437 * regcache.c (registers_to_string, collect_register_as_string):
9438 Likewise.
9439 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9440 Likewise.
9441 * server.c (process_serial_event): Likewise.
9442 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9443 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9444
9445 2014-02-12 Tom Tromey <tromey@redhat.com>
9446
9447 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9448 bin2hex, not hexify.
9449 * tracepoint.c (cmd_qtstatus): Likewise.
9450
9451 2014-02-12 Tom Tromey <tromey@redhat.com>
9452
9453 * remote-utils.c (monitor_output): Pass explicit length to
9454 hexify.
9455
9456 2014-02-12 Tom Tromey <tromey@redhat.com>
9457
9458 * tracepoint.c: Include rsp-low.h.
9459 * server.c: Include rsp-low.h.
9460 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9461 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9462 declare.
9463 * remote-utils.c: Include rsp-low.h.
9464 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9465 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9466 (convert_int_to_ascii, convert_ascii_to_int): Move to
9467 common/rsp-low.c.
9468 * regcache.c: Include rsp-low.h.
9469 * ax.c: Include rsp-low.h.
9470 * Makefile.in (SFILES): Add common/rsp-low.c.
9471 (OBS): Add rsp-low.o.
9472 (rsp-low.o): New target.
9473
9474 2014-02-12 Tom Tromey <tromey@redhat.com>
9475
9476 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9477 Include print-utils.h.
9478 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9479 (plongest, thirty_two, phex_nz): Remove.
9480 * Makefile.in (SFILES): Add common/print-utils.c.
9481 (OBS): Add print-utils.o.
9482 (print-utils-ipa.o): New target.
9483 (print-utils.o): New target.
9484 (IPA_OBJS): Add print-utils-ipa.o.
9485
9486 2014-02-06 Tom Tromey <tromey@redhat.com>
9487
9488 * Makefile.in (SFILES): Fix indentation.
9489
9490 2014-02-05 Doug Evans <dje@google.com>
9491
9492 * linux-low.c (linux_wait_for_event): Improve comment.
9493 (linux_wait_1): Keep current_inferior in sync with event_child.
9494
9495 2014-01-22 Doug Evans <dje@google.com>
9496
9497 * gdbthread.h (gdb_id_to_thread): Delete, unused.
9498
9499 2014-01-22 Doug Evans <dje@google.com>
9500
9501 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
9502 * configure: Regenerate.
9503 * config.in: Regenerate.
9504 * Makefile.in (SFILES): Add debug.c.
9505 (OBS): Add debug.o.
9506 * debug.c: New file.
9507 * debug.h: New file.
9508 * linux-aarch64-low.c (*): Update all debugging printfs to use
9509 debug_printf instead of fprintf.
9510 * linux-arm-low.c (*): Ditto.
9511 * linux-cris-low.c (*): Ditto.
9512 * linux-crisv32-low.c (*): Ditto.
9513 * linux-m32r-low.c (*): Ditto.
9514 * linux-sparc-low.c (*): Ditto.
9515 * linux-x86.c (*): Ditto.
9516 * linux-low.c (*): Ditto.
9517 (linux_wait_1): Add calls to debug_enter, debug_exit.
9518 (linux_wait): Remove redundant debugging printf.
9519 (stop_all_lwps): Add calls to debug_enter, debug_exit.
9520 (linux_resume, unstop_all_lwps): Ditto.
9521 * mem-break.c (*): Update all debugging printfs to use
9522 debug_printf instead of fprintf.
9523 * remote-utils.c (*): Ditto.
9524 * thread-db.c (*): Ditto.
9525 * server.c #include <ctype.h>, "gdb_vecs.h".
9526 (debug_threads): Moved to debug.c.
9527 (*): Update all debugging printfs to use debug_printf instead of
9528 fprintf.
9529 (start_inferior): Replace call to fflush with call to debug_flush.
9530 (monitor_show_help): Mention set debug-format.
9531 (parse_debug_format_options): New function.
9532 (handle_monitor_command): Handle "monitor set debug-format".
9533 (gdbserver_usage): Mention --debug-format.
9534 (main): Parse --debug-format.
9535 * server.h (debug_threads): Declaration moved to debug.h.
9536 #include "debug.h".
9537 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
9538 trace_debug_1 that uses debug_printf.
9539 (tracepoint_look_up_symbols): Update all debugging printfs to use
9540 debug_printf instead of fprintf.
9541
9542 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9543
9544 * linux-xtensa-low.c: Include asm/ptrace.h instead of
9545 sys/ptrace.h.
9546
9547 2014-01-17 Pedro Alves <palves@redhat.com>
9548
9549 PR build/16445
9550 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
9551 defined after including gdb_proc_service.h.
9552
9553 2014-01-16 Doug Evans <dje@google.com>
9554
9555 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
9556 (match_dll): Use it.
9557
9558 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9559
9560 * target.h (target_ops) <read_btrace>: Change parameters and
9561 return type to allow error reporting.
9562 * server.c (handle_qxfer_btrace): Support delta reads. Pass
9563 trace reading errors on.
9564 * linux-low.c (linux_low_read_btrace): Pass trace reading
9565 errors on.
9566 (linux_low_disable_btrace): New.
9567
9568 2014-01-15 Doug Evans <dje@google.com>
9569
9570 * inferiors.c (thread_id_to_gdb_id): Delete.
9571 * inferiors.h (thread_id_to_gdb_id): Delete.
9572
9573 2014-01-13 Eli Zaretskii <eliz@gnu.org>
9574
9575 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
9576 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
9577 versions.
9578
9579 2014-01-08 Pedro Alves <palves@redhat.com>
9580
9581 * server.c (handle_status): Don't discard previous queued stop
9582 replies or thread's pending status here.
9583 (main) <disconnection>: Do it here instead.
9584
9585 2014-01-08 Pedro Alves <palves@redhat.com>
9586
9587 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
9588 * server.c (visit_actioned_threads, handle_pending_status): New
9589 function.
9590 (handle_v_cont): Factor out parts to ...
9591 (resume): ... this new function. If in all-stop, and a thread
9592 being resumed has a pending status, report it without actually
9593 resuming.
9594 (myresume): Adjust to use the new 'resume' function.
9595 (clear_pending_status_callback, set_pending_status_callback)
9596 (find_status_pending_thread_callback): New functions.
9597 (handle_status): Handle the case of multiple threads having
9598 interesting statuses to report. Report threads' real last signal
9599 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
9600 with an interesting thread to report the status for, instead of
9601 always reporting the status of the first thread.
9602
9603 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9604
9605 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
9606 * gdbreplay.c (gdbreplay_version): Likewise.
9607
9608 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
9609
9610 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
9611 iov.iov_len with the real length in use.
9612
9613 2013-12-13 Joel Brobecker <brobecker@adacore.com>
9614
9615 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
9616 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
9617 for all targets that use win32-low.c.
9618 * win32-low.c (win32_ensure_ntdll_loaded): New function.
9619 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
9620
9621 2013-12-13 Pedro Alves <palves@redhat.com>
9622
9623 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
9624 if equal to TARGET_WAITKIND_LOADED.
9625 * win32-low.c (cached_status): New static global.
9626 (win32_wait): Add declaration.
9627 (do_initial_child_stuff): Flush all initial pending debug events
9628 up to the initial breakpoint.
9629 (win32_wait): If CACHED_STATUS was set, return that instead
9630 of doing a real wait. Remove the code resuming the execution
9631 of the inferior after receiving a TARGET_WAITKIND_LOADED event
9632 during the initial phase. Also remove the code changing
9633 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
9634 TARGET_WAITKIND_STOPPED.
9635
9636 2013-12-11 Yao Qi <yao@codesourcery.com>
9637
9638 * notif.c (handle_notif_ack): Return 0 if no notification
9639 matches.
9640
9641 2013-11-20 Doug Evans <dje@google.com>
9642
9643 * linux-low.c (linux_set_resume_request): Fix comment.
9644
9645 2013-11-20 Doug Evans <dje@google.com>
9646
9647 * linux-low.c (resume_status_pending_p): Tweak comment.
9648
9649 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
9650
9651 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
9652 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
9653 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
9654 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
9655 (srv_amd64_regobj): Add amd64-mpx.o.
9656 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
9657 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
9658 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
9659 * i387-fp.c (num_pl_bnd_register) Added constant.
9660 (num_pl_bnd_cfg_registers) Added constant.
9661 (struct i387_xsave) Added reserved area and MPX fields.
9662 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
9663 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
9664 function.
9665 (tdesc_i386_mpx_linux): Add MPX amd64 target.
9666 (init_registers_amd64_mpx_linux): Declare new function.
9667 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
9668 (x86_64_regmap): Add MPX registers.
9669 (x86_linux_read_description): Add MPX case.
9670 (initialize_low_arch): Initialize MPX targets.
9671
9672 2013-11-18 Tom Tromey <tromey@redhat.com>
9673
9674 * configure: Rebuild.
9675 * configure.ac: Don't check for stdlib.h.
9676 * gdbreplay.c: Unconditionally include stdlib.h.
9677
9678 2013-11-18 Tom Tromey <tromey@redhat.com>
9679
9680 * config.in: Rebuild.
9681 * configure: Rebuild.
9682 * configure.ac: Don't use AC_HEADER_DIRENT.
9683
9684 2013-11-18 Tom Tromey <tromey@redhat.com>
9685
9686 * server.h: Don't check HAVE_STRING_H.
9687 * gdbreplay.c: Don't check HAVE_STRING_H.
9688 * configure: Rebuild.
9689
9690 2013-11-18 Tom Tromey <tromey@redhat.com>
9691
9692 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
9693 LIBGNU.
9694
9695 2013-11-08 Tom Tromey <tromey@redhat.com>
9696
9697 * configure, config.in: Rebuild.
9698 * configure.ac: Remove unused configury.
9699
9700 2013-11-08 Tom Tromey <tromey@redhat.com>
9701
9702 * acinclude.m4: Include common.m4, codeset.m4.
9703 * configure, config.in: Rebuild.
9704 * configure.ac: Use GDB_AC_COMMON.
9705
9706 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9707
9708 * linux-s390-low.c (HWCAP_S390_TE): New define.
9709 (s390_arch_setup): Consider the TE field in the HWCAP for
9710 determining 'have_regset_tdb'.
9711
9712 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
9713
9714 PR gdb/16014
9715 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
9716 call to sizeof.
9717
9718 2013-10-02 Pedro Alves <palves@redhat.com>
9719
9720 * server.c (process_serial_event): Don't output "GDBserver
9721 exiting" if GDB is connected through stdio.
9722 * target.c (mywait): Likewise, be silent if GDB is connected
9723 through stdio.
9724
9725 2013-10-01 Joel Brobecker <brobecker@adacore.com>
9726
9727 * lynx-low.c (lynx_add_threads_after_attach): New function.
9728 (lynx_attach): Remove call to add_thread. Add call to
9729 lynx_add_threads_after_attach instead.
9730
9731 2013-09-28 Mike Frysinger <vapier@gentoo.org>
9732
9733 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
9734 * config.in, configure: Regenerated.
9735
9736 2013-09-18 Yao Qi <yao@codesourcery.com>
9737
9738 PR server/15959
9739 * server.c (start_inferior): Clear 'resume_info'.
9740
9741 2013-09-16 Jiong Wang <jiwang@tilera.com>
9742
9743 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
9744 for each register.
9745
9746 2013-09-16 Jiong Wang <jiwang@tilera.com>
9747
9748 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
9749 linux-tile-low.o to srv_tgtobj.
9750
9751 2013-09-16 Will Newton <will.newton@linaro.org>
9752
9753 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
9754 out regs.
9755
9756 2013-09-06 Pedro Alves <palves@redhat.com>
9757
9758 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
9759 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
9760 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
9761 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
9762 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
9763 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
9764
9765 2013-09-06 Pedro Alves <palves@redhat.com>
9766
9767 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
9768 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
9769
9770 2013-09-06 Pedro Alves <palves@redhat.com>
9771
9772 * linux-amd64-ipa.c: Include tracepoint.h.
9773 * linux-i386-ipa.c: Include tracepoint.h.
9774
9775 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9776
9777 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
9778 (ps_get_thread_area): New function.
9779
9780 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
9781
9782 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
9783 (initialize_low_arch): Call init_registers_crisv32 rather than
9784 init_register_crisv32.
9785
9786 2013-09-05 Pedro Alves <palves@redhat.com>
9787
9788 * server.h (handle_vFile, hostio_last_error_from_errno): Move
9789 to ...
9790 * hostio.h: ... this new file.
9791 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
9792 win32-low.c: Include hostio.h.
9793
9794 2013-09-05 Pedro Alves <palves@redhat.com>
9795
9796 * server.h (gdb_client_data, handler_func, callback_handler_func)
9797 (delete_file_handler, add_file_handler, append_callback_event)
9798 (delete_callback_event, start_event_loop, initialize_event_loop):
9799 Move to event-loop.h and include it.
9800 * event-loop.h: New file.
9801
9802 2013-09-05 Pedro Alves <palves@redhat.com>
9803
9804 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
9805 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
9806 (loaded_dll, unloaded_dll): Move to ...
9807 * dll.h: ... this new file.
9808 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
9809
9810 2013-09-05 Pedro Alves <palves@redhat.com>
9811
9812 * server.h (current_process, get_thread_process, all_processes)
9813 (add_inferior_to_list, for_each_inferior, current_inferior)
9814 (remove_inferior, add_process, remove_process, find_process_pid)
9815 (have_started_inferiors_p, have_attached_inferiors_p)
9816 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
9817 (clear_inferiors, find_inferior, find_inferior_id)
9818 (inferior_target_data, set_inferior_target_data)
9819 (inferior_regcache_data, set_inferior_regcache_data): Move to
9820 inferiors.h, and include it.
9821 * inferiors.h: New file.
9822
9823 2013-09-05 Pedro Alves <palves@redhat.com>
9824
9825 * server.h (struct emit_ops, current_insn_ptr, emit_error):
9826 Move ...
9827 * ax.h: ... here.
9828
9829 2013-09-05 Pedro Alves <palves@redhat.com>
9830
9831 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
9832 tracepoint.h.
9833 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
9834 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
9835 (handle_tracepoint_general_set, handle_tracepoint_query)
9836 (tracepoint_finished_step, tracepoint_was_hit)
9837 (release_while_stepping_state_list, current_traceframe)
9838 (in_readonly_region, traceframe_read_mem)
9839 (fetch_traceframe_registers, traceframe_read_sdata)
9840 (traceframe_read_info, struct fast_tpoint_collect_status)
9841 (fast_tracepoint_collecting, force_unlock_trace_buffer)
9842 (handle_tracepoit_bkpts, initialize_low_tracepoint)
9843 (supply_fast_tracepoint_registers)
9844 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
9845 (ipa_tdesc, claim_trampoline_space)
9846 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
9847 (agent_mem_read, agent_get_trace_state_variable_value)
9848 (agent_set_trace_state_variable_value, agent_tsv_read)
9849 (agent_mem_read_string, get_raw_reg_func_addr)
9850 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
9851 * tracepoint.h: ... this new file.
9852
9853 2013-09-05 Pedro Alves <palves@redhat.com>
9854
9855 * server.h (perror_with_name, error, fatal, warning, paddress)
9856 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
9857 include it.
9858 * utils.h: New file.
9859
9860 2013-09-05 Pedro Alves <palves@redhat.com>
9861
9862 * server.h (remote_debug, noack_mode, transport_is_reliable)
9863 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
9864 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
9865 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
9866 (write_enn, initialize_async_io, enable_async_io)
9867 (disable_async_io, check_remote_input_interrupt_request)
9868 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
9869 (dead_thread_notify, prepare_resume_reply)
9870 (decode_address_to_semicolon, decode_address, decode_m_packet)
9871 (decode_M_packet, decode_X_packet, decode_xfer_write)
9872 (decode_search_memory_packet, unhexify, hexify)
9873 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
9874 (look_up_one_symbol, relocate_instruction)
9875 (monitor_output): Move to remote-utils.h, and include it.
9876 * remote-utils.h: New file.
9877
9878 2013-09-05 Pedro Alves <palves@redhat.com>
9879
9880 * server.h (_): Delete.
9881
9882 2013-09-02 Pedro Alves <palves@redhat.com>
9883
9884 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
9885 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
9886 allocated.
9887 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
9888
9889 2013-09-02 Pierre Muller <muller@sourceware.org>
9890
9891 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
9892 or WriteProcessMemory complete successfully and handle
9893 ERROR_PARTIAL_COPY error.
9894
9895 2013-09-02 Pedro Alves <palves@redhat.com>
9896
9897 * server.c (gdb_read_memory): Return -1 on traceframe memory read
9898 error instead of EIO.
9899
9900 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9901
9902 PR server/15604
9903 * linux-low.c: Include filestuff.h.
9904 (linux_create_inferior) <pid == 0>: Call close_most_fds.
9905 * lynx-low.c: Include filestuff.h.
9906 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
9907 * server.c: Include filestuff.h.
9908 (main): Call notice_open_fds.
9909 * spu-low.c: Include filestuff.h.
9910 (spu_create_inferior) <pid == 0>: Call close_most_fds.
9911
9912 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
9913
9914 * Makefile.in: Explain why ../target and ../nat are not
9915 listed as include file search paths.
9916 (linux-waitpid.o): New object file rule.
9917 * configure.srv (srv_native_linux_obj): New variable.
9918 Replace all occurrences of linux native object files with
9919 $srv_native_linux_obj.
9920 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
9921 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
9922 (linux_enable_event_reporting): Remove declaration.
9923 (my_waitpid): Moved to common/linux-waitpid.c.
9924 (linux_wait_for_event): Pass ptid when calling
9925 linux_enable_event_reporting.
9926 (linux_supports_tracefork_flag): Remove.
9927 (linux_enable_event_reporting): Likewise.
9928 (linux_tracefork_grandchild): Remove.
9929 (STACK_SIZE): Moved to common/linux-ptrace.c.
9930 (linux_tracefork_child): Remove.
9931 (linux_test_for_tracefork): Remove.
9932 (linux_look_up_symbols): Call linux_supports_traceclone.
9933 (initialize_low): Remove call to linux_test_for_tracefork.
9934 * linux-low.h (PTRACE_TYPE_ARG3): Move to
9935 common/linux-ptrace.h.
9936 (PTRACE_TYPE_ARG4): Likewise.
9937 Include linux-ptrace.h.
9938
9939 2013-08-21 Pedro Alves <palves@redhat.com>
9940
9941 * config.in: Renegerate.
9942
9943 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
9944
9945 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
9946 (SFILES): Remove $(srcdir)/common/target-common.c and
9947 add $(srcdir)/target/waitstatus.c.
9948 (OBS): Remove target-common.o and add waitstatus.o.
9949 (server_h): Remove $(srcdir)/../common/target-common.h and
9950 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
9951 and $(srcdir)/../target/waitstatus.h.
9952 (target-common.o): Remove.
9953 (waitstatus.o): New target object file.
9954 * target.h: Do not include target-common.h and
9955 include target/resume.h, target/wait.h and
9956 target/waitstatus.h.
9957
9958 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
9959
9960 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9961 to PTRACE_TYPE_ARG3.
9962 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
9963 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
9964 PTRACE_TYPE_ARG4.
9965 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
9966 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
9967
9968 2013-07-27 Jie Zhang <jie@codesourcery.com>
9969 Daniel Jacobowitz <dan@codesourcery.com>
9970 Yao Qi <yao@codesourcery.com>
9971
9972 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
9973 (mips-linux-watch.o): New rule.
9974 (mips_linux_watch_h): New variable.
9975 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
9976 srv_tgtobj.
9977 * linux-mips-low.c: Include mips-linux-watch.h.
9978 (struct arch_process_info, struct arch_lwp_info): New.
9979 (update_watch_registers_callback): New function.
9980 (mips_linux_new_process, mips_linux_new_thread) New functions.
9981 (mips_linux_prepare_to_resume, mips_insert_point): New
9982 functions.
9983 (mips_remove_point, mips_stopped_by_watchpoint): New
9984 functions.
9985 (rsp_bp_type_to_target_hw_bp_type): New function.
9986 (mips_stopped_data_address): New function.
9987 (the_low_target): Add watchpoint support functions.
9988
9989 2013-07-27 Yao Qi <yao@codesourcery.com>
9990
9991 * i386-low.c: Include break-common.h.
9992 (enum target_hw_bp_type): Remove.
9993
9994 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
9995
9996 * Makefile.in (SFILES): /common/target-common.c.
9997 (OBS): Add target-common.o.
9998 (server_h): Add $(srcdir)/../common/target-common.h.
9999 (target-common.o): New target.
10000 * server.c (queue_stop_reply_callback): Free
10001 status string after use.
10002 * target.c (target_waitstatus_to_string): Remove.
10003 * target.h: Include target-common.h.
10004 (resume_kind): Likewise.
10005 (target_waitkind): Likewise.
10006 (target_waitstatus): Likewise.
10007 (TARGET_WNOHANG): Likewise.
10008
10009 2013-07-04 Yao Qi <yao@codesourcery.com>
10010
10011 * Makefile.in (host_alias): Use @host_noncanonical@.
10012 (target_alias): Use @target_noncanonical@.
10013 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10014 ACX_NONCANONICAL_HOST.
10015 * configure: Regenerated.
10016
10017 Revert:
10018 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10019
10020 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10021 * configure: Rebuild.
10022 * Makefile.in (version_host, version_target): Get from configure.
10023 (version.c): Use $(version_host) and $(version_target).
10024
10025 2013-07-03 Pedro Alves <palves@redhat.com>
10026
10027 * Makefile.in (config.status): Depend on development.sh.
10028 * acinclude.m4: Include libmcheck.m4.
10029 * configure: Regenerate.
10030
10031 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10032
10033 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10034 attribute inside the parentheses.
10035 (winapi_DebugSetProcessKillOnExit): Ditto.
10036 (winapi_DebugBreakProcess): Ditto.
10037 (winapi_GenerateConsoleCtrlEvent): Ditto.
10038
10039 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10040
10041 * notif.h (notif_event): Add a dummy member to avoid compiler
10042 errors.
10043
10044 2013-07-01 Pedro Alves <palves@redhat.com>
10045
10046 * hostio.c (HOSTIO_PATH_MAX): Define.
10047 (require_filename, handle_open, handle_unlink, handle_readlink):
10048 Use it.
10049
10050 2013-07-01 Pedro Alves <palves@redhat.com>
10051
10052 * server.h: Include "pathmax.h".
10053 * linux-low.c: Don't include sys/param.h.
10054 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10055 MAXPATHLEN.
10056 * win32-low.c: Don't include sys/param.h.
10057 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10058
10059 2013-07-01 Pedro Alves <palves@redhat.com>
10060
10061 * event-loop.c: Don't check HAVE_UNISTD_H before including
10062 <unistd.h>.
10063 * gdbreplay.c: Likewise.
10064 * remote-utils.c: Likewise.
10065 * server.c: Likewise.
10066 * configure.ac: Don't check for unistd.h.
10067 * configure: Regenerate.
10068
10069 2013-06-28 Tom Tromey <tromey@redhat.com>
10070
10071 * Makefile.in (version.c): Use version.in, not
10072 common/version.in.
10073
10074 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10075
10076 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10077 * configure: Rebuild.
10078 * Makefile.in (version_host, version_target): Get from configure.
10079 (version.c): Use $(version_host) and $(version_target).
10080
10081 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10082
10083 Fix trace-status to output user name without trailing colon.
10084 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10085
10086 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10087
10088 Fix trace-status to output proper start-time and stop-time.
10089 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10090 output start time and stop time in hex as gdb expects.
10091
10092 2013-06-26 Pedro Alves <pedro@codesourcery.com>
10093
10094 * tracepoint.c (build_traceframe_info_xml): Output trace state
10095 variables present in the trace buffer.
10096
10097 2013-06-24 Tom Tromey <tromey@redhat.com>
10098
10099 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10100 create-version.sh.
10101 (version.o): Remove.
10102 * gdbreplay.c: Include version.h.
10103 (version, host_name): Don't declare.
10104 * server.h: Include version.h.
10105 (version, host_name): Don't declare.
10106
10107 2013-06-12 Pedro Alves <palves@redhat.com>
10108
10109 * linux-x86-low.c (linux_is_elf64): Delete global.
10110 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10111 with local linux_pid_exe_is_elf_64_file use.
10112
10113 2013-06-11 Pedro Alves <palves@redhat.com>
10114
10115 * linux-low.c (regset_disabled, disable_regset): New functions.
10116 (regsets_fetch_inferior_registers)
10117 (regsets_store_inferior_registers): Use them.
10118 (initialize_regsets_info); Don't allocate the disabled_regsets
10119 array here.
10120 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10121 comment.
10122
10123 2013-06-11 Pedro Alves <palves@redhat.com>
10124
10125 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10126 xmalloc.
10127
10128 2013-06-11 Pedro Alves <palves@redhat.com>
10129
10130 * linux-x86-low.c (initialize_low_arch): Call
10131 init_registers_x32_avx_linux.
10132
10133 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 Fix compatibility with Android Bionic.
10136 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10137 it is not empty.
10138
10139 2013-06-07 Pedro Alves <palves@redhat.com>
10140
10141 PR server/14823
10142 * Makefile.in (OBS): Add tdesc.o.
10143 (IPA_OBJS): Add tdesc-ipa.o.
10144 (tdesc-ipa.o): New rule.
10145 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10146 interface.
10147 * linux-low.c (new_inferior): Delete.
10148 (disabled_regsets, num_regsets): Delete.
10149 (linux_add_process): Adjust to set the new per-process
10150 new_inferior flag.
10151 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10152 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10153 was a stop. When calling arch_setup, switch the current inferior
10154 to the thread that got an event.
10155 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10156 (regsets_fetch_inferior_registers)
10157 (regsets_store_inferior_registers): New regsets_info parameter.
10158 Adjust to use it.
10159 (linux_register_in_regsets): New regs_info parameter. Adjust to
10160 use it.
10161 (register_addr, fetch_register, store_register): New usrregs_info
10162 parameter. Adjust to use it.
10163 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10164 parameter regs_info. Adjust to use it.
10165 (linux_fetch_registers): Get the current inferior's regs_info, and
10166 adjust to use it.
10167 (linux_store_registers): Ditto.
10168 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10169 (initialize_low): Don't initialize the target_regsets here. Call
10170 initialize_low_arch.
10171 * linux-low.h (target_regsets): Delete declaration.
10172 (struct regsets_info): New.
10173 (struct usrregs_info): New.
10174 (struct regs_info): New.
10175 (struct process_info_private) <new_inferior>: New field.
10176 (struct linux_target_ops): Delete the num_regs, regmap, and
10177 regset_bitmap fields. New field regs_info.
10178 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10179 * i387-fp.c (num_xmm_registers): Delete.
10180 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10181 calls to new interface.
10182 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10183 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10184 Infer the number of xmm registers from the regcache's target
10185 description.
10186 * i387-fp.h (num_xmm_registers): Delete.
10187 * inferiors.c (add_thread): Don't install the thread's regcache
10188 here.
10189 * proc-service.c (gregset_info): Fetch the current inferior's
10190 regs_info. Adjust to use it.
10191 * regcache.c: Include tdesc.h.
10192 (register_bytes, reg_defs, num_registers)
10193 (gdbserver_expedite_regs): Delete.
10194 (get_thread_regcache): If the thread doesn't have a regcache yet,
10195 create one, instead of aborting gdbserver.
10196 (regcache_invalidate_one): Rename to ...
10197 (regcache_invalidate_thread): ... this.
10198 (regcache_invalidate_one): New.
10199 (regcache_invalidate): Only invalidate registers of the current
10200 process.
10201 (init_register_cache): Add target_desc parameter, and use it.
10202 (new_register_cache): Ditto. Assert the target description has a
10203 non zero registers_size.
10204 (regcache_cpy): Add assertions. Adjust.
10205 (realloc_register_cache, set_register_cache): Delete.
10206 (registers_to_string, registers_from_string): Adjust.
10207 (find_register_by_name, find_regno, find_register_by_number)
10208 (register_cache_size): Add target_desc parameter, and use it.
10209 (free_register_cache_thread, free_register_cache_thread_one)
10210 (regcache_release, register_cache_size): New.
10211 (register_size): Add target_desc parameter, and use it.
10212 (register_data, supply_register, supply_register_zeroed)
10213 (supply_regblock, supply_register_by_name, collect_register)
10214 (collect_register_as_string, collect_register_by_name): Adjust.
10215 * regcache.h (struct target_desc): Forward declare.
10216 (struct regcache) <tdesc>: New field.
10217 (init_register_cache, new_register_cache): Add target_desc
10218 parameter.
10219 (regcache_invalidate_thread): Declare.
10220 (regcache_invalidate_one): Delete declaration.
10221 (regcache_release): Declare.
10222 (find_register_by_number, register_cache_size, register_size)
10223 (find_regno): Add target_desc parameter.
10224 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10225 declarations.
10226 * remote-utils.c: Include tdesc.h.
10227 (outreg, prepare_resume_reply): Adjust.
10228 * server.c: Include tdesc.h.
10229 (gdbserver_xmltarget): Delete declaration.
10230 (get_features_xml, process_serial_event): Adjust.
10231 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10232 declare.
10233 (struct process_info) <tdesc>: New field.
10234 (ipa_tdesc): Declare.
10235 * tdesc.c: New file.
10236 * tdesc.h: New file.
10237 * tracepoint.c: Include tdesc.h.
10238 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10239 (get_context_regcache): Adjust to pass ipa_tdesc down.
10240 (do_action_at_tracepoint): Adjust to get the register cache size
10241 from the context regcache's description.
10242 (traceframe_walk_blocks): Adjust to get the register cache size
10243 from the current trace frame's description.
10244 (traceframe_get_pc): Adjust to get current trace frame's
10245 description and pass it down.
10246 (gdb_collect): Adjust to get the register cache size from the
10247 IPA's description.
10248 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10249 (gdbserver_xmltarget): Delete.
10250 (initialize_low_tracepoint): Set the ipa's target description.
10251 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10252 (initialize_low_tracepoint): Set the ipa's target description.
10253 * linux-x86-low.c: Include tdesc.h.
10254 [__x86_64__] (is_64bit_tdesc): New.
10255 (ps_get_thread_area, x86_get_thread_area): Use it.
10256 (i386_cannot_store_register): Rename to ...
10257 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10258 (i386_cannot_fetch_register): Rename to ...
10259 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10260 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10261 to new interface.
10262 (target_regsets): Rename to ...
10263 (x86_regsets): ... this.
10264 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10265 interface.
10266 (x86_siginfo_fixup): Use is_64bit_tdesc.
10267 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10268 (tdesc_x32_avx_linux, tdesc_x32_linux)
10269 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10270 Declare.
10271 (x86_linux_update_xmltarget): Delete.
10272 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10273 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10274 (AMD64_LINUX_USER64_CS): New.
10275 (x86_linux_read_description): New, based on
10276 x86_linux_update_xmltarget.
10277 (same_process_callback): New.
10278 (x86_arch_setup_process_callback): New.
10279 (x86_linux_update_xmltarget): New.
10280 (x86_regsets_info): New.
10281 (amd64_linux_regs_info): New.
10282 (i386_linux_usrregs_info): New.
10283 (i386_linux_regs_info): New.
10284 (x86_linux_regs_info): New.
10285 (x86_arch_setup): Reimplement.
10286 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10287 (x86_emit_ops): Ditto.
10288 (the_low_target): Adjust. Install x86_linux_regs_info,
10289 x86_cannot_fetch_register, and x86_cannot_store_register.
10290 (initialize_low_arch): New.
10291 * linux-ia64-low.c (tdesc_ia64): Declare.
10292 (ia64_fetch_register): Adjust.
10293 (ia64_usrregs_info, regs_info): New globals.
10294 (ia64_regs_info): New function.
10295 (the_low_target): Adjust.
10296 (initialize_low_arch): New function.
10297 * linux-sparc-low.c (tdesc_sparc64): Declare.
10298 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10299 Adjust.
10300 (sparc_arch_setup): New function.
10301 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10302 (the_low_target): Adjust.
10303 (initialize_low_arch): New function.
10304 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10305 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10306 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10307 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10308 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10309 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10310 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10311 (tdesc_powerpc_isa205_vsx64l): Declare.
10312 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10313 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10314 (ppc_set_pc, ppc_get_hwcap): Adjust.
10315 (ppc_usrregs_info): Forward declare.
10316 (!__powerpc64__) ppc_regmap_adjusted: New global.
10317 (ppc_arch_setup): Adjust to the current process'es target
10318 description.
10319 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10320 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10321 (ppc_store_evrregset): Adjust.
10322 (target_regsets): Rename to ...
10323 (ppc_regsets): ... this, and make static.
10324 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10325 (ppc_regs_info): New function.
10326 (the_low_target): Adjust.
10327 (initialize_low_arch): New function.
10328 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10329 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10330 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10331 (tdesc_s390x_linux64v2): Declare.
10332 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10333 (s390_fill_gregset, s390_store_last_break): Adjust.
10334 (target_regsets): Rename to ...
10335 (s390_regsets): ... this, and make static.
10336 (s390_get_pc, s390_set_pc): Adjust.
10337 (s390_get_hwcap): New target_desc parameter, and use it.
10338 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10339 (s390_arch_setup): Adjust to set the current process'es target
10340 description. Don't adjust the regmap.
10341 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10342 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10343 (regs_info_3264): New globals.
10344 (s390_regs_info): New function.
10345 (the_low_target): Adjust.
10346 (initialize_low_arch): New function.
10347 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10348 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10349 [__mips64] (init_registers_mips_linux)
10350 (init_registers_mips_dsp_linux): Delete defines.
10351 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10352 (have_dsp): New global.
10353 (mips_read_description): New, based on mips_arch_setup.
10354 (mips_arch_setup): Reimplement.
10355 (get_usrregs_info): New function.
10356 (mips_cannot_fetch_register, mips_cannot_store_register)
10357 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10358 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10359 (target_regsets): Rename to ...
10360 (mips_regsets): ... this, and make static.
10361 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10362 (dsp_regs_info, regs_info): New globals.
10363 (mips_regs_info): New function.
10364 (the_low_target): Adjust.
10365 (initialize_low_arch): New function.
10366 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10367 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10368 Declare.
10369 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10370 (arm_read_description): New, with bits factored from
10371 arm_arch_setup.
10372 (arm_arch_setup): Reimplement.
10373 (target_regsets): Rename to ...
10374 (arm_regsets): ... this, and make static.
10375 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10376 (arm_regs_info): New function.
10377 (the_low_target): Adjust.
10378 (initialize_low_arch): New function.
10379 * linux-m68k-low.c (tdesc_m68k): Declare.
10380 (target_regsets): Rename to ...
10381 (m68k_regsets): ... this, and make static.
10382 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10383 (m68k_regs_info): New function.
10384 (m68k_arch_setup): New function.
10385 (the_low_target): Adjust.
10386 (initialize_low_arch): New function.
10387 * linux-sh-low.c (tdesc_sharch): Declare.
10388 (target_regsets): Rename to ...
10389 (sh_regsets): ... this, and make static.
10390 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10391 (sh_regs_info, sh_arch_setup): New functions.
10392 (the_low_target): Adjust.
10393 (initialize_low_arch): New function.
10394 * linux-bfin-low.c (tdesc_bfin): Declare.
10395 (bfin_arch_setup): New function.
10396 (bfin_usrregs_info, regs_info): New globals.
10397 (bfin_regs_info): New function.
10398 (the_low_target): Adjust.
10399 (initialize_low_arch): New function.
10400 * linux-cris-low.c (tdesc_cris): Declare.
10401 (cris_arch_setup): New function.
10402 (cris_usrregs_info, regs_info): New globals.
10403 (cris_regs_info): New function.
10404 (the_low_target): Adjust.
10405 (initialize_low_arch): New function.
10406 * linux-cris-low.c (tdesc_crisv32): Declare.
10407 (cris_arch_setup): New function.
10408 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10409 (cris_regs_info): New function.
10410 (the_low_target): Adjust.
10411 (initialize_low_arch): New function.
10412 * linux-m32r-low.c (tdesc_m32r): Declare.
10413 (m32r_arch_setup): New function.
10414 (m32r_usrregs_info, regs_info): New globals.
10415 (m32r_regs_info): Adjust.
10416 (initialize_low_arch): New function.
10417 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10418 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10419 (tic6x_usrregs_info): Forward declare.
10420 (tic6x_read_description): New function, based on ...
10421 (tic6x_arch_setup): ... this. Reimplement.
10422 (target_regsets): Rename to ...
10423 (tic6x_regsets): ... this, and make static.
10424 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10425 (tic6x_regs_info): New function.
10426 (the_low_target): Adjust.
10427 (initialize_low_arch): New function.
10428 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10429 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10430 (target_regsets): Rename to ...
10431 (xtensa_regsets): ... this, and make static.
10432 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10433 globals.
10434 (xtensa_arch_setup, xtensa_regs_info): New functions.
10435 (the_low_target): Adjust.
10436 (initialize_low_arch): New function.
10437 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10438 (nios2_arch_setup): Set the current process'es tdesc.
10439 (target_regsets): Rename to ...
10440 (nios2_regsets): ... this.
10441 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10442 (nios2_regs_info): New function.
10443 (the_low_target): Adjust.
10444 (initialize_low_arch): New function.
10445 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10446 (aarch64_arch_setup): Set the current process'es tdesc.
10447 (target_regsets): Rename to ...
10448 (aarch64_regsets): ... this.
10449 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10450 (aarch64_regs_info): New function.
10451 (the_low_target): Adjust.
10452 (initialize_low_arch): New function.
10453 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10454 globals.
10455 (target_regsets): Rename to ...
10456 (tile_regsets): ... this.
10457 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10458 (tile_regs_info): New function.
10459 (tile_arch_setup): Set the current process'es tdesc.
10460 (the_low_target): Adjust.
10461 (initialize_low_arch): New function.
10462 * spu-low.c (tdesc_spu): Declare.
10463 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10464 * win32-arm-low.c (tdesc_arm): Declare.
10465 (arm_arch_setup): New function.
10466 (the_low_target): Install arm_arch_setup instead of
10467 init_registers_arm.
10468 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10469 (init_windows_x86): Rename to ...
10470 (i386_arch_setup): ... this. Set `win32_tdesc'.
10471 (the_low_target): Adjust.
10472 * win32-low.c (win32_tdesc): New global.
10473 (child_add_thread): Don't create the thread cache here.
10474 (do_initial_child_stuff): Set the new process'es tdesc.
10475 * win32-low.h (struct target_desc): Forward declare.
10476 (win32_tdesc): Declare.
10477 * lynx-i386-low.c (tdesc_i386): Declare global.
10478 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10479 * lynx-low.c (lynx_tdesc): New global.
10480 (lynx_add_process): Set the new process'es tdesc.
10481 * lynx-low.h (struct target_desc): Forward declare.
10482 (lynx_tdesc): Declare global.
10483 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10484 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10485 * nto-low.c (nto_tdesc): New global.
10486 (do_attach): Set the new process'es tdesc.
10487 * nto-low.h (struct target_desc): Forward declare.
10488 (nto_tdesc): Declare.
10489 * nto-x86-low.c (tdesc_i386): Declare.
10490 (nto_x86_arch_setup): Set `nto_tdesc'.
10491
10492 2013-06-04 Gary Benson <gbenson@redhat.com>
10493
10494 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
10495 to qSupported response when appropriate.
10496 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
10497 with nonzero-length annex.
10498 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
10499 arguments supplied in annex.
10500
10501 2013-05-31 Doug Evans <dje@google.com>
10502
10503 PR server/15594
10504 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
10505 64 bits in 64-cross-32 environment.
10506
10507 2013-05-28 Pedro Alves <palves@redhat.com>
10508
10509 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
10510 (aarch64-without-fpu.c): Delete rule.
10511 * configure.srv (aarch64*-*-linux*): Remove references to
10512 aarch64-without-fpu.o and aarch64-without-fpu.xml.
10513 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
10514 declaration.
10515
10516 2013-05-24 Pedro Alves <palves@redhat.com>
10517
10518 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
10519 instead of strchr/decode_address. Error if the range isn't split
10520 with a ','. Don't assume there's be a ':' in the action.
10521
10522 2013-05-23 Yao Qi <yao@codesourcery.com>
10523 Pedro Alves <palves@redhat.com>
10524
10525 * linux-low.c (lwp_in_step_range): New function.
10526 (linux_wait_1): If the thread was range stepping and stopped
10527 outside the stepping range, report the stop to GDB. Otherwise,
10528 continue stepping. Add range stepping debug output.
10529 (linux_set_resume_request): Copy the step range from the resume
10530 request to the lwp.
10531 (linux_supports_range_stepping): New.
10532 (linux_target_ops) <supports_range_stepping>: Set to
10533 linux_supports_range_stepping.
10534 * linux-low.h (struct linux_target_ops)
10535 <supports_range_stepping>: New field.
10536 (struct lwp_info) <step_range_start, step_range_end>: New fields.
10537 * linux-x86-low.c (x86_supports_range_stepping): New.
10538 (the_low_target) <supports_range_stepping>: Set to
10539 x86_supports_range_stepping.
10540 * server.c (handle_v_cont): Handle 'r' action.
10541 (handle_v_requests): Append ";r" if the target supports range
10542 stepping.
10543 * target.h (struct thread_resume) <step_range_start,
10544 step_range_end>: New fields.
10545 (struct target_ops) <supports_range_stepping>:
10546 New field.
10547 (target_supports_range_stepping): New macro.
10548
10549 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10550
10551 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
10552 confusion in comment.
10553
10554 2013-05-17 Joel Brobecker <brobecker@adacore.com>
10555
10556 * lynx-low.c (struct process_info_private): New type.
10557 (lynx_add_process): New function.
10558 (lynx_create_inferior, lynx_attach): Replace calls to
10559 add_process by calls to lynx_add_process.
10560 (lynx_resume): If PTID is null, then try using
10561 current_process()->private->last_wait_event_ptid.
10562 Add comments.
10563 (lynx_clear_inferiors): Delete. The contents of that function
10564 has been inlined in lynx_mourn;
10565 (lynx_wait_1): Save the ptid in the process's private data.
10566 (lynx_mourn): Free the process' private data. Replace call
10567 to lynx_clear_inferiors by call to clear_inferiors.
10568
10569 2013-05-17 Yao Qi <yao@codesourcery.com>
10570
10571 * i386-low.c (i386_length_and_rw_bits): Move the comment to
10572 the right place.
10573
10574 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
10575
10576 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
10577 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
10578 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
10579 PT_TEXT_END_ADDR guards. Update comments.
10580 (linux_target_op) <read_offsets>: Conditionally define to
10581 linux_read_offsets if the target is UCLIBC and if it defines
10582 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
10583
10584 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
10585 Andrew Jenner <andrew@codesourcery.com>
10586
10587 * Makefile.in (SFILES): Add linux-nios2-low.c.
10588 (clean): Add action to delete nios2-linux.c.
10589 (nios2-linux.c): New rule.
10590 * configure.srv: Add nios2*-*-linux*.
10591 * linux-nios2-low.c: New.
10592
10593 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
10594
10595 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
10596
10597 2013-04-25 Hui Zhu <hui@codesourcery.com>
10598
10599 PR gdb/15186
10600 * ax.c (ax_printf): Add fflush.
10601
10602 2013-04-22 Tom Tromey <tromey@redhat.com>
10603
10604 * Makefile.in (SFILES): Add filestuff.c.
10605 (OBS): Add filestuff.o.
10606 (filestuff.o): New target.
10607 * config.in, configure: Rebuild.
10608 * configure.ac: Check for fdwalk, pipe2.
10609
10610 2013-04-17 Pedro Alves <palves@redhat.com>
10611
10612 * configure.ac (USE_THREAD_DB): Delete variable.
10613 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
10614 Don't AC_SUBST USE_THREAD_DB.
10615 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
10616 * config.in, configure: Regenerate.
10617
10618 2013-04-16 Pedro Alves <palves@redhat.com>
10619
10620 * linux-low.h (struct lwp_info) <thread_known>: Move under
10621 the USE_THREAD_DB #ifdef.
10622
10623 2013-04-16 Pedro Alves <palves@redhat.com>
10624
10625 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
10626 (linux-low.o): Delete rule.
10627 * linux-low.h: Always include "gdb_thread_db.h" instead of
10628 conditionally including thread_db.h.
10629 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
10630 HAVE_THREAD_DB_H.
10631
10632 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 * Makefile.in (install-only): Fix make install regression.
10635
10636 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10637
10638 Convert man pages to texinfo, new gdbinit.5 texinfo page.
10639 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
10640 installation.
10641 * gdbserver.1: Remove.
10642
10643 2013-03-22 Pedro Alves <palves@redhat.com>
10644
10645 * linux-low.c (handle_extended_wait): Don't call
10646 linux_enable_event_reporting.
10647
10648 2013-03-15 Tony Theodore <tonyt@logyst.com>
10649
10650 PR build/9098:
10651 * Makefile.in (SHELL): Use @SHELL@.
10652
10653 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
10654
10655 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
10656 compiler warning.
10657
10658 2013-03-13 Joel Brobecker <brobecker@adacore.com>
10659
10660 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
10661 Remove extraneous NULL element.
10662
10663 2013-03-13 Yao Qi <yao@codesourcery.com>
10664
10665 * tracepoint.c (traceframe_read_tsv): Look for the last matched
10666 'V' block in trace frame.
10667
10668 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10669
10670 * target.h (struct target_ops): Add btrace ops.
10671 (target_supports_btrace): New macro.
10672 (target_enable_btrace): New macro.
10673 (target_disable_btrace): New macro.
10674 (target_read_btrace): New macro.
10675 * gdbthread.h (struct thread_info): Add btrace field.
10676 * server.c: Include btrace-common.h.
10677 (handle_btrace_general_set): New function.
10678 (handle_btrace_enable): New function.
10679 (handle_btrace_disable): New function.
10680 (handle_general_set): Call handle_btrace_general_set.
10681 (handle_qxfer_btrace): New function.
10682 (struct qxfer qxfer_packets[]): Add btrace entry.
10683 * inferiors.c (remove_thread): Disable btrace.
10684 * linux-low: Include linux-btrace.h.
10685 (linux_low_enable_btrace): New function.
10686 (linux_low_read_btrace): New function.
10687 (linux_target_ops): Add btrace ops.
10688 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
10689 Add srv_linux_btrace=yes.
10690 (x86_64-*-linux*): Add linux-btrace.o.
10691 Add srv_linux_btrace=yes.
10692 * configure.ac: Define HAVE_LINUX_BTRACE.
10693 * config.in: Regenerated.
10694 * configure: Regenerated.
10695
10696 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10697
10698 * server.c (handle_qxfer): Preserve error message if -3 is
10699 returned.
10700 (qxfer): Document the -3 return value.
10701
10702 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10703
10704 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
10705 (linux_btrace_h): New variable.
10706 (linux-btrace.o): New rule.
10707
10708 2013-03-08 Stan Shebs <stan@codesourcery.com>
10709 Hafiz Abid Qadeer <abidh@codesourcery.com>
10710
10711 * tracepoint.c (trace_buffer_size): New global.
10712 (DEFAULT_TRACE_BUFFER_SIZE): New define.
10713 (init_trace_buffer): Change to one-argument function. Allocate
10714 trace buffer memory.
10715 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
10716 handle QTBuffer:size packet.
10717 (cmd_bigqtbuffer_size): New function.
10718 (initialize_tracepoint): Call init_trace_buffer with
10719 DEFAULT_TRACE_BUFFER_SIZE.
10720 * server.c (handle_query): Add QTBuffer:size in the
10721 supported packets.
10722
10723 2013-03-07 Yao Qi <yao@codesourcery.com>
10724
10725 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
10726 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
10727 of -1.
10728 (cmd_qtsp): Adjust condition. Do post increment.
10729 Set cur_action and cur_step_action back to 0.
10730
10731 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
10732
10733 PR server/15236
10734 * linux-low.c (linux_write_memory): Return early success if LEN is
10735 zero.
10736
10737 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
10738
10739 * configure.srv: Add x86_64-*-cygwin* as target.
10740
10741 2013-02-28 Tom Tromey <tromey@redhat.com>
10742
10743 * configure.ac: Invoke AC_SYS_LARGEFILE.
10744 * configure, config.in: Rebuild.
10745
10746 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
10747
10748 * win32-low.c: Throughout, fix format strings and casts of
10749 printf-like functions to avoid type related warnings on all
10750 platforms.
10751 (get_child_debug_event): Print dwDebugEventCode as hex since
10752 that's how it's usually documented.
10753
10754 2013-02-28 Yao Qi <yao@codesourcery.com>
10755
10756 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
10757 pulongest.
10758
10759 2013-02-27 Jiong Wang <jiwang@tilera.com>
10760
10761 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
10762 (reg-tilegx32.c): New rule.
10763 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
10764 * linux-tile-low.c (tile_arch_setup): New function. Invoke
10765 different register info initializer according to elf class.
10766 (init_registers_tilgx32): New function. The tilegx32 register info
10767 initializer.
10768 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
10769 (tile_store_gregset): Likewise.
10770
10771 2013-02-27 Yao Qi <yao@codesourcery.com>
10772
10773 * server.c (process_point_options): Print debug message when
10774 debug_threads is true.
10775
10776 2013-02-26 Yao Qi <yao@codesourcery.com>
10777
10778 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
10779
10780 2013-02-19 Pedro Alves <palves@redhat.com>
10781 Kai Tietz <ktietz@redhat.com>
10782
10783 PR gdb/15161
10784
10785 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
10786 instead of strtoul to extract address from packet.
10787 (process_serial_event) <'z'>: Likewise.
10788
10789 2013-02-18 Yao Qi <yao@codesourcery.com>
10790
10791 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
10792
10793 2013-02-14 Pedro Alves <palves@redhat.com>
10794
10795 Plug memory leak.
10796
10797 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
10798 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
10799
10800 2013-02-14 Pedro Alves <palves@redhat.com>
10801
10802 * tracepoint.c (cmd_qtdpsrc): Use savestring.
10803
10804 2013-02-14 Pedro Alves <palves@redhat.com>
10805
10806 * tracepoint.c (save_string): Delete.
10807 (add_tracepoint_action): Use savestring instead of save_string.
10808
10809 2013-02-12 Pedro Alves <palves@redhat.com>
10810
10811 * linux-xtensa-low.c: Ditto.
10812 * xtensa-xtregs.c: Ditto.
10813
10814 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10815
10816 * thread-db.c (thread_db_get_tls_address): NULL pointer check
10817 thread_db.
10818
10819 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10820
10821 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
10822 aarch64_num_wp_regs and aarch64_num_bp_regs to
10823 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
10824
10825 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10826
10827 * linux-aarch64-low.c (ps_get_thread_area): Replace
10828 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
10829
10830 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
10831 Marcus Shawcroft <marcus.shawcroft@arm.com>
10832 Nigel Stephens <nigel.stephens@arm.com>
10833 Yufeng Zhang <yufeng.zhang@arm.com>
10834
10835 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
10836 (aarch64.c, aarch64-without-fpu.c): New targets.
10837 * configure.srv (aarch64*-*-linux*): New.
10838 * linux-aarch64-low.c: New file.
10839
10840 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
10841
10842 * linux-low.c (handle_extended_wait, linux_create_inferior)
10843 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
10844 (dequeue_one_deferred_signal, linux_resume_one_thread)
10845 (fetch_register, linux_write_memory, linux_enable_event_reporting)
10846 (linux_tracefork_grandchild, linux_test_for_tracefork)
10847 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
10848 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
10849 where the argument is 0.
10850
10851 2013-01-25 Yao Qi <yao@codesourcery.com>
10852
10853 * event-loop.c: Include "queue.h".
10854 (gdb_event_p): New typedef.
10855 (struct gdb_event) <next_event>: Remove.
10856 (event_queue): Change to QUEUE(gdb_event_p).
10857 (async_queue_event): Remove.
10858 (gdb_event_xfree): New.
10859 (initialize_event_loop): New.
10860 (process_event): Use API from QUEUE.
10861 (wait_for_event): Likewise.
10862 * server.c (main): Call initialize_event_loop.
10863 * server.h (initialize_event_loop): Declare.
10864
10865 2013-01-18 Yao Qi <yao@codesourcery.com>
10866
10867 * ax.h (struct eval_agent_expr_context): New.
10868 (gdb_eval_agent_expr): Update declaration.
10869 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
10870 TFRAME. Add new argument CTX.
10871 * server.h (struct eval_agent_expr_context): Declare.
10872 (agent_mem_read, agent_tsv_read): Update declaration.
10873 (agent_mem_read_string): Likewise.
10874 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
10875 (add_traceframe_block): Add new argument TPOINT.
10876 Increase TPOINT->traceframe_usage.
10877 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
10878 eval_tracepoint_agent_expr.
10879 (condition_true_at_tracepoint): Likewise.
10880 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
10881 (agent_mem_read_string, agent_tsv_read): Likewise.
10882
10883 2013-01-16 Yao Qi <yao@codesourcery.com>
10884
10885 * linux-low.c (linux_resume_one_lwp): Don't check
10886 'lwp->bp_reinsert != 0'.
10887
10888 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10889 Pedro Alves <palves@redhat.com>
10890
10891 * lynx-low.c (ptrace_request_to_str): Define a temporary
10892 macro and use it to simplify this function's implementation.
10893
10894 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10895
10896 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
10897 sets errno.
10898
10899 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10900
10901 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
10902
10903 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10904
10905 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
10906
10907 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10908
10909 * lynx-low.c (lynx_resume): Use the resume_info parameter
10910 to determine the ptid for the lynx_ptrace call, unless
10911 it is equal to minus_one_ptid, in which case we use the
10912 ptid of the current_inferior.
10913 (lynx_wait_1): After having received a thread create/exit
10914 event, resume the inferior's execution using the signaling
10915 thread's ptid, rather than the old ptid.
10916
10917 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10918
10919 * lynx-low.c (lynx_resume): Delete variable ret.
10920
10921 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10922
10923 * gdbreplay.c (gdbreplay_version): Update copyright year.
10924 * server.c (gdbserver_version): Likewise.
10925
10926 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10927
10928 * lynx-low.c (lynx_wait_1): Add debug trace before adding
10929 new thread.
10930
10931 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10932
10933 * lynx-low.c (ptrace_request_to_str): Add handling for
10934 PTRACE_GETTRACESIG.
10935
10936 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10937
10938 * lynx-low.c (lynx_attach): Delete variable new_process.
10939
10940 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10941
10942 * lynx-low.c (lynx_create_inferior): Delete variable
10943 new_process.
10944
10945 2012-12-17 Joel Brobecker <brobecker@adacore.com>
10946
10947 * lynx-low.c (ptrace_request_to_str): Do not handle
10948 PTRACE_GETTHREADLIST if this macro does not exist.
10949
10950 2012-12-15 Yao Qi <yao@codesourcery.com>
10951
10952 * Makefile.in (OBS): Add notif.o.
10953 * notif.c, notif.h: New.
10954 * server.c: Include "notif.h".
10955 (struct vstop_notif) <next>: Remove.
10956 <base>: New field.
10957 (queue_stop_reply): Update.
10958 (push_event, send_next_stop_reply): Remove.
10959 (discard_queued_stop_replies): Update.
10960 (notif_stop): New variable.
10961 (handle_v_stopped): Remove.
10962 (handle_v_requests): Don't call handle_v_stopped. Call
10963 handle_ack_notif instead.
10964 (queue_stop_reply_callback): Call notif_event_enque instead
10965 of queue_stop_reply.
10966 (handle_status): Don't call send_next_stop_reply, call
10967 notif_write_event instead.
10968 (kill_inferior_callback): Likewise.
10969 (detach_or_kill_inferior_callback): Likewise.
10970 (main): Call initialize_notif.
10971 (process_serial_event): Call QUEUE_is_empty.
10972 (handle_target_event): Call notif_push instead of push event.
10973 * server.h (push_event): Remove declaration.
10974
10975 2012-12-10 Tom Tromey <tromey@redhat.com>
10976
10977 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
10978 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
10979 macros.
10980 (.c.o): Rewrite.
10981 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
10982 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
10983 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
10984 (amd64-linux-ipa.o, ax.o): Rewrite.
10985 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
10986 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
10987 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
10988 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
10989 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
10990 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
10991 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
10992 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
10993 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
10994 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
10995 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
10996 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
10997 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
10998 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
10999 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11000 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11001 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11002 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11003 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11004 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11005 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11006 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11007 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11008 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11009 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11010 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11011 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11012 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11013 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11014 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11015 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11016 (reg-tilegx.o): Remove.
11017 (all_object_files): New macro.
11018 Include .deps files.
11019 * aclocal.m4, configure: Rebuild.
11020 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11021 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11022 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11023
11024 2012-12-05 Tom Tromey <tromey@redhat.com>
11025
11026 PR gdb/14917:
11027 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11028
11029 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
11030
11031 * configure.ac: Check for linux/perf_event.h.
11032 * config.in: Regenerated.
11033 * configure: Regenerated.
11034
11035 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11036
11037 * hostio.c (handle_readlink): Decrease buffer size
11038 parameter passed to readlink by one byte.
11039
11040 2012-11-26 Yao Qi <yao@codesourcery.com>
11041
11042 * configure.ac (build_warnings): Append '-Wempty-body'.
11043 * configure: Regenerated.
11044 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11045 body.
11046
11047 2012-11-15 Pierre Muller <muller@sourceware.org>
11048
11049 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11050 * config.in: Regenerate.
11051 * configure: Regenerate.
11052 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11053 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11054 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11055 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11056 header.
11057 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11058 instead of <sys/wait.h> header.
11059 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11060
11061 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
11062
11063 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11064 (various make rules): Remove -DGDBSERVER
11065
11066 2012-11-09 Yao Qi <yao@codesourcery.com>
11067
11068 * spu-low.c (current_ptid): Move it to ..
11069 * gdbthread.h: ... here. New.
11070 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11071 * server.c (myresume, process_serial_event): Likewise.
11072 * thread-db.c (thread_db_find_new_threads): Likewise.
11073 * tracepoint.c (run_inferior_command): Likewise.
11074
11075 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
11076
11077 * server.c (handle_search_memory_1): Include access length in
11078 warning message.
11079
11080 2012-09-05 Michael Brandt <michael.brandt@axis.com>
11081
11082 * linux-crisv32-low.c: Fix compile errors.
11083
11084 2012-09-04 Yao Qi <yao@codesourcery.com>
11085
11086 * tracepoint.c (cmd_qtsv): Adjust debug message.
11087 Don't check CUR_TPOINT.
11088
11089 2012-08-28 Yao Qi <yao@codesourcery.com>
11090
11091 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11092 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11093 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11094 Remove declarations of xmalloc, xreallloc, xstrdup and
11095 freeargv.
11096 * Makefile.in (libiberty_h): New.
11097 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11098 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11099
11100 2012-08-23 Yao Qi <yao@codesourcery.com>
11101
11102 * server.h: Remove declaration of 'xsnprintf'.
11103
11104 2012-08-22 Keith Seitz <keiths@redhat.com>
11105
11106 * server.h: Include build-gnulib-gbserver/config.h.
11107 * gdbreplay.c: Likewise.
11108
11109 2012-08-08 Doug Evans <dje@google.com>
11110
11111 * Makefile.in (SFILES): Add gdb_vecs.c.
11112 (OBS): Add gdb_vecs.o.
11113 (gdb_vecs_h, host_defs_h): New variables.
11114 (thread-db.o): Add $(gdb_vecs_h) dependency.
11115 (gdb_vecs.o): New rule.
11116 * thread-db.c: #include "gdb_vecs.h".
11117 (thread_db_load_search): Use a vector to iterate over path elements.
11118 Handle text appearing after "$pdir".
11119
11120 * configure.ac: Add check for strstr.
11121 * config.in: Regenerate.
11122 * configure: Regenerate.
11123
11124 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11125
11126 * hostio.c (handle_pread): If pread fails, fall back to attempting
11127 lseek/read.
11128 (handle_pwrite): Likewise for pwrite.
11129
11130 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11131
11132 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11133 between unsupported TYPE and unimplementable ADDR/LEN combination.
11134 (arm_insert_point): Act on new return value.
11135
11136 2012-07-31 Pedro Alves <palves@redhat.com>
11137
11138 * server.c (process_point_options): Only skip tokens if we find
11139 one that is unrecognized. Don't treat 'X' specially while
11140 skipping unrecognized tokens.
11141
11142 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11143
11144 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11145 to 4-byte-align HW breakpoint addresses for Thumb.
11146
11147 2012-07-27 Yao Qi <yao@codesourcery.com>
11148
11149 PR remote/14161.
11150
11151 * server.h: Declare gdb_agent_about_to_close.
11152 * target.c (kill_inferior): Include "agent.h".
11153 New. Send command 'kill'.
11154 * target.h (kill_inferior): Removed macro.
11155 * tracepoint.c (gdb_agent_about_to_close): New.
11156 (gdb_agent_helper_thread): Handle command 'close'.
11157 Wait endlessly until the inferior stops.
11158 Install gdb_agent_remove_socket to atexit hook.
11159 (agent_socket_name): New static variable.
11160 (gdb_agent_socket_init): Replace local variable 'name' with
11161 'agent_socket_name'.
11162 (gdb_agent_remove_socket): New.
11163
11164 2012-07-27 Yao Qi <yao@codesourcery.com>
11165
11166 * server.c (process_point_options): Stop at 'X' when parsing.
11167
11168 2012-07-19 Michael Eager <eager@eagercon.com>
11169
11170 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
11171 to hw_execute.
11172 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11173 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11174 hardware breakpoint.
11175
11176 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11177
11178 * gdbserver/linux-low.c (initialize_low): Call
11179 linux_ptrace_init_warnings.
11180
11181 2012-07-02 Doug Evans <dje@google.com>
11182
11183 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11184 pointer to int.
11185
11186 2012-07-02 Stan Shebs <stan@codesourcery.com>
11187
11188 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11189 (ax.o): Add it to build rule.
11190 (ax-ipa.o): Ditto.
11191 (OBS): Add format.o.
11192 (IPA_OBS): Add format.o.
11193 * server.c (handle_query): Claim support for breakpoint commands.
11194 (process_point_options): Add command case.
11195 (process_serial_event): Leave running if there are printfs in
11196 effect.
11197 * mem-break.h (any_persistent_commands): Declare.
11198 (add_breakpoint_commands): Declare.
11199 (gdb_no_commands_at_breakpoint): Declare.
11200 (run_breakpoint_commands): Declare.
11201 * mem-break.c (struct point_command_list): New struct.
11202 (struct breakpoint): New field command_list.
11203 (any_persistent_commands): New function.
11204 (add_commands_to_breakpoint): New function.
11205 (add_breakpoint_commands): New function.
11206 (gdb_no_commands_at_breakpoint): New function.
11207 (run_breakpoint_commands): New function.
11208 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11209 locally.
11210 * ax.c: Include format.h.
11211 (ax_printf): New function.
11212 (gdb_eval_agent_expr): Add printf opcode.
11213
11214 2012-06-13 Yao Qi <yao@codesourcery.com>
11215
11216 * server.c (start_inferior): Remove duplicated writes to fields
11217 'last_resume_kind' and 'last_status' of 'current_inferior'.
11218
11219 2012-06-12 Yao Qi <yao@codesourcery.com>
11220 Pedro Alves <palves@redhat.com>
11221
11222 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11223 comment.
11224 * server.c (handle_v_cont): Extend comment.
11225
11226 2012-06-11 Yao Qi <yao@codesourcery.com>
11227
11228 * linux-low.c (linux_attach): Add 'static'.
11229
11230 2012-06-06 Yao Qi <yao@codesourcery.com>
11231
11232 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11233
11234 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11235
11236 Fix gcc -flto compilation warning.
11237 * server.c (main): Make variable multi_mode and attach volatile.
11238
11239 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11240
11241 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11242 if the platform doesn't know about it.
11243
11244 2012-05-30 Jeff Kenton <jkenton@tilera.com>
11245
11246 * Makefile.in (SFILES): Add linux-tile-low.c.
11247 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11248 * configure.srv: Handle tilegx-*-linux*.
11249 * linux-tile-low.c: New file.
11250
11251 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11252
11253 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11254
11255 2012-05-24 Pedro Alves <palves@redhat.com>
11256
11257 PR gdb/7205
11258
11259 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
11260
11261 2012-05-24 Pedro Alves <palves@redhat.com>
11262
11263 PR gdb/7205
11264
11265 Replace target_signal with gdb_signal throughout.
11266
11267 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11268
11269 * linux-low.c (linux_store_registers): Avoid the copying sequence
11270 when no data has been retrieved by ptrace.
11271
11272 2012-05-22 Will Deacon <will.deacon@arm.com>
11273
11274 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11275 Include asm/ptrace.h.
11276 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11277 already defined.
11278
11279 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11280
11281 * linux-low.c (linux_store_registers): Don't re-retrieve data
11282 with ptrace that has already been obtained from /proc. Always
11283 copy any data retrieved with ptrace to the buffer supplied.
11284
11285 2012-05-11 Yao Qi <yao@codesourcery.com>
11286 Pedro Alves <palves@redhat.com>
11287
11288 * linux-low.c (enum stopping_threads_kind): New.
11289 (stopping_threads): Change type to `enum stopping_threads_kind'.
11290 (handle_extended_wait): If stopping and suspending threads, leave
11291 the new_lwp suspended too.
11292 (linux_wait_for_event): Adjust.
11293 (stop_all_lwps): Set `stopping_threads' to
11294 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11295 whether we're suspending threads or just stopping them. Assert no
11296 recursion happens.
11297
11298 2012-04-29 Yao Qi <yao@codesourcery.com>
11299
11300 * server.h: Move some code to ...
11301 * gdbthread.h: ... here. New.
11302 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11303 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11304 (nto-low.o, win32-low.o): Likewise.
11305 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11306 * regcache.c, remote-utils.c, server.c: Likewise.
11307 * target.c, tracepoint.c, win32-low.c: Likewise.
11308
11309 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11310
11311 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11312 (PTRACE_ARG4_TYPE): Likewise.
11313 (PTRACE_XFER_TYPE): Likewise.
11314 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11315 ptrace to PTRACE_ARG3_TYPE.
11316 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11317 (PTRACE_ARG4_TYPE): Likewise.
11318 (PTRACE_XFER_TYPE): Likewise.
11319 (linux_detach_one_lwp): Cast fourth argument of
11320 ptrace to long then PTRACE_ARG4_TYPE.
11321 (regsets_fetch_inferior_registers): Cast third argument of
11322 ptrace to long then PTRACE_ARG3_TYPE.
11323 (regsets_store_inferior_registers): Likewise.
11324
11325 2012-04-20 Pedro Alves <palves@redhat.com>
11326
11327 * configure: Regenerate.
11328
11329 2012-04-19 Pedro Alves <palves@redhat.com>
11330
11331 * Makefile.in (GNULIB_BUILDDIR): New.
11332 (LIBGNU, INCGNU, GNULIB_H): Adjust.
11333 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11334 (all, install-only, uninstall, clean-info, all-lib, clean): No
11335 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11336 (maintainer-clean realclean distclean): Use subdir_do.
11337 (subdir_do): New.
11338 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
11339 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
11340 * acinclude.m4: Include acx_configure_dir.m4.
11341 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11342 calls. Call AC_PROG_RANLIB. Configure gnulib using
11343 ACX_CONFIGURE_DIR.
11344 (GNULIB): New.
11345 (GNULIB_STDINT_H): Adjust.
11346 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11347 * gdbreplay.c: Include build-gnulib/config.h.
11348 * server.h: Likewise.
11349 * aclocal.m4: Regenerate.
11350 * config.in: Regenerate.
11351 * configure: Regenerate.
11352
11353 2012-04-19 Pedro Alves <palves@redhat.com>
11354
11355 * Makefile.in (LIBGNU, INCGNU): Adjust.
11356 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11357 (all, install-only, uninstall, clean-info, all-lib, clean)
11358 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11359 * configure.ac: Adjust AC_OUTPUT output.
11360 * aclocal.m4: Regenerate.
11361 * configure: Regenerate.
11362
11363 2012-04-19 Pedro Alves <palves@redhat.com>
11364
11365 * Makefile.in (generated_files): New.
11366 (server_h): Remove the explicit dependency on config.h, and depend
11367 on $generated_files.
11368
11369 2012-04-19 Pedro Alves <palves@redhat.com>
11370
11371 * Makefile.in (INCGNU): Add -Ignulib.
11372
11373 2012-04-19 Pedro Alves <palves@redhat.com>
11374
11375 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11376 (INCGNU): ... this, and spell out -I here.
11377 (GNULIB_LIB): Rename to ...
11378 (LIBGNU): ... this.
11379 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11380
11381 2012-04-19 Pedro Alves <palves@redhat.com>
11382
11383 * config.in: Regenerate.
11384
11385 2012-04-19 Pedro Alves <palves@redhat.com>
11386
11387 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11388 * server.h (memmem): Remove declaration.
11389 * config.in: Regenerate.
11390 * configure: Regenerate.
11391
11392 2012-04-19 Yao Qi <yao@codesourcery.com>
11393
11394 * Makefile.in (SFILES): Add common/vec.c.
11395 (OBS): Add vec.o.
11396 (vec.o): New rule.
11397
11398 2012-04-19 Yao Qi <yao@codesourcery.com>
11399
11400 * remote-utils.c (prepare_resume_reply): Replace with macro
11401 target_core_of_thread.
11402 * server.c (handle_qxfer_threads_proper): Likewise.
11403 * target.h (traget_core_of_thread): New macro.
11404
11405 2012-04-18 Pedro Alves <palves@redhat.com>
11406
11407 * aclocal.m4: Regenerate.
11408 * configure: Regenerate.
11409
11410 2012-04-16 Yao Qi <yao@codesourcery.com>
11411
11412 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11413 duplicated on address.
11414
11415 2012-04-16 Yao Qi <yao@codesourcery.com>
11416
11417 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11418 (struct tracepoint_action_ops) <send>: New field.
11419 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11420 (agent_expr_send, x_tracepoint_action_send): New.
11421 (l_tracepoint_action_send): New.
11422 (cmd_qtdp): Download and install tracepoint
11423 according to `use_agent'.
11424 (run_inferior_command): Add one more parameter `len'.
11425 Update callers.
11426 (tracepoint_send_agent): New.
11427 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11428
11429 2012-04-16 Yao Qi <yao@codesourcery.com>
11430
11431 * tracepoint.c (download_tracepoints): Moved to ...
11432 (cmd_qtstart): ... here.
11433
11434 2012-04-14 Yao Qi <yao@codesourcery.com>
11435
11436 * tracepoint.c: Include inttypes.h.
11437 (struct collect_memory_action): Use sized types.
11438 (struct tracepoint): Likewise.
11439 (cmd_qtdp, stop_tracing): Update print specifiers.
11440 (cmd_qtp, response_tracepoint): Likewise.
11441 (collect_data_at_tracepoint): Likewise.
11442 (collect_data_at_step): Likewise.
11443
11444 2012-04-14 Yao Qi <yao@codesourcery.com>
11445
11446 Import gnulib module inttypes.
11447 * aclocal.m4, config.in, configure: Regenerated.
11448
11449 2012-04-14 Yao Qi <yao@codesourcery.com>
11450
11451 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11452 Makefile and config.status at last.
11453
11454 2012-04-13 Yao Qi <yao@codesourcery.com>
11455
11456 * tracepoint.c: Include stdint.h unconditionally.
11457
11458 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11459
11460 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11461 on BFD_HAVE_SYS_PROCFS_TYPE.
11462 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11463 * configure: Regenerate.
11464 * config.in: Likewise.
11465
11466 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11467
11468 * Makefile.in (clean): Also remove x32.c x32-linux.c
11469 x32-avx.c x32-avx-linux.c.
11470 (x32.o): New target.
11471 (x32.c): Likewise.
11472 (x32-linux.o): Likewise.
11473 (x32-linux.c): Likewise.
11474 (x32-avx.o): Likewise.
11475 (x32-avx.c): Likewise.
11476 (x32-avx-linux.o): Likewise.
11477 (x32-avx-linux.c): Likewise.
11478
11479 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11480 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11481 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11482 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11483 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11484 i386/x32-avx-linux.xml.
11485
11486 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11487 (init_registers_x32_avx_linux): Likwise.
11488 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11489 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11490
11491 2012-04-13 Pedro Alves <palves@redhat.com>
11492
11493 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
11494 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
11495 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
11496 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
11497 the sub-make.
11498
11499 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11500
11501 * linux-x86-low.c (compat_x32_clock_t): New.
11502 (compat_x32_siginfo_t): Likewise.
11503 (compat_x32_siginfo_from_siginfo): Likewise.
11504 (siginfo_from_compat_x32_siginfo): Likewise.
11505 (linux_is_elf64): Likewise.
11506 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
11507 and siginfo_from_compat_x32_siginfo for x32.
11508 (x86_arch_setup): Set linux_is_elf64.
11509
11510 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11511
11512 PR gdb/13969
11513 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
11514 e_machine field.
11515 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
11516 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
11517 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
11518 compatible with process.
11519
11520 2012-04-12 Yao Qi <yao@codesourcery.com>
11521
11522 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
11523 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
11524 (install-only, install-info, clean): Handle sub dir gnulib.
11525 (all-lib, am--refresh): New targets.
11526 (memmem.o): Remove target.
11527 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
11528 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
11529 (AC_REPLACE_FUNCS): Remove memmem.
11530 Invoke gl_INIT and AM_INIT_AUTOMAKE.
11531 (AC_OUTPUT): Generate Makefile in gnulib/.
11532 * aclocal.m4, config.in, configure: Regenerated.
11533
11534 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
11535
11536 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
11537
11538 2012-04-05 Pedro Alves <palves@redhat.com>
11539
11540 -Werror=strict-aliasing
11541
11542 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
11543 pointer.
11544
11545 2012-04-04 Pedro Alves <palves@redhat.com>
11546
11547 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11548 (sparc_store_gregset_from_stack, sparc_store_gregset)
11549 (sparc_breakpoint_at): Fix formatting.
11550
11551 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11552
11553 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
11554 are available.
11555 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
11556 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
11557 * config.in: Regenerate.
11558 * configure: Likewise.
11559
11560 2012-03-29 Pedro Alves <palves@redhat.com>
11561
11562 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
11563 Correct ptrace arguments.
11564
11565 2012-03-28 Pedro Alves <palves@redhat.com>
11566
11567 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
11568 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
11569 (IA64_FR1_REGNUM): New defines.
11570 (ia64_fetch_register): New.
11571 (the_low_target): Install it.
11572 * linux-low.h (struct linux_target_ops) <fetch_register>: New
11573 field.
11574 * linux-low.c (linux_fetch_registers): Try the
11575 the_low_target.fetch_register hook first.
11576
11577 * linux-arm-low.c (the_low_target): Adjust.
11578 * linux-bfin-low.c (the_low_target): Adjust.
11579 * linux-cris-low.c (the_low_target): Adjust.
11580 * linux-crisv32-low.c (the_low_target): Adjust.
11581 * linux-m32r-low.c (the_low_target): Adjust.
11582 * linux-m68k-low.c (the_low_target): Adjust.
11583 * linux-mips-low.c (the_low_target): Adjust.
11584 * linux-ppc-low.c (the_low_target): Adjust.
11585 * linux-s390-low.c (the_low_target): Adjust.
11586 * linux-sh-low.c (the_low_target): Adjust.
11587 * linux-sparc-low.c (the_low_target): Adjust.
11588 * linux-tic6x-low.c (the_low_target): Adjust.
11589 * linux-x86-low.c (the_low_target): Adjust.
11590 * linux-xtensa-low.c (the_low_target): Adjust.
11591
11592 2012-03-26 Pedro Alves <palves@redhat.com>
11593
11594 * server.c (handle_qxfer_libraries): Don't bail early if
11595 the_target->qxfer_libraries_svr4 is not NULL.
11596
11597 2012-03-26 Pedro Alves <palves@redhat.com>
11598
11599 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
11600
11601 2012-03-23 Pedro Alves <palves@redhat.com>
11602
11603 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
11604 "library-list-svr4" element's start tag when the the DSO list is
11605 empty.
11606
11607 2012-03-23 Pedro Alves <palves@redhat.com>
11608
11609 * linux-low.c (read_one_ptr): Read the inferior's pointer through
11610 a variable whose type size is the same as the inferior's pointer
11611 size.
11612
11613 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
11614
11615 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
11616 struct siginfo.
11617 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
11618 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
11619 * linux-low.h: Include <signal.h>.
11620 (struct siginfo): Remove forward declaration.
11621 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
11622 struct siginfo.
11623
11624 2012-03-21 Mike Frysinger <vapier@gentoo.org>
11625
11626 * .gitignore: Ignore more files.
11627
11628 2012-03-19 Pedro Alves <palves@redhat.com>
11629 Jan Kratochvil <jan.kratochvil@redhat.com>
11630
11631 * server.c (cont_thread, general_thread): Add describing comments.
11632 (start_inferior): Clear `cont_thread'.
11633 (handle_v_cont): Don't set `cont_thread' if resuming all threads
11634 of a process.
11635
11636 2012-03-15 Yao Qi <yao@codesourcery.com>
11637
11638 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
11639 handling to ...
11640 (cmd_qtdp): ... here.
11641
11642 2012-03-15 Yao Qi <yao@codesourcery.com>
11643
11644 * tracepoint.c (struct tracepoint_action_ops): New.
11645 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
11646 (m_tracepoint_action_download): New.
11647 (r_tracepoint_action_download): New.
11648 (x_tracepoint_action_download): New.
11649 (l_tracepoint_action_download): New.
11650 (add_tracepoint_action): Install `action->ops' according type.
11651 (download_tracepoint_1): Move code `download' function pointer
11652 of various tracepoint_action_ops.
11653
11654 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11655
11656 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
11657 linux_ptrace_attach_warnings.
11658
11659 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11660
11661 * Makefile.in (linux-ptrace.o): New.
11662 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
11663 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
11664 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
11665 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
11666 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
11667 of these targets.
11668 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
11669
11670 2012-03-08 Yao Qi <yao@codesourcery.com>
11671 Pedro Alves <palves@redhat.com>
11672
11673 Fix PR server/13392.
11674 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
11675 offset of JMP insn.
11676 * tracepoint.c (remove_tracepoint): New.
11677 (cmd_qtdp): Call remove_tracepoint when failed to install.
11678
11679 2012-03-07 Pedro Alves <palves@redhat.com>
11680
11681 * linux-low.c (get_detach_signal): New.
11682 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
11683 Pass on pending signals to PTRACE_DETACH. Check the result of the
11684 ptrace call.
11685 * server.c (program_signals, program_signals_p): New.
11686 (handle_general_set): Handle QProgramSignals.
11687 * server.h (program_signals, program_signals_p): Declare.
11688
11689 2012-03-05 Pedro Alves <palves@redhat.com>
11690 Jan Kratochvil <jan.kratochvil@redhat.com>
11691
11692 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
11693 New comment why.
11694
11695 2012-03-03 Yao Qi <yao@codesourcery.com>
11696
11697 * tracepoint.c (tracepoint_look_up_symbols): Update call to
11698 agent_look_up_symbols.
11699
11700 2012-03-03 Yao Qi <yao@codesourcery.com>
11701
11702 * Makefile.in (linux-low.o): Keep dependence on agent.h.
11703 (linux-x86-low.o): Likewise.
11704 * server.h: Remove in_process_agent_loaded.
11705 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
11706 common/agent.c.
11707 Update callers.
11708
11709 2012-03-03 Yao Qi <yao@codesourcery.com>
11710
11711 * tracepoint.c (gdb_agent_capability): New global.
11712 (in_process_agent_loaded_ust): Renamed to
11713 `in_process_agent_supports_ust'.
11714 Update callers.
11715 (in_process_agent_supports_ust): Call agent_capability_check.
11716 (clear_installed_tracepoints): Assert that agent supports
11717 agent.
11718
11719 2012-03-03 Yao Qi <yao@codesourcery.com>
11720
11721 * linux-low.c (linux_supports_agent): New.
11722 (linux_target_ops): Initialize field `supports_agent' with
11723 linux_supports_agent.
11724 * target.h (struct target_ops) <supports_agent>: New.
11725 (target_supports_agent): New macro.
11726 * server.c (handle_general_set): Handle packet 'QAgent'.
11727 (handle_query): Send `QAgent+'.
11728 * Makefile.in (server.o): Depends on agent.h.
11729
11730 2012-03-03 Yao Qi <yao@codesourcery.com>
11731
11732 * Makefile.in (OBS): Add agent.o.
11733 Add new rule for agent.o.
11734 Track dependence of tracepoint.c on agent.h.
11735 * tracepoint.c (run_inferior_command_1):
11736 (run_inferior_command): Call agent_run_command.
11737 (gdb_ust_connect_sync_socket): Deleted. Move it to
11738 common/agent.c.
11739 (resume_thread, stop_thread): Likewise.
11740 (gdb_ust_socket_init): Renamed to ...
11741 (gdb_agent_socket_init): ... New.
11742 (gdb_ust_thread): Renamed to ...
11743 (gdb_agent_helper_thread): ... New.
11744 (gdb_ust_init): Move some code to ...
11745 (gdb_agent_init): ... here. New.
11746 [HAVE_UST]: Call gdb_ust_init.
11747 (initialize_tracepoint_ftlib): Call gdb_agent_init.
11748 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
11749 * config.in, configure: Regenerated.
11750
11751 2012-03-02 Pedro Alves <palves@redhat.com>
11752
11753 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
11754 * linux-low.c (struct simple_pid_list): New.
11755 (stopped_pids): New a struct simple_pid_list pointer.
11756 (add_to_pid_list, pull_pid_from_list): New.
11757 (handle_extended_wait): Don't assume the first signal new children
11758 report is SIGSTOP. Adjust call to pull_pid_from_list.
11759 (linux_wait_for_lwp): Adjust.
11760
11761 2012-03-02 Yao Qi <yao@codesourcery.com>
11762
11763 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
11764 debug log.
11765
11766 2012-03-02 Yao Qi <yao@codesourcery.com>
11767
11768 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
11769 `stop_pc' and `tpoint'. Update caller.
11770
11771 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
11772
11773 * linux-low.h (linux_target_ops): Add regset_bitmap member.
11774 * linux-low.c (use_linux_regsets): New macro.
11775 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
11776 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
11777 (linux_register_in_regsets): New function.
11778 (usr_fetch_inferior_registers): Skip registers covered by
11779 regsets.
11780 (usr_store_inferior_registers): Likewise.
11781 (usr_fetch_inferior_registers): New macro.
11782 (usr_store_inferior_registers): Likewise.
11783 (linux_fetch_registers): Handle mixed regset/non-regset targets.
11784 (linux_store_registers): Likewise.
11785 * linux-mips-low.c (init_registers_mips_dsp_linux): New
11786 prototype.
11787 (init_registers_mips64_dsp_linux): Likewise.
11788 (init_registers_mips_linux): New macro.
11789 (init_registers_mips_dsp_linux): Likewise.
11790 (mips_dsp_num_regs): Likewise.
11791 (DSP_BASE, DSP_CONTROL): New fallback macros.
11792 (mips_base_regs): New macro.
11793 (mips_regmap): Use it. Fix the size.
11794 (mips_dsp_regmap): New variable.
11795 (mips_dsp_regset_bitmap): Likewise.
11796 (mips_arch_setup): New function.
11797 (mips_cannot_fetch_register): Use the_low_target.regmap rather
11798 than mips_regmap.
11799 (mips_cannot_store_register): Likewise.
11800 (the_low_target): Update .arch_setup, .num_regs and .regmap
11801 initializers. Add .regset_bitmap initializer.
11802 * linux-arm-low.c (the_low_target): Add .regset_bitmap
11803 initializer.
11804 * linux-bfin-low.c (the_low_target): Likewise.
11805 * linux-cris-low.c (the_low_target): Likewise.
11806 * linux-crisv32-low.c (the_low_target): Likewise.
11807 * linux-ia64-low.c (the_low_target): Likewise.
11808 * linux-m32r-low.c (the_low_target): Likewise.
11809 * linux-m68k-low.c (the_low_target): Likewise.
11810 * linux-ppc-low.c (the_low_target): Likewise.
11811 * linux-s390-low.c (the_low_target): Likewise.
11812 * linux-sh-low.c (the_low_target): Likewise.
11813 * linux-sparc-low.c (the_low_target): Likewise.
11814 * linux-tic6x-low.c (the_low_target): Likewise.
11815 * linux-x86-low.c (the_low_target): Likewise.
11816 * linux-xtensa-low.c (the_low_target): Likewise.
11817 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
11818 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
11819 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
11820 srv_xmlfiles.
11821 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
11822 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
11823
11824 2012-02-29 Yao Qi <yao@codesourcery.com>
11825 Pedro Alves <palves@redhat.com>
11826
11827 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
11828 `step_over_finished' is true.
11829
11830 2012-02-27 Pedro Alves <palves@redhat.com>
11831
11832 * linux-low.c (pid_is_stopped): Delete, moved to common/.
11833 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
11834
11835 2012-02-27 Pedro Alves <palves@redhat.com>
11836
11837 PR server/9684
11838 * linux-low.c (pid_is_stopped): New.
11839 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
11840
11841 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
11842
11843 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
11844 of conditions.
11845
11846 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11847
11848 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
11849
11850 2012-02-24 Luis Machado <lgustavo@codesourcery>
11851
11852 * server.c (handle_query): Advertise support for target-side
11853 breakpoint condition evaluation.
11854 (process_point_options): New function.
11855 (process_serial_event): When inserting a breakpoint, check for
11856 a target-side condition that should be evaluated.
11857
11858 * mem-break.c: Include regcache.h and ax.h.
11859 (point_cond_list_t): New data structure.
11860 (breakpoint) <cond_list>: New field.
11861 (find_gdb_breakpoint_at): Make non-static.
11862 (delete_gdb_breakpoint_at): Clear any target-side
11863 conditions.
11864 (clear_gdb_breakpoint_conditions): New function.
11865 (add_condition_to_breakpoint): Likewise.
11866 (add_breakpoint_condition): Likewise.
11867 (gdb_condition_true_at_breakpoint): Likewise.
11868 (gdb_breakpoint_here): Return result directly instead
11869 of going through a local variable.
11870
11871 * mem-break.h (find_gdb_breakpoint_at): New prototype.
11872 (clear_gdb_breakpoint_conditions): Likewise.
11873 (add_breakpoint_condition): Likewise.
11874 (gdb_condition_true_at_breakpoint): Likewise.
11875
11876 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
11877 (need_step_over_p): Take target-side breakpoint condition into
11878 consideration.
11879
11880 2012-02-24 Luis Machado <lgustavo@codesourcery>
11881
11882 * server.h: Include tracepoint.h.
11883 (agent_mem_read, agent_get_trace_state_variable_value,
11884 agent_set_trace_state_variable_value,
11885 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
11886 get_set_tsv_func_addr): New prototypes.
11887
11888 * ax.h: New include file.
11889 * ax.c: New source file.
11890
11891 * tracepoint.c: Include ax.h.
11892 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
11893 agent_expr, eval_result_type): Move to ax.h.
11894 (parse_agent_expr): Rename to ...
11895 (gdb_parse_agent_expr): ... this, make it non-static and move
11896 to ax.h.
11897 (unparse_agent_expr) Rename to ...
11898 (gdb_unparse_agent_expr): ... this, make it non-static and move
11899 to ax.h.
11900 (eval_agent_expr): Rename to ...
11901 (eval_tracepoint_agent_expr): ... this.
11902 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
11903 forward declarations.
11904 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
11905 (agent_get_trace_state_variable_value): New function.
11906 (agent_set_trace_state_variable_value): New function.
11907 (cmd_qtdp): Call gdb_parse_agent_expr (...).
11908 (response_tracepoint): Call gdb_unparse_agent_expr (...).
11909 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
11910 (condition_true_at_tracepoint): Likewise.
11911 (parse_agent_expr): Rename to ...
11912 (gdb_parse_agent_expr): ... this and move to ax.c.
11913 (unparse_agent_expr): Rename to ...
11914 (gdb_unparse_agent_expr): ... this and move to ax.c.
11915 (gdb_agent_op_name): Move to ax.c.
11916 (eval_agent_expr): Rename to ...
11917 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
11918 and move to ax.c.
11919 (eval_tracepoint_agent_expr): New function.
11920 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
11921 non-static.
11922 (current_insn_ptr, emit_error, struct bytecode_address): Move to
11923 ax.c.
11924 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
11925 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
11926 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
11927 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
11928 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
11929 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
11930 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
11931 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
11932 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
11933 (compile_bytecodes): Remove forward declaration.
11934 (is_goto_target): Move to ax.c.
11935 (compile_bytecodes): Move to ax.c and call
11936 agent_get_trace_state_variable_value (...) and
11937 agent_set_trace_state_variable_value (...).
11938
11939 * Makefile.in: Update ax.c and IPA dependencies.
11940
11941 2012-02-24 Pedro Alves <palves@redhat.com>
11942
11943 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
11944 (cmd_bigqtbuffer_circular): ... this. Only handle
11945 'QTBuffer:circular:'.
11946 (handle_tracepoint_general_set): Adjust.
11947
11948 2012-02-16 Yao Qi <yao@codesourcery.com>
11949
11950 * inferiors.c: Move code to ...
11951 * dll.c: .... here. New.
11952 * server.h: Declare clear_dlls.
11953 * Makefile.in (SFILES): Add dll.c.
11954 (OBS): Add dll.o
11955 (dll.o): New rule.
11956
11957 2012-02-11 Yao Qi <yao@codesourcery.com>
11958
11959 * server.c: (handle_monitor_command): Add a new parameter
11960 `own_buf'.
11961 (handle_query): Update caller.
11962
11963 2012-02-09 Joel Brobecker <brobecker@adacore.com>
11964
11965 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
11966 * configure, config.in: Regenerate.
11967 * hostio.c: Provide an alternate implementation if HAVE_READLINK
11968 is not defined.
11969
11970 2012-02-02 Pedro Alves <palves@redhat.com>
11971
11972 Try SIGKILL first, then PTRACE_KILL.
11973 * linux-low.c (linux_kill_one_lwp): New.
11974 (linux_kill_one_lwp): Rename to ...
11975 (kill_one_lwp_callback): ... this. Use the new
11976 linux_kill_one_lwp.
11977
11978 2012-02-02 Pedro Alves <palves@redhat.com>
11979
11980 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
11981 inferior.
11982
11983 2012-01-27 Pedro Alves <palves@redhat.com>
11984
11985 * linux-low.c (linux_child_pid_to_exec_file): Delete.
11986 (elf_64_file_p): Make static.
11987 (linux_pid_exe_is_elf_64_file): New.
11988 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
11989 Delete declarations.
11990 (linux_pid_exe_is_elf_64_file): Declare.
11991 * linux-x86-low.c (x86_arch_setup): Use
11992 linux_pid_exe_is_elf_64_file.
11993
11994 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11995
11996 * linux-low.c (linux_wait_for_event_1): Rename to ...
11997 (linux_wait_for_event): ... here and merge it with former
11998 linux_wait_for_event - new variable wait_ptid, use it.
11999 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12000
12001 2012-01-23 Pedro Alves <palves@redhat.com>
12002
12003 * server.c (main): Avoid yet another case of infinite loop while
12004 detaching/killing after a longjmp.
12005
12006 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12007
12008 Code cleanup.
12009 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12010
12011 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12012
12013 * hostio.c (handle_readlink): New function.
12014 (handle_vFile): Call it to handle "vFile:readlink" packets.
12015
12016 2012-01-20 Pedro Alves <palves@redhat.com>
12017 Ulrich Weigand <ulrich.weigand@linaro.org>
12018
12019 * server.c (handle_v_requests): Only support vAttach and vRun to
12020 start multiple processes when in extended protocol mode.
12021
12022 2012-01-17 Pedro Alves <palves@redhat.com>
12023
12024 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12025 memalign plus mprotect to allocate the scratch buffer.
12026
12027 2012-01-13 Pedro Alves <palves@redhat.com>
12028
12029 * server.c (attach_inferior): Clear `cont_thread'.
12030
12031 2012-01-13 Pedro Alves <palves@redhat.com>
12032
12033 * server.c (main): Avoid infinite loop while detaching/killing
12034 after a longjmp.
12035
12036 2012-01-09 Doug Evans <dje@google.com>
12037
12038 * server.c (start_inferior): Set last_ptid in --wrapper case.
12039
12040 2012-01-06 Yao Qi <yao@codesourcery.com>
12041
12042 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12043 defined.
12044 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12045
12046 2012-01-04 Yao Qi <yao@codesourcery.com>
12047
12048 * tracepoint.c (cmd_qtdp): Print debug message
12049 for static tracepoint.
12050
12051 2012-01-04 Yao Qi <yao@codesourcery.com>
12052
12053 * tracepoint.c (trace_vdebug): Differentiate debug message
12054 between gdbserver and IPA.
12055
12056 2012-01-03 Yao Qi <yao@codesourcery.com>
12057
12058 * tracepoint.c (tracepoint_was_hit): Don't collect for
12059 static tracepoint.
12060
12061 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12062
12063 * terminal.h: Reformat copyright header.
12064
12065 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12066
12067 * server.c (gdbserver_version): Update copyright year.
12068 * gdbreplay.c (gdbreplay_version): Likewise.
12069
12070 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12071
12072 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12073
12074 Revert:
12075 2011-12-18 Hui Zhu <teawater@gmail.com>
12076 * linux-low.c (linux_create_inferior): Save return value to ret.
12077
12078 2011-12-18 Hui Zhu <teawater@gmail.com>
12079
12080 * linux-low.c (linux_create_inferior): Save return value to ret.
12081
12082 2011-12-16 Doug Evans <dje@google.com>
12083
12084 * linux-low.c (linux_create_inferior): If stdio connection,
12085 redirect stdin from /dev/null, stdout to stderr.
12086 * remote-utils.c (remote_is_stdio): New static global.
12087 (remote_connection_is_stdio): New function.
12088 (remote_prepare): Handle stdio connection.
12089 (remote_open): Ditto.
12090 (remote_close): Don't close stdin for stdio connections.
12091 (read_prim,write_prim): New functions. Replace all calls to
12092 read/write to these.
12093 * server.c (main): Watch for "-" argument. Move call to
12094 remote_prepare before start_inferior.
12095 * server.h (STDIO_CONNECTION_NAME): New macro.
12096 (remote_connection_is_stdio): Declare.
12097
12098 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12099 in debugging output.
12100
12101 2011-12-15 Yao Qi <yao@codesourcery.com>
12102
12103 * tracepoint.c: Include sys/syscall.h.
12104 (gdb_ust_thread): Remove preprocessor conditional.
12105
12106 2011-12-14 Pedro Alves <pedro@codesourcery.com>
12107
12108 * linux-low.c (linux_detach_one_lwp): Call
12109 the_low_target.prepare_to_resume before detaching.
12110
12111 2011-12-14 Yao Qi <yao@codesourcery.com>
12112
12113 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12114 of write.
12115
12116 2011-12-14 Yao Qi <yao@codesourcery.com>
12117
12118 * i386-low.c (i386_low_stopped_data_address): Initialize local
12119 variable `control'.
12120
12121 2011-12-13 Pedro Alves <pedro@codesourcery.com>
12122
12123 PR remote/13492
12124
12125 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12126 DR_CONTROL unless necessary. Extend comments.
12127 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12128 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12129
12130 2011-12-13 Yao Qi <yao@codesourcery.com>
12131
12132 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12133 macros.
12134 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12135
12136 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12137
12138 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12139 Print new debug message for such case.
12140
12141 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12142
12143 Fix overlapping memcpy.
12144 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12145 the read_inferior_memory transfer.
12146 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12147 write_inferior_memory transfer.
12148 (set_fast_tracepoint_jump): New variable buf. Use it for the
12149 read_inferior_memory and write_inferior_memory transfers.
12150 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12151 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12152 Use it for the write_inferior_memory transfer.
12153 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12154 buffers.
12155
12156 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12157
12158 * linux-low.c (fetch_register, store_register): Make code
12159 consistent, fix formatting.
12160
12161 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12162
12163 * linux-low.c (usr_store_inferior_registers): Factor out code
12164 to handle individual registers into...
12165 (store_register): ... this new function.
12166
12167 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12168
12169 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12170 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12171 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12172 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12173 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12174 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12175 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12176 (srv_xmlfiles): Add new XML files.
12177
12178 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12179 and <sys/uio.h>.
12180 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12181 (init_registers_s390_linux32v1): Add prototype.
12182 (init_registers_s390_linux32v2): Likewise.
12183 (init_registers_s390_linux64v1): Likewise.
12184 (init_registers_s390_linux64v2): Likewise.
12185 (init_registers_s390x_linux64v1): Likewise.
12186 (init_registers_s390x_linux64v2): Likewise.
12187 (s390_num_regs): Increment to 52.
12188 (s390_regmap): Add orig_r2 register.
12189 (s390_num_regs_3264): Increment to 68.
12190 (s390_regmap_3264): Add orig_r2 register.
12191 (s390_collect_ptrace_register): Handle orig_r2 register.
12192 (s390_supply_ptrace_register): Likewise.
12193 (s390_fill_last_break): New function.
12194 (s390_store_last_break): Likewise.
12195 (s390_fill_system_call): New function.
12196 (s390_store_system_call): Likewise.
12197 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12198 register sets.
12199 (s390_check_regset): New function.
12200 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12201 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12202 Update target_regsets for available register sets.
12203
12204 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12205 Jan Kratochvil <jan.kratochvil@redhat.com>
12206
12207 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12208 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12209 New.
12210 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12211 * linux-low.h (struct process_info_private): New member r_debug.
12212 * server.c (handle_qxfer_libraries): Call
12213 the_target->qxfer_libraries_svr4.
12214 (handle_qxfer_libraries_svr4): New function.
12215 (qxfer_packets): New entry "libraries-svr4".
12216 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12217 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12218 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12219 PACKET_qXfer_libraries_svr4.
12220
12221 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12222
12223 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12224 PSW address/mask between 8-byte and 16-byte formats.
12225 (s390_supply_ptrace_register): Likewise.
12226 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12227 basic addressing mode bit.
12228
12229 2011-11-24 Stan Shebs <stan@codesourcery.com>
12230
12231 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12232
12233 2011-11-17 Stan Shebs <stan@codesourcery.com>
12234
12235 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12236 (tracing_start_time): New global.
12237 (tracing_stop_time): New global.
12238 (tracing_user_name): New global.
12239 (tracing_notes): New global.
12240 (tracing_stop_note): New global.
12241 (cmd_qtstart): Set traceframe_usage, start_time.
12242 (stop_tracing): Set stop_time.
12243 (cmd_qtstatus): Report additional status.
12244 (cmd_qtp): New function.
12245 (handle_tracepoint_query): Call it.
12246 (cmd_qtnotes): New function.
12247 (handle_tracepoint_general_set): Call it.
12248 (get_timestamp): Rename from tsv_get_timestamp.
12249
12250 2011-11-14 Stan Shebs <stan@codesourcery.com>
12251 Kwok Cheung Yeung <kcy@codesourcery.com>
12252
12253 * linux-x86-low.c (small_jump_insn): New.
12254 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12255 trampoline and error message, build a trampoline and issue a small
12256 jump instruction to it.
12257 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12258 trampoline and error message.
12259 (x86_get_min_fast_tracepoint_insn_len): New.
12260 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12261 * linux-low.h (struct linux_target_ops): Add arguments to
12262 install_fast_tracepoint_jump_pad operation, add new operation.
12263 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12264 arguments.
12265 (linux_get_min_fast_tracepoint_insn_len): New function.
12266 (linux_target_op): Add new operation.
12267 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12268 (gdb_trampoline_buffer_end): Ditto.
12269 (gdb_trampoline_buffer_error): Ditto.
12270 (struct ipa_sym_addresses): Add fields for new IPA variables.
12271 (symbol_list): Add entries for new IPA variables.
12272 (struct tracepoint): Add fields to hold the address range of the
12273 trampoline used by the tracepoint.
12274 (trampoline_buffer_head): New static variable.
12275 (trampoline_buffer_tail): Ditto.
12276 (claim_trampoline_space): New function.
12277 (have_fast_tracepoint_trampoline_buffer): New function.
12278 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12279 structure.
12280 (install_fast_tracepoint): Ditto, also add error buffer argument.
12281 (cmd_qtminftpilen): New function.
12282 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12283 (fast_tracepoint_from_trampoline_address): New function.
12284 (fast_tracepoint_collecting): Handle trampoline as part of jump
12285 pad space.
12286 (set_trampoline_buffer_space): New function.
12287 (initialize_tracepoint): Initialize new IPA variables.
12288 * target.h (struct target_ops): Add arguments to
12289 install_fast_tracepoint_jump_pad operation, add new
12290 get_min_fast_tracepoint_insn_len operation.
12291 (target_get_min_fast_tracepoint_insn_len): New.
12292 (install_fast_tracepoint_jump_pad): Add arguments.
12293 * server.h (IPA_BUFSIZ): Define.
12294 * linux-i386-ipa.c: Include extra header files.
12295 (initialize_fast_tracepoint_trampoline_buffer): New function.
12296 (initialize_low_tracepoint): Call it.
12297 * server.h (set_trampoline_buffer_space): Declare.
12298 (claim_trampoline_space): Ditto.
12299 (have_fast_tracepoint_trampoline_buffer): Ditto.
12300
12301 2011-11-14 Yao Qi <yao@codesourcery.com>
12302
12303 * server.c (handle_query): Handle InstallInTrace for qSupported.
12304 * tracepoint.c (add_tracepoint): Sort list.
12305 (install_tracepoint, download_tracepoint): New.
12306 (cmd_qtdp): Call them to install and download tracepoints.
12307 (sort_tracepoints): Removed.
12308 (cmd_qtstart): Update.
12309
12310 2011-11-14 Yao Qi <yao@codesourcery.com>
12311
12312 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12313 * mem-break.h: Declare.
12314 * tracepoint.c (cmd_qtstart): Move some code to ...
12315 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12316 New.
12317 (download_tracepoints): Move some code to ...
12318 (download_tracepoint_1): ... here. New.
12319
12320 2011-11-08 Yao Qi <yao@codesourcery.com>
12321
12322 * remote-utils.c (relocate_instruction): A comment fix.
12323
12324 2011-11-07 Joel Brobecker <brobecker@adacore.com>
12325
12326 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12327 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12328 dr_status_mirror and dr_control_mirror from debug_reg_state.
12329 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12330 (i386_initial_stuff): Remove use of deleted globals.
12331 (i386_get_thread_context, i386_set_thread_context,
12332 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12333 from debug_reg_state.
12334
12335 2011-11-05 Yao Qi <yao@codesourcery.com>
12336
12337 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12338 address as TPOINT's.
12339
12340 2011-11-02 Stan Shebs <stan@codesourcery.com>
12341
12342 * tracepoint.c (agent_mem_read_string): New function.
12343 (eval_agent_expr): Call it for tracenz.
12344 * server.c (handle_query): Report support for tracenz.
12345
12346 2011-11-02 Yao Qi <yao@codesourcery.com>
12347
12348 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12349
12350 2011-11-02 Yao Qi <yao@codesourcery.com>
12351
12352 * target.h: Fix a typo in comment.
12353
12354 2011-10-31 Pedro Alves <pedro@codesourcery.com>
12355
12356 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12357 clobber the breakpoints' shadows with fast tracepoint jumps.
12358 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12359 * target.c (write_inferior_memory): Also pass MYADDR down to
12360 check_mem_write.
12361
12362 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12363
12364 * configure.ac: Check support for personality routine.
12365 * configure: Regenerate.
12366 * config.in: Likewise.
12367 * linux-low.c: Include <sys/personality.h>.
12368 Define ADDR_NO_RANDOMIZE if necessary.
12369 (linux_create_inferior): Disable address space randomization when
12370 forking inferior, if requested.
12371 (linux_supports_disable_randomization): New function.
12372 (linux_target_ops): Install it.
12373 * server.h (disable_randomization): Declare.
12374 * server.c (disable_randomization): New global variable.
12375 (handle_general_set): Handle QDisableRandomization.
12376 (handle_query): Likewise for qSupported.
12377 (main): Support --disable-randomization and --no-disable-randomization
12378 command line arguments.
12379 * target.h (struct target_ops): Add supports_disable_randomization.
12380 (target_supports_disable_randomization): New macro.
12381
12382 2011-09-29 Mike Frysinger <vapier@gentoo.org>
12383
12384 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12385 ifdef check.
12386 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12387 [!PT_GETDSBT] (target_loadmap): New definition.
12388 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12389 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12390 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12391 and PT_GETDSBT to LINUX_LOADMAP.
12392 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12393 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12394
12395 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12396
12397 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12398 (arm_linux_hwbp_cap): New static variable.
12399 (arm_linux_get_hwbp_cap): Replace by ...
12400 (arm_linux_init_hwbp_cap): ... this new function.
12401 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12402 (arm_linux_get_hw_watchpoint_count): Likewise.
12403 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12404 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12405 (arm_prepare_to_resume): Use perror_with_name instead of error.
12406
12407 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
12408
12409 * linux-arm-low.c: Include <signal.h>.
12410 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12411 (struct arm_linux_hwbp_cap): New data type.
12412 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12413 (struct arm_linux_hw_breakpoint): New data type.
12414 (MAX_BPTS, MAX_WPTS): Define.
12415 (struct arch_process_info, struct arch_lwp_info): New data types.
12416 (arm_linux_get_hwbp_cap): New function.
12417 (arm_linux_get_hw_breakpoint_count): Likewise.
12418 (arm_linux_get_hw_watchpoint_count): Likewise.
12419 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12420 (arm_hwbp_control_initialize): Likewise.
12421 (arm_hwbp_control_is_enabled): Likewise.
12422 (arm_hwbp_control_is_initialized): Likewise.
12423 (arm_hwbp_control_disable): Likewise.
12424 (arm_linux_hw_breakpoint_equal): Likewise.
12425 (arm_linux_hw_point_initialize): Likewise.
12426 (struct update_registers_data): New data structure.
12427 (update_registers_callback: New function.
12428 (arm_insert_point): Likewise.
12429 (arm_remove_point): Likewise.
12430 (arm_stopped_by_watchpoint): Likewise.
12431 (arm_stopped_data_address): Likewise.
12432 (arm_new_process): Likewise.
12433 (arm_new_thread): Likewise.
12434 (arm_prepare_to_resume): Likewise.
12435 (the_low_target): Register arm_insert_point, arm_remove_point,
12436 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12437 arm_new_thread, and arm_prepare_to_resume.
12438
12439 2011-09-15 Stan Shebs <stan@codesourcery.com>
12440
12441 * server.h (struct emit_ops): Add compare-goto fields.
12442 * tracepoint.c (gdb_agent_op_sizes): New table.
12443 (emit_eq_goto): New function.
12444 (emit_ne_goto): New function.
12445 (emit_lt_goto): New function.
12446 (emit_le_goto): New function.
12447 (emit_gt_goto): New function.
12448 (emit_ge_goto): New function.
12449 (is_goto_target): New function.
12450 (compile_bytecodes): Recognize special cases of compare-goto
12451 combinations and call specialized emitters for them.
12452 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12453 (amd64_emit_ne_goto): New function.
12454 (amd64_emit_lt_goto): New function.
12455 (amd64_emit_le_goto): New function.
12456 (amd64_emit_gt_goto): New function.
12457 (amd64_emit_ge_goto): New function.
12458 (amd64_emit_ops): Add the new functions.
12459 (i386_emit_eq_goto): New function.
12460 (i386_emit_ne_goto): New function.
12461 (i386_emit_lt_goto): New function.
12462 (i386_emit_le_goto): New function.
12463 (i386_emit_gt_goto): New function.
12464 (i386_emit_ge_goto): New function.
12465 (i386_emit_ops): Add the new functions.
12466
12467 2011-09-08 Stan Shebs <stan@codesourcery.com>
12468
12469 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12470 (i386_emit_epilogue): Restore %ebx.
12471
12472 2011-08-31 Jie Zhang <jzhang918@gmail.com>
12473
12474 * server.c (step_thread): Remove definition.
12475 (process_serial_event): Don't handle Hs.
12476 * server.h (step_thread): Remove declaration.
12477 * target.c (set_desired_inferior): Remove use of step_thread.
12478
12479 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12480
12481 * linux-low.c: Include linux-procfs.h.
12482 (linux_attach_lwp_1): Update comments.
12483 (linux_attach): Scan for existing threads when attaching to a
12484 process that is the tgid.
12485 * Makefile.in: Update dependencies.
12486
12487 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
12488
12489 * configure.srv: Add linux-procfs.o dependencies.
12490
12491 2011-08-14 Yao Qi <yao@codesourcery.com>
12492
12493 * target.h (struct target_ops): Fix indent.
12494 * win32-low.c (win32_target_ops): Fix comment.
12495
12496 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
12497 Yao Qi <yao@codesourcery.com>
12498
12499 * Makefile.in (clean): Remove tic6x-*.c files.
12500 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
12501 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
12502 (tic6x-c64xp-linux.c): Likewise.
12503 * configure.srv: Add support for tic6x-*-uclinux.
12504 * linux-tic6x-low.c: New.
12505 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
12506
12507 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
12508 Yao Qi <yao@codesourcery.com>
12509
12510 * target.h (struct target_ops): Add read_loadmap.
12511 * linux-low.c (struct target_loadseg): New type.
12512 (struct target_loadmap): New type.
12513 (linux_read_loadmap): New function.
12514 (linux_target_ops): Add linux_read_loadmap.
12515 * server.c (handle_query): Support qXfer:fdpic:read packet.
12516 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
12517 to NULL.
12518
12519 2011-08-05 Eli Zaretskii <eliz@gnu.org>
12520
12521 * win32-low.c: Include <stdint.h>.
12522
12523 2011-07-22 Pedro Alves <pedro@codesourcery.com>
12524
12525 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
12526 to the inferior here.
12527 (i386_remove_aligned_watchpoint): Ditto.
12528 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
12529 fit part of the watchpoint in the debug registers.
12530 (i386_update_inferior_debug_regs): New.
12531 (i386_low_insert_watchpoint): Work on a local mirror of the debug
12532 registers, and only update the inferior on success.
12533 (i386_low_remove_watchpoint): Ditto.
12534
12535 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12536
12537 * linux-low.c (compare_ints, unique, list_threads, show_process,
12538 linux_core_of_thread): Delete.
12539 (linux_target_ops): Change linux_core_of_thread to
12540 linux_common_core_of_thread.
12541 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
12542 * utils.c (malloc_failure): Change type of argument.
12543 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
12544 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
12545 common/linux-osdata.c, common/ptid.c and common/buffer.c.
12546 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
12547 (IPA_OBJS): Add common-utils-ipa.o.
12548 (ptid_h, linux_osdata_h): New macros.
12549 (server_h): Add common/common-utils.h, common/xml-utils.h,
12550 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
12551 common/ptid.h.
12552 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
12553 ptid.o, buffer.o): New rules.
12554 (linux-low.o): Add common/linux-osdata.h as a dependency.
12555 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
12556 * configure.ac: Add AC_HEADER_DIRENT check.
12557 * config.in: Regenerate.
12558 * configure: Regenerate.
12559 * remote-utils.c (xml_escape_text): Delete.
12560 (buffer_grow, buffer_free, buffer_init, buffer_finish,
12561 buffer_xml_printf): Move to common/buffer.c.
12562 * server.c (main): Remove call to initialize_inferiors.
12563 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
12564 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
12565 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
12566 internal_error, gdb_assert, gdb_assert_fail): Delete.
12567 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
12568 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
12569 common/buffer.h.
12570 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
12571 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
12572 initialize_inferiors): Delete.
12573
12574 2011-07-20 Pedro Alves <pedro@codesourcery.com>
12575
12576 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
12577 symbol error.
12578
12579 2011-05-31 Pedro Alves <pedro@codesourcery.com>
12580
12581 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
12582 assertion.
12583 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
12584
12585 2011-05-26 Yao Qi <yao@codesourcery.com>
12586
12587 * Makefile.in (thread-db.o): Track dependence to
12588 common/gdb_thread_db.h.
12589 * thread-db.c: include gdb_thread_db.h from right place.
12590
12591 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
12592
12593 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
12594 __FILE__ and __LINE__ to internal_error.
12595
12596 2011-05-13 Doug Evans <dje@google.com>
12597
12598 * thread-db.c (try_thread_db_load_from_sdir): New function.
12599 (try_thread_db_load_from_dir): New function.
12600 (thread_db_load_search): Handle $sdir, ignore $pdir.
12601 Remove trying of system directories if search of
12602 libthread-db-search-path fails, that is now done via $sdir.
12603
12604 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
12605
12606 * server.c (handle_query): Add EnableDisableTracepoints to the list
12607 of supported features.
12608 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
12609 tracepoints.
12610 (cmd_qtenable_disable): New.
12611 (cmd_qtstart): Install tracepoints even if disabled.
12612 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
12613 receiving a QTEnable or QTDisable packet.
12614 (gdb_collect): Skip data collection if fast tracepoint is disabled.
12615 (ust_marker_to_static_tracepoint): Do not ignore disabled static
12616 tracepoints.
12617 (gdb_probe): Skip data collection if static tracepoint is disabled.
12618
12619 2011-05-10 Doug Evans <dje@google.com>
12620
12621 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
12622
12623 2011-05-04 Doug Evans <dje@google.com>
12624
12625 * linux-low.c (linux_join): Skip process lookup.
12626 * spu-low.c (spu_join): Ditto.
12627 * server.c (join_inferiors_callback): Delete.
12628 (process_serial_event): For 'D' packet (detach) call join_inferior
12629 directly.
12630
12631 2011-05-04 Joseph Myers <joseph@codesourcery.com>
12632
12633 * README: Don't mention xscale*-*-linux*.
12634 * configure.srv (xscale*-*-linux*): Don't handle target.
12635
12636 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
12637
12638 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
12639 casting pointers.
12640 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
12641 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
12642 (i386_emit_void_call_2): Likewise.
12643
12644 2011-04-26 Yao Qi <yao@codesourcery.com>
12645
12646 * linux-low.c: Move common macros to linux-ptrace.h.
12647 Include linux-ptrace.h.
12648 * Makefile.in (linux_ptrace_h): New.
12649 (linux-low.o): Depends on linux-ptrace.h.
12650
12651 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12652
12653 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
12654 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
12655 (remote_prepare): New function with most of the TCP code from ...
12656 (remote_open): ... here. Detect PORT here unconditionally. Move also
12657 setting transport_is_reliable.
12658 * server.c (run_once): New variable.
12659 (gdbserver_usage): Document it.
12660 (main): Set run_once for `--once'. Call remote_prepare. Exit after
12661 the first run if RUN_ONCE.
12662 * server.h (run_once, remote_prepare): New declarations.
12663
12664 2011-04-19 Tom Tromey <tromey@redhat.com>
12665
12666 * win32-low.c (handle_load_dll): Remove duplicate "the".
12667
12668 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
12669
12670 Remove support for old Cygwin 1.5 versions.
12671 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
12672 function to avoid warning.
12673 (win32_add_one_solib): Use cygwin_conv_path function to avoid
12674 warning.
12675
12676 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
12677
12678 * gdbserver/server.h (Macro _): Define it if not available.
12679
12680 2011-03-14 Michael Snyder <msnyder@vmware.com>
12681
12682 * hostio.c (handle_close): Remove unnecessary null test.
12683
12684 2011-03-10 Joel Brobecker <brobecker@adacore.com>
12685
12686 * Makefile.in (maintainer-clean realclean distclean): Remove
12687 "make ... subdir_do" command.
12688
12689 2011-03-10 Michael Snyder <msnyder@vmware.com>
12690
12691 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
12692
12693 * server.c (handle_v_run): Free alloced buffer on early return.
12694
12695 2011-03-09 Yao Qi <yao@codesourcery.com>
12696
12697 Revert:
12698 2011-03-04 Yao Qi <yao@codesourcery.com>
12699
12700 * Makefile.in: Remove GNU make feature --directory.
12701
12702 2011-03-05 Yao Qi <yao@codesourcery.com>
12703
12704 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12705 (subdir_do): New make target. Copied from gdb/Makefile.
12706 (maintainer-clean, realclean, distclean, clean): Call corresponding
12707 make targets in common/Makefile.
12708
12709 2011-02-11 Yao Qi <yao@codesourcery.com>
12710
12711 * configure.ac: Call AC_PROG_RANLIB.
12712 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12713 * configure: Regenerate.
12714
12715 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12716
12717 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
12718
12719 2011-03-06 Yao Qi <yao@codesourcery.com>
12720
12721 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
12722
12723 2011-03-05 Yao Qi <yao@codesourcery.com>
12724
12725 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12726 (subdir_do): New make target. Copied from gdb/Makefile.
12727 (maintainer-clean, realclean, distclean, clean): Call corresponding
12728 make targets in common/Makefile.
12729
12730 2011-03-04 Yao Qi <yao@codesourcery.com>
12731
12732 * Makefile.in: Remove GNU make feature --directory.
12733
12734 2011-03-04 Michael Snyder <msnyder@vmware.com>
12735
12736 * server.c (queue_stop_reply): Call xmalloc not malloc.
12737
12738 2011-03-02 Michael Snyder <msnyder@vmware.com>
12739
12740 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
12741
12742 2011-02-28 Michael Snyder <msnyder@vmware.com>
12743
12744 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
12745 (cmd_qtframe): Ditto.
12746 (cmd_qtbuffer): Ditto.
12747 (cmd_bigqtbuffer): Ditto.
12748
12749 * utils.c (decimal2str): Initialize 'width' to nine, then
12750 don't mess with it.
12751
12752 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12753
12754 * hostio.c (require_data): Free *data, not data.
12755
12756 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12757
12758 * hostio.c (require_data): Use free, not xfree.
12759
12760 2011-02-27 Michael Snyder <msnyder@vmware.com>
12761
12762 * server.c (handle_query): Discard unused value.
12763
12764 * hostio.c (require_data): Free malloc memory before returning
12765 error.
12766
12767 2011-02-26 Michael Snyder <msnyder@vmware.com>
12768
12769 * linux-low.c (list_threads): Call closedir for dirent.
12770
12771 2011-02-27 Michael Snyder <msnyder@vmware.com>
12772
12773 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
12774 a case statement falls through.
12775
12776 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
12777
12778 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
12779 in comparison.
12780
12781 2011-02-26 Michael Snyder <msnyder@vmware.com>
12782
12783 * utils.c (decimal2str): Eliminate dead code and dead param.
12784 (pulongest): Drop dead param from call to decimal2str.
12785 (plongest): Ditto.
12786
12787 2011-02-24 Joel Brobecker <brobecker@adacore.com>
12788
12789 Revert the following patch (not approved yet):
12790 2011-02-21 Hui Zhu <teawater@gmail.com>
12791 * tracepoint.c (tp_printf): New function.
12792 (eval_agent_expr): Handle gdb_agent_op_printf.
12793
12794 2011-02-21 Hui Zhu <teawater@gmail.com>
12795
12796 * tracepoint.c (tp_printf): New function.
12797 (eval_agent_expr): Handle gdb_agent_op_printf.
12798
12799 2011-02-18 Tom Tromey <tromey@redhat.com>
12800
12801 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
12802 (tracepoint.o): Likewise.
12803 * tracepoint.c (enum gdb_agent_op): Use ax.def.
12804 (gdb_agent_op_names): Likewise.
12805
12806 2011-02-18 Tom Tromey <tromey@redhat.com>
12807
12808 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
12809 gdb_agent_op_rot>: New constants.
12810 (gdb_agent_op_names): Add pick and roll.
12811 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
12812 cases.
12813
12814 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
12815
12816 * aclocal.m4: Regenerated with aclocal-1.11.1.
12817
12818 2011-02-14 Pedro Alves <pedro@codesourcery.com>
12819
12820 * server.c (handle_qxfer_traceframe_info): New.
12821 (qxfer_packets): Register "traceframe-info".
12822 (handle_query): Report support for qXfer:traceframe-info:read+.
12823 * tracepoint.c (match_blocktype): New.
12824 (traceframe_find_block_type): Rename to ...
12825 (traceframe_walk_blocks): ... this. Add callback filter argument,
12826 and use it.
12827 (traceframe_find_block_type): New, reimplemented on top of
12828 traceframe_walk_blocks.
12829 (build_traceframe_info_xml): New.
12830 (traceframe_read_info): New.
12831 * server.h (traceframe_read_info): Declare.
12832
12833 2011-02-11 Yao Qi <yao@codesourcery.com>
12834
12835 * configure.ac: Call AC_PROG_RANLIB.
12836 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12837 * configure: Regenerate.
12838
12839 2011-02-07 Pedro Alves <pedro@codesourcery.com>
12840
12841 * server.c (gdb_read_memory): Change return semantics to allow
12842 partial transfers.
12843 (handle_search_memory_1): Adjust.
12844 (process_serial_event) <'m' packet>: Handle partial transfers.
12845 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
12846
12847 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12848
12849 * regcache.c (init_register_cache): Initialize
12850 regcache->register_status.
12851 (free_register_cache): Release regcache->register_status.
12852 (regcache_cpy): Copy register_status.
12853 (registers_to_string): Print 'x's for unavailable registers.
12854 (supply_register): Mark the register's status valid or
12855 unavailable, depending on whether a buffer was passed in or not.
12856 (supply_register_zeroed): New.
12857 (supply_regblock): Mark the registers' status valid or
12858 unavailable, depending on whether a buffer was passed in or not.
12859 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
12860 (struct regcache): New `register_status' field.
12861 (supply_register_zeroed): Declare.
12862 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
12863 supply_register_zeroed, rather than passing a NULL buffer to
12864 supply_register.
12865 * tracepoint.c (fetch_traceframe_registers): Update comment.
12866
12867 2011-01-28 Pedro Alves <pedro@codesourcery.com>
12868
12869 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
12870 buffer explicit.
12871
12872 2011-01-25 Pedro Alves <pedro@codesourcery.com>
12873
12874 * server.h (decode_xfer_write): Change prototype.
12875 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
12876 and don't extract the annex here.
12877 * server.c (decode_xfer_read): Remove `annex' parameter,
12878 and don't extract the annex here.
12879 (decode_xfer): New.
12880 (struct qxfer): New.
12881 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
12882 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
12883 (handle_qxfer_statictrace): New functions, abstracted out from
12884 handle_query, and made to use the struct qxfer interface.
12885 (handle_threads_qxfer_proper): Rename to ...
12886 (handle_qxfer_threads_proper): ... this.
12887 (handle_threads_qxfer): Rename to ...
12888 (handle_qxfer_threads): ... this. Adjust.
12889 (qxfer_packets): New array.
12890 (handle_qxfer): New function.
12891 (handle_query): Use handle_qxfer.
12892
12893 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
12894
12895 * gdbreplay.c: Shorten lines of >= 80 columns.
12896 * linux-low.c: Ditto.
12897 * linux-ppc-low.c: Ditto.
12898 * linux-s390-low.c: Ditto.
12899 * linux-sparc-low.c: Ditto.
12900 * linux-x86-low.c: Ditto.
12901 * linux-xtensa-low.c: Ditto.
12902 * mem-break.c: Ditto.
12903 * nto-low.c: Ditto.
12904 * regcache.h: Ditto.
12905 * remote-utils.c: Ditto.
12906 * server.c: Ditto.
12907 * server.h: Ditto.
12908 * thread-db.c: Ditto.
12909 * tracepoint.c: Ditto.
12910 * utils.c: Ditto.
12911 * win32-low.h: Ditto.
12912
12913 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12914
12915 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
12916 update.
12917
12918 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12919
12920 * server.c (gdbserver_version): Update copyright year in version
12921 output.
12922 * gdbreplay.c (gdbreplay_version): Ditto.
12923
12924 2010-12-29 Jie Zhang <jie.zhang@analog.com>
12925
12926 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
12927 * linux-bfin-low.c: New file.
12928 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
12929 PT_DATA_ADDR for BFIN targets.
12930 * Makefile.in (SFILES): Add linux-bfin-low.c.
12931 (clean): Remove reg-bfin.c.
12932 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
12933 * README: Mention supported Blackfin targets.
12934
12935 2010-12-23 Mike Frysinger <vapier@gentoo.org>
12936
12937 * .gitignore: New file.
12938
12939 2010-11-16 Mike Frysinger <vapier@gentoo.org>
12940
12941 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
12942
12943 2010-10-22 Jie Zhang <jie@codesourcery.com>
12944
12945 * Makefile.in: Add FLAGS_TO_PASS variable.
12946 (install): Remove dependency of install-only and recursively
12947 invoke make for install-only.
12948
12949 2010-10-04 Doug Evans <dje@google.com>
12950
12951 * Makefile.in (uninstall): Use $(DESTDIR).
12952
12953 2010-09-24 Pedro Alves <pedro@codesourcery.com>
12954
12955 PR gdb/11842
12956
12957 * linux-x86-low.c (compat_siginfo_from_siginfo)
12958 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
12959 si_code is < 0. Check for si_code == SI_TIMER before checking for
12960 si_code < 0.
12961
12962 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12963
12964 * lynx-i386-low.c: New file.
12965 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
12966
12967 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12968
12969 * lynx-low.c (ptrace_request_to_str): Remove handling for
12970 request values that have been removed in LynxOS 5.x.
12971
12972 2010-09-13 Joel Brobecker <brobecker@adacore.com>
12973
12974 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
12975 <ptrace.h>
12976
12977 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
12978
12979 * configure.ac: Add --enable-inprocess-agent option.
12980 * configure: Rebuilt.
12981
12982 2010-09-06 Yao Qi <yao@codesourcery.com>
12983
12984 * linux-low.c (linux_kill): Remove unused variable.
12985 (linux_stabilize_threads): Likewise.
12986 * server.c (start_inferior): Likewise.
12987 (queue_stop_reply_callback): Likewise.
12988 * tracepoint.c (do_action_at_tracepoint): Likewise.
12989
12990 2010-09-06 Yao Qi <yao@codesourcery.com>
12991
12992 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
12993 on return.
12994
12995 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12996
12997 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
12998
12999 2010-09-06 Pedro Alves <pedro@codesourcery.com>
13000
13001 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13002 "$(IPA_DEPFILES)".
13003
13004 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13005
13006 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13007 gdbserver/lynx-ppc-low.c: New files.
13008 * Makefile.in (lynx_low_h): New variable.
13009 (lynx-low.o, lynx-ppc-low.o): New rules.
13010 * configure.ac: On LynxOS, link with -lnetinet.
13011 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13012 * configure: regenerate.
13013
13014 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13015
13016 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13017 * configure.ac: Add check for vasprintf and vsnprintf.
13018 * configure, config.in: Regenerate.
13019 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13020
13021 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13022
13023 * gdbreplay.c: Move include of alloca.h up, next to include of
13024 malloc.h.
13025 * server.h: Add include of malloc.h.
13026 * mem-break.c: Remove include of malloc.h.
13027 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13028
13029 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13030
13031 * Makefile.in (memmem.o): Build with -Wno-error.
13032
13033 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13034
13035 * utils.c (xsnprintf): Make non-static.
13036 * server.h: Add xsnprintf declaration.
13037 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13038 replace calls to snprintf by calls to xsnprintf throughout.
13039
13040 2010-09-01 Joel Brobecker <brobecker@adacore.com>
13041
13042 * configure.ac: Add configure check for alloca.
13043 * configure, config.in: Regenerate.
13044 * server.h: Include alloca.h if it exists.
13045 * gdbreplay.c: Include alloca.h if it exists.
13046
13047 2010-08-28 Pedro Alves <pedro@codesourcery.com>
13048
13049 * linux-low.c (__SIGRTMIN): Define if not already defined.
13050 (linux_create_inferior): Check for __ANDROID__ rather than
13051 __SIGRTMIN.
13052 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13053 are already deferred.
13054 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13055 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13056 stopped and already has a pending signal to report.
13057 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13058 a pending signal to report or is moving out of a jump pad.
13059 (linux_init_signals): Check for __ANDROID__ rather than
13060 __SIGRTMIN.
13061
13062 2010-08-28 Pedro Alves <pedro@codesourcery.com>
13063
13064 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13065 debug_threads check. Avoid a linear search when not doing debug
13066 output.
13067
13068 2010-08-27 Pedro Alves <pedro@codesourcery.com>
13069
13070 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13071 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13072 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13073 (process_event): Change local fd's type to gdb_fildes_t.
13074 (create_file_handler): Adjust prototype.
13075 (delete_file_handler): Adjust prototype.
13076 (handle_file_event): Adjust prototype. Use pfildes.
13077 (create_file_event): Adjsut prototype.
13078 * remote-utils.c (remote_desc, listen_desc): Change type to
13079 gdb_fildes_t.
13080 * server.h: New gdb_fildes_t typedef.
13081 [USE_WIN32API]: Include winsock2.h.
13082 (delete_file_handler, add_file_handler): Adjust prototypes.
13083 (pfildes): Declare.
13084 * utils.c (pfildes): New.
13085
13086 2010-08-27 Pedro Alves <pedro@codesourcery.com>
13087
13088 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13089 * configure: Regenerate.
13090
13091 2010-08-27 Pedro Alves <pedro@codesourcery.com>
13092
13093 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13094 (linux_done_accessing_memory): ... this.
13095 (linux_target_ops): Adjust.
13096 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13097 * nto-low.c (nto_target_ops): Adjust comment.
13098 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13099 * spu-low.c (spu_target_ops): Adjust comment.
13100 * target.h (target_ops): Rename unprepare_to_access_memory field
13101 to done_accessing_memory.
13102 (unprepare_to_access_memory): Rename to ...
13103 (done_accessing_memory): ... this.
13104
13105 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13106
13107 * linux-low.c (linux_prepare_to_access_memory): New.
13108 (linux_unprepare_to_access_memory): New.
13109 (linux_target_ops): Install them.
13110 * server.c (read_memory): Rename to ...
13111 (gdb_read_memory): ... this. Use
13112 prepare_to_access_memory/prepare_to_access_memory.
13113 (write_memory): Rename to ...
13114 (gdb_write_memory): ... this. Use
13115 prepare_to_access_memory/prepare_to_access_memory.
13116 (handle_search_memory_1): Adjust.
13117 (process_serial_event): Adjust.
13118 * target.h (struct target_ops): New fields
13119 prepare_to_access_memory and unprepare_to_access_memory.
13120 (prepare_to_access_memory, unprepare_to_access_memory): New.
13121 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13122 prepare_to_access_memory/prepare_to_access_memory.
13123 * nto-low.c (nto_target_ops): Adjust.
13124 * spu-low.c (spu_target_ops): Adjust.
13125 * win32-low.c (win32_target_ops): Adjust.
13126
13127 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13128
13129 * Makefile.in (WARN_CFLAGS): Get it from configure.
13130 (WERROR_CFLAGS): New.
13131 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13132 * configure.ac: Introduce --enable-werror, which adds -Werror to
13133 the compiler command line. Enabled by default. Disable with
13134 --disable-werror. Add -Wdeclaration-after-statement
13135 Wpointer-arith and -Wformat-nonliteral to warning flags.
13136 * configure: Regenerate.
13137
13138 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13139
13140 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13141
13142 2010-08-26 Pedro Alves <pedro@codesourcery.com>
13143
13144 * gdbreplay.c (remote_error): New.
13145 (gdbchar): New.
13146 (expect): Use gdbchar. Check for error reading from GDB.
13147 Clarify sync error output.
13148 (play): Check for errors writing to GDB.
13149 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13150 * remote-utils.c (getpkt): Check for errors writing to the remote
13151 descriptor.
13152
13153 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13154
13155 * linux-low.c (linux_wait_1): Move non-debugging code out of
13156 `debug_threads' control.
13157
13158 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13159
13160 * linux-low.c (linux_wait_1): Don't set last_status here.
13161 * server.c (push_event, queue_stop_reply_callback): Assert we're
13162 not pushing a TARGET_WAITKIND_IGNORE event.
13163 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13164 (myresume, handle_target_event): Set the thread's last_resume_kind
13165 and last_status from the target returned status.
13166
13167 2010-08-25 Pedro Alves <pedro@codesourcery.com>
13168
13169 PR threads/10729
13170
13171 * linux-x86-low.c (update_debug_registers_callback): New.
13172 (i386_dr_low_set_addr): Use it.
13173 (i386_dr_low_get_addr): New.
13174 (i386_dr_low_set_control): Use update_debug_registers_callback.
13175 (i386_dr_low_get_control): New.
13176 (i386_dr_low_get_status): Adjust.
13177 * linux-low.c (linux_stop_lwp): New.
13178 * linux-low.h (linux_stop_lwp): Declare.
13179
13180 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13181 argument instead of a i386_debug_reg_state.
13182 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13183 a i386_debug_reg_state.
13184 (i386_insert_aligned_watchpoint): Adjust.
13185 (i386_remove_aligned_watchpoint): Adjust.
13186 (i386_low_stopped_data_address): Read the debug registers from the
13187 inferior instead of from the mirrors.
13188 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13189 (i386_dr_low_get_addr): Declare.
13190 (i386_dr_low_get_control): Declare.
13191 (i386_dr_low_get_status): Change prototype.
13192
13193 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13194 (i386_dr_low_get_addr): New.
13195 (i386_dr_low_get_control): New.
13196 (i386_dr_low_get_status): Adjust prototype. Return
13197 dr_status_mirror.
13198 (i386_initial_stuff): Clear dr_status_mirror and
13199 dr_control_mirror.
13200 (i386_get_thread_context): Adjust.
13201 (i386_set_thread_context): Adjust.
13202 (i386_thread_added): Adjust.
13203
13204 2010-08-24 Pedro Alves <pedro@codesourcery.com>
13205
13206 * linux-low.h (linux_thread_area): Delete declaration.
13207
13208 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13209
13210 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13211 after its termination.
13212
13213 2010-08-09 Pedro Alves <pedro@codesourcery.com>
13214
13215 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13216 (gdb_wants_all_stopped): Delete.
13217 (linux_wait_1): Don't call them.
13218 * server.c (handle_v_cont): Tag all threads as want-stopped.
13219 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13220 stopped as "client-wants-stopped".
13221
13222 2010-07-31 Pedro Alves <pedro@codesourcery.com>
13223
13224 * Makefile.in (signals_h): New.
13225 (server_h): Depend on it.
13226 (server.o): Don't depend on $(signals_def).
13227 (signals.o): Depend on $(signals_def).
13228
13229 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13230
13231 * Makefile.in (signals_def): New.
13232 (server_h): Append include/gdb/signals.h and signals_def.
13233 (server.o): Append signals_def.
13234
13235 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13236
13237 * server.c (handle_target_event): Use target_signal_to_host for
13238 resume_info.sig initialization.
13239 * target.h (struct thread_resume) <sig>: New comment.
13240
13241 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13242
13243 * server.c (handle_query): strcpy() the returned string from paddress()
13244 instead of sprintf().
13245 * utils.c (paddress): Return phex_nz().
13246
13247 2010-07-07 Joel Brobecker <brobecker@adacore.com>
13248
13249 * server.c (handle_v_cont): Call mourn_inferior if process
13250 just exited.
13251 (myresume): Likewise.
13252
13253 2010-07-01 Pedro Alves <pedro@codesourcery.com>
13254
13255 Static tracepoints, and integration with UST.
13256
13257 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13258 * mem-break.c (uninsert_all_breakpoints)
13259 (reinsert_all_breakpoints): New.
13260 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13261 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13262 (gdb_agent_ust_loaded, helper_thread_id)
13263 (gdb_agent_helper_thread_id): New macros.
13264 (struct ipa_sym_addresses): Add addr_ust_loaded,
13265 addr_helper_thread_id, addr_cmd_buf.
13266 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13267 (in_process_agent_loaded_ust): New.
13268 (write_e_ust_not_loaded): New.
13269 (maybe_write_ipa_ust_not_loaded): New.
13270 (struct collect_static_trace_data_action): New.
13271 (enum tracepoint_type) <static_tracepoint>: New.
13272 (struct tracepoint) <handle>: Mention static tracepoints.
13273 (struct static_tracepoint_ctx): New.
13274 (CMD_BUF_SIZE): New.
13275 (add_tracepoint_action): Handle static tracepoint actions.
13276 (unprobe_marker_at): New.
13277 (clear_installed_tracepoints): Handle static tracepoints.
13278 (cmd_qtdp): Handle static tracepoints.
13279 (probe_marker_at): New.
13280 (cmd_qtstart): Handle static tracepoints.
13281 (response_tracepoint): Handle static tracepoints.
13282 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13283 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13284 (get_context_regcache): Handle static tracepoints.
13285 (do_action_at_tracepoint): Handle static tracepoint actions.
13286 (traceframe_find_block_type): Handle static trace data blocks.
13287 (traceframe_read_sdata): New.
13288 (download_tracepoints): Download static tracepoint actions.
13289 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13290 (GDB_PROBE_NAME): New.
13291 (ust_ops): New.
13292 (GET_UST_SYM): New.
13293 (USTF): New.
13294 (dlsym_ust): New.
13295 (ust_marker_to_static_tracepoint): New.
13296 (gdb_probe): New.
13297 (collect_ust_data_at_tracepoint): New.
13298 (gdb_ust_probe): New.
13299 (UNIX_PATH_MAX, SOCK_DIR): New.
13300 (gdb_ust_connect_sync_socket): New.
13301 (resume_thread, stop_thread): New.
13302 (run_inferior_command): New.
13303 (init_named_socket): New.
13304 (gdb_ust_socket_init): New.
13305 (cstr_to_hexstr): New.
13306 (next_st): New.
13307 (first_marker, next_marker): New.
13308 (response_ust_marker): New.
13309 (cmd_qtfstm, cmd_qtsstm): New.
13310 (unprobe_marker_at, probe_marker_at): New.
13311 (cmd_qtstmat, gdb_ust_thread): New.
13312 (gdb_ust_init): New.
13313 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13314 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13315 (ST_REGENTRY): New.
13316 (x86_64_st_collect_regmap): New.
13317 (X86_64_NUM_ST_COLLECT_GREGS): New.
13318 (AMD64_RIP_REGNUM): New.
13319 (supply_static_tracepoint_registers): New.
13320 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13321 (ST_REGENTRY): New.
13322 (i386_st_collect_regmap): New.
13323 (i386_NUM_ST_COLLECT_GREGS): New.
13324 (supply_static_tracepoint_registers): New.
13325 * server.c (handle_query): Handle qXfer:statictrace:read.
13326 <qSupported>: Report support for StaticTracepoints, and
13327 qXfer:statictrace:read features.
13328 * server.h (traceframe_read_sdata)
13329 (supply_static_tracepoint_registers): Declare.
13330 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13331 (unpack_varlen_hex): Include in IPA build.
13332 * Makefile.in (ustlibs, ustinc): New.
13333 (IPA_OBJS): Add remote-utils-ipa.o.
13334 ($(IPA_LIB)): Link -ldl and -lpthread.
13335 (UST_CFLAGS): New.
13336 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13337 * config.in, configure: Regenerate.
13338
13339 2010-06-20 Ian Lance Taylor <iant@google.com>
13340 Pedro Alves <pedro@codesourcery.com>
13341
13342 * linux-x86-low.c (always_true): Delete.
13343 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13344 trying to fool the compiler with always_true.
13345
13346 2010-06-20 Pedro Alves <pedro@codesourcery.com>
13347
13348 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13349 conditions in gdbserver.
13350
13351 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13352
13353 * spu-low.c (spu_read_memory): Wrap around local store limit.
13354 (spu_write_memory): Likewise.
13355
13356 2010-06-15 Pedro Alves <pedro@codesourcery.com>
13357
13358 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13359 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13360 LONGEST uses.
13361 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13362 uses.
13363 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13364 uses with LONGEST uses.
13365
13366 2010-06-14 Stan Shebs <stan@codesourcery.com>
13367 Pedro Alves <pedro@codesourcery.com>
13368
13369 Bytecode compiler.
13370
13371 * linux-x86-low.c: Include limits.h.
13372 (add_insns): New.
13373 (always_true): New.
13374 (EMIT_ASM): New.
13375 (EMIT_ASM32): New.
13376 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13377 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13378 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13379 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13380 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13381 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13382 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13383 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13384 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13385 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13386 (amd64_emit_void_call_2): New.
13387 (amd64_emit_ops): New.
13388 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13389 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13390 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13391 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13392 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13393 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13394 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13395 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13396 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13397 (i386_emit_stack_adjust, i386_emit_int_call_1)
13398 (i386_emit_void_call_2): New.
13399 (i386_emit_ops): New.
13400 (x86_emit_ops): New.
13401 (the_low_target): Install x86_emit_ops.
13402 * server.h (struct emit_ops): New.
13403 (get_raw_reg_func_addr): Declare.
13404 (current_insn_ptr, emit_error): Declare.
13405 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13406 (set_trace_state_variable_value): New defines.
13407 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13408 addr_get_trace_state_variable_value and
13409 addr_set_trace_state_variable_value.
13410 (symbol_list): New fields for get_raw_reg,
13411 get_trace_state_variable_value and set_trace_state_variable_value.
13412 (condfn): New typedef.
13413 (struct tracepoint): New field `compiled_cond'.
13414 (do_action_at_tracepoint): Clear compiled_cond.
13415 (get_trace_state_variable_value, set_trace_state_variable_value):
13416 Export in the IPA.
13417 (condition_true_at_tracepoint): If there's a compiled condition,
13418 run that.
13419 (current_insn_ptr, emit_error): New globals.
13420 (struct bytecode_address): New.
13421 (get_raw_reg_func_addr): New.
13422 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13423 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13424 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13425 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13426 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13427 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13428 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13429 (compile_tracepoint_condition, compile_bytecodes): New.
13430 * target.h (emit_ops): Forward declare.
13431 (struct target_ops): New field emit_ops.
13432 (target_emit_ops): New.
13433 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13434 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13435 * linux-low.c (linux_emit_ops): New.
13436 (linux_target_ops): Install it.
13437 * linux-low.h (struct linux_target_ops): New field emit_ops.
13438
13439 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13440
13441 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13442 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13443
13444 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13445 Stan Shebs <stan@codesourcery.com>
13446
13447 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13448 (all): Depend on $(extra_libraries).
13449 (install-only): Install the IPA.
13450 (IPA_OBJS, IPA_LIB): New.
13451 (clean): Remove the IPA lib.
13452 (IPAGENT_CFLAGS): New.
13453 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13454 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13455 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13456 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13457 * configure.ac: Check for atomic builtins support in the compiler.
13458 (IPA_DEPFILES, extra_libraries): Define.
13459 * configure.srv (ipa_obj): Add description.
13460 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13461 (i[34567]86-*-linux*): Set ipa_obj.
13462 (x86_64-*-linux*): Set ipa_obj.
13463 * linux-low.c (stabilizing_threads): New.
13464 (supports_fast_tracepoints): New.
13465 (linux_detach): Stabilize threads before detaching.
13466 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13467 the lwp is either not stabilizing, or is moving out of a jump pad.
13468 (linux_fast_tracepoint_collecting): New.
13469 (maybe_move_out_of_jump_pad): New.
13470 (enqueue_one_deferred_signal): New.
13471 (dequeue_one_deferred_signal): New.
13472 (linux_wait_for_event_1): If moving out of a jump pad, defer
13473 pending signals to later.
13474 (linux_stabilize_threads): New.
13475 (linux_wait_1): Check if threads need moving out of jump pads, and
13476 do it if so.
13477 (stuck_in_jump_pad_callback): New.
13478 (move_out_of_jump_pad_callback): New.
13479 (lwp_running): New.
13480 (linux_resume_one_lwp): Handle moving out of jump pads.
13481 (linux_set_resume_request): Dequeue deferred signals.
13482 (need_step_over_p): Also step over fast tracepoint jumps.
13483 (start_step_over): Also uninsert fast tracepoint jumps.
13484 (finish_step_over): Also reinsert fast tracepoint jumps.
13485 (linux_install_fast_tracepoint_jump): New.
13486 (linux_target_ops): Install linux_stabilize_threads and
13487 linux_install_fast_tracepoint_jump_pad.
13488 * linux-low.h (linux_target_ops) <get_thread_area,
13489 install_fast_tracepoint_jump_pad>: New fields.
13490 (struct lwp_info) <collecting_fast_tracepoint,
13491 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13492 (linux_get_thread_area): Declare.
13493 * linux-x86-low.c (jump_insn): New.
13494 (x86_get_thread_area): New.
13495 (append_insns): New.
13496 (push_opcode): New.
13497 (amd64_install_fast_tracepoint_jump_pad): New.
13498 (i386_install_fast_tracepoint_jump_pad): New.
13499 (x86_install_fast_tracepoint_jump_pad): New.
13500 (the_low_target): Install x86_get_thread_area and
13501 x86_install_fast_tracepoint_jump_pad.
13502 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
13503 (struct fast_tracepoint_jump): New.
13504 (fast_tracepoint_jump_insn): New.
13505 (fast_tracepoint_jump_shadow): New.
13506 (find_fast_tracepoint_jump_at): New.
13507 (fast_tracepoint_jump_here): New.
13508 (delete_fast_tracepoint_jump): New.
13509 (set_fast_tracepoint_jump): New.
13510 (uninsert_fast_tracepoint_jumps_at): New.
13511 (reinsert_fast_tracepoint_jumps_at): New.
13512 (set_breakpoint_at): Use write_inferior_memory.
13513 (uninsert_raw_breakpoint): Use write_inferior_memory.
13514 (check_mem_read): Mask out fast tracepoint jumps.
13515 (check_mem_write): Mask out fast tracepoint jumps.
13516 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
13517 (set_fast_tracepoint_jump): Declare.
13518 (delete_fast_tracepoint_jump)
13519 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
13520 (reinsert_fast_tracepoint_jumps_at): Declare.
13521 * regcache.c: Don't compile many functions when building the
13522 in-process agent library.
13523 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
13524 the register buffer in the heap.
13525 (free_register_cache): If the register buffer isn't owned by the
13526 regcache, don't free it.
13527 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
13528 pre-existing register caches.
13529 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
13530 type.
13531 (convert_ascii_to_int): : Constify `from' parameter type.
13532 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
13533 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
13534 the needed buffer in-place.
13535 (relocate_instruction): New.
13536 * server.c (handle_query) <qSymbols>: If the target supports
13537 tracepoints, give it a chance of looking up symbols. Report
13538 support for fast tracepoints.
13539 (handle_status): Stabilize threads.
13540 (process_serial_event): Adjust.
13541 * server.h (struct fast_tracepoint_jump): Forward declare.
13542 (struct process_info) <fast_tracepoint_jumps>: New field.
13543 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
13544 (decode_X_packet, decode_M_packet): Adjust.
13545 (relocate_instruction): Declare.
13546 (in_process_agent_loaded): Declare.
13547 (tracepoint_look_up_symbols): Declare.
13548 (struct fast_tpoint_collect_status): Declare.
13549 (fast_tracepoint_collecting): Declare.
13550 (force_unlock_trace_buffer): Declare.
13551 (handle_tracepoint_bkpts): Declare.
13552 (initialize_low_tracepoint)
13553 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
13554 * target.h (struct target_ops) <stabilize_threads,
13555 install_fast_tracepoint_jump_pad>: New fields.
13556 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
13557 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
13558 [HAVE_STDINT_H]: Include stdint.h.
13559 (trace_debug_1): Rename to ...
13560 (trace_vdebug): ... this.
13561 (trace_debug): Rename to ...
13562 (trace_debug_1): ... this. Add `level' parameter.
13563 (trace_debug): New.
13564 (ATTR_USED, ATTR_NOINLINE): New.
13565 (IP_AGENT_EXPORT): New.
13566 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
13567 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
13568 (about_to_request_buffer_space, trace_buffer_is_full)
13569 (stopping_tracepoint, expr_eval_result, error_tracepoint)
13570 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
13571 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
13572 (traceframe_write_count, traceframes_created)
13573 (trace_state_variables)
13574 New renaming defines.
13575 (struct ipa_sym_addresses): New.
13576 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
13577 (symbol_list): New.
13578 (ipa_sym_addrs): New.
13579 (all_tracepoint_symbols_looked_up): New.
13580 (in_process_agent_loaded): New.
13581 (write_e_ipa_not_loaded): New.
13582 (maybe_write_ipa_not_loaded): New.
13583 (tracepoint_look_up_symbols): New.
13584 (debug_threads) [IN_PROCESS_AGENT]: New.
13585 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
13586 (UNKNOWN_SIDE_EFFECTS): New.
13587 (stop_tracing): New.
13588 (flush_trace_buffer): New.
13589 (stop_tracing_bkpt): New.
13590 (flush_trace_buffer_bkpt): New.
13591 (read_inferior_integer): New.
13592 (read_inferior_uinteger): New.
13593 (read_inferior_data_pointer): New.
13594 (write_inferior_data_pointer): New.
13595 (write_inferior_integer): New.
13596 (write_inferior_uinteger): New.
13597 (struct collect_static_trace_data_action): Delete.
13598 (enum tracepoint_type): New.
13599 (struct tracepoint) <type>: New field `type'.
13600 <actions_str, step_actions, step_actions_str>: Only include in
13601 GDBserver.
13602 <orig_size, obj_addr_on_target, adjusted_insn_addr>
13603 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
13604 (tracepoints): Use IP_AGENT_EXPORT.
13605 (last_tracepoint): Don't include in the IPA.
13606 (stopping_tracepoint): Use IP_AGENT_EXPORT.
13607 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
13608 (alloced_trace_state_variables): New.
13609 (trace_state_variables): Use IP_AGENT_EXPORT.
13610 (traceframe_t): Delete unused variable.
13611 (circular_trace_buffer): Don't include in the IPA.
13612 (trace_buffer_start): Delete.
13613 (struct trace_buffer_control): New.
13614 (trace_buffer_free): Delete.
13615 (struct ipa_trace_buffer_control): New.
13616 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
13617 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
13618 New.
13619 (trace_buffer_ctrl): New.
13620 (TRACE_BUFFER_CTRL_CURR): New.
13621 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
13622 Reimplement as macros.
13623 (trace_buffer_wrap): Delete.
13624 (traceframe_write_count, traceframe_read_count)
13625 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
13626 (struct tracepoint_hit_ctx) <type>: New field.
13627 (struct fast_tracepoint_ctx): New.
13628 (memory_barrier): New.
13629 (cmpxchg): New.
13630 (record_tracepoint_error): Update atomically in the IPA.
13631 (clear_inferior_trace_buffer): New.
13632 (about_to_request_buffer_space): New.
13633 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
13634 updating the same buffer.
13635 (add_tracepoint): Default the tracepoint's type to trap
13636 tracepoint, and orig_size to -1.
13637 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
13638 internal variables.
13639 (create_trace_state_variable): New parameter `gdb'. Handle it.
13640 (clear_installed_tracepoints): Clear fast tracepoint jumps.
13641 (cmd_qtdp): Handle fast tracepoints.
13642 (cmd_qtdv): Adjust.
13643 (max_jump_pad_size): New.
13644 (gdb_jump_pad_head): New.
13645 (get_jump_space_head): New.
13646 (claim_jump_space): New.
13647 (sort_tracepoints): New.
13648 (MAX_JUMP_SIZE): New.
13649 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
13650 IPA.
13651 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
13652 support. Upload fast traceframes, and delete internal IPA
13653 breakpoints.
13654 (stop_tracing_handler): New.
13655 (flush_trace_buffer_handler): New.
13656 (cmd_qtstop): Upload fast tracepoints.
13657 (response_tracepoint): Handle fast tracepoints.
13658 (tracepoint_finished_step): Upload fast traceframes. Set the
13659 tracepoint hit context's tracepoint type.
13660 (handle_tracepoint_bkpts): New.
13661 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
13662 type. Add comment about fast tracepoints.
13663 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
13664 non-existing action_str field.
13665 (get_context_regcache): Handle fast tracepoints.
13666 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
13667 to the regcache.
13668 (fast_tracepoint_from_jump_pad_address): New.
13669 (fast_tracepoint_from_ipa_tpoint_address): New.
13670 (collecting_t): New.
13671 (force_unlock_trace_buffer): New.
13672 (fast_tracepoint_collecting): New.
13673 (collecting): New.
13674 (gdb_collect): New.
13675 (write_inferior_data_ptr): New.
13676 (target_tp_heap): New.
13677 (target_malloc): New.
13678 (download_agent_expr): New.
13679 (UALIGN): New.
13680 (download_tracepoints): New.
13681 (download_trace_state_variables): New.
13682 (upload_fast_traceframes): New.
13683 (IPA_FIRST_TRACEFRAME): New.
13684 (IPA_NEXT_TRACEFRAME_1): New.
13685 (IPA_NEXT_TRACEFRAME): New.
13686 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
13687 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
13688 (gdb_jump_pad_buffer_end): New.
13689 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
13690 (initialize_tracepoint): Adjust.
13691 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
13692 buffer. Initialize the low module.
13693 * utils.c (PREFIX, TOOLNAME): New.
13694 (malloc_failure): Use PREFIX.
13695 (error): In the IPA, an error causes an exit.
13696 (fatal, warning): Use PREFIX.
13697 (internal_error): Use TOOLNAME.
13698 (NUMCELLS): Increase to 10.
13699 * configure, config.in: Regenerate.
13700
13701 2010-06-01 Pedro Alves <pedro@codesourcery.com>
13702
13703 * server.c (handle_query) <qSupported>: Do two passes over the
13704 qSupported string to avoid nesting strtok.
13705
13706 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13707
13708 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
13709 (CDEPS): New.
13710 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
13711 -Wl,--dynamic-list.
13712 * configure: Regenerate.
13713 * proc-service.list: New.
13714
13715 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13716
13717 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
13718 New comment.
13719
13720 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
13721
13722 * gdbreplay.c (remote_open): Check error return from socket() call by
13723 its equality to -1 not by it being negative.
13724 * remote-utils.c (remote_open): Likewise.
13725
13726 2010-05-23 Pedro Alves <pedro@codesourcery.com>
13727
13728 * config.h: Regenerate.
13729
13730 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13731
13732 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
13733 doesn't provide PTRACE_GET_THREAD_AREA.
13734
13735 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13736
13737 * linux-m68k-low.c: Include <asm/ptrace.h>
13738 (ps_get_thread_area): Implement.
13739
13740 2010-05-03 Doug Evans <dje@google.com>
13741
13742 * event-loop.c (struct callback_event): New struct.
13743 (callback_list): New global.
13744 (append_callback_event, delete_callback_event): New functions.
13745 (process_callback): New function.
13746 (start_event_loop): Call it.
13747 * remote-utils.c (NOT_SCHEDULED): Define.
13748 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
13749 moved out of readchar.
13750 (readchar): Rewrite. Call reschedule before returning.
13751 (reset_readchar): New function.
13752 (remote_close): Call it.
13753 (process_remaining, reschedule): New functions.
13754 * server.h (callback_handler_func): New typedef.
13755 (append_callback_event, delete_callback_event): Declare.
13756
13757 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13758
13759 * proc-service.c (ps_pglobal_lookup): Use
13760 thread_db_look_up_one_symbol.
13761 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
13762 parameter. Use it instead of all_symbols_looked_up.
13763 * server.h (struct process_info) <all_symbols_looked_up>: Delete
13764 field.
13765 (all_symbols_looked_up): Don't declare.
13766 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
13767 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
13768 field.
13769 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
13770 Set all_symbols_looked_up here.
13771 (thread_db_look_up_one_symbol): New.
13772 (thread_db_get_tls_address): Adjust.
13773 (thread_db_load_search, try_thread_db_load_1): Always allocate the
13774 thread_db object on the heap, and tentatively set it in the
13775 process structure.
13776 (thread_db_init): Don't set all_symbols_looked_up here.
13777 * linux-low.h (thread_db_look_up_one_symbol): Declare.
13778
13779 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13780
13781 * linux-low.c (linux_kill, linux_detach): Adjust.
13782 (status_pending_p_callback): Remove redundant statement. Check
13783 for !TARGET_WAITIKIND_IGNORE, instead of
13784 TARGET_WAITKIND_STOPPED.
13785 (handle_tracepoints): Make sure LWP is locked. Adjust.
13786 (linux_wait_for_event_1): Adjust.
13787 (linux_cancel_breakpoints): New.
13788 (unsuspend_one_lwp): New.
13789 (unsuspend_all_lwps): New.
13790 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
13791 (send_sigstop_callback): Change return type to int, add new
13792 `except' parameter and handle it.
13793 (suspend_and_send_sigstop_callback): New.
13794 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
13795 pass them down. If SUSPEND, also increment the lwp's suspend
13796 count.
13797 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
13798 (need_step_over_p): Don't consider suspended LWPs.
13799 (start_step_over): Adjust.
13800 (proceed_one_lwp): Change return type to int, add new `except'
13801 parameter and handle it.
13802 (unsuspend_and_proceed_one_lwp): New.
13803 (proceed_all_lwps): Use find_inferior instead of
13804 for_each_inferior.
13805 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
13806 also decrement the suspend count of LWPs. Pass `except' down,
13807 instead of hacking its suspend count.
13808 (linux_pause_all): Add `freeze' parameter. Adjust.
13809 (linux_unpause_all): New.
13810 (linux_target_ops): Install linux_unpause_all.
13811 * server.c (handle_status): Adjust.
13812 * target.h (struct target_ops): New fields `unpause_all' and
13813 `cancel_breakpoints'. Add new parameter to `pause_all'.
13814 (pause_all): Add new `freeze' parameter.
13815 (unpause_all): New.
13816 (cancel_breakpoints): New.
13817 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
13818 cancel breakpoints.
13819 (cmd_qtstart): Pause threads.
13820 (stop_tracing): Pause threads, and cancel breakpoints.
13821 * win32-low.c (win32_target_ops): Adjust.
13822
13823 2010-05-03 Pedro Alves <pedro@codesourcery.com>
13824
13825 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
13826 the inferior right away from here...
13827 (linux_wait_1): ... to here, and adjust to check the thread's
13828 last_resume_kind instead of the lwp's step or stop_expected flags.
13829
13830 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13831
13832 * README: Use consistent `GDB' and `GDBserver' spellings.
13833
13834 2010-05-02 Pedro Alves <pedro@codesourcery.com>
13835
13836 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
13837 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
13838 (linux_detach_one_lwp): Assume the lwp is stopped.
13839 (any_thread_of): Delete.
13840 (linux_detach): Stop all lwps here. Don't blindly delete all
13841 breakpoints.
13842 (delete_lwp_callback): New.
13843 (linux_mourn): Delete all lwps of the process that is gone.
13844 (linux_wait_1): Don't delete the last lwp of the process here.
13845 * mem-break.h (mark_breakpoints_out): Declare.
13846 * mem-break.c (mark_breakpoints_out): New.
13847 (free_all_breakpoints): Use it.
13848 * server.c (handle_target_event): If the process is gone, mark
13849 breakpoints out.
13850 * thread-db.c (struct thread_db) <create_bp>: New field.
13851 (thread_db_enable_reporting): Fix prototype. Store a thread event
13852 breakpoint reference in the thread_db struct.
13853 (thread_db_load_search): Clear the thread_db object.
13854 (try_thread_db_load_1): Ditto.
13855 (switch_to_process): New.
13856 (disable_thread_event_reporting): Use it.
13857 (remove_thread_event_breakpoints): New.
13858 (thread_db_detach, thread_db_mourn): Use it.
13859
13860 2010-05-01 Pedro Alves <pedro@codesourcery.com>
13861
13862 * linux-low.c (linux_enable_event_reporting): New.
13863 (linux_wait_for_event_1, handle_extended_wait): Use it.
13864
13865 2010-04-30 Pedro Alves <pedro@codesourcery.com>
13866
13867 * linux-low.c (linux_kill_one_lwp, linux_kill)
13868 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
13869 (send_sigstop): Take an lwp_info as parameter instead. Queue a
13870 SIGSTOP even if the LWP is stopped.
13871 (send_sigstop_callback): New.
13872 (stop_all_lwps): Use send_sigstop_callback instead.
13873 (linux_resume_one_thread): Adjust.
13874 (proceed_one_lwp): Still proceed an LWP that the client has
13875 requested to stop, if we haven't reported it as stopped yet. Make
13876 sure that LWPs the client want stopped, have a pending SIGSTOP.
13877
13878 2010-04-26 Doug Evans <dje@google.com>
13879
13880 * server.c (handle_general_set): Make static.
13881
13882 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
13883 Print received char after testing for error/eof instead of before.
13884 (input_interrupt): Tweak comment.
13885
13886 2010-04-23 Doug Evans <dje@google.com>
13887
13888 * server.c (start_inferior): Print inferior argv if --debug.
13889
13890 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
13891
13892 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
13893 * nto-x86-low.c: Include server.h
13894
13895 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
13896
13897 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
13898 be consistent with other sources of this directory.
13899 (init_registers_amd64): Correct name of source file of this function
13900 in the comment.
13901
13902 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13903
13904 * configure.srv (x86_64-*-mingw*): New configuration for Windows
13905 64-bit executables.
13906
13907 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13908
13909 * win32-i386-low.c: Add 64-bit support.
13910 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
13911 (init_registers_amd64): Declare.
13912 (mappings): Add 64-bit version of array.
13913 (init_windows_x86): New function.
13914 (the_low_target): Change init_arch field to init_windows_x86.
13915
13916 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13917
13918 * win32-low.c: Adapt to support also 64-bit architecture.
13919 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
13920 (get_image_name): Use SIZE_T type for local variable `done'.
13921 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
13922 (toolhelp_get_dll_name): Idem.
13923 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
13924 Use uintptr_t typecast to avoid warning.
13925 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
13926 (handle_exception): Use phex_nz to avoid warning.
13927 (win32_wait): Remove unused local variable `process'.
13928
13929 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
13930
13931 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
13932 `amd64-avx.o'.
13933
13934 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
13935
13936 * configure.ac: Use `ws2_32' library for srv_mingw.
13937 * configure: Regenerate.
13938 * gdbreplay.c: Include winsock2.h instead of winsock.h.
13939 * remote-utils.c: Likewise.
13940
13941 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
13942
13943 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
13944 if __x86_64__ is defined.
13945
13946 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13947
13948 * configure: Regenerate.
13949
13950 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
13951
13952 * server.c (handle_query): Handle 'qGetTIBAddr' query.
13953 * target.h (target_ops): New get_tib_address field.
13954 * win32-low.h (win32_thread_info): Add thread_local_base field.
13955 * win32-low.c (child_add_thread): Add tlb argument.
13956 Set thread_local_base field to TLB.
13957 (get_child_debug_event): Adapt to child_add_thread change.
13958 (win32_get_tib_address): New function.
13959 (win32_target_ops): Set get_tib_address field to
13960 win32_get_tib_address.
13961 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
13962
13963 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13964
13965 * linux-low.c (linux_mourn): Also remove the process.
13966 * server.c (handle_target_event): Don't remove the process here.
13967 * nto-low.c (nto_mourn): New.
13968 (nto_target_ops): Install it.
13969 * spu-low.c (spu_mourn): New.
13970 (spu_target_ops): Install it.
13971 * win32-low.c (win32_mourn): New.
13972 (win32_target_ops): Install it.
13973
13974 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13975
13976 * server.h (buffer_xml_printf): Remove redundant `;'.
13977
13978 2010-04-12 Pedro Alves <pedro@codesourcery.com>
13979
13980 * regcache.c (set_register_cache): Invalidate regcaches before
13981 changing the register cache layout.
13982 (regcache_invalidate_one): Allow a NULL regcache.
13983 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
13984 regcaches before changing the register cache layout or the target
13985 regsets.
13986
13987 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
13988
13989 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
13990 variable warning on Linux/x86-64.
13991
13992 2010-04-11 Pedro Alves <pedro@codesourcery.com>
13993
13994 GDBserver disconnected tracing support.
13995
13996 * linux-low.c (linux_remove_process): Delete.
13997 (add_lwp): Don't set last_resume_kind here.
13998 (linux_kill): Use `mourn'.
13999 (linux_detach): Use `thread_db_detach', and `mourn'.
14000 (linux_mourn): New.
14001 (linux_attach_lwp_1): Adjust comment.
14002 (linux_attach): last_resume_kind moved the thread_info; adjust.
14003 (status_pending_p_callback): Adjust.
14004 (linux_wait_for_event_1): Adjust.
14005 (count_events_callback, select_singlestep_lwp_callback)
14006 (select_event_lwp_callback, cancel_breakpoints_callback)
14007 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14008 (proceed_one_lwp): Adjust.
14009 (linux_async): Add debug output.
14010 (linux_thread_stopped): New.
14011 (linux_pause_all): New.
14012 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14013 linux_pause_all.
14014 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14015 (thread_db_free): Delete declaration.
14016 (thread_db_detach, thread_db_mourn): Declare.
14017 * thread-db.c (thread_db_init): Use thread_db_mourn.
14018 (thread_db_free): Delete, split in two.
14019 (disable_thread_event_reporting): New.
14020 (thread_db_detach): New.
14021 (thread_db_mourn): New.
14022
14023 * server.h (struct thread_info) <last_resume_kind>: New field.
14024 <attached>: Add comment.
14025 <gdb_detached>: New field.
14026 (handler_func): Change return type to int.
14027 (handle_serial_event, handle_target_event): Ditto.
14028 (gdb_connected): Declare.
14029 (tracing): Delete.
14030 (disconnected_tracing): Declare.
14031 (stop_tracing): Declare.
14032
14033 * server.c (handle_query) <qSupported>: Report support for
14034 disconnected tracing.
14035 (queue_stop_reply_callback): Account for running threads.
14036 (gdb_wants_thread_stopped): New.
14037 (gdb_wants_all_threads_stopped): New.
14038 (gdb_reattached_process): New.
14039 (handle_status): Clear the `gdb_detached' flag of all processes.
14040 In all-stop, stop all threads.
14041 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14042 (process_serial_event): If the remote connection breaks, or if an
14043 exit was forced with "monitor exit", force an event loop exit.
14044 Handle disconnected tracing on detach.
14045 (handle_serial_event): Adjust.
14046 (handle_target_event): If GDB isn't connected, forward events back
14047 to the inferior, unless the last process exited, in which case,
14048 exit gdbserver. Adjust interface.
14049
14050 * remote-utils.c (remote_open): Don't block in accept. Instead
14051 register an event loop source on the listen socket file
14052 descriptor. Refactor bits into ...
14053 (listen_desc): ... this new global.
14054 (gdb_connected): ... this new function.
14055 (enable_async_notification): ... this new function.
14056 (handle_accept_event): ... this new function.
14057 (remote_close): Clear remote_desc.
14058
14059 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14060
14061 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14062 New fields.
14063 (mourn_inferior): Define.
14064 (target_process_qsupported): Avoid the dangling else problem.
14065 (thread_stopped): Define.
14066 (pause_all): Define.
14067 (target_waitstatus_to_string): Declare.
14068 * target.c (target_waitstatus_to_string): New.
14069
14070 * tracepoint.c (tracing): Make extern.
14071 (disconnected_tracing): New.
14072 (stop_tracing): Make extern. Handle tracing stops due to GDB
14073 disconnecting.
14074 (cmd_qtdisconnected): New.
14075 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14076 (handle_tracepoint_general_set): Handle QTDisconnected.
14077
14078 * event-loop.c (event_handler_func): Change return type to int.
14079 (process_event): Bail out if the event handler wants the event
14080 loop to stop.
14081 (handle_file_event): Ditto.
14082 (start_event_loop): Bail out if the event handler wants the event
14083 loop to stop.
14084
14085 * nto-low.c (nto_target_ops): Adjust.
14086 * spu-low.c (spu_wait): Don't remove the process here.
14087 (spu_target_ops): Adjust.
14088 * win32-low.c (win32_wait): Don't remove the process here.
14089 (win32_target_ops): Adjust.
14090
14091 2010-04-11 Pedro Alves <pedro@codesourcery.com>
14092
14093 * regcache.c (realloc_register_cache): Invalidate inferior's
14094 regcache before recreating it.
14095
14096 2010-04-09 Pedro Alves <pedro@codesourcery.com>
14097
14098 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14099
14100 2010-04-09 Stan Shebs <stan@codesourcery.com>
14101 Pedro Alves <pedro@codesourcery.com>
14102
14103 * server.h (LONGEST): New.
14104 (struct thread_info) <while_stepping>: New field.
14105 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14106 Declare.
14107 (initialize_tracepoint, handle_tracepoint_general_set)
14108 (handle_tracepoint_query, tracepoint_finished_step)
14109 (tracepoint_was_hit, release_while_stepping_state_list):
14110 (current_traceframe): Declare.
14111 * server.c (handle_general_set): Handle tracepoint packets.
14112 (read_memory): New.
14113 (write_memory): New.
14114 (handle_search_memory_1): Use read_memory.
14115 (handle_query): Report support for conditional tracepoints, trace
14116 state variables, and tracepoint sources. Handle tracepoint
14117 queries.
14118 (main): Initialize the tracepoints module.
14119 (process_serial_event): Handle traceframe reads/writes.
14120
14121 * linux-low.c (handle_tracepoints): New.
14122 (linux_wait_1): Call it.
14123 (linux_resume_one_lwp): Handle while-stepping.
14124 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14125 (linux_target_ops): Install them.
14126 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14127 New field.
14128 * linux-x86-low.c (x86_supports_tracepoints): New.
14129 (the_low_target). Install it.
14130
14131 * mem-break.h (delete_breakpoint): Declare.
14132 * mem-break.c (delete_breakpoint): Make external.
14133
14134 * target.h (struct target_ops): Add `supports_tracepoints',
14135 `read_pc', and `write_pc' fields.
14136 (target_supports_tracepoints): Define.
14137 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14138 (phex_nz): New.
14139
14140 * regcache.h (struct regcache) <registers_owned>: New field.
14141 (init_register_cache, regcache_cpy): Declare.
14142 (regcache_read_pc, regcache_write_pc): Declare.
14143 (register_cache_size): Declare.
14144 (supply_regblock): Declare.
14145 * regcache.c (init_register_cache): New.
14146 (new_register_cache): Use it.
14147 (regcache_cpy): New.
14148 (register_cache_size): New.
14149 (supply_regblock): New.
14150 (regcache_read_pc, regcache_write_pc): New.
14151
14152 * tracepoint.c: New.
14153
14154 * Makefile.in (OBS): Add tracepoint.o.
14155 (tracepoint.o): New rule.
14156
14157 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14158
14159 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14160 (i386-mmx.o): New.
14161 (i386-mmx.c): Likewise.
14162 (i386-mmx-linux.o): Likewise.
14163 (i386-mmx-linux.c): Likewise.
14164
14165 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14166 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14167 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14168 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14169
14170 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14171 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14172 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14173
14174 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14175
14176 * Makefile.in (clean): Updated.
14177 (i386-avx.o): New.
14178 (i386-avx.c): Likewise.
14179 (i386-avx-linux.o): Likewise.
14180 (i386-avx-linux.c): Likewise.
14181 (amd64-avx.o): Likewise.
14182 (amd64-avx.c): Likewise.
14183 (amd64-avx-linux.o): Likewise.
14184 (amd64-avx-linux.c): Likewise.
14185
14186 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14187 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14188 (srv_amd64_regobj): Add amd64-avx.o.
14189 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14190 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14191 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14192 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14193 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14194 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14195 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14196
14197 * i387-fp.c: Include "i386-xstate.h".
14198 (i387_xsave): New.
14199 (i387_cache_to_xsave): Likewise.
14200 (i387_xsave_to_cache): Likewise.
14201 (x86_xcr0): Likewise.
14202
14203 * i387-fp.h (i387_cache_to_xsave): Likewise.
14204 (i387_xsave_to_cache): Likewise.
14205 (x86_xcr0): Likewise.
14206
14207 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14208 * linux-crisv32-low.c (target_regsets): Likewise.
14209 * linux-m68k-low.c (target_regsets): Likewise.
14210 * linux-mips-low.c (target_regsets): Likewise.
14211 * linux-ppc-low.c (target_regsets): Likewise.
14212 * linux-s390-low.c (target_regsets): Likewise.
14213 * linux-sh-low.c (target_regsets): Likewise.
14214 * linux-sparc-low.c (target_regsets): Likewise.
14215 * linux-xtensa-low.c (target_regsets): Likewise.
14216
14217 * linux-low.c: Include <sys/uio.h>.
14218 (regsets_fetch_inferior_registers): Support nt_type.
14219 (regsets_store_inferior_registers): Likewise.
14220 (linux_process_qsupported): New.
14221 (linux_target_ops): Add linux_process_qsupported.
14222
14223 * linux-low.h (regset_info): Add nt_type.
14224 (linux_target_ops): Add process_qsupported.
14225
14226 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14227 and <sys/uio.h>.
14228 (init_registers_i386_avx_linux): New.
14229 (init_registers_amd64_avx_linux): Likewise.
14230 (xmltarget_i386_linux_no_xml): Likewise.
14231 (xmltarget_amd64_linux_no_xml): Likewise.
14232 (PTRACE_GETREGSET): Likewise.
14233 (PTRACE_SETREGSET): Likewise.
14234 (x86_fill_xstateregset): Likewise.
14235 (x86_store_xstateregset): Likewise.
14236 (use_xml): Likewise.
14237 (x86_linux_update_xmltarget): Likewise.
14238 (x86_linux_process_qsupported): Likewise.
14239 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14240 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14241 init_registers_i386_linux here. Call
14242 x86_linux_update_xmltarget.
14243 (the_low_target): Add x86_linux_process_qsupported.
14244
14245 * server.c (handle_query): Call target_process_qsupported.
14246
14247 * target.h (target_ops): Add process_qsupported.
14248 (target_process_qsupported): New.
14249
14250 2010-04-03 Pedro Alves <pedro@codesourcery.com>
14251
14252 * inferiors.c (add_thread): Set last_status kind to
14253 TARGET_WAITKIND_IGNORE.
14254 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14255 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14256 (linux_wait_1): Move `thread' local definition to block that uses
14257 it. Don't NULL initialize `event_child'.
14258 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14259 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14260 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14261
14262 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14263
14264 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14265 an extended waitstatus, or by a watchpoint.
14266 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14267 thread was stepping or has been stopped by a watchpoint.
14268
14269 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14270
14271 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14272 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14273 of another, then delete the previous, and validate all
14274 breakpoints.
14275 (validate_inserted_breakpoint): New.
14276 (delete_disabled_breakpoints): New.
14277 (validate_breakpoints): New.
14278 (check_mem_read): Validate breakpoints before trusting their
14279 shadow. Delete disabled breakpoints.
14280 (check_mem_write): Validate breakpoints before trusting they
14281 should be inserted. Delete disabled breakpoints.
14282 * mem-break.h (validate_breakpoints):
14283 * server.c (handle_query): Validate breakpoints when we see a
14284 qSymbol query.
14285
14286 2010-04-01 Pedro Alves <pedro@codesourcery.com>
14287
14288 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14289 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14290 if we could tell there's a GDB breakpoint at stop_pc.
14291 (need_step_over_p): Don't do a step over if we find a GDB
14292 breakpoint at the resume PC.
14293
14294 * mem-break.c (struct raw_breakpoint): New.
14295 (enum bkpt_type): New type `gdb_breakpoint'.
14296 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14297 fields. New field `raw'.
14298 (find_raw_breakpoint_at): New.
14299 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14300 breakpoint instead.
14301 (set_breakpoint_at): Adjust.
14302 (delete_raw_breakpoint): New.
14303 (release_breakpoint): New.
14304 (delete_breakpoint): Rename to...
14305 (delete_breakpoint_1): ... this. Add proc parameter. Use
14306 release_breakpoint. Return ENOENT.
14307 (delete_breakpoint): Reimplement.
14308 (find_breakpoint_at): Delete.
14309 (find_gdb_breakpoint_at): New.
14310 (delete_breakpoint_at): Delete.
14311 (set_gdb_breakpoint_at): New.
14312 (delete_gdb_breakpoint_at): New.
14313 (gdb_breakpoint_here): New.
14314 (set_reinsert_breakpoint): Use release_breakpoint.
14315 (uninsert_breakpoint): Rename to ...
14316 (uninsert_raw_breakpoint): ... this.
14317 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14318 (reinsert_raw_breakpoint): Change parameter type to
14319 raw_breakpoint.
14320 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14321 instead.
14322 (check_breakpoints): Adjust. Use release_breakpoint.
14323 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14324 (breakpoint_inserted_here): Ditto.
14325 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14326 Don't trust the breakpoint's shadow if it is not inserted.
14327 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14328 (delete_all_breakpoints): Adjust.
14329 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14330 use delete_breakpoint_1.
14331
14332 * mem-break.h (breakpoints_supported): Delete declaration.
14333 (set_gdb_breakpoint_at): Declare.
14334 (gdb_breakpoint_here): Declare.
14335 (delete_breakpoint_at): Delete.
14336 (delete_gdb_breakpoint_at): Declare.
14337
14338 * server.h (struct raw_breakpoint): Forward declare.
14339 (struct process_info): New field `raw_breakpoints'.
14340
14341 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14342 breakpoints.
14343
14344 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14345
14346 * linux-low.c (status_pending_p_callback): Fix comment.
14347 (linux_wait_for_event_1): Move most of the internal breakpoint
14348 handling from here...
14349 (linux_wait_1): ... to here.
14350 (count_events_callback): New.
14351 (select_singlestep_lwp_callback): New.
14352 (select_event_lwp_callback): New.
14353 (cancel_breakpoints_callback): New.
14354 (select_event_lwp): New.
14355 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14356 priority to all LWPs that have had events that should be reported
14357 to the client. Cancel breakpoints when about to reporting the
14358 event to the client, not while stopping lwps. No longer cancel
14359 finished single-steps here.
14360 (cancel_finished_single_step): Delete.
14361 (cancel_finished_single_steps): Delete.
14362
14363 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14364
14365 * mem-break.c (enum bkpt_type): New.
14366 (struct breakpoint): New field `type'.
14367 (set_breakpoint_at): Change return type to struct breakpoint
14368 pointer. Set type to `other_breakpoint' by default.
14369 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14370 in the breakpoint list.
14371 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14372 (reinsert_breakpoint): Rename to ...
14373 (reinsert_raw_breakpoint): ... this.
14374 (reinsert_breakpoints_at): Adjust.
14375 * mem-break.h (struct breakpoint): Declare.
14376 (set_breakpoint_at): Change return type to struct breakpoint
14377 pointer.
14378
14379 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14380
14381 * server.c (handle_query): Assign, not compare.
14382
14383 2010-03-24 Pedro Alves <pedro@codesourcery.com>
14384
14385 Teach linux gdbserver to step-over-breakpoints.
14386
14387 * linux-low.c (can_hardware_single_step): New.
14388 (supports_breakpoints): New.
14389 (handle_extended_wait): If stopping threads, read the stop pc of
14390 the new cloned LWP.
14391 (get_pc): New.
14392 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14393 low target doesn't support retrieving the PC.
14394 (add_lwp): Set last_resume_kind to resume_continue.
14395 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14396 (linux_attach): Don't clear stop_expected. Set the lwp's
14397 last_resume_kind to resume_stop.
14398 (linux_detach_one_lwp): Don't check for removed breakpoints.
14399 (check_removed_breakpoint): Delete.
14400 (status_pending_p): Rename to ...
14401 (status_pending_p_callback): ... this. Don't check for removed
14402 breakpoints. Don't consider threads that are stopped from GDB's
14403 perspective.
14404 (linux_wait_for_lwp): Always read the stop_pc here.
14405 (cancel_breakpoint): New.
14406 (step_over_bkpt): New global.
14407 (linux_wait_for_event_1): Implement stepping over breakpoints.
14408 (gdb_wants_lwp_stopped): New.
14409 (gdb_wants_all_stopped): New.
14410 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14411 single-step traps here. Store the thread's last reported target
14412 wait status.
14413 (send_sigstop): Don't clear stop_expected. Always set it,
14414 instead.
14415 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14416 (cancel_finished_single_step): New.
14417 (cancel_finished_single_steps): New.
14418 (wait_for_sigstop): Don't cancel finished single-step traps here.
14419 (linux_resume_one_lwp): Don't check for removed breakpoints.
14420 Don't set `step' on non-hardware step archs.
14421 (linux_set_resume_request): Ignore resume_stop requests if already
14422 stopping or stopped. Set the lwp's last_resume_kind.
14423 (resume_status_pending_p): Don't check for removed breakpoints.
14424 (need_step_over_p): New.
14425 (start_step_over): New.
14426 (finish_step_over): New.
14427 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14428 requests. Clear the thread's last reported target waitstatus.
14429 Don't use the `suspended' flag. Don't consider pending breakpoints.
14430 (linux_resume): Start a step-over if necessary.
14431 (proceed_one_lwp): New.
14432 (proceed_all_lwps): New.
14433 (unstop_all_lwps): New.
14434 * linux-low.h (struct lwp_info): Rewrite comment for the
14435 `suspended' flag. Add the `stop_pc' field. Delete the
14436 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14437 Add `'last_resume_kind' and `need_step_over' fields.
14438 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14439 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14440 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14441 (set_raw_breakpoint_at): New.
14442 (set_breakpoint_at): Rewrite to use it.
14443 (reinsert_breakpoint_handler): Delete.
14444 (set_reinsert_breakpoint): New.
14445 (reinsert_breakpoint_by_bp): Delete.
14446 (delete_reinsert_breakpoints): New.
14447 (uninsert_breakpoint): Rewrite.
14448 (uninsert_breakpoints_at): New.
14449 (reinsert_breakpoint): Rewrite.
14450 (reinsert_breakpoints_at): New.
14451 (check_breakpoints): Rewrite.
14452 (breakpoint_here): New.
14453 (breakpoint_inserted_here): New.
14454 (check_mem_read): Adjust.
14455 * mem-break.h (breakpoints_supported, breakpoint_here)
14456 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14457 (reinsert_breakpoint_by_bp): Delete declaration.
14458 (delete_reinsert_breakpoints): Declare.
14459 (reinsert_breakpoint): Delete declaration.
14460 (reinsert_breakpoints_at): Declare.
14461 (uninsert_breakpoint): Delete declaration.
14462 (uninsert_breakpoints_at): Declare.
14463 (check_breakpoints): Adjust prototype.
14464 * server.h: Adjust include order.
14465 (struct thread_info): Declare here. Add a `last_status' field.
14466
14467 2010-03-23 Michael Snyder <msnyder@vmware.com>
14468
14469 * server.c (crc32): New function.
14470 (handle_query): Add handling for 'qCRC:' request.
14471
14472 2010-03-23 Pedro Alves <pedro@codesourcery.com>
14473
14474 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14475 lwp had been stopped by a watchpoint.
14476
14477 2010-03-16 Pedro Alves <pedro@codesourcery.com>
14478
14479 * server.h (internal_error): Declare.
14480 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14481 * utils.c (internal_error): New function.
14482
14483 2010-03-15 Andreas Schwab <schwab@redhat.com>
14484
14485 * configure.srv: Fix typo setting srv_regobj.
14486
14487 2010-03-15 Pedro Alves <pedro@codesourcery.com>
14488
14489 * linux-low.c (fetch_register): Avoid passing a non string literal
14490 format to `error'.
14491 (usr_store_inferior_registers): Ditto.
14492
14493 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14494
14495 * linux-low.c (linux_write_memory): Bail out early if peeking
14496 memory failed.
14497
14498 2010-03-14 Pedro Alves <pedro@codesourcery.com>
14499
14500 * linux-low.h (struct lwp_info): New fields
14501 `stopped_by_watchpoint' and `stopped_data_address'.
14502 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
14503 here, and cache them in the lwp object.
14504 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
14505 directly.
14506 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
14507 field.
14508 (linux_stopped_by_watchpoint): Rewrite.
14509 (linux_stopped_data_address): Rewrite.
14510
14511 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
14512
14513 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
14514 switching the current inferior, not before.
14515
14516 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14517
14518 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
14519 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
14520 i386-linux.c and amd64-linux.c.
14521 (reg-i386.o): Removed.
14522 (reg-i386.c): Likewise.
14523 (reg-i386-linux.o): Likewise.
14524 (reg-i386-linux.c): Likewise.
14525 (reg-x86-64.o): Likewise.
14526 (reg-x86-64.c): Likewise.
14527 (reg-x86-64-linux.o): Likewise.
14528 (reg-x86-64-linux.c): Likewise.
14529 (i386.o): New.
14530 (i386.c): Likewise.
14531 (i386-linux.o): Likewise.
14532 (i386-linux.c): Likewise.
14533 (amd64.o): Likewise.
14534 (amd64.c): Likewise.
14535 (amd64-linux.o): Likewise.
14536 (amd64-linux.c): Likewise.
14537
14538 * configure.srv (srv_i386_regobj): New.
14539 (srv_i386_linux_regobj): Likewise.
14540 (srv_amd64_regobj): Likewise.
14541 (srv_amd64_linux_regobj): Likewise.
14542 (srv_i386_32bit_xmlfiles): Likewise.
14543 (srv_i386_64bit_xmlfiles): Likewise.
14544 (srv_i386_xmlfiles): Likewise.
14545 (srv_amd64_xmlfiles): Likewise.
14546 (srv_i386_linux_xmlfiles): Likewise.
14547 (srv_amd64_linux_xmlfiles): Likewise.
14548 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
14549 srv_xmlfiles to $srv_i386_xmlfiles.
14550 (i[34567]86-*-mingw32ce*): Likewise.
14551 (i[34567]86-*-mingw*): Likewise.
14552 (i[34567]86-*-nto*): Likewise.
14553 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
14554 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
14555 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
14556 (x86_64-*-linux*): Likewise.
14557
14558 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
14559 (init_registers_amd64_linux): New.
14560 (x86_arch_setup): Replace init_registers_x86_64_linux with
14561 init_registers_amd64_linux.
14562
14563 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
14564
14565 * configure.ac: Check for libdl. If it is not available link against
14566 static libthread_db.
14567 * configure: Regenerate.
14568
14569 2010-02-22 Pedro Alves <pedro@codesourcery.com>
14570
14571 PR9605
14572
14573 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
14574 handing a read watchpoint.
14575 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
14576
14577 2010-02-12 Doug Evans <dje@google.com>
14578
14579 * linux-low.c (linux_supports_tracefork_flag): Document.
14580 (linux_look_up_symbols): Add comment.
14581
14582 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
14583
14584 * regcache.c (supply_register): Clear regcache if buf is NULL.
14585
14586 2010-02-02 Nicolas Roche <roche@sourceware.org>
14587 Joel Brobecker <brobecker@adacore.com>
14588
14589 * inferiors.c (find_inferior): Add function documentation.
14590 (unloaded_dll): Handle the case where the unloaded dll has not
14591 been previously registered in the dll list.
14592
14593 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
14594
14595 * linux-arm-low.c (thumb_breakpoint_len): Delete.
14596 (thumb2_breakpoint): New.
14597 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
14598
14599 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
14600
14601 * linux-low.c (get_stop_pc): Check for SIGTRAP.
14602 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
14603 breakpoints.
14604
14605 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14606
14607 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
14608
14609 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14610
14611 * linux-s390-low.c (s390_collect_ptrace_register)
14612 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
14613
14614 2010-01-21 Doug Evans <dje@google.com>
14615
14616 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
14617 (PTRACE_ARG4_TYPE): New macro.
14618 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
14619 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
14620 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
14621 (usr_store_inferior_registers): Ditto.
14622 (linux_read_memory, linux_write_memory): Ditto.
14623 (linux_test_for_tracefork): Ditto.
14624
14625 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
14626 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
14627
14628 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14629
14630 * proc-service.c (ps_lgetregs): Don't refetch registers from the
14631 target.
14632
14633 2010-01-21 Pedro Alves <pedro@codesourcery.com>
14634
14635 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
14636 prototype to take a regcache. Adjust.
14637
14638 2010-01-20 Pedro Alves <pedro@codesourcery.com>
14639
14640 * regcache.h (struct thread_info): Forward declare.
14641 (struct regcache): New.
14642 (new_register_cache): Adjust prototype.
14643 (get_thread_regcache): Declare.
14644 (free_register_cache): Adjust prototype.
14645 (registers_to_string, registers_from_string): Ditto.
14646 (supply_register, supply_register_by_name, collect_register)
14647 (collect_register_as_string, collect_register_by_name): Ditto.
14648 * regcache.c (struct inferior_regcache_data): Delete.
14649 (get_regcache): Rename to ...
14650 (get_thread_regcache): ... this. Adjust. Switch inferior before
14651 fetching registers.
14652 (regcache_invalidate_one): Adjust.
14653 (regcache_invalidate): Fix prototype.
14654 (new_register_cache): Return the new register cache.
14655 (free_register_cache): Change prototype.
14656 (realloc_register_cache): Adjust.
14657 (registers_to_string): Change prototype to take a regcache. Adjust.
14658 (registers_from_string): Ditto.
14659 (register_data): Ditto.
14660 (supply_register): Ditto.
14661 (supply_register_by_name): Ditto.
14662 (collect_register): Ditto.
14663 (collect_register_as_string): Ditto.
14664 (collect_register_by_name): Ditto.
14665 * server.c (process_serial_event): Adjust.
14666 * linux-low.h (regset_fill_func, regset_store_func): Change
14667 prototype.
14668 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
14669 Change prototype.
14670 * linux-low.c (get_stop_pc): Adjust.
14671 (check_removed_breakpoint): Adjust.
14672 (linux_wait_for_event): Adjust.
14673 (linux_resume_one_lwp): Adjust.
14674 (fetch_register): Add regcache parameter. Adjust.
14675 (usr_store_inferior_registers): Ditto.
14676 (regsets_fetch_inferior_registers): Ditto.
14677 (regsets_store_inferior_registers): Ditto.
14678 (linux_fetch_registers, linux_store_registers): Ditto.
14679 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
14680 regcache. Adjust.
14681 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
14682 Ditto.
14683 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
14684 prototype to take a regcache.
14685 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
14686 * remote-utils.c (convert_ascii_to_int, outreg)
14687 (prepare_resume_reply): Change prototype to take a regcache.
14688 Adjust.
14689 * target.h (struct target_ops) <fetch_registers, store_registers>:
14690 Change prototype to take a regcache.
14691 (fetch_inferior_registers, store_inferior_registers): Change
14692 prototype to take a regcache. Adjust.
14693 * proc-service.c (ps_lgetregs): Adjust.
14694 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
14695 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
14696 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
14697 take a regcache. Adjust.
14698 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
14699 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
14700 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
14701 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
14702 * linux-cris-low.c (cris_get_pc, cris_set_pc)
14703 (cris_cannot_fetch_register):
14704 (cris_breakpoint_at): Change prototype to take a regcache.
14705 Adjust.
14706 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
14707 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
14708 to take a regcache. Adjust.
14709 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
14710 Adjust.
14711 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
14712 take a regcache. Adjust.
14713 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
14714 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
14715 (m68k_set_pc): Change prototype to take a regcache. Adjust.
14716 * linux-mips-low.c (mips_get_pc):
14717 (mips_set_pc): Change prototype to take a regcache. Adjust.
14718 (mips_reinsert_addr): Adjust.
14719 (mips_collect_register): Change prototype to take a regcache.
14720 Adjust.
14721 (mips_supply_register):
14722 (mips_collect_register_32bit, mips_supply_register_32bit)
14723 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
14724 (mips_store_fpregset): Ditto.
14725 * linux-ppc-low.c (ppc_supply_ptrace_register)
14726 (ppc_supply_ptrace_register): Ditto.
14727 (parse_spufs_run): Adjust.
14728 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
14729 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
14730 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
14731 take a regcache. Adjust.
14732 * linux-s390-low.c (s390_collect_ptrace_register)
14733 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
14734 (s390_set_pc): Change prototype to take a regcache. Adjust.
14735 (s390_arch_setup): Adjust.
14736 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
14737 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
14738 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14739 (sparc_fill_gregset, sparc_store_gregset_from_stack)
14740 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
14741 regcache. Adjust.
14742 (sparc_breakpoint_at): Adjust.
14743 * linux-xtensa-low.c (xtensa_fill_gregset):
14744 (xtensa_store_gregset):
14745 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
14746 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
14747 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
14748 prototype to take a regcache. Adjust.
14749 * win32-arm-low.c (arm_fetch_inferior_register)
14750 (arm_store_inferior_register): Change prototype to take a
14751 regcache. Adjust.
14752 * win32-i386-low.c (i386_fetch_inferior_register)
14753 (i386_store_inferior_register): Change prototype to take a
14754 regcache. Adjust.
14755 * win32-low.c (child_fetch_inferior_registers)
14756 (child_store_inferior_registers): Change prototype to take a
14757 regcache. Adjust.
14758 (win32_wait): Adjust.
14759 (win32_fetch_inferior_registers): Change prototype to take a
14760 regcache. Adjust.
14761 (win32_store_inferior_registers): Adjust.
14762 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
14763 store_inferior_register>: Change prototype to take a regcache.
14764
14765 2010-01-20 Doug Evans <dje@google.com>
14766
14767 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
14768 #ifdef.
14769 (linux_wait_for_event1, linux_init_signals): Ditto.
14770 (W_STOPCODE): Provide definition if missing.
14771
14772 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
14773
14774 * linux-low.c (linux_core_of_thread): New.
14775 (compare_ints, show_process, list_threads): New.
14776 (linux_qxfer_osdata): Report threads and cores.
14777 (linux_target_op): Register linux_core_of_thread.
14778 * remote-utils.c (prepare_resume_reply): Report the core.
14779 (buffer_xml_printf): Support %d specifier.
14780 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
14781 New.
14782 (handle_query): Handle qXfer:threads. Announce availability
14783 thereof.
14784 * target.h (struct target_ops): New field core_of_thread.
14785
14786 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
14787
14788 * Makefile.in (clean): Remove new generated files.
14789 (reg-s390.o, reg-s390.c): Remove rules.
14790 (reg-s390x.o, reg-s390x.c): Likewise.
14791 (s390-linux32.o, s390-linux32.c): Add rules.
14792 (s390-linux64.o, s390-linux64.c): Likewise.
14793 (s390x-linux64.o, s390x-linux64.c): Likewise.
14794 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
14795 * linux-s390-low.c: Include <elf.h>.
14796 (HWCAP_S390_HIGH_GPRS): Define if undefined.
14797 (init_registers_s390): Remove prototype.
14798 (init_registers_s390x): Likewise.
14799 (init_registers_s390_linux32): Add prototype.
14800 (init_registers_s390_linux64): Likewise.
14801 (init_registers_s390x_linux64): Likewise.
14802 (s390_num_regs_3264): New define.
14803 (s390_regmap_3264): New global variable.
14804 (s390_cannot_fetch_register): Remove obsolete check.
14805 (s390_cannot_store_register): Likewise.
14806 (s390_collect_ptrace_register): Handle upper/lower register halves.
14807 (s390_supply_ptrace_register): Likewise.
14808 (s390_fill_gregset): Update to register number changes.
14809 (s390_get_hwcap): New routine.
14810 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
14811 Install appropriate regmap and register set.
14812
14813 2010-01-01 Joel Brobecker <brobecker@adacore.com>
14814
14815 * server.c (gdbserver_version): Update copyright year to 2010.
14816 * gdbreplay.c (gdbreplay_version): Likewise.
14817
14818 2009-12-28 Doug Evans <dje@google.com>
14819
14820 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
14821 elf/external.h. Include <elf.h> instead but only if necessary.
14822
14823 2009-12-28 Pedro Alves <pedro@codesourcery.com>
14824
14825 * linux-low.c (linux_remove_process): Remove `detaching'
14826 parameter. Don't release/detach from thread_db here.
14827 (linux_kill): Release/detach from thread_db here, ...
14828 (linux_detach): ... and here, before actually detaching.
14829 (linux_wait_1): ... and here, when a process exits.
14830 * thread-db.c (any_thread_of): New.
14831 (thread_db_free): Switch the current inferior to a thread of the
14832 passed in process.
14833
14834 2009-12-21 Doug Evans <dje@google.com>
14835
14836 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
14837
14838 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
14839 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
14840 warning ifndef __NR_tkill. Move setting of errno there too.
14841 Delete unnecessary resetting of errno after syscall.
14842 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
14843
14844 * configure.ac: Check for dladdr.
14845 * config.in: Regenerate.
14846 * configure: Regenerate.
14847 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
14848 (try_thread_db_load): Update.
14849
14850 * linux-low.c (my_waitpid): Delete unnecessary prototype.
14851
14852 2009-12-18 Doug Evans <dje@google.com>
14853
14854 * event-loop.c: Include unistd.h if it exists.
14855
14856 * linux-low.c (my_waitpid): Move definition away from being in
14857 between linux_tracefork_child/linux_test_for_tracefork.
14858
14859 * gdb_proc_service.h (psaddr_t): Fix type.
14860 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
14861 signature to match glibc.
14862
14863 2009-12-16 Doug Evans <dje@google.com>
14864
14865 * linux-low.c (linux_read_memory): Fix argument to read.
14866
14867 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14868
14869 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
14870 events, don't leave current_inferior pointing at null.
14871
14872 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14873
14874 * win32-low.c (LOG): Delete.
14875 (OUTMSG): Output to stderr.
14876 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
14877 on compile time LOG macro.
14878 (win32_wait): Fix debug output.
14879
14880 2009-11-26 Pedro Alves <pedro@codesourcery.com>
14881
14882 * win32-low.c (win32_add_one_solib): If the dll name is
14883 "ntdll.dll", prepend the system directory to the dll path.
14884
14885 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
14886
14887 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
14888
14889 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
14890 Vladimir Prus <vladimir@codesourcery.com>
14891
14892 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
14893 * configure.ac: Check for __mcoldfire__ and set
14894 gdb_cv_m68k_is_coldfire.
14895 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
14896 reg-cf.o and reg-m68k.o.
14897 * configure: Regenerated.
14898
14899 2009-11-16 Pedro Alves <pedro@codesourcery.com>
14900
14901 * linux-low.c (linux_remove_process): Add `detaching' parameter.
14902 Pass it to thread_db_free.
14903 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
14904 proper `detaching' argument to linux_remove_process.
14905 * linux-low.h (thread_db_free): Add `detaching' parameter.
14906 * thread-db.c (thread_db_init): Pass false as `detaching' argument
14907 to thread_db_free.
14908 (thread_db_free): Add `detaching' parameter. Only
14909 call td_ta_clear_event if detaching from process.
14910
14911 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
14912
14913 * thread-db.c (thread_db_free): Fix typo.
14914
14915 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
14916
14917 PR gdb/10838
14918 * thread-db.c (thread_db_free): Call td_ta_clear_event.
14919
14920 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
14921
14922 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
14923 with an i686 compiler.
14924 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
14925 needed.
14926 * configure: Rebuilt.
14927
14928 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
14929
14930 PR gdb/10783
14931
14932 * server.c (handle_search_memory_1): Correct read_addr initialization
14933 in loop for searching subsequent chunks.
14934
14935 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
14936
14937 * configure.ac: New --with-libthread-db option.
14938 * thread-db.c: Allow direct dependence on libthread_db.
14939 (thread_db_free): Adjust.
14940 * config.in: Regenerate.
14941 * configure: Likewise.
14942
14943 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
14944
14945 PR gdb/10757
14946 * thread-db.c (attach_thread): New function.
14947 (maybe_attach_thread): Return success/failure.
14948 (find_new_threads_callback): Adjust.
14949 (thread_db_find_new_threads): Loop until no new threads.
14950
14951 2009-10-13 Pedro Alves <pedro@codesourcery.com>
14952
14953 * proc-service.c (ps_lgetregs): Formatting.
14954
14955 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
14956
14957 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
14958 * configure.ac: Adjust.
14959 * linux-low.h (struct process_info_private): Move members to struct
14960 thread_db.
14961 (thread_db_free, thread_db_handle_monitor_command): New prototype.
14962 * linux-low.c (linux_remove_process): Adjust.
14963 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
14964 * server.c (handle_query): Move code ...
14965 (handle_monitor_command): ... here. New function.
14966 * target.h (struct target_ops): New member.
14967 * thread-db.c (struct thread_db): New.
14968 (libthread_db_search_path): New variable.
14969 (thread_db_create_event, thread_db_enable_reporting)
14970 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
14971 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
14972 (try_thread_db_load_1, dladdr_to_soname): New functions.
14973 (try_thread_db_load, thread_db_load_search): New functions.
14974 (thread_db_init): Search for libthread_db.
14975 (thread_db_free): New function.
14976 (thread_db_handle_monitor_command): Likewise.
14977 * config.in: Regenerate.
14978 * configure: Regenerate.
14979
14980 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
14981
14982 * spu-low.c (spu_kill): Wait for inferior to terminate.
14983 Call clear_inferiors.
14984 (spu_detach): Call clear_inferiors.
14985
14986 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14987
14988 * aclocal.m4: Regenerate.
14989 * config.in: Likewise.
14990 * configure: Likewise.
14991
14992 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
14993
14994 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
14995 (parse_spufs_run): New function.
14996 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
14997 (ppc_breakpoint_at): Handle SPU breakpoints.
14998
14999 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15000
15001 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15002 (SPUFS_MAGIC): Define.
15003 (spu_enumerate_spu_ids): New function.
15004 (linux_qxfer_spu): New function.
15005 (linux_target_ops): Install linux_qxfer_spu.
15006
15007 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15008
15009 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15010 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15011 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15012 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15013 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15014 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15015 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15016 (init_registers_powerpc_cell32l): Add prototype.
15017 (init_registers_powerpc_cell64l): Likewise.
15018 (ppc_arch_setup): Detect Cell/B.E. architecture.
15019
15020 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15021
15022 * Makefile.in (datarootdir): New variable.
15023
15024 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15025
15026 * linux-low.c (linux_write_memory): Update debugging output.
15027 * Makefile.in (clean): Add new descriptions.
15028 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15029 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15030 * configure.srv: Add new files for arm*-*-linux*.
15031 * linux-arm-low.c: Add new declarations.
15032 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15033 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15034 (HWCAP_VFPv3D16): New.
15035 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15036 instead of __IWMMXT__.
15037 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15038 (arm_arch_setup): New.
15039 (target_regsets): Remove #ifdef. Add VFP regset.
15040 (the_low_target): Use arm_arch_setup.
15041
15042 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15043
15044 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15045 the main thread again.
15046
15047 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15048
15049 Adding Neutrino gdbserver.
15050 * configure: Regenerated.
15051 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15052 * configure.srv (i[34567]86-*-nto*): New target.
15053 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15054 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15055 (nto_comctrl) [__QNX__]: New function.
15056 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15057
15058 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
15059
15060 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15061 srv_tgtobj.
15062
15063 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15064 Pedro Alves <pedro@codesourcery.com>
15065
15066 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15067 don't support CONTEXT_EXTENDED_REGISTERS.
15068 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15069 (the_low_target): Install them.
15070 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15071 failing with ERROR_PIPE_NOT_CONNECTED.
15072
15073 2009-06-30 Doug Evans <dje@google.com>
15074 Pierre Muller <muller@ics.u-strasbg.fr>
15075
15076 Add h/w watchpoint support to x86-linux, win32-i386.
15077 * Makefile.in (SFILES): Add i386-low.c
15078 (i386_low_h): Define.
15079 (i386-low.o): Add dependencies.
15080 (linux-x86-low.o): Add i386-low.h dependency.
15081 (win32-i386-low.o): Ditto.
15082 * i386-low.c: New file.
15083 * i386-low.h: New file.
15084 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15085 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15086 * linux-low.c (linux_add_process): Initialize arch_private.
15087 (linux_remove_process): Free arch_private.
15088 (add_lwp): Initialize arch_private.
15089 (delete_lwp): Free arch_private.
15090 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15091 provided.
15092 * linux-low.h (process_info_private): New member arch_private.
15093 (lwp_info): New member arch_private.
15094 (linux_target_ops): New members new_process, new_thread,
15095 prepare_to_resume.
15096 (ptid_of): New macro.
15097 * linux-x86-low.c: Include stddef.h, i386-low.h.
15098 (arch_process_info): New struct.
15099 (arch_lwp_info): New struct.
15100 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15101 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15102 (i386_dr_low_get_status): New function.
15103 (x86_insert_point, x86_remove_point): New functions.
15104 (x86_stopped_by_watchpoint): New function.
15105 (x86_stopped_data_address): New function.
15106 (x86_linux_new_process, x86_linux_new_thread): New functions.
15107 (x86_linux_prepare_to_resume): New function.
15108 (the_low_target): Add entries for insert_point, remove_point,
15109 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15110 prepare_to_resume.
15111 * server.c (debug_hw_points): New global.
15112 (monitor_show_help): Document set debug-hw-points.
15113 (handle_query): Process "set debug-hw-points".
15114 * server.h (debug_hw_points): Declare.
15115 (paddress): Declare.
15116 * utils.c (NUMCELLS, CELLSIZE): New macros.
15117 (get_sell, xsnprintf, paddress): New functions.
15118 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15119 remove_point, stopped_by_watchpoint, stopped_data_address.
15120 * win32-i386-low.c: Include i386-low.h.
15121 (debug_reg_state): Replaces dr.
15122 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15123 (i386_dr_low_get_status): New function.
15124 (i386_insert_point, i386_remove_point): New functions.
15125 (i386_stopped_by_watchpoint): New function.
15126 (i386_stopped_data_address): New function.
15127 (i386_initial_stuff): Update.
15128 (get_thread_context,set_thread_context,i386_thread_added): Update.
15129 (the_low_target): Add entries for insert_point,
15130 remove_point, stopped_by_watchpoint, stopped_data_address.
15131 * win32-low.c (win32_insert_watchpoint): New function.
15132 (win32_remove_watchpoint): New function.
15133 (win32_stopped_by_watchpoint): New function.
15134 (win32_stopped_data_address): New function.
15135 (win32_target_ops): Add entries for insert_watchpoint,
15136 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15137 * win32-low.h (win32_target_ops): New members insert_point,
15138 remove_point, stopped_by_watchpoint, stopped_data_address.
15139
15140 2009-06-25 Pedro Alves <pedro@codesourcery.com>
15141
15142 * server.c (process_serial_event): Re-return unsupported, not
15143 error, if the type isn't recognized. Re-allow supporting only
15144 insert or remove packets. Also call require_running for
15145 breakpoints. Add missing break statement to default case. Tidy.
15146 * target.h (struct target_ops): Rename insert_watchpoint to
15147 insert_point, and remove_watchpoint to remove_point.
15148
15149 * linux-low.h (struct linux_target_ops): Likewise.
15150 * linux-low.c (linux_insert_watchpoint): Rename to ...
15151 (linux_insert_point): ... this. Adjust.
15152 (linux_remove_watchpoint): Rename to ...
15153 (linux_remove_point): ... this. Adjust.
15154 (linux_target_ops): Adjust.
15155 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15156 (cris_insert_point): ... this.
15157 (cris_remove_watchpoint): Rename to ...
15158 (cris_remove_point): ... this.
15159 (the_low_target): Adjust.
15160
15161 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15162
15163 * server.c (handle_v_kill): Pass signal_pid to
15164 kill_inferior if multi_process is zero.
15165
15166 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15167
15168 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15169 * target.h (target_ops): Comment for *_watchpoint to make it clear
15170 the functions can get types '0' and '1'.
15171
15172 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15173
15174 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15175 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15176 * regcache.c (get_regcache): Likewise.
15177 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15178 * win32-low.c (child_fetch_inferior_registers): Remove check for
15179 regno 0.
15180
15181 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15182 Pedro Alves <pedro@codesourcery.com>
15183
15184 * target.h (struct target_ops) <supports_multi_process>: New
15185 callback.
15186 (target_supports_multi_process): New.
15187 * server.c (handle_query): Even if GDB reports support, only
15188 enable multi-process if the target also supports it. Report
15189 multi-process support only if the target backend supports it.
15190 * linux-low.c (linux_supports_multi_process): New function.
15191 (linux_target_ops): Install it as target_supports_multi_process
15192 callback.
15193
15194 2009-05-24 Doug Evans <dje@google.com>
15195
15196 Global renaming of find_thread_pid to find_thread_ptid.
15197 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15198 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15199 All callers updated.
15200
15201 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15202 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15203 directly.
15204
15205 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15206 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15207 (linux_resume_one_lwp): Ditto.
15208
15209 2009-05-23 Doug Evans <dje@google.com>
15210
15211 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15212 from struct inferior_list_entry * to struct lwp_info *.
15213 All callers updated.
15214
15215 2009-05-13 Doug Evans <dje@google.com>
15216
15217 * linux-x86-low.c: Don't include assert.h.
15218 (x86_siginfo_fixup): Use fatal, not assert.
15219 (x86_arch_setup): Fix comment.
15220
15221 2009-05-12 Doug Evans <dje@google.com>
15222
15223 Biarch support for i386/amd64 gdbserver.
15224 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15225 Add linux-x86-low.c.
15226 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15227 (linux-x86-low.o): Add.
15228 * linux-x86-64-low.c: Delete.
15229 * linux-i386-low.c: Delete.
15230 * linux-x86-low.c: New file.
15231 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15232 linux-x86-low.o.
15233 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15234 linux-x86-low.o.
15235 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15236 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15237 (linux_child_pid_to_exec_file): New function.
15238 (elf_64_header_p, elf_64_file_p): New functions.
15239 (siginfo_fixup): New function.
15240 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15241 give target a chance to convert layout.
15242 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15243 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15244
15245 2009-05-07 Doug Evans <dje@google.com>
15246
15247 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15248 (regsets_store_inferior_registers): Ditto.
15249
15250 2009-05-06 Pedro Alves <pedro@codesourcery.com>
15251
15252 PR server/10048
15253
15254 * linux-low.c (must_set_ptrace_flags): Delete.
15255 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15256 of the global.
15257 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15258 `lwp->must_set_ptrace_flags' instead.
15259 (linux_wait_for_event_1): Set ptrace options here.
15260 (linux_wait_1): ... not here.
15261
15262 2009-04-30 Doug Evans <dje@google.com>
15263
15264 * inferiors.c (started_inferior_callback): New function.
15265 (attached_inferior_callback): New function.
15266 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15267 * server.c (print_started_pid, print_attached_pid): New functions.
15268 (detach_or_kill_for_exit): New function.
15269 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15270 * server.h (have_started_inferiors_p): Declare.
15271 (have_attached_inferiors_p): Declare.
15272
15273 * inferiors.c (remove_process): Fix memory leak, free process.
15274 * linux-low.c (linux_remove_process): New function.
15275 (linux_kill): Call it instead of remove_process.
15276 (linux_detach, linux_wait_1): Ditto.
15277
15278 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15279
15280 * configure.srv: Add x86 Windows CE target.
15281
15282 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15283
15284 * inferiors.c (get_thread_process): Make global.
15285 * server.h (get_thread_process): Add prototype.
15286 * thread-db.c (find_one_thread): Use get_thread_process
15287 instead of current_process.
15288 (thread_db_get_tls_address): Do not crash if called when
15289 thread layer is not yet initialized.
15290
15291 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15292
15293 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15294 * spu-low.c (current_tid): Rename to ...
15295 (current_ptid): ... this.
15296 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15297 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15298 ptid_get_lwp (current_ptid) instead of current_tid.
15299 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15300 instead of current_tid. Use find_process_pid to verify pid
15301 argument is valid. Pass proper argument to remove_process.
15302 (spu_thread_alive): Compare current_ptid instead of current_tid.
15303 (spu_resume): Likewise.
15304
15305 2009-04-02 Pedro Alves <pedro@codesourcery.com>
15306
15307 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15308 variable.
15309
15310 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15311
15312 Implement the multiprocess extensions, and add linux multiprocess
15313 support.
15314
15315 * server.h (ULONGEST): Declare.
15316 (struct ptid, ptid_t): New.
15317 (minus_one_ptid, null_ptid): Declare.
15318 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15319 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15320 (struct inferior_list_entry): Change `id' type from unsigned from
15321 to ptid_t.
15322 (struct sym_cache, struct breakpoint, struct
15323 process_info_private): Forward declare.
15324 (struct process_info): Declare.
15325 (current_process): Declare.
15326 (all_processes): Declare.
15327 (initialize_inferiors): Declare.
15328 (add_thread): Adjust to use ptid_t.
15329 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15330 (add_process, remove_process, find_thread_pid): Declare.
15331 (find_inferior_id): Adjust to use ptid_t.
15332 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15333 (multi_process): Declare.
15334 (push_event): Adjust to use ptid_t.
15335 (read_ptid, write_ptid): Declare.
15336 (prepare_resume_reply): Adjust to use ptid_t.
15337 (clear_symbol_cache): Declare.
15338 * inferiors.c (all_processes): New.
15339 (null_ptid, minus_one_ptid): New.
15340 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15341 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15342 (add_thread): Change unsigned long to ptid. Remove gdb_id
15343 parameter. Adjust.
15344 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15345 (gdb_id_to_thread): Rename to ...
15346 (find_thread_pid): ... this. Change unsigned long to ptid.
15347 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15348 (loaded_dll, pull_pid_from_list): Adjust.
15349 (add_process, remove_process, find_process_pid)
15350 (get_thread_process, current_process, initialize_inferiors): New.
15351 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15352 (struct target_waitstatus) <related_pid>: Ditto.
15353 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15354 return type to int.
15355 (struct target_ops) <join>: Add `pid' argument.
15356 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15357 (struct target_ops) <wait>: Add `ptid' field. Change return type
15358 to ptid.
15359 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15360 (mywait): Add `ptid' argument. Change return type to ptid_t.
15361 (target_pid_to_str): Declare.
15362 * target.c (set_desired_inferior): Adjust to use ptids.
15363 (mywait): Add new `ptid' argument. Adjust.
15364 (target_pid_to_str): New.
15365 * mem-break.h (free_all_breakpoints): Declare.
15366 * mem-break.c (breakpoints): Delelete.
15367 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15368 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15369 to use per-process breakpoint list.
15370 (free_all_breakpoints): New.
15371 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15372 (symbol_cache, all_symbols_looked_up): Delete.
15373 (hexchars): New.
15374 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15375 read_ptid): New.
15376 (prepare_resume_reply): Change ptid argument's type from unsigned
15377 long to ptid_t. Adjust. Implement W;process and X;process.
15378 (free_sym_cache, clear_symbol_cache): New.
15379 (look_up_one_symbol): Adjust to per-process symbol cache. *
15380 * server.c (cont_thread, general_thread, step_thread): Change type
15381 to ptid_t.
15382 (attached): Delete.
15383 (multi_process): New.
15384 (last_ptid): Change type to ptid_t.
15385 (struct vstop_notif) <ptid>: Change type to ptid_t.
15386 (queue_stop_reply, push_event): Change `ptid' argument's type to
15387 ptid_t.
15388 (discard_queued_stop_replies): Add `pid' argument.
15389 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15390 changes. Don't reference the `attached' global.
15391 (attach_inferior): Adjust to mywait interface changes.
15392 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15393 features. Handle and report "multiprocess+". Handle
15394 "qAttached:PID".
15395 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15396 changes.
15397 (handle_v_kill): New.
15398 (handle_v_stopped): Adjust to use target_pid_to_str.
15399 (handle_v_requests): Allow multiple attaches and runs when
15400 multiprocess extensions are in effect. Handle "vKill".
15401 (myresume): Adjust to use ptids.
15402 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15403 (handle_status): Adjust to discard_queued_stop_replies interface
15404 change.
15405 (first_thread_of, kill_inferior_callback)
15406 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15407 (main): Call initialize_inferiors. Adjust to use ptids, killing
15408 and detaching from all inferiors. Handle multiprocess packet
15409 variants.
15410 * linux-low.h: Include gdb_proc_service.h.
15411 (struct process_info_private): New.
15412 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15413 <lwpid_of>: Use ptid_get_lwp.
15414 (get_lwp_thread): Adjust.
15415 (struct lwp_info): Add `dead' member.
15416 (find_lwp_pid): Declare.
15417 * linux-low.c (thread_db_active): Delete.
15418 (new_inferior): Adjust comment.
15419 (inferior_pid): Delete.
15420 (linux_add_process): New.
15421 (handle_extended_wait): Adjust.
15422 (add_lwp): Change unsigned long to ptid.
15423 (linux_create_inferior): Add process to processes table. Adjust
15424 to use ptids. Don't set new_inferior here.
15425 (linux_attach_lwp): Rename to ...
15426 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15427 it. Adjust to use ptids.
15428 (linux_attach_lwp): New.
15429 (linux_attach): Add process to processes table. Don't set
15430 new_inferior here.
15431 (struct counter): New.
15432 (second_thread_of_pid_p, last_thread_of_process_p): New.
15433 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15434 multiple processes.
15435 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15436 processes. Remove process from process table.
15437 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15438 to multiple processes.
15439 (any_thread_of): New.
15440 (linux_detach): Add `pid' argument, and handle it. Remove process
15441 from processes table.
15442 (linux_join): Add `pid' argument. Handle it.
15443 (linux_thread_alive): Change unsighed long argument to ptid_t.
15444 Consider dead lwps as not being alive.
15445 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15446 threads we're not interested in.
15447 (same_lwp, find_lwp_pid): New.
15448 (linux_wait_for_lwp): Change `pid' argument's type from int to
15449 ptid_t. Adjust.
15450 (linux_wait_for_event): Rename to ...
15451 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15452 from int to ptid_t. Adjust.
15453 (linux_wait_for_event): New.
15454 (linux_wait_1): Add `ptid' argument. Change return type to
15455 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15456 that exit from the process table.
15457 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15458 Adjust.
15459 (mark_lwp_dead): New.
15460 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15461 stopping all threads, mark its main lwp as dead.
15462 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15463 ptids.
15464 (fetch_register, usr_store_inferior_registers)
15465 (regsets_fetch_inferior_registers)
15466 (regsets_store_inferior_registers, linux_read_memory)
15467 (linux_write_memory): Inline `inferior_pid'.
15468 (linux_look_up_symbols): Adjust to use per-process
15469 `thread_db_active'.
15470 (linux_request_interrupt): Adjust to use ptids.
15471 (linux_read_auxv): Inline `inferior_pid'.
15472 (initialize_low): Don't reference thread_db_active.
15473 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15474 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15475 (ps_getpid): Return the pid of the current inferior.
15476 * thread-db.c (proc_handle, thread_agent): Delete.
15477 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15478 per-process data.
15479 (find_one_thread): Change argument type to ptid_t. Adjust to
15480 per-process data.
15481 (maybe_attach_thread): Adjust to per-process data and ptids.
15482 (thread_db_find_new_threads): Ditto.
15483 (thread_db_init): Ditto.
15484 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15485 processes table. Adjust to use ptids.
15486 (spu_kill, spu_detach): Adjust interface. Remove process from
15487 processes table.
15488 (spu_join, spu_thread_alive): Adjust interface.
15489 (spu_wait): Adjust interface. Remove process from processes
15490 table. Adjust to use ptids.
15491 * win32-low.c (current_inferior_tid): Delete.
15492 (current_inferior_ptid): New.
15493 (debug_event_ptid): New.
15494 (thread_rec): Take a ptid. Adjust.
15495 (child_add_thread): Add `pid' argument. Adjust to use ptids.
15496 (child_delete_thread): Ditto.
15497 (do_initial_child_stuff): Add `attached' argument. Add process to
15498 processes table.
15499 (child_fetch_inferior_registers, child_store_inferior_registers):
15500 Adjust.
15501 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
15502 (win32_attach): Pass 1 to do_initial_child_stuff.
15503 (win32_kill): Adjust interface. Remove process from processes
15504 table.
15505 (win32_detach): Ditto.
15506 (win32_join): Adjust interface.
15507 (win32_thread_alive): Take a ptid.
15508 (win32_resume): Adjust to use ptids.
15509 (get_child_debug_event): Ditto.
15510 (win32_wait): Adjust interface. Remove exiting process from
15511 processes table.
15512
15513 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15514
15515 Non-stop mode support.
15516
15517 * server.h (non_stop): Declare.
15518 (gdb_client_data, handler_func): Declare.
15519 (delete_file_handler, add_file_handler, start_event_loop):
15520 Declare.
15521 (handle_serial_event, handle_target_event, push_event)
15522 (putpkt_notif): Declare.
15523 * target.h (enum resume_kind): New.
15524 (struct thread_resume): Replace `step' field by `kind' field.
15525 (TARGET_WNOHANG): Define.
15526 (struct target_ops) <wait>: Add `options' argument.
15527 <supports_non_stop, async, start_non_stop>: New fields.
15528 (target_supports_non_stop, target_async): New.
15529 (start_non_stop): Declare.
15530 (mywait): Add `options' argument.
15531 * target.c (mywait): Add `options' argument. Print child exit
15532 notifications here.
15533 (start_non_stop): New.
15534 * server.c (non_stop, own_buf, mem_buf): New globals.
15535 (struct vstop_notif): New.
15536 (notif_queue): New global.
15537 (queue_stop_reply, push_event, discard_queued_stop_replies)
15538 (send_next_stop_reply): New.
15539 (start_inferior): Adjust to use resume_kind. Adjust to mywait
15540 interface changes.
15541 (attach_inferior): In non-stop mode, don't wait for the target
15542 here.
15543 (handle_general_set): Handle QNonStop.
15544 (handle_query): When handling qC, return the current general
15545 thread, instead of the first thread of the list.
15546 (handle_query): If the backend supports non-stop mode, include
15547 QNonStop+ in the qSupported query response.
15548 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
15549 and non-stop mode.
15550 (handle_v_attach, handle_v_run): Handle non-stop mode.
15551 (handle_v_stopped): New.
15552 (handle_v_requests): Report support for vCont;t. Handle vStopped.
15553 (myresume): Adjust to use resume_kind. Handle non-stop.
15554 (queue_stop_reply_callback): New.
15555 (handle_status): Handle non-stop mode.
15556 (main): Clear non_stop flag on reconnection. Use the event-loop.
15557 Refactor serial protocol handling from here ...
15558 (process_serial_event): ... to this new function. When GDB
15559 selects any thread, select one here. In non-stop mode, wait until
15560 GDB acks all pending events before exiting.
15561 (handle_serial_event, handle_target_event): New.
15562 * remote-utils.c (remote_open): Install remote_desc in the event
15563 loop.
15564 (remote_close): Remove remote_desc from the event loop.
15565 (putpkt_binary): Rename to...
15566 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
15567 (putpkt_binary): New as wrapper around putpkt_binary_1.
15568 (putpkt_notif): New.
15569 (prepare_resume_reply): In non-stop mode, don't change the
15570 general_thread.
15571 * event-loop.c: New.
15572 * Makefile.in (OBJ): Add event-loop.o.
15573 (event-loop.o): New rule.
15574
15575 * linux-low.h (pid_of): Moved here.
15576 (lwpid_of): New.
15577 (get_lwp_thread): Use lwpid_of.
15578 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
15579 * linux-low.c (pid_of): Delete.
15580 (inferior_pid): Use lwpid_of.
15581 (linux_event_pipe): New.
15582 (target_is_async_p): New.
15583 (delete_lwp): New.
15584 (handle_extended_wait): Use lwpid_of.
15585 (add_lwp): Don't set lwpid field.
15586 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
15587 (linux_kill_one_lwp): If killing a running lwp, stop it first.
15588 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
15589 (linux_detach_one_lwp): If detaching from a running lwp, stop it
15590 first. Adjust to linux_wait_for_event interface changes. Use
15591 lwpid_of.
15592 (linux_detach): Don't delete the main lwp here.
15593 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
15594 (status_pending_p): Don't consider explicitly suspended lwps.
15595 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
15596 pointer. Add OPTIONS argument. Change return type to int. Use
15597 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
15598 (linux_wait_for_event): Take an integer pid instead of a lwp_info
15599 pointer. Add status pointer argument. Return a pid instead of a
15600 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
15601 changes. In non-stop mode, don't switch to a random thread.
15602 (linux_wait): Rename to...
15603 (linux_wait_1): ... this. Add target_options argument, and handle
15604 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
15605 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
15606 clean exit and signal exit code. Don't stop all threads in
15607 non-stop mode. In all-stop mode, only stop all threads when
15608 reporting a stop to GDB. Handle explicit thread stop requests.
15609 (async_file_flush, async_file_mark): New.
15610 (linux_wait): New.
15611 (send_sigstop): Use lwpid_of.
15612 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
15613 interface changes. In non-stop mode, don't switch to a random
15614 thread.
15615 (linux_resume_one_lwp): Use lwpid_of.
15616 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
15617 (linux_resume_one_thread): ... this. Handle resume_stop. In
15618 non-stop mode, don't look for pending flag in all threads.
15619 (resume_status_pending_p): Don't consider explicitly suspended
15620 threads.
15621 (my_waitpid): Reimplement. Emulate __WALL.
15622 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15623 Use lwpid_of.
15624 (sigchld_handler, linux_supports_non_stop, linux_async)
15625 (linux_start_non_stop): New.
15626 (linux_target_ops): Register linux_supports_non_stop, linux_async
15627 and linux_start_non_stop.
15628 (initialize_low): Install SIGCHLD handler.
15629 * thread-db.c (thread_db_create_event, find_one_thread)
15630 (thread_db_get_tls_address): Use lwpid_of.
15631 * win32-low.c (win32_detach): Adjust to use resume_kind.
15632 (win32_wait): Add `options' argument.
15633 * spu-low.c (spu_resume): Adjust to use resume_kind.
15634 (spu_wait): Add `options' argument.
15635
15636 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15637
15638 Decouple target code from remote protocol.
15639
15640 * target.h (enum target_waitkind): New.
15641 (struct target_waitstatus): New.
15642 (struct target_ops) <wait>: Return an unsigned long. Take a
15643 target_waitstatus pointer instead of a char pointer.
15644 (mywait): Likewise.
15645 * target.c (mywait): Change prototype to return an unsigned long.
15646 Take a target_waitstatus pointer instead of a char pointer. Adjust.
15647 * server.h (thread_from_wait, old_thread_from_wait): Delete
15648 declarations.
15649 (prepare_resume_reply): Change prototype to take a
15650 target_waitstatus.
15651 * server.c (thread_from_wait, old_thread_from_wait): Delete.
15652 (last_status, last_ptid): New.
15653 (start_inferior): Remove "statusptr" argument. Adjust. Return a
15654 pid instead of a signal.
15655 (attach_inferior): Remove "status" and "signal" parameters.
15656 Adjust.
15657 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
15658 not as an address.
15659 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
15660 (handle_v_requests, myresume): Remove "status" and "signal"
15661 parameters. Adjust.
15662 (handle_status): New.
15663 (main): Delete local `status'. Adjust.
15664 * remote-utils.c: Include target.h.
15665 (prepare_resume_reply): Change prototype to take a
15666 target_waitstatus. Adjust.
15667
15668 * linux-low.c (linux_wait): Adjust to new target_ops->wait
15669 interface.
15670 * spu-low.c (spu_wait): Adjust.
15671 * win32-low.c (enum target_waitkind, struct target_waitstatus):
15672 Delete.
15673 (win32_wait): Adjust.
15674
15675 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15676
15677 * target.h (struct thread_resume): Delete leave_stopped member.
15678 (struct target_ops): Add a `n' argument to the `resume' callback.
15679 * server.c (start_inferior): Adjust.
15680 (handle_v_cont, myresume): Adjust.
15681 * linux-low.c (check_removed_breakpoint): Adjust to resume
15682 interface change, and to removed leave_stopped field.
15683 (resume_ptr): Delete.
15684 (struct thread_resume_array): New.
15685 (linux_set_resume_request): Add new `arg' parameter. Adjust to
15686 resume interface change.
15687 (linux_continue_one_thread, linux_queue_one_thread)
15688 (resume_status_pending_p): Check if the resume field is NULL
15689 instead of checking the leave_stopped member.
15690 (linux_resume): Adjust to the target resume interface change.
15691 * spu-low.c (spu_resume): Adjust to the target resume interface
15692 change.
15693 * win32-low.c (win32_detach, win32_resume): Ditto.
15694
15695 2009-04-01 Pedro Alves <pedro@codesourcery.com>
15696
15697 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
15698 flag.
15699 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
15700 pending.
15701 (linux_continue_one_thread): Only preserve the stepping flag if
15702 there's a pending breakpoint.
15703
15704 2009-03-31 Pedro Alves <pedro@codesourcery.com>
15705
15706 * server.c (main): After the inferior having exited, call
15707 remote_close before exiting gdbserver.
15708
15709 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
15710
15711 Fix size of FPSCR in Power 7 processors.
15712 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
15713 (PPC_FEATURE_HAS_DFP): New #define.
15714 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
15715 size of the FPSCR.
15716
15717 2009-03-23 Pedro Alves <pedro@codesourcery.com>
15718
15719 * server.c (handle_query) Whitespace and formatting.
15720
15721 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15722
15723 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
15724 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
15725 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
15726 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
15727 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
15728 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
15729 Makefile.in, configure.ac: Fix whitespace throughout.
15730 * configure: Regenerate.
15731
15732 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15733
15734 * inferiors.c (find_inferior): Make it safe for the callback
15735 function to delete the currently iterated inferior.
15736
15737 2009-03-22 Pedro Alves <pedro@codesourcery.com>
15738
15739 * Makefile.in (linuw_low_h): Move higher.
15740 (thread-db.o): Depend on $(linux_low_h).
15741
15742 2009-03-17 Pedro Alves <pedro@codesourcery.com>
15743
15744 Rename "process" to "lwp" throughout.
15745
15746 * linux-low.c (all_processes): Rename to...
15747 (all_lwps): ... this.
15748 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
15749 (add_process): Rename to ...
15750 (add_lwp): ... this. Adjust.
15751 (linux_create_inferior): Adjust.
15752 (linux_attach_lwp): Adjust.
15753 (linux_attach): Adjust.
15754 (linux_kill_one_process): Rename to ...
15755 (linux_kill_one_lwp): ... this. Adjust.
15756 (linux_kill): Adjust.
15757 (linux_detach_one_process): Rename to ...
15758 (linux_detach_one_lwp): ... this. Adjust.
15759 (linux_detach): Adjust.
15760 (check_removed_breakpoint): Adjust.
15761 (status_pending_p): Adjust.
15762 (linux_wait_for_process): Rename to ...
15763 (linux_wait_for_lwp): ... this. Adjust.
15764 (linux_wait_for_event): Adjust.
15765 (send_sigstop): Adjust.
15766 (wait_for_sigstop): Adjust.
15767 (stop_all_processes): Rename to ...
15768 (stop_all_lwps): ... this.
15769 (linux_resume_one_process): Rename to ...
15770 (linux_resume_one_lwp): ... this. Adjust.
15771 (linux_set_resume_request, linux_continue_one_thread)
15772 (linux_queue_one_thread, resume_status_pending_p)
15773 (usr_store_inferior_registers, regsets_store_inferior_registers)
15774 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15775 Adjust.
15776 * linux-low.h (get_process): Rename to ...
15777 (get_lwp): ... this. Adjust.
15778 (get_thread_process): Rename to ...
15779 (get_thread_lwp): ... this. Adjust.
15780 (get_process_thread): Rename to ...
15781 (get_lwp_thread): ... this. Adjust.
15782 (struct process_info): Rename to ...
15783 (struct lwp_info): ... this.
15784 (all_processes): Rename to ...
15785 (all_lwps): ... this.
15786 * proc-service.c (ps_lgetregs): Adjust.
15787 * thread-db.c (thread_db_create_event, find_one_thread)
15788 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
15789
15790 2009-03-14 Pedro Alves <pedro@codesourcery.com>
15791
15792 * server.c (handle_query): Handle "qAttached".
15793
15794 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
15795
15796 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
15797 GPLv3, update license URL.
15798
15799 2009-03-01 Doug Evans <dje@google.com>
15800
15801 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
15802 (server_h): Add gdb_signals.h.
15803 (signals.o): Update.
15804 * server.h (target_signal_from_host,target_signal_to_host_p)
15805 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
15806
15807 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
15808
15809 * remote-utils.c (getpkt): Also generate remote-debug
15810 information if noack_mode is set.
15811
15812 2009-02-06 Pedro Alves <pedro@codesourcery.com>
15813
15814 * server.c (handle_query): Report qXfer:siginfo:read and
15815 qXfer:siginfo:write as supported and handle them.
15816 * target.h (struct target_ops) <qxfer_siginfo>: New field.
15817 * linux-low.c (linux_xfer_siginfo): New.
15818 (linux_target_ops): Set it.
15819
15820 2009-01-26 Pedro Alves <pedro@codesourcery.com>
15821
15822 * server.c (gdbserver_usage): Mention --remote-debug.
15823 (main): Accept '--remote-debug' switch.
15824
15825 2009-01-18 Doug Evans <dje@google.com>
15826
15827 * regcache.c (new_register_cache): No need to check result of xcalloc.
15828 * server.c (handle_search_memory): Back out calls to xmalloc,
15829 result is checked and error is returned to user upon failure.
15830 (handle_query): Ditto. Add more checks for result of malloc.
15831 (handle_v_cont): Check result of malloc, report error back to
15832 user upon failure.
15833 (handle_v_run): Ditto. Call freeargv.
15834 * server.h (freeargv): Declare.
15835 * utils.c (freeargv): New fn.
15836
15837 2009-01-15 Doug Evans <dje@google.com>
15838
15839 * gdbreplay.c (perror_with_name): Make arg const char *.
15840 * server.h (target_signal_to_name): Make return type const char *.
15841 * thread-db.c (thread_db_err_str): Make return type const char *.
15842 * utils.c (perror_with_name): Make arg const char *.
15843
15844 2009-01-14 Pedro Alves <pedro@codesourcery.com>
15845
15846 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
15847 when handling a EXIT_PROCESS_DEBUG_EVENT.
15848
15849 2009-01-06 Joel Brobecker <brobecker@adacore.com>
15850
15851 * gdbreplay.c (gdbreplay_version): Update copyright year.
15852 * server.c (gdbserver_version): Likewise.
15853
15854 2009-01-05 Doug Evans <dje@google.com>
15855
15856 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
15857 (handle_extended_wait): Improve comment.
15858
15859 2008-12-13 Doug Evans <dje@google.com>
15860
15861 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
15862 * server.h (ATTR_MALLOC): New macro.
15863 (xmalloc,xcalloc,xstrdup): Declare.
15864 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
15865 * inferiors.c: Ditto.
15866 * linux-low.c: Ditto.
15867 * mem-break.c: Ditto.
15868 * regcache.c: Ditto.
15869 * remote-utils.c: Ditto.
15870 * server.c: Ditto.
15871 * target.c: Ditto.
15872 * win32-low.c: Ditto.
15873
15874 2008-12-12 Doug Evans <dje@google.com>
15875
15876 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
15877 in debugging printf.
15878
15879 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
15880
15881 2008-12-09 Doug Evans <dje@google.com>
15882
15883 * linux-low.h (struct process_info): Delete member tid, unused.
15884 * thread-db.c (find_one_thread): Update.
15885 (maybe_attach_thread): Update.
15886
15887 2008-12-02 Pedro Alves <pedro@codesourcery.com>
15888
15889 * target.h (struct target_ops): Add qxfer_osdata member.
15890 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
15891 and dirent.h.
15892 (linux_qxfer_osdata): New functions.
15893 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
15894 callback.
15895 * server.c (handle_query): Handle "qXfer:osdata:read:".
15896 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
15897 (buffer_xml_printf): New functions.
15898 * server.h (struct buffer): New.
15899 (buffer_grow_str, buffer_grow_str0): New macros.
15900 (buffer_grow, buffer_free, buffer_init, buffer_finish)
15901 (buffer_xml_printf): Declare.
15902
15903 2008-11-24 Doug Evans <dje@google.com>
15904
15905 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
15906
15907 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
15908
15909 * server.c (handle_v_run): Always use the supplied argument list.
15910
15911 2008-11-19 Bob Wilson <bob.wilson@acm.org>
15912
15913 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
15914 (xtensa_regmap_table): Add entry for scompare1.
15915
15916 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
15917
15918 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
15919 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
15920 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
15921 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
15922 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
15923 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
15924 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
15925 XML target descriptions.
15926 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
15927 when inferior is running on an ISA 2.05 or later processor. Add
15928 special case to return offset for full 64-bit slot of FPSCR when
15929 in 32-bits.
15930
15931 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
15932
15933 * Makefile.in (SFILES, clean): Added sparc64 files.
15934 (reg-sparc64.o, reg-sparc64.c): New.
15935 * configure.srv (sparc*-*-linux*): New configuration.
15936 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
15937 syscall arguments for SPARC.
15938 (regsets_store_inferior_registers): Likewise.
15939 * linux-sparc-low.c: New file.
15940
15941 2008-10-21 Doug Evans <dje@google.com>
15942
15943 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
15944 (READLINE_DIR,READLINE_DEP): Delete.
15945 (INTERNAL_CFLAGS): Update.
15946 (LINTFLAGS): Update.
15947
15948 2008-10-10 Pedro Alves <pedro@codesourcery.com>
15949
15950 * server.c (handle_v_run): If GDB didn't specify an argv, use the
15951 whole argv from the last run, not just argv[0].
15952
15953 2008-09-08 Pedro Alves <pedro@codesourcery.com>
15954
15955 * regcache.c (new_register_cache): Return NULL if the register
15956 cache size isn't known yet.
15957 (free_register_cache): Avoid dereferencing a NULL regcache.
15958
15959 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
15960
15961 * configure.srv: Merge MIPS and MIPS64.
15962
15963 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
15964
15965 * Makefile.in (uninstall): Apply $(EXEEXT) too.
15966
15967 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
15968
15969 * Makefile.in: Add required vsx dependencies.
15970
15971 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
15972 Declare init_registers_powerpc_vsx32l.
15973 Declare init_registers_powerpc_vsx64l.
15974 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
15975 (ppc_arch_setup): Check for VSX in hwcap.
15976 (ppc_fill_vsxregset): New function.
15977 (ppc_store_vsxregset): New function.
15978 Add new VSX entry in regset_info target_regsets.
15979
15980 * configure.srv: Add new VSX dependencies.
15981
15982 2008-08-12 Pedro Alves <pedro@codesourcery.com>
15983
15984 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
15985 (remote_open): Set or clear transport_is_reliable.
15986 (putpkt_binary): Don't expect acks in noack mode.
15987 (getpkt): Don't send ack/nac in noack mode.
15988 * server.c (handle_general_set): Handle QStartNoAckMode.
15989 (handle_query): If connected by tcp pass QStartNoAckMode+ in
15990 qSupported.
15991 (main): Reset noack_mode on every connection.
15992 * server.h (noack_mode): Declare.
15993
15994 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15995
15996 * Makefile.in (GDBREPLAY_OBS): New variable.
15997 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
15998
15999 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16000 Daniel Jacobowitz <dan@codesourcery.com>
16001
16002 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16003 (usr_store_inferior_registers): Likewise.
16004 (regsets_store_inferior_registers): Likewise.
16005
16006 2008-07-31 Rolf Jansen <rj@surtec.com>
16007 Pedro Alves <pedro@codesourcery.com>
16008
16009 * configure.ac: Check for memmem declaration.
16010 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16011 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16012 (disable_packet_qfThreadInfo): Unconditionally compile.
16013 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16014 * configure, config.in: Regenerate.
16015
16016 2008-07-28 Doug Kwan <dougkwan@google.com>
16017
16018 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16019 (linux_write_memory): Remove declaration of errno.
16020
16021 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16022
16023 * linux-low.c (handle_extended_wait): Do not use "status"
16024 variable uninitialized.
16025
16026 2008-07-07 Pedro Alves <pedro@codesourcery.com>
16027
16028 * server.c (handle_v_attach): Inhibit reporting dll changes.
16029
16030 2008-06-27 Pedro Alves <pedro@codesourcery.com>
16031
16032 * remote-utils.c (prepare_resume_reply): If requested, don't
16033 output "thread:TID" in the T stop reply.
16034
16035 * server.c (disable_packet_vCont, disable_packet_Tthread)
16036 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16037 (handle_query): If requested, disable support for qC, qfThreadInfo
16038 and qsThreadInfo.
16039 (handle_v_requests): If requested, disable support for vCont.
16040 (gdbserver_show_disableable): New.
16041 (main): Handle --disable-packet and --disable-packet=LIST.
16042
16043 * server.h (disable_packet_vCont, disable_packet_Tthread)
16044 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16045
16046 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16047
16048 * server.c (gdbserver_usage): Mention --version.
16049
16050 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16051
16052 * Makefile.in (gdbreplay.o): New rule.
16053
16054 2008-06-06 Joseph Myers <joseph@codesourcery.com>
16055
16056 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16057 message, not gdbserver.
16058
16059 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
16060 Nathan Sidwell <nathan@codesourcery.com>
16061 Joseph Myers <joseph@codesourcery.com>
16062
16063 * acinclude.m4: Include ../../config/acx.m4.
16064 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16065 * configure, config.in: Regenerate.
16066 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16067 * server.c (gdbserver_version): Print PKGVERSION.
16068 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16069 (main): Adjust gdbserver_usage calls.
16070 * gdbreplay.c (version, host_name): Add declarations.
16071 (gdbreplay_version, gdbreplay_usage): New.
16072 (main): Accept --version and --help options.
16073
16074 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16075
16076 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16077 (arm_breakpoint_at): Handle Thumb.
16078 (the_low_target): Add comment.
16079
16080 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16081
16082 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16083
16084 2008-05-09 Doug Evans <dje@google.com>
16085
16086 * server.h (decode_search_memory_packet): Declare.
16087 * remote-utils.c (decode_search_memory_packet): New fn.
16088 * server.c (handle_search_memory_1): New fn.
16089 (handle_search_memory): New fn.
16090 (handle_query): Process qSearch:memory packets.
16091
16092 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16093
16094 * regcache.c (registers_length): Remove.
16095 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16096 full register packet.
16097 * regcache.h (registers_length): Remove prototype.
16098 * server.h (PBUFSIZ): Define to 16384.
16099
16100 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16101
16102 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16103 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16104 powerpc-64l.o, and powerpc-altivec64l.o.
16105 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16106 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16107 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16108 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16109 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16110 to srv_xmlfiles.
16111
16112 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16113 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16114 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16115 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16116 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16117 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16118 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16119 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16120 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16121 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16122 (clean): Update.
16123
16124 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16125 (init_registers_powerpc_32l): ... this new prototype.
16126 (init_registers_powerpc_32): Remove, replace by ...
16127 (init_registers_powerpc_altivec32l): ... this new prototype.
16128 (init_registers_powerpc_e500): Remove, replace by ...
16129 (init_registers_powerpc_e500l): ... this new prototype.
16130 (init_registers_ppc64): Remove, replace by ...
16131 (init_registers_powerpc_64l): ... this new prototype.
16132 (init_registers_powerpc_64): Remove, replace by ...
16133 (init_registers_powerpc_altivec64l): ... this new prototype.
16134 (ppc_num_regs): Set to 73.
16135 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16136 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16137 (ppc_cannot_store_register): Handle orig_r3 and trap.
16138 (ppc_arch_setup): Update init_registers_... calls.
16139 (ppc_fill_gregset): Handle orig_r3 and trap.
16140
16141 * inferiors.c (clear_inferiors): Reset current_inferior.
16142
16143 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
16144
16145 * acinclude.m4: Add override.m4.
16146 * configure: Regenerate.
16147
16148 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16149
16150 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16151 initial call to init_register_ppc64.
16152
16153 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16154
16155 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16156 single powerpc*-*-linux* case.
16157 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16158
16159 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16160
16161 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
16162 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
16163 from reg_xmlfiles.
16164 * linux-ppc-low.c: Include <elf.h>.
16165 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16166 (ppc_hwcap): New global variable.
16167 (ppc_regmap): Remove __SPE__ #ifdef sections.
16168 (ppc_regmap_e500): New global variable.
16169 (ppc_cannot_store_register): Update __SPE__ special case.
16170 (ppc_get_hwcap): New function.
16171 (ppc_arch_setup): Use it to determine whether inferior supports
16172 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16173 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16174 Do not access registers if target does not support AltiVec.
16175 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16176 Do not access registers if target does not support SPE.
16177 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16178
16179 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16180
16181 * linux-low.c (disabled_regsets, num_regsets): New.
16182 (use_regsets_p): Delete.
16183 (linux_wait_for_process): Clear disabled_regsets.
16184 (regsets_fetch_inferior_registers): Check and set it.
16185 (regsets_store_inferior_registers): Likewise.
16186 (linux_fetch_registers, linux_store_registers): Do not use
16187 use_regsets_p.
16188 (initialize_low): Allocate disabled_regsets.
16189
16190 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16191
16192 * Makefile.in (LIBOBJS): New.
16193 (OBS): Use LIBOBJS.
16194 (memmem.o): New rule.
16195 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16196 * configure: Regenerated.
16197
16198 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16199
16200 * server.c (handle_query): Never return "unsupported" for
16201 qXfer:features:read queries.
16202
16203 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16204
16205 * server.c (get_features_xml): Fix inverted condition.
16206 (handle_query): Always support qXfer:feature:read.
16207
16208 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16209
16210 * server.c (wrapper_argv): New.
16211 (start_inferior): Handle wrapper_argv. If set, expect an extra
16212 trap.
16213 (gdbserver_usage): Document --wrapper.
16214 (main): Parse --wrapper.
16215
16216 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16217
16218 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16219 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16220 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16221 (ppc_set_pc): Likewise.
16222 (ppc_arch_setup): New function.
16223 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16224 of collect_register.
16225 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
16226
16227 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16228
16229 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16230 instead of linux-ppc64-low.o.
16231 * linux-ppc64-low.c: Remove file.
16232 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16233 (linux-ppc64-low.o): Remove rule.
16234
16235 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16236 (init_registers_powerpc_64): Likewise.
16237 (ppc_regmap): Conditionally define depending on __powerpc64__.
16238 (ppc_cannot_store_register): Do not special-case "fpscr" when
16239 compiled on __powerpc64__.
16240 (ppc_collect_ptrace_register): New function.
16241 (ppc_supply_ptrace_register): New function.
16242 (ppc_breakpoint): Change type to "unsigned int".
16243 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16244 (the_low_target): Conditionally provide initializers for the
16245 arch_setup member depending on __powerpc64__. Install
16246 collect_ptrace_register and supply_ptrace_register members.
16247
16248 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16249
16250 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16251 * server.c (gdbserver_xmltarget): Define.
16252 (get_features_xml): Use it to replace "target.xml" and arch_string.
16253
16254 * configure.srv: Remove srv_xmltarget. Add XML files that were
16255 mentioned there to srv_xmlfiles instead. Remove conditional tests
16256 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16257 srv_xmlfiles and srv_regobj to include all possible choices.
16258 * configure.ac (srv_xmltarget): Remove.
16259 (srv_xmlfiles): Do not add "target.xml".
16260 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16261 checks for supplementary target information.
16262 * configure: Regenerate.
16263 * Makefile.in (XML_TARGET): Remove.
16264 (target.xml): Remove rule.
16265 (clean): Do not clean up target.xml.
16266 (.PRECIOUS): Do not mention target.xml.
16267
16268 * target.h (struct target_ops): Remove arch_string member.
16269 * linux-low.c (linux_arch_string): Remove.
16270 (linux_target_ops): Remove arch_string initializer.
16271 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16272 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16273 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16274 * spu-low.c (spu_arch_string): Remove.
16275 (spu_target_ops): Remove arch_string initializer.
16276 * win32-low.c (win32_arch_string): Remove.
16277 (win32_target_ops): Remove arch_string initializer.
16278 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16279 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16280 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16281
16282 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16283
16284 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16285 by collect_ptrace_register and supply_ptrace_register hooks.
16286 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16287 instead of checking for the_low_target.left_pad_xfer.
16288 (usr_store_inferior_registers): Use collect_ptrace_register callback
16289 instead of checking for the_low_target.left_pad_xfer.
16290
16291 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16292 (s390_supply_ptrace_register): Likewise.
16293 (s390_fill_gregset): Call s390_collect_ptrace_register.
16294 (the_low_target): Update.
16295
16296 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16297 (ppc_supply_ptrace_register): Likewise.
16298 (the_low_target): Update.
16299
16300 * linux-i386-low.c (the_low_target): Update.
16301 * linux-x86-64-low.c (the_low_target): Update.
16302
16303 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16304
16305 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16306 reg-s390.o and reg-s390x.o.
16307
16308 * linux-low.c (new_inferior): New global variable.
16309 (linux_create_inferior, linux_attach): Set it.
16310 (linux_wait_for_process): Call the_low_target.arch_setup after the
16311 target has stopped for the first time.
16312 (initialize_low): Do not call the_low_target.arch_setup.
16313
16314 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16315 (s390_set_pc): Likewise.
16316 (s390_arch_setup): New function.
16317 (the_low_target): Use s390_arch_setup as arch_setup routine.
16318
16319 * regcache.c (realloc_register_cache): New function.
16320 (set_register_cache): Call it for each existing regcache.
16321
16322 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16323
16324 * server.h (init_registers): Remove prototype.
16325
16326 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16327 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16328 instead of init_registers ().
16329 * linux-arm-low.c (init_registers_arm): Add prototype.
16330 (init_registers_arm_with_iwmmxt): Likewise.
16331 (the_low_target): Add initializer for arch_setup field.
16332 * linux-cris-low.c (init_registers_cris): Add prototype.
16333 (the_low_target): Add initializer for arch_setup field.
16334 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16335 (the_low_target): Add initializer for arch_setup field.
16336 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16337 (the_low_target): Add initializer for arch_setup field.
16338 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16339 (the_low_target): Add initializer for arch_setup field.
16340 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16341 (the_low_target): Add initializer for arch_setup field.
16342 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16343 (the_low_target): Add initializer for arch_setup field.
16344 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16345 (init_registers_mips64_linux): Likewise.
16346 (the_low_target): Add initializer for arch_setup field.
16347 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16348 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16349 (the_low_target): Add initializer for arch_setup field.
16350 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16351 (init_registers_powerpc_64): Likewise.
16352 (the_low_target): Add initializer for arch_setup field.
16353 * linux-s390-low.c (init_registers_s390): Add prototype.
16354 (init_registers_s390x): Likewise.
16355 (the_low_target): Add initializer for arch_setup field.
16356 * linux-sh-low.c (init_registers_sh): Add prototype.
16357 (the_low_target): Add initializer for arch_setup field.
16358 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16359 (the_low_target): Add initializer for arch_setup field.
16360 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16361 (the_low_target): Add initializer for arch_setup field.
16362
16363 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16364 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16365 instead of init_registers ().
16366 * win32-arm-low.c (init_registers_arm): Add prototype.
16367 (the_low_target): Add initializer for arch_setup field.
16368 * win32-i386-low.c (init_registers_i386): Add prototype.
16369 (the_low_target): Add initializer for arch_setup field.
16370
16371 * spu-low.c (init_registers_spu): Add prototype.
16372 (initialize_low): Call initialie_registers_spu () instead of
16373 initialize_registers ().
16374
16375 2008-02-19 Pedro Alves <pedro@codesourcery.com>
16376
16377 * server.c (handle_v_requests): When handling the vRun and vAttach
16378 packets, if already debugging a process, don't kill it. Return an
16379 error instead.
16380
16381 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16382
16383 * server.c (handle_query): Correct length check.
16384
16385 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16386
16387 * win32-low.c (do_initial_child_stuff): Add process handle
16388 parameter. Set current_process_handle and current_process_id from the
16389 parameters. Clear globals.
16390 (win32_create_inferior): Don't set current_process_handle and
16391 current_process_id here. Instead pass them on the call to
16392 do_initial_child_stuff.
16393 (win32_attach): Likewise.
16394 (win32_clear_inferiors): New.
16395 (win32_kill): Don't close the current process handle or the
16396 current thread handle here. Instead call win32_clear_inferiors.
16397 (win32_detach): Don't open a new handle to the process. Call
16398 win32_clear_inferiors.
16399 (win32_join): Don't rely on current_process_handle; open a new
16400 handle using the process id.
16401 (win32_wait): Call win32_clear_inferiors when the inferior process
16402 has exited.
16403
16404 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16405
16406 * server.c (monitor_show_help): Add "exit".
16407
16408 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16409
16410 * Makefile.in (SFILES): Add linux-xtensa-low.c.
16411 (clean): Add reg-xtensa.c.
16412 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
16413 * configure.srv (xtensa*-*-linux*) New target.
16414 * linux-xtensa-low.c: New.
16415 * xtensa-xtregs.c: New.
16416
16417 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16418
16419 * hostio.c: Don't include errno.h.
16420 (errno_to_fileio_errno): Move to hostio-errno.
16421 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16422 error number outputting to the target->hostio_last_error callback.
16423 (hostio_packet_error): Use FILEIO_EINVAL directly.
16424 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16425 calls to hostio_error.
16426 * hostio-errno.c: New.
16427 * server.h (hostio_last_error_from_errno): Declare.
16428 * target.h (target_ops): Add hostio_last_error member.
16429 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16430 as hostio_last_error handler.
16431 * spu-low.c (spu_target_ops): Likewise.
16432 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16433 (wince_hostio_last_error): New functions.
16434 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16435 as hostio_last_error handler.
16436 (win32_target_ops) [!_WIN32_WCE]: Register
16437 hostio_last_error_from_errno as hostio_last_error handler.
16438 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16439 (hostio-errno.o): New rule.
16440 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16441 * configure.srv (srv_hostio_err_objs): New variable. Default to
16442 hostio-errno.o.
16443 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16444 * configure: Regenerate.
16445
16446 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16447
16448 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16449 (linux_kill, linux_detach): Clean up the process list.
16450 * remote-utils.c (remote_open): Improve port number parsing.
16451 (putpkt_binary, input_interrupt): Only send interrupts if the target
16452 is running.
16453 * server.c (extended_protocol): Make static.
16454 (attached): Define earlier.
16455 (exit_requested, response_needed, program_argv): New variables.
16456 (target_running): New.
16457 (start_inferior): Clear attached here.
16458 (attach_inferior): Set attached here.
16459 (require_running): Define.
16460 (handle_query): Use require_running and target_running. Implement
16461 "monitor exit".
16462 (handle_v_attach, handle_v_run): New.
16463 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16464 (gdbserver_usage): Update.
16465 (main): Redo argument parsing. Handle --debug and --multi. Handle
16466 --attach along with other options or after the port. Save
16467 program_argv. Support no initial program. Resynchronize
16468 communication with GDB after an error. Handle "monitor exit".
16469 Use require_running and target_running. Always allow the extended
16470 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16471 restart in extended mode.
16472 * README: Refer to the GDB manual. Update --attach usage.
16473
16474 2007-12-20 Andreas Schwab <schwab@suse.de>
16475
16476 * linux-low.c (STACK_SIZE): Define.
16477 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16478 (linux_test_for_tracefork): Likewise.
16479
16480 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16481
16482 * linux-low.c (linux_wait_for_event): Update messages. Do not
16483 reinsert auto-delete breakpoints.
16484 * mem-break.c (struct breakpoint): Change return type of handler to
16485 int.
16486 (set_breakpoint_at): Update handler type.
16487 (reinsert_breakpoint_handler): Return 1 instead of calling
16488 delete_breakpoint.
16489 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16490 setting a new one.
16491 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16492 * mem-break.h (set_breakpoint_at): Update handler type.
16493 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
16494 * win32-low.c (auto_delete_breakpoint): New.
16495 (get_child_debug_event): Use it.
16496
16497 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
16498
16499 * configure.ac: Check for pread and pwrite.
16500 * hostio.c (handle_pread): Fall back to lseek and read.
16501 (handle_pwrite): Fall back to lseek and write.
16502 * config.in, configure: Regenerated.
16503
16504 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
16505
16506 * server.c (myresume): Add own_buf argument.
16507 (main): Update calls.
16508
16509 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
16510
16511 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
16512 * remote-utils.c (remote_open): Do not call disable_async_io.
16513 (block_async_io): Delete.
16514 (unblock_async_io): Make static.
16515 (initialize_async_io): New.
16516 * server.c (handle_v_cont): Handle async I/O here.
16517 (myresume): Likewise. Move other common resume tasks here...
16518 (main): ... from here. Call initialize_async_io. Disable async
16519 I/O before the main loop.
16520 * server.h (initialize_async_io): Declare.
16521 (block_async_io, unblock_async_io): Delete prototypes.
16522 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
16523
16524 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
16525
16526 * remote-utils.c (readchar): Allow binary data in received messages.
16527
16528 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16529
16530 * win32-low.c (attaching): New global.
16531 (win32_create_inferior): Clear the `attaching' global.
16532 (win32_attach): Set the `attaching' global.
16533 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
16534 attaching. Only set a breakpoint at the entry point if not
16535 attaching.
16536
16537 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16538
16539 * server.c (main): Don't report dll events on the initial
16540 connection on attaches.
16541
16542 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16543
16544 * server.c (main): Relax numerical bases supported for the pid of
16545 the --attach command line argument.
16546
16547 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16548
16549 * win32-low.c (win32_attach): Call OpenProcess before
16550 DebugActiveProcess, not after. Add last error output to error
16551 call.
16552
16553 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16554
16555 * win32-low.c (win32_get_thread_context)
16556 (win32_set_thread_context): New functions.
16557 (thread_rec): Use win32_get_thread_context.
16558 (continue_one_thread, win32_resume): Use win32_set_thread_context.
16559 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
16560 field.
16561
16562 2007-12-03 Leo Zayas
16563 Pedro Alves <pedro_alves@portugalmail.pt>
16564
16565 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
16566 global variables.
16567 (child_add_thread): Minor cleanup.
16568 (child_continue): Resume artificially suspended threads before
16569 calling ContinueDebugEvent.
16570 (suspend_one_thread): New.
16571 (fake_breakpoint_event): New.
16572 (get_child_debug_event): Change return type to int. Check here if
16573 gdb sent an interrupt request. If a soft interrupt was requested,
16574 fake a breakpoint event. Return 0 if there is no event to handle,
16575 and 1 otherwise.
16576 (win32_wait): Don't check here if gdb sent an interrupt request.
16577 Ensure there is a valid event to handle.
16578 (win32_request_interrupt): Add soft interruption method as last
16579 resort.
16580
16581 2007-12-03 Leo Zayas
16582 Pedro Alves <pedro_alves@portugalmail.pt>
16583
16584 * win32-low.h (win32_thread_info): Add descriptions to the
16585 structure members. Replace `suspend_count' counter by a
16586 `suspended' flag.
16587 * win32-low.c (thread_rec): Update condition of when to get the
16588 context from the inferior. Rely on ContextFlags being set if it
16589 has already been retrieved. Only suspend the inferior thread if
16590 we haven't already. Warn if that fails.
16591 (continue_one_thread): s/suspend_count/suspended/. Only call
16592 ResumeThread once. Warn if that fails.
16593
16594 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16595
16596 * win32-low.c (win32_wait): Don't read from the inferior when it
16597 has already exited.
16598
16599 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16600
16601 * Makefile.in (win32_low_h): New variable.
16602 (win32-low.o): Add dependency on $(win32_low_h).
16603 (win32-arm-low.o, win32-i386-low.o): New rules.
16604
16605 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16606
16607 * hostio.c: Correct copyright year.
16608
16609 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16610
16611 * Makefile.in (OBS): Add hostio.o.
16612 (hostio.o): New rule.
16613 * server.h (handle_vFile): Declare.
16614 * hostio.c: New file.
16615 * server.c (handle_v_requests): Take packet_len and new_packet_len
16616 for binary packets. Call handle_vFile.
16617 (main): Update call to handle_v_requests.
16618
16619 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
16620
16621 * linux-low.c: Include <sched.h>.
16622
16623 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
16624
16625 * linux-low.c (linux_tracefork_grandchild): New.
16626 (linux_tracefork_child): Use clone.
16627 (linux_test_for_tracefork): Use clone; allocate and free a stack.
16628
16629 2007-10-31 Joel Brobecker <brobecker@adacore.com>
16630
16631 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
16632
16633 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
16634
16635 * linux-low.c (handle_extended_wait): Handle unexpected signals.
16636
16637 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
16638
16639 * inferiors.c (change_inferior_id): Delete.
16640 (add_pid_to_list, pull_pid_from_list): New.
16641 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
16642 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
16643 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
16644 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
16645 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
16646 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
16647 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
16648 (using_threads): Always set to 1.
16649 (handle_extended_wait): New.
16650 (add_process): Do not set TID.
16651 (linux_create_inferior): Set must_set_ptrace_flags.
16652 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
16653 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
16654 (linux_thread_alive): Rename TID argument to LWPID.
16655 (linux_wait_for_process): Handle unknown processes. Do not use TID.
16656 (linux_wait_for_event): Do not use TID or check using_threads. Update
16657 call to dead_thread_notify. Call handle_extended_wait.
16658 (linux_create_inferior): Use PTRACE_SETOPTIONS.
16659 (send_sigstop): Delete sigstop_sent.
16660 (wait_for_sigstop): Avoid TID.
16661 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
16662 (linux_test_for_tracefork): New.
16663 (linux_lookup_signals): Use thread_db_active and
16664 linux_supports_tracefork_flag.
16665 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
16666 * linux-low.h (get_process_thread): Avoid TID.
16667 (struct process_ifo): Move thread_known and tid to the end. Remove
16668 sigstop_sent.
16669 (linux_attach_lwp, thread_db_init): Update prototypes.
16670 * server.h (change_inferior_id): Delete prototype.
16671 (add_pid_to_list, pull_pid_from_list): New prototypes.
16672 * thread-db.c (thread_db_use_events): New.
16673 (find_first_thread): Rename to...
16674 (find_one_thread): ...this. Update callers and messages. Do not
16675 call fatal. Check thread_db_use_events. Do not call
16676 change_inferior_id or new_thread_notify.
16677 (maybe_attach_thread): Update. Do not call new_thread_notify.
16678 (thread_db_init): Set thread_db_use_events. Check use_events.
16679 * utils.c (fatal, warning): Correct message prefix.
16680
16681 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
16682
16683 * Makefile.in (clean): Remove new files.
16684 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
16685 (powerpc-64.o, powerpc-64.c): New rules.
16686 * configure.srv: Use alternate register sets for powerpc64-*-linux*
16687 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
16688 with SPE.
16689 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
16690 SPE targets.
16691 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
16692 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
16693 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
16694 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
16695 (target_regsets): Add AltiVec and SPE register sets.
16696 * configure.ac: Check for AltiVec and SPE.
16697 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
16698 (ppc_fill_vrregset, ppc_store_vrregset): New.
16699 (target_regsets): Add AltiVec register set.
16700 * configure: Regenerated.
16701
16702 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
16703
16704 * linux-low.c (O_LARGEFILE): Define.
16705 (linux_read_memory): Use /proc/PID/mem.
16706 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
16707 * configure, config.in: Regenerated.
16708
16709 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16710
16711 * linux-low.c (linux_wait_for_event): Do not pass signals while
16712 single-stepping.
16713
16714 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16715
16716 * win32-low.c (create_process): New.
16717 (win32_create_inferior): Use create_process instead of
16718 CreateProcess. If create_process failed retry appending an ".exe"
16719 suffix. Store the GetLastError result immediatelly after
16720 create_process calls and use it on the call to error.
16721
16722 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16723
16724 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
16725
16726 2007-08-23 Joel Brobecker <brobecker@adacore.com>
16727
16728 * configure.ac: Switch license to GPLv3.
16729
16730 2007-08-01 Michael Snyder <msnyder@access-company.com>
16731
16732 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
16733
16734 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
16735
16736 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
16737 typedef.
16738 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
16739 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
16740 CloseToolhelp32Snapshot.
16741 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
16742 CloseToolhelp32Snapshot.
16743
16744 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
16745
16746 * server.c (main): Check for inferior exit before main loop.
16747
16748 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
16749
16750 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
16751 instead of on tmp_desc.
16752
16753 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
16754 Daniel Jacobowitz <dan@codesourcery.com>
16755
16756 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
16757 (add_thread): Minor cleanups.
16758 (clear_inferiors): Move lower in the file. Clear the DLL
16759 list.
16760 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
16761 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
16762 (xml_escape_text): New.
16763 * server.c (handle_query): Handle qXfer:libraries:read. Report it
16764 for qSupported.
16765 (handle_v_cont): Report errors.
16766 (gdbserver_version): Update.
16767 (main): Correct size of own_buf. Do not report initial DLL events.
16768 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
16769 (unloaded_dll, xml_escape_text): New.
16770 * win32-low.c (enum target_waitkind): Update comments.
16771 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
16772 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
16773 (win32_EnumProcessModules, win32_GetModuleInformation)
16774 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
16775 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
16776 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
16777 (win32_Module32First, win32_Module32Next, load_toolhelp)
16778 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
16779 (get_child_debug_event): Handle DLL events.
16780 (win32_wait): Likewise.
16781
16782 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16783
16784 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
16785 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
16786
16787 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16788
16789 * win32-low.c (handle_output_debug_string): Ignore event if not
16790 waiting.
16791
16792 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16793
16794 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
16795
16796 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
16797
16798 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
16799
16800 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16801
16802 * inferiors.c (change_inferior_id): Add comment.
16803 * linux-low.c (check_removed_breakpoint): Add an early
16804 prototype. Improve debug output.
16805 (linux_attach): Doc update.
16806 (linux_detach_one_process, linux_detach): Clean up before releasing
16807 each process.
16808 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
16809 * linux-low.h (struct process_info): Doc improvement.
16810 * mem-break.c (delete_all_breakpoints): New.
16811 * mem-break.h (delete_all_breakpoints): New prototype.
16812 * thread-db.c (find_first_thread): New.
16813 (thread_db_create_event): Call it instead of
16814 thread_db_find_new_threads. Clean up unused variables.
16815 (maybe_attach_thread): Remove first thread handling.
16816 (thread_db_find_new_threads): Use find_first_thread.
16817 (thread_db_get_tls_address): Likewise.
16818
16819 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
16820
16821 * thread-db.c (thread_db_find_new_threads): Add prototype.
16822 (thread_db_create_event): Check for the main thread before adding
16823 a new thread.
16824 (maybe_attach_thread): Only enable event reporting if TID == 0.
16825 (thread_db_get_tls_address): Check for new threads.
16826
16827 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
16828
16829 * linux-low.c (linux_create_inferior): Try execv before execvp.
16830 * spu-low.c (spu_create_inferior): Likewise.
16831
16832 2007-06-13 Mike Frysinger <vapier@gentoo.org>
16833
16834 * linux-low.c (linux_create_inferior): Change execv to execvp.
16835 * spu-low.c (spu_create_inferior): Likewies.
16836
16837 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
16838
16839 * Makefile.in (clean): Clean new files instead of deleted ones.
16840 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
16841 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
16842 rules.
16843 * configure.srv: Specify XML files and new regformats for MIPS and
16844 MIPS64 GNU/Linux.
16845 * linux-mips-low.c (mips_num_regs): Set to only used registers.
16846 (mips_regmap): Do not fetch $0. Remove unused registers. Add
16847 an entry for the restart register.
16848 (mips_cannot_fetch_register, mips_cannot_store_register)
16849 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
16850 register names to match the XML descriptions.
16851 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
16852 restart register instead of $0.
16853
16854 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16855 Markus Deuling <deuling@de.ibm.com>
16856
16857 * remote-utils.c (decode_xfer_write): New function.
16858 * server.h (decode_xfer_write): Add prototype.
16859 * server.c (handle_query): Add PACKET_LEN argument. Support
16860 qXfer:spu:read and qXfer:spu:write packets.
16861 (main): Pass packet_len to handle_query.
16862 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
16863 * target.h (target_ops): Add qxfer_spu.
16864
16865 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
16866
16867 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
16868 accessing non-seekable spufs files.
16869
16870 2007-05-16 Markus Deuling <deuling@de.ibm.com>
16871
16872 * server.c (handle_query): Add reply for qC packet.
16873
16874 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16875 Leo Zayas <lerele@champenstudios@com>
16876
16877 * server.h (check_remote_input_interrupt_request): New function.
16878 * remote_utils.c (INVALID_DESCRIPTOR): New define.
16879 (remote_desc): Initialize with INVALID_DESCRIPTOR.
16880 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
16881 (check_remote_input_interrupt_request): New function.
16882 * server.h (check_remote_input_interrupt_request): Declare.
16883 * win32-low.c (winapi_DebugBreakProcess,
16884 winapi_GenerateConsoleCtrlEvent): New typedefs.
16885 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
16886 to 250 ms.
16887 (win32_wait): Check for remote interrupt request
16888 with check_remote_input_interrupt_request.
16889 (win32_request_interrupt): New function.
16890 (win32_target_op): Set request_interrupt to win32_request_interrupt.
16891
16892 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16893
16894 * win32-low.c (debug_registers_changed,
16895 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
16896 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
16897 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
16898 (thread_rec): Get context using the low target.
16899 (child_add_thread): Call thread_added on the low target,
16900 which does the same thing.
16901 (regptr): Delete.
16902 (do_initial_child_stuff): Remove debug registers references.
16903 Set context using the low target. Resume threads after
16904 setting the contexts.
16905 (child_continue): Remove dead variable. Remove debug
16906 registers references.
16907 (child_fetch_inferior_registers): Go through the low target.
16908 (do_child_store_inferior_registers): Remove.
16909 (child_store_inferior_registers): Go through the low target.
16910 (win32_resume): Remove debug registers references.
16911 Set context using the low target.
16912 (handle_exception): Change return type to void. Don't record
16913 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
16914 first chance exception.
16915 (get_child_debug_event): Change return type to void. Remove
16916 goto loop. Always return after waiting for debug event.
16917 (win32_wait): Convert to switch statement. Handle spurious
16918 events.
16919
16920 * win32-i386-low.c (debug_registers_changed,
16921 debug_registers_used): New.
16922 (initial_stuff): Rename to ...
16923 (i386_initial_stuff): ... this. Clear debug registers
16924 state variables.
16925 (store_debug_registers): Delete.
16926 (i386_get_thread_context): New.
16927 (load_debug_registers): Delete.
16928 (i386_set_thread_context): New.
16929 (i386_thread_added): New.
16930 (single_step): Rename to ...
16931 (i386_single_step): ... this.
16932 (do_fetch_inferior_registers): Rename to ...
16933 (i386_fetch_inferior_register): ... this.
16934 (i386_store_inferior_register): New.
16935 (the_low_target): Adapt to new interface.
16936
16937 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
16938 (arm_get_thread_context): New.
16939 (arm_set_thread_context): New.
16940 (regptr): New.
16941 (do_fetch_inferior_registers): Rename to ...
16942 (arm_fetch_inferior_register): ... this.
16943 (arm_store_inferior_register): New.
16944 (arm_wince_breakpoint): Reimplement as unsigned long.
16945 (arm_wince_breakpoint_len): Define.
16946 (the_low_target): Adapt to new interface.
16947
16948 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
16949 load_debug_registers. Add get_thread_context, set_thread_context,
16950 thread_added and store_inferior_register. Rename
16951 fetch_inferior_registers to fetch_inferior_register.
16952 (regptr): Remove declaration.
16953
16954 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16955
16956 * linux-low.c (linux_detach): Change return type to int. Return 0.
16957 * spu-low.c (spu_detach): Likewise.
16958
16959 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16960
16961 * target.h (target_ops): Change return type of detach to int.
16962 Add join.
16963 (join_inferior): New.
16964 * server.c (main): Don't skip detach support on mingw32.
16965 If the inferior doesn't support detaching return error.
16966 Call join_inferior instead of using waitpid.
16967 * linux-low.c (linux_join): New.
16968 (linux_target_op): Add linux_join.
16969 * spu-low.c (spu_join): New.
16970 (spu_target_ops): Add spu_join.
16971 * win32-low.c (win32_detach): Adapt to new interface.
16972 Reopen current_process_handle before detaching. Issue a child
16973 resume before detaching.
16974 (win32_join): New.
16975 (win32_target_op): Add win32_join.
16976
16977 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16978
16979 * win32-low.c (win32-attach): Fix return value.
16980 * target.h (target_ops): Describe ATTACH return values.
16981
16982 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16983
16984 * win32-low.c (GETPROCADDRESS): Define.
16985 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
16986 (winapi_DebugSetProcessKillOnExit): Likewise.
16987 (win32_create_inferior): Force usage of ansi CreateProcessA.
16988 (win32_attach): Use GETPROCADDRESS.
16989 (win32_detach): Likewise.
16990
16991 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
16992
16993 * win32-low.c (win32_wait): Don't use WSTOPSIG.
16994
16995 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
16996
16997 * win32-low.c: Commit leftover changes from 2007-03-29.
16998
16999 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17000
17001 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17002 fields short instead of int. Add explicit padding.
17003 (i387_cache_to_fsave): Remove unnecessary casts.
17004 (i387_fsave_to_cache): Doc fix.
17005 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17006
17007 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17008
17009 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17010 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17011
17012 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17013
17014 * configure.srv (arm*-*-mingw32ce*): Move near the other
17015 arm targets.
17016
17017 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17018
17019 * configure.ac: Add errno checking.
17020 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17021 sys/file.h and malloc.h.
17022 (AC_CHECK_DECLS): Add perror.
17023 (srv_mingwce): Handle.
17024 * configure.srv (i[34567]86-*-cygwin*): Add
17025 win32-i386-low.o to srv_tgtobj.
17026 (i[34567]86-*-mingw*): Likewise.
17027 (arm*-*-mingw32ce*): Add case.
17028 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17029 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17030 [__MINGW32CE__] (strerror): New function.
17031 [__MINGW32CE__] (errno): Define to GetLastError.
17032 [__MINGW32CE__] (COUNTOF): New macro.
17033 (remote_open): Remove extra close call.
17034 * mem-break.c (delete_breakpoint_at): New function.
17035 * mem-break.h (delete_breakpoint_at): Declare.
17036 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17037 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17038 [USE_WIN32API] (read, write): Add char* casts.
17039 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17040 * server.h: Include wincecompat.h on Windows CE.
17041 [HAVE_ERRNO_H]: Check.
17042 (perror): Declare if not declared.
17043 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17044 (perror_with_name): Remove errno declaration.
17045 * wincecompat.h: New.
17046 * wincecompat.c: New.
17047 * win32-low.h: New.
17048 * win32-arm-low.c: New.
17049 * win32-i386-low.c: New.
17050 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17051 (OUTMSG2): Make it safe.
17052 (_T): New macro.
17053 (COUNTOF): New macro.
17054 (NUM_REGS): Get it from the low target.
17055 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17056 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17057 (thread_rec): Let low target handle debug registers.
17058 (child_add_thread): Likewise.
17059 (child_init_thread_list): Likewise.
17060 (continue_one_thread): Likewise.
17061 (regptr): New.
17062 (do_child_fetch_inferior_registers): Move to ...
17063 * win32-i386-low.c: ... here, and rename to ...
17064 (do_fetch_inferior_registers): ... this.
17065 * win32-low.c (child_fetch_inferior_registers):
17066 Go through the low target.
17067 (do_child_store_inferior_registers): Use regptr.
17068 (strwinerror): New function.
17069 (win32_create_inferior): Handle Windows CE.
17070 Use strwinerror instead of strerror on Windows error
17071 codes. Add program to the error output.
17072 Don't close the main thread handle on Windows CE.
17073 (win32_attach): Use coredll.dll on Windows CE.
17074 (win32_kill): Close current process and current
17075 thread handles.
17076 (win32_detach): Use coredll.dll on Windows CE.
17077 (win32_resume): Let low target handle debug registers, and
17078 step request.
17079 (handle_exception): Add/Remove initial breakpoint. Avoid
17080 non-existant WSTOPSIG on Windows CE.
17081 (win32_read_inferior_memory): Cast to remove warning.
17082 (win32_arch_string): Go through the low target.
17083 (initialize_low): Call set_breakpoint_data with the low
17084 target's breakpoint.
17085 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17086 FOP_REGNUM, mappings): Move to ...
17087 * win32-i386-low.c: ... here.
17088 * win32-low.c (win32_thread_info): Move to ...
17089 * win32-low.h: ... here.
17090 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17091 win32-arm-low.c and wincecompat.c.
17092 (all:): Add $EXEEXT.
17093 (install-only:): Likewise.
17094 (gdbserver:): Likewise.
17095 (gdbreplay:): Likewise.
17096 * config.in: Regenerate.
17097 * configure: Regenerate.
17098
17099 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17100
17101 * win32-low.c: Rename typedef thread_info to
17102 win32_thread_info throughout.
17103
17104 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17105
17106 * win32-i386-low.c: Rename to ...
17107 * win32-low.c: ... this.
17108 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17109 * Makefile.in: Likewise.
17110
17111 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17112
17113 * remote-utils.c (monitor_output): Constify msg parameter.
17114 * server.h (monitor_output): Likewise.
17115 * win32-i386-low.c (handle_output_debug_string): New.
17116 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17117 handle_output_debug_string.
17118 (get_child_debug_event): Likewise.
17119
17120 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17121
17122 * server.c (main): Correct strtoul check.
17123
17124 2007-03-27 Jon Ringle <jon@ringle.org>
17125
17126 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17127
17128 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17129
17130 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17131
17132 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17133
17134 * terminal.h: Check HAVE_SGTTY_H.
17135
17136 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
17137
17138 * remote-utils.c (remote_open): Print out the assigned port number.
17139
17140 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17141
17142 * remote-utils.c (monitor_output): New function.
17143 * server.c (debug_threads): Define here.
17144 (monitor_show_help): New function.
17145 (handle_query): Handle qRcmd.
17146 (main): Do not handle 'd' packet.
17147 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17148 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17149 of debug_threads.
17150
17151 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17152
17153 * Makefile.in (EXEEXT): New.
17154 (clean): Use $(EXEEXT).
17155
17156 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17157
17158 * target.h (target_ops): Rename send_signal to request_interrupt,
17159 and remove enum target_signal parameter.
17160 * linux-low.c (linux_request_interrupt): Rename from
17161 linux_send_signal, and always send SIGINT.
17162 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17163 and always send SIGINT.
17164 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17165 of send_signal.
17166 (input_interrupt): Likewise.
17167
17168 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17169
17170 * server.c (get_features_xml): Check if target implemented
17171 arch_string.
17172 * win32-i386-low.c (win32_arch_string): New.
17173 (win32_target_ops): Add win32_arch_string as arch_string member.
17174
17175 2007-02-22 Markus Deuling <deuling@de.ibm.com>
17176
17177 * spu-low.c (spu_arch_string): New.
17178 (spu_target_ops): Add spu_arch_string.
17179
17180 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17181
17182 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17183 * configure.ac: Do not check for terminal.h.
17184 * configure, config.in: Regenerated.
17185
17186 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17187
17188 * Makefile.in (OBS): Add $(XML_BUILTIN).
17189 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17190 (clean): Update.
17191 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17192 (arm-with-iwmmxt.c): New.
17193 * config.in, configure: Regenerate.
17194 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17195 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17196 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17197 (arm*-*-linux*): Add iWMMXt and regset support.
17198 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17199 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17200 (arm_store_wmmxregset, target_regsets): New.
17201 * server.c (get_features_xml): Take annex argument. Check builtin
17202 XML documents.
17203 (handle_query): Handle multiple annexes.
17204
17205 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17206
17207 * remote-utils.c [USE_WIN32API] (read, write): Define.
17208 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17209 write.
17210
17211 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17212
17213 * linux-i386-low.c (the_low_target): Set arch_string.
17214 * linux-x86-64-low.c (the_low_target): Likewise.
17215 * linux-low.c (linux_arch_string): New.
17216 (linux_target_ops): Add it.
17217 * linux-low.h (struct linux_target_ops): Add arch_string.
17218 * server.c (write_qxfer_response): Use const void * for DATA.
17219 (get_features_xml): New.
17220 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17221 * target.h (struct target_ops): Add arch_string method.
17222
17223 2007-01-03 Denis Pilat <denis.pilat@st.com>
17224 Daniel Jacobowitz <dan@codesourcery.com>
17225
17226 * linux-low.c (linux_kill): Handle being called with no threads.
17227 * win32-i386-low.c (win32_kill): Likewise.
17228 (get_child_debug_event): Clear current_process_handle.
17229
17230 2006-12-30 Denis PILAT <denis.pilat@st.com>
17231 Daniel Jacobowitz <dan@codesourcery.com>
17232
17233 * remote-utils.c (remote_open): Check the type of specified
17234 serial port devices before opening them.
17235 * server.c (main): Kill the inferior if an error occurs during
17236 the first remote_open.
17237
17238 2006-12-05 Markus Deuling <deuling@de.ibm.com>
17239
17240 * README: Update supported targets.
17241
17242 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17243
17244 * Makefile.in (clean): Remove reg-mips64.c.
17245 (reg-mips64.c, reg-mips64.o): New rules.
17246 * configure.srv: Handle mips64. Include regset support for mips.
17247 * linux-mips-low.c (union mips_register): New.
17248 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17249 (mips_breakpoint, mips_breakpoint_at): Use int.
17250 (mips_collect_register, mips_supply_register)
17251 (mips_collect_register_32bit, mips_supply_register_32bit)
17252 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17253 (mips_store_fpregset, target_regsets): New.
17254 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17255
17256 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17257
17258 * configure.srv: Add target "spu*-*-*".
17259 * Makefile.in (clean): Remove reg-spu.c.
17260 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17261 * spu-low.c: New file.
17262
17263 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17264
17265 * configure.ac: Correct td_thr_tls_get_addr test.
17266 * configure: Regenerated.
17267
17268 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17269
17270 * linux-low.c (linux_wait_for_event): Reformat. Use the
17271 pass_signals array.
17272 * remote-utils.c (decode_address_to_semicolon): New.
17273 * server.c (pass_signals, handle_general_set): New.
17274 (handle_query): Mention QPassSignals for qSupported.
17275 (main): Call handle_general_set.
17276 * server.h (pass_signals, decode_address_to_semicolon): New.
17277
17278 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17279
17280 * server.c (handle_query): Correct error handling for read_auxv.
17281
17282 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17283
17284 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17285 and srv_linux_thread_db to yes.
17286 * linux-s390-low.c (s390_fill_gregset): New function.
17287 (target_regsets): Define data structure.
17288
17289 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17290
17291 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17292 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17293 * config.in, configure: Regenerated.
17294 * inferiors.c (gdb_id_to_thread): New function.
17295 (gdb_id_to_thread_id): Use it.
17296 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17297 * linux-low.h (struct process_info): Add th member.
17298 (thread_db_get_tls_address): New prototype.
17299 * remote-utils.c (decode_address): Make non-static.
17300 * server.c (handle_query): Handle qGetTLSAddr.
17301 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17302 * target.h (struct target_ops): Add get_tls_address.
17303 * thread-db.c (maybe_attach_thread): Save the thread handle.
17304 (thread_db_get_tls_address): New.
17305
17306 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17307
17308 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17309 (linux_resume_one_process): Take a siginfo_t *. Update all
17310 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17311 (struct pending_signals): Add a siginfo_t.
17312 (linux_wait_for_process): Always set last_status.
17313 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17314 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17315 * linux-low.h (struct process_info): Add last_status.
17316
17317 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17318
17319 * remote-utils.c (try_rle): New function.
17320 (putpkt_binary): Use it.
17321
17322 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17323
17324 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17325 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17326 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17327 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17328 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17329 point registers.
17330
17331 2006-08-08 Richard Sandiford <richard@codesourcery.com>
17332
17333 * server.c (terminal_fd): New variable.
17334 (old_foreground_pgrp): Likewise.
17335 (restore_old_foreground_pgrp): New function.
17336 (start_inferior): Record the terminal file descriptor in terminal_fd
17337 and its original foreground group in old_foreground_pgrp. Register
17338 restore_old_foreground_pgrp with atexit().
17339
17340 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17341
17342 * server.c (handle_query): Correct qPart to qXfer.
17343
17344 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17345
17346 * configure.ac: Check for more headers which are missing on
17347 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17348 * configure.srv: Add Cygwin and mingw32.
17349 * remote-utils.c: Don't include headers unconditionally which
17350 are missing on mingw32. Include <winsock.h> for mingw32.
17351 (remote_open): Adjust for mingw32 support. Flush
17352 standard error after writing to it.
17353 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17354 (unblock_async_io, enable_async_io, disable_async_io)
17355 (readchar, getpkt): Update for Winsock support.
17356 (prepare_resume_reply): Expect a protocol signal number.
17357 * server.c: Disable <sys/wait.h> on mingw32.
17358 (start_inferior): Adjust for mingw32 support. Flush
17359 standard error after writing to it.
17360 (attach_inferior): Likewise. Use protocol signal
17361 numbers.
17362 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17363 and names.
17364 * win32-i386-low.c: New file.
17365 * Makefile.in (XM_CLIBS): Set.
17366 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17367 (win32-i386-low.o): New dependency rule.
17368 * linux-low.c (linux_wait): Use target signal numbers.
17369 * target.h (struct target_ops): Doc fix.
17370 * server.h (target_signal_to_name): New prototype.
17371 * gdbreplay.c: Don't include headers unconditionally which
17372 are missing on mingw32. Include <winsock.h> for mingw32.
17373 (remote_close, remote_open): Adjust for Winsock support.
17374 * configure, config.in: Regenerated.
17375
17376 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17377
17378 * server.c (decode_xfer_read, write_qxfer_response): New.
17379 (handle_query): Take a packet length argument. Handle
17380 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17381 the qSupported response.
17382 (main): Update call to handle_query.
17383
17384 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17385
17386 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17387 (putpkt_binary): Renamed from putpkt and adjusted for binary
17388 data.
17389 (putpkt): New wrapper for putpkt_binary.
17390 (readchar): Don't mask off the high bit.
17391 (decode_X_packet): New function.
17392 * server.c (main): Call putpkt_binary if a handler sets the packet
17393 length. Save the length of the incoming packet. Handle 'X'.
17394 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17395
17396 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17397
17398 * server.c (handle_query): Handle qSupported.
17399
17400 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17401
17402 * remote-utils.c (all_symbols_looked_up): New variable.
17403 (look_up_one_symbol): Check it.
17404 * server.h (look_up_one_symbol): New declaration.
17405 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17406
17407 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17408
17409 * Makefile.in (linux-arm-low.o): Update dependencies.
17410 * linux-arm-low.c: Include "gdb_proc_service.h".
17411 (PTRACE_GET_THREAD_AREA): Define.
17412 (ps_get_thread_area): New function.
17413
17414 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17415
17416 * configure.srv (m68k*-*-uclinux*): New target.
17417 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17418 (linux_resume_one_process): Remove extraneous cast.
17419 (linux_read_offsets): New.
17420 (linux_target_op): Add linux_read_offsets on mmuless systems.
17421 * server.c (handle_query): Add qOffsets logic.
17422 * target.h (struct target_ops): Add read_offsets.
17423
17424 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17425
17426 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17427 (PTRACE_GET_THREAD_AREA): Define.
17428 (ps_get_thread_area): New function.
17429 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17430 (linux-x86-64-low.o): Update.
17431
17432 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17433
17434 * configure.ac: Remove checks for prfpregset_t.
17435 * gdb_proc_service.h: New file.
17436 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17437 new "gdb_proc_service.h".
17438 * proc-service.c: Likewise.
17439 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17440 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17441 * Makefile.in (gdb_proc_service_h): Updated.
17442 * configure, config.in: Regenerated.
17443
17444 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17445
17446 * remote-utils.c (prepare_resume_reply): Move declaration
17447 of gdb_id_from_wait to the top of the block.
17448
17449 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17450
17451 * linux-low.c (regsets_store_inferior_registers): Read the regset
17452 from the target before filling it.
17453
17454 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17455
17456 * server.c (attach_inferior): Return SIGTRAP for a successful
17457 attach.
17458
17459 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17460
17461 * Makefile.in (OBS): Add version.o.
17462 (STAGESTUFF): Delete.
17463 (version.o): Add dependencies.
17464 (version.c): Replace rule.
17465 (clean): Remove version.c.
17466 * server.c (gdbserver_version): New.
17467 (gdbserver_usage): Use printf.
17468 (main): Handle --version and --help.
17469 * server.h (version, host_name): Add declarations.
17470
17471 2005-12-23 Eli Zaretskii <eliz@gnu.org>
17472
17473 * linux-arm-low.c:
17474 * linux-arm-low.c:
17475 * inferiors.c:
17476 * i387-fp.h:
17477 * i387-fp.c:
17478 * gdbreplay.c:
17479 * regcache.c:
17480 * proc-service.c:
17481 * mem-break.h:
17482 * mem-break.c:
17483 * linux-x86-64-low.c:
17484 * linux-sh-low.c:
17485 * linux-s390-low.c:
17486 * linux-ppc64-low.c:
17487 * linux-ppc-low.c:
17488 * linux-mips-low.c:
17489 * linux-m68k-low.c:
17490 * linux-m32r-low.c:
17491 * linux-low.h:
17492 * linux-low.c:
17493 * linux-ia64-low.c:
17494 * linux-i386-low.c:
17495 * linux-crisv32-low.c:
17496 * thread-db.c:
17497 * terminal.h:
17498 * target.h:
17499 * target.c:
17500 * server.h:
17501 * server.c:
17502 * remote-utils.c:
17503 * regcache.h:
17504 * utils.c:
17505 * Makefile.in:
17506 * configure.ac:
17507 * gdbserver.1: Add (C) after Copyright. Update the FSF
17508 address.
17509
17510 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17511
17512 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
17513 (arm_breakpoint_at): Recognize both breakpoints.
17514 (the_low_target): Use the correct breakpoint instruction.
17515
17516 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
17517
17518 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
17519 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
17520 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
17521 (the_low_target): Update.
17522
17523 2005-10-25 Andreas Schwab <schwab@suse.de>
17524
17525 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17526
17527 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
17528 (ia64_num_regs): Reduce to 462.
17529
17530 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
17531
17532 * acinclude.m4: Correct quoting.
17533 * aclocal.m4: Regenerated.
17534
17535 Suggested by SZOKOVACS Robert <szo@ies.hu>:
17536 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
17537 (thread_db_init): Call thread_db_err_str.
17538 * configure.ac: Check for TD_VERSION.
17539 * config.in, configure: Regenerated.
17540
17541 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17542
17543 * server.h (error, fatal, warning): Add ATTR_FORMAT.
17544
17545 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17546
17547 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
17548 is not available. Define HAVE_PTRACE_GETREGS if it is.
17549 * config.in, configure: Regenerated.
17550 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
17551 * linux-i386-low.c, linux-m68k-low.c: Update to use
17552 HAVE_PTRACE_GETREGS.
17553 * linux-low.c (regsets_fetch_inferior_registers)
17554 (regsets_store_inferior_registers): Only return 0 if we processed
17555 GENERAL_REGS.
17556 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
17557 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
17558
17559 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17560
17561 * inferiors.c (struct thread_info): Add gdb_id.
17562 (add_thread): Add gdb_id argument.
17563 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
17564 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
17565 calls to add_thread.
17566 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
17567 * server.c (handle_query): Use thread_to_gdb_id.
17568 (handle_v_cont, main): Use gdb_id_to_thread_id.
17569 * server.h (add_thread): Update prototype.
17570 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
17571 prototypes.
17572
17573 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17574
17575 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
17576 left-padded registers.
17577 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
17578 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
17579
17580 2005-07-01 Steve Ellcey <sje@cup.hp.com>
17581
17582 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
17583 * configure: Regenerate.
17584 * config.in: Regenerate.
17585 * server.h (NEED_DECLARATION_STRERROR):
17586 Replace with !HAVE_DECL_STRERROR.
17587
17588 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
17589
17590 * linux-low.c (linux_wait, linux_send_signal): Don't test
17591 an unsigned long variable for > 0 if it could be MAX_ULONG.
17592 * server.c (myresume): Likewise.
17593 * target.c (set_desired_inferior): Likewise.
17594
17595 2005-06-13 Mark Kettenis <kettenis@gnu.org>
17596
17597 * configure.ac: Simplify and improve check for socklen_t.
17598 * configure, config.in: Regenerate.
17599
17600 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
17601
17602 * acconfig.h: Remove.
17603 * configure.ac: Add a test for socklen_t. Use three-argument
17604 AC_DEFINE throughout.
17605 * config.in: Regenerated using autoheader 2.59.
17606 * configure: Regenerated.
17607
17608 * gdbreplay.c (socklen_t): Provide a default.
17609 (remote_open): Use socklen_t.
17610 * remote-utils.c (socklen_t): Provide a default.
17611 (remote_open): Use socklen_t.
17612 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
17613 unsigned char.
17614
17615 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
17616 char for buffers.
17617 * linux-low.c (linux_read_memory, linux_write_memory)
17618 (linux_read_auxv): Likewise.
17619 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
17620 (check_mem_write): Likewise.
17621 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
17622 Likewise.
17623 * regcache.c (struct inferior_rgcache_data, registers_to_string)
17624 (registers_from_string, register_data): Likewise.
17625 * server.c (handle_query, main): Likewise.
17626 * server.h (convert_ascii_to_int, convert_int_to_ascii)
17627 (decode_M_packet): Likewise.
17628 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
17629 * target.h (struct target_ops): Update read_memory, write_memory,
17630 and read_auxv.
17631 (read_inferior_memory, write_inferior_memory): Update.
17632 * linux-low.h (struct linux_target_ops): Change type of breakpoint
17633 to unsigned char *.
17634 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
17635 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
17636 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
17637 linux-s390-low.c, linux-sh-low.c: Update for changes in
17638 read_inferior_memory and the_low_target->breakpoint.
17639
17640 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
17641
17642 * Makefile.in (SFILES): Add linux-ppc64-low.c.
17643 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
17644 * configure.srv: Add powerpc64-*-linux*.
17645 * linux-ppc64-low.c: New file.
17646
17647 2005-05-23 Orjan Friberg <orjanf@axis.com>
17648
17649 * linux-cris-low.c: New file with support for CRIS.
17650 * linux-crisv32-low.c: Ditto for CRISv32.
17651 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
17652 (clean): Add reg-cris.c and reg-crisv32.c.
17653 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
17654 reg-crisv32.o, and reg-crisv32.c to make rules.
17655 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
17656 recognized targets.
17657
17658 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
17659
17660 * linux-low.c (fetch_register): Ensure buffer size is a multiple
17661 of sizeof (PTRACE_XFER_TYPE).
17662 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
17663
17664 2005-05-12 Orjan Friberg <orjanf@axis.com>
17665
17666 * target.h (struct target_ops): Add insert_watchpoint,
17667 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
17668 pointers for hardware watchpoint support.
17669 * linux-low.h (struct linux_target_ops): Ditto.
17670 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
17671 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
17672 to linux_target_ops.
17673 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
17674 reply packet.
17675 * server.c (main): Recognize 'Z' and 'z' packets.
17676
17677 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
17678
17679 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
17680 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
17681 (the_low_target): Add new members.
17682
17683 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17684
17685 * proc-service.c (ps_lgetregs): Search all_processes instead of
17686 all_threads.
17687
17688 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17689
17690 * server.c (start_inferior): Change return type to int.
17691 (attach_inferior): Change sigptr to int *.
17692 (handle_v_cont, handle_v_requests): Change signal to int *.
17693 (main): Change signal to int.
17694
17695 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
17696
17697 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
17698 * configure.srv: Add m32r*-*-linux*.
17699 * linux-m32r-low.c: New file.
17700
17701 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
17702
17703 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
17704
17705 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17706
17707 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
17708 Take unsigned long arguments for PIDs.
17709 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
17710 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
17711 (wait_for_sigstop, linux_resume_one_process)
17712 (regsets_fetch_inferior_registers, linux_send_signal)
17713 (linux_read_auxv): Likewise. Update the types of variables holding
17714 PIDs. Update format string specifiers.
17715 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
17716 * remote-utils.c (prepare_resume_reply): Likewise.
17717 * server.c (cont_thread, general_thread, step_thread)
17718 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
17719 unsigned long.
17720 (handle_query): Update format specifiers.
17721 (handle_v_cont, main): Use strtoul for thread IDs.
17722 * server.h (struct inferior_list_entry): Use unsigned long for ID.
17723 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
17724 (general_thread, step_thread, thread_from_wait)
17725 (old_thread_from_wait): Update.
17726 * target.h (struct thread_resume): Use unsigned long for THREAD.
17727 (struct target_ops): Use unsigned long for arguments to attach and
17728 thread_alive.
17729
17730 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
17731
17732 * acinclude.m4: Include bfd/bfd.m4 directly.
17733 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
17734 <agriffis@toolchain.org>.
17735 * aclocal.m4, configure: Regenerated.
17736
17737 2005-01-07 Andrew Cagney <cagney@gnu.org>
17738
17739 * configure.ac: Rename configure.in, require autoconf 2.59.
17740 * configure: Re-generate.
17741
17742 2004-12-08 Daniel Jacobowitz <dan@debian.org>
17743
17744 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
17745 LIBS when finished.
17746 * aclocal.m4: Regenerated.
17747 * configure: Regenerated.
17748
17749 2004-11-21 Andreas Schwab <schwab@suse.de>
17750
17751 * linux-m68k-low.c (m68k_num_gregs): Define.
17752 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
17753 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
17754 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
17755 (m68k_breakpoint_at): New. Add to the_low_target.
17756
17757 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
17758 srv_linux_thread_db to yes.
17759
17760 2004-10-20 Joel Brobecker <brobecker@gnat.com>
17761
17762 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
17763 (ARCH_SET_FS): Likewise.
17764 (ARCH_GET_FS): Likewise.
17765 (ARCH_GET_GS): Likewise.
17766
17767 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17768
17769 * linux-i386-low.c (ps_get_thread_area): New.
17770 * linux-x86-64-low.c (ps_get_thread_area): New.
17771 * linux-low.c: Include <sys/syscall.h>.
17772 (linux_kill_one_process): Don't kill the first thread here.
17773 (linux_kill): Kill the first thread here.
17774 (kill_lwp): New function.
17775 (send_sigstop, linux_send_signal): Use it.
17776 * proc-service.c: Clean up #ifdefs.
17777 (fpregset_info): Delete.
17778 (ps_lgetregs): Update and enable implementation.
17779 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
17780 implementations.
17781 * remote-utils.c (struct sym_cache, symbol_cache): New.
17782 (input_interrupt): Print a clearer message.
17783 (async_io_enabled): New variable.
17784 (enable_async_io, disable_async_io): Use it. Update comments.
17785 (look_up_one_symbol): Use the symbol cache.
17786 * thread-db.c (thread_db_look_up_symbols): New function.
17787 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
17788
17789 2004-10-16 Daniel Jacobowitz <dan@debian.org>
17790
17791 * configure.in: Test for -rdynamic.
17792 * configure: Regenerated.
17793 * Makefile (INTERNAL_LDFLAGS): New.
17794 (gdbserver, gdbreplay): Use it.
17795
17796 2004-09-02 Andrew Cagney <cagney@gnu.org>
17797
17798 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
17799
17800 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
17801
17802 * linux-low.c (linux_wait): Clear all_processes list also.
17803
17804 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17805
17806 * linux-low.c: Include <errno.h>. Remove extern declaration of
17807 errno.
17808
17809 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
17810
17811 * gdbreplay.c, server.h, utils.c: Update copyright years.
17812
17813 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17814
17815 * server.c (main): Print child status or termination signal from
17816 variable 'signal', not 'sig'.
17817
17818 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
17819
17820 * linux-low.c (linux_read_memory): Change return type to
17821 int. Check for and return error from ptrace().
17822 * target.c (read_inferior_memory): Change return type to int. Pass
17823 back return status from the_target->read_memory().
17824 * target.h (struct target_ops): Adapt *read_memory() prototype.
17825 Update comment.
17826 (read_inferior_memory): Adapt prototype.
17827 * server.c (main): Return an error packet if
17828 read_inferior_memory() returns an error.
17829
17830 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
17831
17832 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
17833 Unify with other clean targets.
17834
17835 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17836
17837 * server.c (handle_v_cont): Call set_desired_inferior.
17838
17839 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17840
17841 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
17842
17843 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17844
17845 * linux-low.c (linux_wait): Unblock async I/O.
17846 (linux_resume): Block and enable async I/O.
17847 * remote-utils.c (block_async_io, unblock_async_io): New functions.
17848 * server.h (block_async_io, unblock_async_io): Add prototypes.
17849
17850 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17851
17852 * remote-utils.c (remote_open): Print a status notice after
17853 opening a TCP port.
17854 * server.c (attach_inferior): Print a status notice after
17855 attaching.
17856
17857 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
17858
17859 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
17860
17861 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
17862
17863 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
17864 error packet.
17865 * server.c, target.h: Update copyright years.
17866
17867 2004-02-25 Roland McGrath <roland@redhat.com>
17868
17869 * target.h (struct target_ops): New member `read_auxv'.
17870 * server.c (handle_query): Handle qPart:auxv:read: query using that.
17871 * linux-low.c (linux_read_auxv): New function.
17872 (linux_target_ops): Initialize `read_auxv' member to that.
17873
17874 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17875
17876 Committed by Jim Blandy <jimb@redhat.com>.
17877
17878 * linux-s390-low.c (s390_num_regs): Update.
17879 (s390_regmap): Remove control registers. Use __s390x__ predefine
17880 instead of GPR_SIZE to distiguish s390 and s390x targets.
17881
17882 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
17883
17884 * linux-low.c: Update copyright year.
17885 (check_removed_breakpoint): Clear pending_is_breakpoint.
17886 (linux_set_resume_request, linux_queue_one_thread)
17887 (resume_status_pending_p): New functions.
17888 (linux_continue_one_thread): Use process->resume.
17889 (linux_resume): Only resume threads if there are no pending events.
17890 * linux-low.h (struct process_info): Add resume request
17891 pointer.
17892
17893 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
17894
17895 * regcache.c (new_register_cache): Clear the allocated register
17896 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
17897
17898 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
17899
17900 * linux-low.c (linux_resume): Take a struct thread_resume *
17901 argument.
17902 (linux_wait): Update call.
17903 (resume_ptr): New static variable.
17904 (linux_continue_one_thread): Renamed from
17905 linux_continue_one_process. Use resume_ptr.
17906 (linux_resume): Use linux_continue_one_thread.
17907 * server.c (handle_v_cont, handle_v_requests): New functions.
17908 (myresume): New function.
17909 (main): Handle 'v' case.
17910 * target.h (struct thread_resume): New type.
17911 (struct target_ops): Change argument of "resume" to struct
17912 thread_resume *.
17913 (myresume): Delete macro.
17914
17915 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
17916
17917 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
17918 (uninstall): Support DESTDIR.
17919
17920 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
17921
17922 * configure.srv: Add xscale*linux copy of arm*linux entry.
17923
17924 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
17925
17926 * linux-arm-low.c (arm_reinsert_addr): New function.
17927 (the_low_target): Add arm_reinsert_addr.
17928
17929 2003-07-08 Mark Kettenis <kettenis@gnu.org>
17930
17931 * mem-break.c: Remove whitespace at end of file.
17932
17933 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17934
17935 * configure.in: Check whether we need to prototype strerror.
17936 * server.h: Optionally prototype strerror.
17937 * gdbreplay.c (perror_with_name): Use strerror.
17938 * linux-low.c (linux_attach_lwp): Use strerror.
17939 * utils.c (perror_with_name): Use strerror.
17940 * config.in, configure: Regenerated.
17941
17942 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
17943
17944 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
17945 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
17946
17947 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
17948
17949 * Makefile.in (SFILES): Update.
17950 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
17951 low-sun3.c: Remove files.
17952
17953 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
17954
17955 * linux-low.c: Move comment to linux_thread_alive where it belonged.
17956 (linux_detach_one_process, linux_detach): New functions.
17957 (linux_target_ops): Add linux_detach.
17958 * server.c (main): Handle 'D' packet.
17959 * target.h (struct target_ops): Add "detach" member.
17960 (detach_inferior): Define.
17961
17962 2003-06-13 Mark Kettenis <kettenis@gnu.org>
17963
17964 From Kelley Cook <kelleycook@wideopenwest.com>:
17965 * configure.srv: Accept i[34567]86 variants.
17966
17967 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
17968
17969 * linux-low.c (linux_wait_for_event): Correct comment typos.
17970 (linux_resume_one_process): Call check_removed_breakpoint.
17971 (linux_send_signal): New function.
17972 (linux_target_ops): Add linux_send_signal.
17973 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
17974 of kill.
17975 * target.h (struct target_ops): Add send_signal.
17976
17977 2003-05-29 Jim Blandy <jimb@redhat.com>
17978
17979 * linux-low.c (usr_store_inferior_registers): Transfer buf in
17980 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
17981 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
17982 away part of the register's value.
17983
17984 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
17985
17986 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
17987 (linux_wait_for_event, linux_init_signals): Likewise.
17988
17989 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
17990
17991 * configure.in: Check for stdlib.h.
17992 * configure: Regenerated.
17993 * config.in: Regenerated.
17994
17995 2003-01-04 Andreas Schwab <schwab@suse.de>
17996
17997 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
17998
17999 2003-01-02 Andrew Cagney <ac131313@redhat.com>
18000
18001 * Makefile.in: Remove obsolete code.
18002
18003 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
18004
18005 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18006 defined(PT_FPR0_HI).
18007
18008 2002-11-17 Stuart Hughes <seh@zee2.com>
18009
18010 * linux-arm-low.c (arm_num_regs): Increase.
18011 (arm_regmap): Include status register.
18012
18013 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
18014
18015 * linux-low.c (register_addr): Remove incorrect -1 check.
18016
18017 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
18018
18019 * linux-low.c (linux_create_inferior): Call setpgid. Return
18020 the new PID.
18021 (unstopped_p, linux_signal_pid): Remove.
18022 (linux_target_ops): Remove linux_signal_pid.
18023 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18024 global instead of target method.
18025 * target.h (struct target_ops): Remove signal_pid. Update comment
18026 for create_inferior.
18027 * server.c (signal_pid): New variable.
18028 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
18029 gdbserver. Set the child to be the foreground process group.
18030 (attach_inferior): Set signal_pid.
18031
18032 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
18033
18034 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18035
18036 2002-08-20 Jim Blandy <jimb@redhat.com>
18037
18038 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18039 default for this.
18040
18041 2002-08-01 Andrew Cagney <cagney@redhat.com>
18042
18043 * Makefile.in: Make chill references obsolete.
18044
18045 2002-07-24 Kevin Buettner <kevinb@redhat.com>
18046
18047 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18048 * configure: Regenerate.
18049 * config.in: Regenerate.
18050
18051 2002-07-09 David O'Brien <obrien@FreeBSD.org>
18052
18053 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18054 (perror_with_name, remote_close, remote_open, expect, play): Static.
18055
18056 2002-07-04 Michal Ludvig <mludvig@suse.cz>
18057
18058 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
18059 byte offsets instead of an array of indexes.
18060 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18061
18062 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
18063
18064 * regcache.c: Add comment.
18065
18066 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
18067
18068 * thread-db.c: New file.
18069 * proc-service.c: New file.
18070 * acinclude.m4: New file.
18071 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18072 proc-service.o, and thread-db.o.
18073 (linux-low.o): Add USE_THREAD_DB.
18074 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18075 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18076 * aclocal.m4: Regenerated.
18077 * config.in: Regenerated.
18078 * configure: Regenerated.
18079 * configure.in: Check for proc_service.h, sys/procfs.h,
18080 thread_db.h, and linux/elf.h headrs.
18081 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18082 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18083 Check for -lthread_db and thread support.
18084 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18085 PowerPC, and SuperH.
18086 * i387-fp.c: Constify arguments.
18087 * i387-fp.h: Likewise.
18088 * inferiors.c: (struct thread_info): Renamed from
18089 `struct inferior_info'. Remove PID member. Use generic inferior
18090 list header. All uses updated.
18091 (inferiors, signal_pid): Removed.
18092 (all_threads): New variable.
18093 (get_thread): Define.
18094 (add_inferior_to_list): New function.
18095 (for_each_inferior): New function.
18096 (change_inferior_id): New function.
18097 (add_inferior): Removed.
18098 (remove_inferior): New function.
18099 (add_thread): New function.
18100 (free_one_thread): New function.
18101 (remove_thread): New function.
18102 (clear_inferiors): Use for_each_inferior and free_one_thread.
18103 (find_inferior): New function.
18104 (find_inferior_id): New function.
18105 (inferior_target_data): Update argument type.
18106 (set_inferior_target_data): Likewise.
18107 (inferior_regcache_data): Likewise.
18108 (set_inferior_regcache_data): Likewise.
18109 * linux-low.c (linux_bp_reinsert): Remove.
18110 (all_processes, stopping_threads, using_thrads)
18111 (struct pending_signals, debug_threads, pid_of): New.
18112 (inferior_pid): Replace with macro.
18113 (struct inferior_linux_data): Remove.
18114 (get_stop_pc, add_process): New functions.
18115 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18116 Use add_process and add_thread.
18117 (linux_attach_lwp): New function, based on old linux_attach. Use
18118 add_process and add_thread. Set stop_expected for new threads.
18119 (linux_attach): New function.
18120 (linux_kill_one_process): New function.
18121 (linux_kill): Kill all LWPs.
18122 (linux_thread_alive): Use find_inferior_id.
18123 (check_removed_breakpoints, status_pending_p): New functions.
18124 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18125 Update. Use WNOHANG. Wait for cloned processes also. Update process
18126 struct for the found process.
18127 (linux_wait_for_event): New function.
18128 (linux_wait): Use it. Support LWPs.
18129 (send_sigstop, wait_for_sigstop, stop_all_processes)
18130 (linux_resume_one_process, linux_continue_one_process): New functions.
18131 (linux_resume): Support LWPs.
18132 (REGISTER_RAW_SIZE): Remove.
18133 (fetch_register): Use register_size instead. Call supply_register.
18134 (usr_store_inferior_registers): Likewise. Call collect_register.
18135 Fix recursive case.
18136 (regsets_fetch_inferior_registers): Improve error message.
18137 (regsets_store_inferior_registers): Add debugging.
18138 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18139 (unstopped_p, linux_signal_pid): New functions.
18140 (linux_target_ops): Add linux_signal_pid.
18141 (linux_init_signals): New function.
18142 (initialize_low): Call it. Initialize using_threads.
18143 * regcache.c (inferior_regcache_data): Add valid
18144 flag.
18145 (get_regcache): Fetch registers lazily. Add fetch argument
18146 and update all callers.
18147 (regcache_invalidate_one, regcache_invalidate): New
18148 functions.
18149 (new_register_cache): Renamed from create_register_cache.
18150 Return the new regcache.
18151 (free_register_cache): Change argument to a void *.
18152 (registers_to_string, registers_from_string): Call get_regcache
18153 with fetch flag set.
18154 (register_data): Make static. Pass fetch flag to get_regcache.
18155 (supply_register): Call get_regcache with fetch flag clear.
18156 (collect_register): Call get_regcache with fetch flag set.
18157 (collect_register_as_string): New function.
18158 * regcache.h: Update.
18159 * remote-utils.c (putpkt): Flush after debug output and use
18160 stderr.
18161 Handle input interrupts while waiting for an ACK.
18162 (input_interrupt): Use signal_pid method.
18163 (getpkt): Flush after debug output and use stderr.
18164 (outreg): Use collect_register_as_string.
18165 (new_thread_notify, dead_thread_notify): New functions.
18166 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18167 and general_thread.
18168 (look_up_one_symbol): Flush after debug output.
18169 * server.c (step_thread, server_waiting): New variables.
18170 (start_inferior): Don't use signal_pid. Update call to mywait.
18171 (attach_inferior): Update call to mywait.
18172 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18173 (main): Don't fetch/store registers explicitly. Use
18174 set_desired_inferior. Support proposed ``Hs'' packet. Update
18175 calls to mywait.
18176 * server.h: Update.
18177 (struct inferior_list, struct_inferior_list_entry): New.
18178 * target.c (set_desired_inferior): New.
18179 (write_inferior_memory): Constify.
18180 (mywait): New function.
18181 * target.h: Update.
18182 (struct target_ops): New signal_pid method.
18183 (mywait): Removed macro, added prototype.
18184
18185 * linux-low.h (regset_func): Removed.
18186 (regset_fill_func, regset_store_func): New.
18187 (enum regset_type): New.
18188 (struct regset_info): Add type field. Use new operation types.
18189 (struct linux_target_ops): stop_pc renamed to get_pc.
18190 Add decr_pc_after_break and breakpoint_at.
18191 (get_process, get_thread_proess, get_process_thread)
18192 (strut process_info, all_processes, linux_attach_lwp)
18193 (thread_db_init): New.
18194
18195 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18196 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18197 (the_low_target): Add new members.
18198 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18199 (i386_store_fpxregset): Constify.
18200 (target_regsets): Add new kind identifier.
18201 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18202 (i386_set_pc): Add debugging.
18203 (i386_breakpoint_at): New function.
18204 (the_low_target): Add new members.
18205 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18206 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18207 (mips_breakpoint_at): New.
18208 (the_low_target): Add new members.
18209 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18210 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18211 (the_low_target): Add new members.
18212 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18213 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18214 (the_low_target): Add new members.
18215 * linux-x86-64-low.c (target_regsets): Add new kind
18216 identifier.
18217
18218 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
18219
18220 From Martin Pool <mbp@samba.org>:
18221 * server.c (gdbserver_usage): New function.
18222 (main): Call it.
18223
18224 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
18225
18226 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18227 stop_at -> stop_pc.
18228
18229 2002-05-04 Andrew Cagney <ac131313@redhat.com>
18230
18231 * Makefile.in: Remove obsolete code.
18232
18233 2002-04-24 Michal Ludvig <mludvig@suse.cz>
18234
18235 * linux-low.c (regsets_fetch_inferior_registers),
18236 (regsets_store_inferior_registers): Removed cast to int from
18237 ptrace() calls.
18238 * regcache.h: Added declaration of struct inferior_info.
18239
18240 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
18241
18242 * inferiors.c (struct inferior_info): Add regcache_data.
18243 (add_inferior): Call create_register_cache.
18244 (clear_inferiors): Call free_register_cache.
18245 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18246 * regcache.c (struct inferior_regcache_data): New.
18247 (registers): Remove.
18248 (get_regcache): New function.
18249 (create_register_cache, free_register_cache): New functions.
18250 (set_register_cache): Don't initialize the register cache here.
18251 (registers_to_string, registers_from_string, register_data): Call
18252 get_regcache.
18253 * regcache.h: Add prototypes.
18254 * server.h: Likewise.
18255
18256 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
18257
18258 * mem-break.c: New file.
18259 * mem-break.h: New file.
18260 * Makefile.in: Add mem-break.o rule; update server.h
18261 dependencies.
18262 * inferiors.c (struct inferior_info): Add target_data
18263 member.
18264 (clear_inferiors): Free target_data member if set.
18265 (inferior_target_data, set_inferior_target_data): New functions.
18266 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18267 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18268 * linux-low.c (linux_bp_reinsert): New variable.
18269 (struct inferior_linux_data): New.
18270 (linux_create_inferior): Use set_inferior_target_data.
18271 (linux_attach): Likewise. Call add_inferior.
18272 (linux_wait_for_one_inferior): New function.
18273 (linux_wait): Call it.
18274 (linux_write_memory): Add const.
18275 (initialize_low): Call set_breakpoint_data.
18276 * linux-low.h (struct linux_target_ops): Add breakpoint
18277 handling members.
18278 * server.c (attach_inferior): Remove extra add_inferior
18279 call.
18280 * server.h: Include mem-break.h. Update inferior.c
18281 prototypes.
18282 * target.c (read_inferior_memory)
18283 (write_inferior_memory): New functions.
18284 * target.h (read_inferior_memory)
18285 (write_inferior_memory): Change macros to prototypes.
18286 (struct target_ops): Update comments. Add const to write_memory
18287 definition.
18288
18289 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
18290
18291 * linux-low.c (usr_store_inferior_registers): Support
18292 registers which are allowed to fail to store.
18293 * linux-low.h (linux_target_ops): Likewise.
18294 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18295 (ppc_cannot_store_register): FPSCR may not be storable.
18296
18297 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18298
18299 * server.h: Include <string.h> if HAVE_STRING_H.
18300 * ChangeLog: Correct paths in last ChangeLog entry.
18301
18302 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18303
18304 * linux-low.h: Remove obsolete prototypes.
18305 (struct linux_target_ops): New.
18306 (extern the_low_target): New.
18307 * linux-low.c (num_regs, regmap): Remove declarations.
18308 (register_addr): Use the_low_target explicitly.
18309 (fetch_register): Likewise.
18310 (usr_fetch_inferior_registers): Likewise.
18311 (usr_store_inferior_registers): Likewise.
18312 * linux-arm-low.c (num_regs): Remove.
18313 (arm_num_regs): Define.
18314 (arm_regmap): Renamed from regmap, made static.
18315 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18316 made static.
18317 (arm_cannot_store_register): Renamed from cannot_store_register,
18318 made static.
18319 (the_low_target): New.
18320 * linux-i386-low.c (num_regs): Remove.
18321 (i386_num_regs): Define.
18322 (i386_regmap): Renamed from regmap, made static.
18323 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18324 made static.
18325 (i386_cannot_store_register): Renamed from cannot_store_register,
18326 made static.
18327 (the_low_target): New.
18328 * linux-ia64-low.c (num_regs): Remove.
18329 (ia64_num_regs): Define.
18330 (ia64_regmap): Renamed from regmap, made static.
18331 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18332 made static.
18333 (ia64_cannot_store_register): Renamed from cannot_store_register,
18334 made static.
18335 (the_low_target): New.
18336 * linux-m68k-low.c (num_regs): Remove.
18337 (m68k_num_regs): Define.
18338 (m68k_regmap): Renamed from regmap, made static.
18339 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18340 made static.
18341 (m68k_cannot_store_register): Renamed from cannot_store_register,
18342 made static.
18343 (the_low_target): New.
18344 * linux-mips-low.c (num_regs): Remove.
18345 (mips_num_regs): Define.
18346 (mips_regmap): Renamed from regmap, made static.
18347 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18348 made static.
18349 (mips_cannot_store_register): Renamed from cannot_store_register,
18350 made static.
18351 (the_low_target): New.
18352 * linux-ppc-low.c (num_regs): Remove.
18353 (ppc_num_regs): Define.
18354 (ppc_regmap): Renamed from regmap, made static.
18355 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18356 made static.
18357 (ppc_cannot_store_register): Renamed from cannot_store_register,
18358 made static.
18359 (the_low_target): New.
18360 * linux-s390-low.c (num_regs): Remove.
18361 (s390_num_regs): Define.
18362 (s390_regmap): Renamed from regmap, made static.
18363 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18364 made static.
18365 (s390_cannot_store_register): Renamed from cannot_store_register,
18366 made static.
18367 (the_low_target): New.
18368 * linux-sh-low.c (num_regs): Remove.
18369 (sh_num_regs): Define.
18370 (sh_regmap): Renamed from regmap, made static.
18371 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18372 made static.
18373 (sh_cannot_store_register): Renamed from cannot_store_register,
18374 made static.
18375 (the_low_target): New.
18376 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18377 (the_low_target): New.
18378
18379 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18380
18381 * Makefile.in: Add stamp-h target.
18382 * configure.in: Create stamp-h.
18383 * configure: Regenerated.
18384
18385 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18386
18387 * inferiors.c: New file.
18388 * target.c: New file.
18389 * target.h: New file.
18390 * Makefile.in: Add target.o and inferiors.o. Update
18391 dependencies.
18392 * linux-low.c (inferior_pid): New static variable,
18393 moved from server.c.
18394 (linux_create_inferior): Renamed from create_inferior.
18395 Call add_inferior. Return 0 on success instead of a PID.
18396 (linux_attach): Renamed from myattach.
18397 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18398 (linux_thread_alive): Renamed from mythread_alive.
18399 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18400 child dies.
18401 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18402 (regsets_store_inferior_registers): Correct error message.
18403 Add missing ``return 0''.
18404 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18405 (linux_store_registers): Renamed from store_inferior_registers.
18406 (linux_read_memory): Renamed from read_inferior_memory.
18407 (linux_write_memory): Renamed from write_inferior_memory.
18408 (linux_target_ops): New structure.
18409 (initialize_low): Call set_target_ops ().
18410 * remote-utils.c (unhexify): New function.
18411 (hexify): New function.
18412 (input_interrupt): Send signals to ``signal_pid''.
18413 * server.c (inferior_pid): Remove.
18414 (start_inferior): Update create_inferior call.
18415 (attach_inferior): Call add_inferior.
18416 (handle_query): New function.
18417 (main): Call handle_query for `q' packets.
18418 * server.h: Include "target.h". Remove obsolete prototypes.
18419 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18420
18421 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
18422
18423 * Makefile.in: Add WARN_CFLAGS. Update configury
18424 dependencies.
18425 * configure.in: Check for <string.h>
18426 * configure: Regenerate.
18427 * config.in: Regenerate.
18428 * gdbreplay.c: Include needed system headers.
18429 (remote_open): Remove strchr prototype.
18430 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18431 * regcache.c (supply_register): Change buf argument to const void *.
18432 (supply_register_by_name): Likewise.
18433 (collect_register): Change buf argument to void *.
18434 (collect_register_by_name): Likewise.
18435 * regcache.h: Add missing prototypes.
18436 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18437 * server.c (handle_query): New function.
18438 (attached): New static variable, moved out of main.
18439 (main): Quiet longjmp clobber warnings.
18440 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18441 * utils.c (error): Remove NORETURN.
18442 (fatal): Likewise.
This page took 0.497516 seconds and 5 git commands to generate.