1 2014-08-07 Yao Qi <yao@codesourcery.com>
3 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
5 * remote.c (remote_read_bytes): Likewise.
7 2014-08-07 Yao Qi <yao@codesourcery.com>
9 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
11 2014-08-07 Yao Qi <yao@codesourcery.com>
14 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
15 TARGET_XFER_OK instead of 0.
17 2014-08-07 Gary Benson <gbenson@redhat.com>
19 * common/common-defs.h: Include errno.h.
20 * defs.h: Do not include errno.h.
21 * ada-typeprint.c: Likewise.
22 * c-typeprint.c: Likewise.
23 * core-regset.c: Likewise.
24 * corefile.c: Likewise.
25 * corelow.c: Likewise.
26 * event-loop.c: Likewise.
27 * f-typeprint.c: Likewise.
28 * gnu-nat.c: Likewise.
29 * go32-nat.c: Likewise.
30 * i386gnu-nat.c: Likewise.
31 * m2-typeprint.c: Likewise.
32 * nat/linux-btrace.c: Likewise.
33 * p-typeprint.c: Likewise.
35 * remote-sim.c: Likewise.
36 * rs6000-nat.c: Likewise.
38 * typeprint.c: Likewise.
39 * ui-file.c: Likewise.
41 * valprint.c: Likewise.
43 2014-08-07 Gary Benson <gbenson@redhat.com>
45 * common/common-defs.h: Include string.h.
46 * aarch64-tdep.c: Do not include string.h.
47 * ada-exp.y: Likewise.
48 * ada-lang.c: Likewise.
49 * ada-lex.l: Likewise.
50 * ada-typeprint.c: Likewise.
51 * ada-valprint.c: Likewise.
52 * aix-thread.c: Likewise.
53 * alpha-linux-tdep.c: Likewise.
54 * alpha-mdebug-tdep.c: Likewise.
55 * alpha-nat.c: Likewise.
56 * alpha-osf1-tdep.c: Likewise.
57 * alpha-tdep.c: Likewise.
58 * alphanbsd-tdep.c: Likewise.
59 * amd64-dicos-tdep.c: Likewise.
60 * amd64-linux-tdep.c: Likewise.
61 * amd64-nat.c: Likewise.
62 * amd64-sol2-tdep.c: Likewise.
63 * amd64fbsd-tdep.c: Likewise.
64 * amd64obsd-tdep.c: Likewise.
65 * arch-utils.c: Likewise.
66 * arm-linux-nat.c: Likewise.
67 * arm-linux-tdep.c: Likewise.
68 * arm-tdep.c: Likewise.
69 * arm-wince-tdep.c: Likewise.
70 * armbsd-tdep.c: Likewise.
71 * armnbsd-nat.c: Likewise.
72 * armnbsd-tdep.c: Likewise.
73 * armobsd-tdep.c: Likewise.
74 * avr-tdep.c: Likewise.
76 * ax-general.c: Likewise.
78 * bfin-tdep.c: Likewise.
79 * breakpoint.c: Likewise.
80 * build-id.c: Likewise.
81 * buildsym.c: Likewise.
84 * c-typeprint.c: Likewise.
85 * c-valprint.c: Likewise.
86 * charset.c: Likewise.
87 * cli-out.c: Likewise.
88 * cli/cli-cmds.c: Likewise.
89 * cli/cli-decode.c: Likewise.
90 * cli/cli-dump.c: Likewise.
91 * cli/cli-interp.c: Likewise.
92 * cli/cli-logging.c: Likewise.
93 * cli/cli-script.c: Likewise.
94 * cli/cli-setshow.c: Likewise.
95 * cli/cli-utils.c: Likewise.
96 * coffread.c: Likewise.
97 * common/agent.c: Likewise.
98 * common/buffer.c: Likewise.
99 * common/buffer.h: Likewise.
100 * common/common-utils.c: Likewise.
101 * common/filestuff.c: Likewise.
102 * common/filestuff.c: Likewise.
103 * common/format.c: Likewise.
104 * common/print-utils.c: Likewise.
105 * common/rsp-low.c: Likewise.
106 * common/signals.c: Likewise.
107 * common/vec.h: Likewise.
108 * common/xml-utils.c: Likewise.
109 * core-regset.c: Likewise.
110 * corefile.c: Likewise.
111 * corelow.c: Likewise.
112 * cp-abi.c: Likewise.
113 * cp-name-parser.y: Likewise.
114 * cp-support.c: Likewise.
115 * cp-valprint.c: Likewise.
116 * cris-tdep.c: Likewise.
118 * darwin-nat.c: Likewise.
119 * dbxread.c: Likewise.
120 * dcache.c: Likewise.
121 * demangle.c: Likewise.
122 * dicos-tdep.c: Likewise.
123 * disasm.c: Likewise.
124 * doublest.c: Likewise.
126 * dummy-frame.c: Likewise.
127 * dwarf2-frame.c: Likewise.
128 * dwarf2loc.c: Likewise.
129 * dwarf2read.c: Likewise.
130 * elfread.c: Likewise.
131 * environ.c: Likewise.
133 * event-loop.c: Likewise.
134 * exceptions.c: Likewise.
136 * expprint.c: Likewise.
138 * f-lang.c: Likewise.
139 * f-typeprint.c: Likewise.
140 * f-valprint.c: Likewise.
141 * fbsd-nat.c: Likewise.
142 * findcmd.c: Likewise.
143 * findvar.c: Likewise.
144 * fork-child.c: Likewise.
146 * frv-linux-tdep.c: Likewise.
147 * frv-tdep.c: Likewise.
149 * gdb_bfd.c: Likewise.
150 * gdbarch.c: Likewise.
151 * gdbarch.sh: Likewise.
152 * gdbtypes.c: Likewise.
153 * gnu-nat.c: Likewise.
154 * gnu-v2-abi.c: Likewise.
155 * gnu-v3-abi.c: Likewise.
156 * go-exp.y: Likewise.
157 * go-lang.c: Likewise.
158 * go32-nat.c: Likewise.
159 * guile/guile.c: Likewise.
160 * guile/scm-auto-load.c: Likewise.
161 * hppa-hpux-tdep.c: Likewise.
162 * hppa-linux-nat.c: Likewise.
163 * hppanbsd-tdep.c: Likewise.
164 * hppaobsd-tdep.c: Likewise.
165 * i386-cygwin-tdep.c: Likewise.
166 * i386-dicos-tdep.c: Likewise.
167 * i386-linux-tdep.c: Likewise.
168 * i386-nto-tdep.c: Likewise.
169 * i386-sol2-tdep.c: Likewise.
170 * i386-tdep.c: Likewise.
171 * i386bsd-tdep.c: Likewise.
172 * i386gnu-nat.c: Likewise.
173 * i386nbsd-tdep.c: Likewise.
174 * i386obsd-tdep.c: Likewise.
175 * i387-tdep.c: Likewise.
176 * ia64-libunwind-tdep.c: Likewise.
177 * ia64-linux-nat.c: Likewise.
178 * inf-child.c: Likewise.
179 * inf-ptrace.c: Likewise.
180 * inf-ttrace.c: Likewise.
181 * infcall.c: Likewise.
182 * infcmd.c: Likewise.
183 * inflow.c: Likewise.
184 * infrun.c: Likewise.
185 * interps.c: Likewise.
186 * iq2000-tdep.c: Likewise.
187 * irix5-nat.c: Likewise.
188 * jv-exp.y: Likewise.
189 * jv-lang.c: Likewise.
190 * jv-typeprint.c: Likewise.
191 * jv-valprint.c: Likewise.
192 * language.c: Likewise.
193 * linux-fork.c: Likewise.
194 * linux-nat.c: Likewise.
195 * lm32-tdep.c: Likewise.
196 * m2-exp.y: Likewise.
197 * m2-typeprint.c: Likewise.
198 * m32c-tdep.c: Likewise.
199 * m32r-linux-nat.c: Likewise.
200 * m32r-linux-tdep.c: Likewise.
201 * m32r-rom.c: Likewise.
202 * m32r-tdep.c: Likewise.
203 * m68hc11-tdep.c: Likewise.
204 * m68k-tdep.c: Likewise.
205 * m68kbsd-tdep.c: Likewise.
206 * m68klinux-nat.c: Likewise.
207 * m68klinux-tdep.c: Likewise.
208 * m88k-tdep.c: Likewise.
209 * machoread.c: Likewise.
210 * macrocmd.c: Likewise.
212 * mdebugread.c: Likewise.
213 * mem-break.c: Likewise.
214 * memattr.c: Likewise.
215 * memory-map.c: Likewise.
216 * mep-tdep.c: Likewise.
217 * mi/mi-cmd-break.c: Likewise.
218 * mi/mi-cmd-disas.c: Likewise.
219 * mi/mi-cmd-env.c: Likewise.
220 * mi/mi-cmd-stack.c: Likewise.
221 * mi/mi-cmd-var.c: Likewise.
222 * mi/mi-cmds.c: Likewise.
223 * mi/mi-console.c: Likewise.
224 * mi/mi-getopt.c: Likewise.
225 * mi/mi-interp.c: Likewise.
226 * mi/mi-main.c: Likewise.
227 * mi/mi-parse.c: Likewise.
228 * microblaze-rom.c: Likewise.
229 * microblaze-tdep.c: Likewise.
230 * mingw-hdep.c: Likewise.
231 * minidebug.c: Likewise.
232 * minsyms.c: Likewise.
233 * mips-irix-tdep.c: Likewise.
234 * mips-linux-tdep.c: Likewise.
235 * mips-tdep.c: Likewise.
236 * mips64obsd-tdep.c: Likewise.
237 * mipsnbsd-tdep.c: Likewise.
238 * mipsread.c: Likewise.
239 * mn10300-linux-tdep.c: Likewise.
240 * mn10300-tdep.c: Likewise.
241 * monitor.c: Likewise.
242 * moxie-tdep.c: Likewise.
243 * mt-tdep.c: Likewise.
244 * nat/linux-btrace.c: Likewise.
245 * nat/linux-osdata.c: Likewise.
246 * nat/linux-procfs.c: Likewise.
247 * nat/linux-ptrace.c: Likewise.
248 * nat/linux-waitpid.c: Likewise.
249 * nbsd-tdep.c: Likewise.
250 * nios2-linux-tdep.c: Likewise.
251 * nto-procfs.c: Likewise.
252 * nto-tdep.c: Likewise.
253 * objc-lang.c: Likewise.
254 * objfiles.c: Likewise.
255 * opencl-lang.c: Likewise.
257 * osdata.c: Likewise.
259 * p-lang.c: Likewise.
260 * p-typeprint.c: Likewise.
262 * posix-hdep.c: Likewise.
263 * ppc-linux-nat.c: Likewise.
264 * ppc-sysv-tdep.c: Likewise.
265 * ppcfbsd-tdep.c: Likewise.
266 * ppcnbsd-tdep.c: Likewise.
267 * ppcobsd-tdep.c: Likewise.
268 * printcmd.c: Likewise.
269 * procfs.c: Likewise.
270 * prologue-value.c: Likewise.
271 * python/py-auto-load.c: Likewise.
272 * python/py-gdb-readline.c: Likewise.
273 * ravenscar-thread.c: Likewise.
274 * regcache.c: Likewise.
275 * registry.c: Likewise.
276 * remote-fileio.c: Likewise.
277 * remote-m32r-sdi.c: Likewise.
278 * remote-mips.c: Likewise.
279 * remote-notif.c: Likewise.
280 * remote-sim.c: Likewise.
281 * remote.c: Likewise.
282 * reverse.c: Likewise.
283 * rs6000-aix-tdep.c: Likewise.
284 * ser-base.c: Likewise.
285 * ser-go32.c: Likewise.
286 * ser-mingw.c: Likewise.
287 * ser-pipe.c: Likewise.
288 * ser-tcp.c: Likewise.
289 * ser-unix.c: Likewise.
290 * serial.c: Likewise.
291 * sh-tdep.c: Likewise.
292 * sh64-tdep.c: Likewise.
293 * shnbsd-tdep.c: Likewise.
295 * sol-thread.c: Likewise.
296 * solib-dsbt.c: Likewise.
297 * solib-frv.c: Likewise.
298 * solib-osf.c: Likewise.
299 * solib-som.c: Likewise.
300 * solib-spu.c: Likewise.
301 * solib-target.c: Likewise.
303 * somread.c: Likewise.
304 * source.c: Likewise.
305 * sparc-nat.c: Likewise.
306 * sparc-sol2-tdep.c: Likewise.
307 * sparc-tdep.c: Likewise.
308 * sparc64-tdep.c: Likewise.
309 * sparc64fbsd-tdep.c: Likewise.
310 * sparc64nbsd-tdep.c: Likewise.
311 * sparcnbsd-tdep.c: Likewise.
312 * spu-linux-nat.c: Likewise.
313 * spu-multiarch.c: Likewise.
314 * spu-tdep.c: Likewise.
315 * stabsread.c: Likewise.
317 * std-regs.c: Likewise.
318 * symfile.c: Likewise.
319 * symmisc.c: Likewise.
320 * symtab.c: Likewise.
321 * target.c: Likewise.
322 * thread.c: Likewise.
323 * tilegx-linux-nat.c: Likewise.
324 * tilegx-tdep.c: Likewise.
326 * tracepoint.c: Likewise.
327 * tui/tui-command.c: Likewise.
328 * tui/tui-data.c: Likewise.
329 * tui/tui-disasm.c: Likewise.
330 * tui/tui-file.c: Likewise.
331 * tui/tui-layout.c: Likewise.
332 * tui/tui-out.c: Likewise.
333 * tui/tui-regs.c: Likewise.
334 * tui/tui-source.c: Likewise.
335 * tui/tui-stack.c: Likewise.
336 * tui/tui-win.c: Likewise.
337 * tui/tui-windata.c: Likewise.
338 * tui/tui-winsource.c: Likewise.
339 * typeprint.c: Likewise.
340 * ui-file.c: Likewise.
341 * ui-out.c: Likewise.
342 * user-regs.c: Likewise.
344 * v850-tdep.c: Likewise.
345 * valarith.c: Likewise.
346 * valops.c: Likewise.
347 * valprint.c: Likewise.
349 * varobj.c: Likewise.
350 * vax-tdep.c: Likewise.
351 * vaxnbsd-tdep.c: Likewise.
352 * vaxobsd-tdep.c: Likewise.
353 * windows-nat.c: Likewise.
354 * xcoffread.c: Likewise.
355 * xml-support.c: Likewise.
356 * xstormy16-tdep.c: Likewise.
357 * xtensa-linux-nat.c: Likewise.
359 2014-08-07 Gary Benson <gbenson@redhat.com>
361 * common/common-defs.h: Include gdb_assert.h.
362 * aarch64-tdep.c: Do not include gdb_assert.h.
363 * addrmap.c: Likewise.
364 * aix-thread.c: Likewise.
365 * alpha-linux-tdep.c: Likewise.
366 * alpha-mdebug-tdep.c: Likewise.
367 * alphanbsd-tdep.c: Likewise.
368 * amd64-nat.c: Likewise.
369 * amd64-tdep.c: Likewise.
370 * amd64bsd-nat.c: Likewise.
371 * amd64fbsd-nat.c: Likewise.
372 * amd64fbsd-tdep.c: Likewise.
373 * amd64nbsd-nat.c: Likewise.
374 * amd64nbsd-tdep.c: Likewise.
375 * amd64obsd-nat.c: Likewise.
376 * amd64obsd-tdep.c: Likewise.
377 * arch-utils.c: Likewise.
378 * arm-tdep.c: Likewise.
379 * armbsd-tdep.c: Likewise.
381 * bcache.c: Likewise.
382 * bfin-tdep.c: Likewise.
383 * blockframe.c: Likewise.
384 * breakpoint.c: Likewise.
385 * bsd-kvm.c: Likewise.
386 * bsd-uthread.c: Likewise.
387 * buildsym.c: Likewise.
389 * c-lang.c: Likewise.
390 * charset.c: Likewise.
391 * cleanups.c: Likewise.
392 * cli-out.c: Likewise.
393 * cli/cli-decode.c: Likewise.
394 * cli/cli-dump.c: Likewise.
395 * cli/cli-logging.c: Likewise.
396 * cli/cli-script.c: Likewise.
397 * cli/cli-utils.c: Likewise.
398 * coffread.c: Likewise.
399 * common/common-utils.c: Likewise.
400 * common/queue.h: Likewise.
401 * common/signals.c: Likewise.
402 * common/vec.h: Likewise.
403 * complaints.c: Likewise.
404 * completer.c: Likewise.
405 * corelow.c: Likewise.
406 * cp-abi.c: Likewise.
407 * cp-name-parser.y: Likewise.
408 * cp-namespace.c: Likewise.
409 * cp-support.c: Likewise.
410 * cris-tdep.c: Likewise.
411 * dbxread.c: Likewise.
412 * dictionary.c: Likewise.
413 * doublest.c: Likewise.
415 * dummy-frame.c: Likewise.
416 * dwarf2-frame-tailcall.c: Likewise.
417 * dwarf2-frame.c: Likewise.
418 * dwarf2expr.c: Likewise.
419 * dwarf2loc.c: Likewise.
420 * dwarf2read.c: Likewise.
422 * event-loop.c: Likewise.
423 * exceptions.c: Likewise.
424 * expprint.c: Likewise.
425 * f-valprint.c: Likewise.
426 * fbsd-nat.c: Likewise.
427 * findvar.c: Likewise.
428 * frame-unwind.c: Likewise.
430 * frv-tdep.c: Likewise.
432 * gdb-dlfcn.c: Likewise.
433 * gdb_bfd.c: Likewise.
434 * gdbarch.c: Likewise.
435 * gdbarch.sh: Likewise.
436 * gdbtypes.c: Likewise.
437 * gnu-nat.c: Likewise.
438 * gnu-v3-abi.c: Likewise.
439 * go-lang.c: Likewise.
440 * guile/scm-exception.c: Likewise.
441 * guile/scm-gsmob.c: Likewise.
442 * guile/scm-lazy-string.c: Likewise.
443 * guile/scm-math.c: Likewise.
444 * guile/scm-pretty-print.c: Likewise.
445 * guile/scm-safe-call.c: Likewise.
446 * guile/scm-utils.c: Likewise.
447 * guile/scm-value.c: Likewise.
448 * h8300-tdep.c: Likewise.
449 * hppa-hpux-nat.c: Likewise.
450 * hppa-tdep.c: Likewise.
451 * hppanbsd-tdep.c: Likewise.
452 * hppaobsd-tdep.c: Likewise.
453 * i386-darwin-nat.c: Likewise.
454 * i386-darwin-tdep.c: Likewise.
455 * i386-nto-tdep.c: Likewise.
456 * i386-tdep.c: Likewise.
457 * i386bsd-nat.c: Likewise.
458 * i386fbsd-tdep.c: Likewise.
459 * i386gnu-nat.c: Likewise.
460 * i386nbsd-tdep.c: Likewise.
461 * i386obsd-tdep.c: Likewise.
462 * i387-tdep.c: Likewise.
463 * ia64-libunwind-tdep.c: Likewise.
464 * ia64-tdep.c: Likewise.
465 * inf-ptrace.c: Likewise.
466 * inf-ttrace.c: Likewise.
467 * infcall.c: Likewise.
468 * infcmd.c: Likewise.
469 * infrun.c: Likewise.
470 * inline-frame.c: Likewise.
471 * interps.c: Likewise.
472 * jv-lang.c: Likewise.
473 * jv-typeprint.c: Likewise.
474 * linux-fork.c: Likewise.
475 * linux-nat.c: Likewise.
476 * linux-thread-db.c: Likewise.
477 * m32c-tdep.c: Likewise.
478 * m32r-linux-nat.c: Likewise.
479 * m32r-tdep.c: Likewise.
480 * m68k-tdep.c: Likewise.
481 * m68kbsd-nat.c: Likewise.
482 * m68kbsd-tdep.c: Likewise.
483 * m88k-tdep.c: Likewise.
484 * machoread.c: Likewise.
485 * macroexp.c: Likewise.
486 * macrotab.c: Likewise.
488 * mdebugread.c: Likewise.
489 * memory-map.c: Likewise.
490 * mep-tdep.c: Likewise.
491 * mi/mi-common.c: Likewise.
492 * microblaze-tdep.c: Likewise.
493 * mingw-hdep.c: Likewise.
494 * mips-linux-nat.c: Likewise.
495 * mips-linux-tdep.c: Likewise.
496 * mips-tdep.c: Likewise.
497 * mips64obsd-tdep.c: Likewise.
498 * mipsnbsd-tdep.c: Likewise.
499 * mn10300-linux-tdep.c: Likewise.
500 * mn10300-tdep.c: Likewise.
501 * moxie-tdep.c: Likewise.
502 * mt-tdep.c: Likewise.
503 * nat/linux-btrace.c: Likewise.
504 * nat/linux-osdata.c: Likewise.
505 * nat/linux-ptrace.c: Likewise.
506 * nat/mips-linux-watch.c: Likewise.
507 * nios2-linux-tdep.c: Likewise.
508 * nios2-tdep.c: Likewise.
509 * objc-lang.c: Likewise.
510 * objfiles.c: Likewise.
511 * obsd-nat.c: Likewise.
512 * opencl-lang.c: Likewise.
515 * ppc-linux-nat.c: Likewise.
516 * ppc-sysv-tdep.c: Likewise.
517 * ppcfbsd-nat.c: Likewise.
518 * ppcfbsd-tdep.c: Likewise.
519 * ppcnbsd-nat.c: Likewise.
520 * ppcnbsd-tdep.c: Likewise.
521 * ppcobsd-nat.c: Likewise.
522 * ppcobsd-tdep.c: Likewise.
523 * printcmd.c: Likewise.
524 * procfs.c: Likewise.
525 * prologue-value.c: Likewise.
526 * psymtab.c: Likewise.
527 * python/py-lazy-string.c: Likewise.
528 * python/py-value.c: Likewise.
529 * regcache.c: Likewise.
530 * reggroups.c: Likewise.
531 * registry.c: Likewise.
532 * remote-sim.c: Likewise.
533 * remote.c: Likewise.
534 * rs6000-aix-tdep.c: Likewise.
535 * rs6000-tdep.c: Likewise.
536 * s390-linux-tdep.c: Likewise.
537 * score-tdep.c: Likewise.
538 * ser-base.c: Likewise.
539 * ser-mingw.c: Likewise.
540 * sh-tdep.c: Likewise.
541 * sh64-tdep.c: Likewise.
542 * solib-darwin.c: Likewise.
543 * solib-spu.c: Likewise.
544 * solib-svr4.c: Likewise.
545 * source.c: Likewise.
546 * sparc-nat.c: Likewise.
547 * sparc-sol2-tdep.c: Likewise.
548 * sparc-tdep.c: Likewise.
549 * sparc64-sol2-tdep.c: Likewise.
550 * sparc64-tdep.c: Likewise.
551 * sparc64fbsd-tdep.c: Likewise.
552 * sparc64nbsd-tdep.c: Likewise.
553 * sparc64obsd-tdep.c: Likewise.
554 * sparcnbsd-tdep.c: Likewise.
555 * sparcobsd-tdep.c: Likewise.
556 * spu-multiarch.c: Likewise.
557 * spu-tdep.c: Likewise.
558 * stabsread.c: Likewise.
560 * symfile.c: Likewise.
561 * symtab.c: Likewise.
562 * target-descriptions.c: Likewise.
563 * target-memory.c: Likewise.
564 * target.c: Likewise.
565 * tic6x-linux-tdep.c: Likewise.
566 * tic6x-tdep.c: Likewise.
567 * tilegx-linux-nat.c: Likewise.
568 * tilegx-tdep.c: Likewise.
570 * tramp-frame.c: Likewise.
571 * tui/tui-out.c: Likewise.
572 * tui/tui-winsource.c: Likewise.
573 * ui-out.c: Likewise.
574 * user-regs.c: Likewise.
576 * v850-tdep.c: Likewise.
577 * valops.c: Likewise.
579 * varobj.c: Likewise.
580 * vax-nat.c: Likewise.
581 * xml-syscall.c: Likewise.
582 * xml-tdesc.c: Likewise.
583 * xstormy16-tdep.c: Likewise.
584 * xtensa-linux-nat.c: Likewise.
585 * xtensa-tdep.c: Likewise.
587 2014-08-07 Gary Benson <gbenson@redhat.com>
589 * common/common-defs.h: Include common-utils.h.
590 * defs.h: Do not include common-utils.h.
591 * common/gdb_assert.h: Likewise.
592 * darwin-nat.h: Likewise.
593 * nat/linux-btrace.c: Likewise.
594 * target/waitstatus.h: Likewise.
596 2014-08-07 Gary Benson <gbenson@redhat.com>
598 * common/common-defs.h: Include ptid.h.
599 * defs.h: Do not include ptid.h.
600 * inferior.h: Likewise.
601 * infrun.h: Likewise.
602 * nat/linux-btrace.h: Likewise.
603 * nat/linux-osdata.h: Likewise.
604 * target/waitstatus.h: Likewise.
606 2014-08-07 Gary Benson <gbenson@redhat.com>
608 * common/common-defs.h: Include gdb_locale.h.
609 * defs.h: Do not include gdb_locale.h.
611 2014-08-07 Gary Benson <gbenson@redhat.com>
613 * common/common-defs.h: Include gdb/signals.h.
614 * defs.h: Do not include gdb/signals.h.
616 2014-08-07 Gary Benson <gbenson@redhat.com>
618 * common/common-defs.h: Include pathmax.h.
619 * defs.h: Do not include pathmax.h.
621 2014-08-07 Gary Benson <gbenson@redhat.com>
623 * common/common-defs.h: Include libiberty.h.
624 * defs.h: Do not include libiberty.h.
625 * common/queue.h: Likewise.
626 * cp-name-parser.y: Likewise.
627 * mi/mi-cmd-catch.c: Likewise.
628 * python/python.c: Likewise.
630 2014-08-07 Gary Benson <gbenson@redhat.com>
632 * common/common-defs.h: Include ansidecl.h.
633 * defs.h: Do not include ansidecl.h.
634 * common/buffer.h: Likewise.
635 * common/common-utils.h: Likewise.
637 2014-08-07 Gary Benson <gbenson@redhat.com>
639 * common/common-defs.h: Include stddef.h.
640 * defs.h: Do not include stddef.h.
641 * common/common-utils.h: Likewise.
642 * amd64fbsd-nat.c: Likewise.
643 * bcache.c: Likewise.
644 * charset.c: Likewise.
645 * common/buffer.h: Likewise.
646 * common/vec.h: Likewise.
647 * i386bsd-nat.c: Likewise.
648 * nat/linux-btrace.h: Likewise.
649 * ppcfbsd-nat.c: Likewise.
650 * ppcnbsd-tdep.h: Likewise.
651 * ppcobsd-nat.c: Likewise.
652 * ppcobsd-tdep.h: Likewise.
653 * python/py-gdb-readline.c: Likewise.
655 2014-08-07 Gary Benson <gbenson@redhat.com>
657 * common/common-defs.h: Include stdarg.h.
658 * defs.h: Do not include stdarg.h.
659 * ada-lang.c: Likewise.
660 * common/common-utils.h: Likewise.
661 * guile/scm-string.c: Likewise.
662 * guile/scm-utils.c: Likewise.
663 * m32c-tdep.c: Likewise.
665 2014-08-07 Gary Benson <gbenson@redhat.com>
667 * common/common-defs.h: Include stdlib.h.
668 * defs.h: Do not include stdlib.h.
669 * addrmap.c: Likewise.
670 * bcache.c: Likewise.
671 * common/buffer.c: Likewise.
672 * common/common-utils.c: Likewise.
673 * cp-name-parser.y: Likewise.
674 * go32-nat.c: Likewise.
675 * mn10300-linux-tdep.c: Likewise.
676 * nat/linux-osdata.c: Likewise.
677 * tui/tui.c: Likewise.
678 * windows-nat.c: Likewise.
680 2014-08-07 Gary Benson <gbenson@redhat.com>
682 * common/common-defs.h: Include stdio.h.
683 * defs.h: Do not include stdio.h.
684 * ada-lang.c: Likewise.
685 * common/buffer.c: Likewise.
686 * common/common-utils.c: Likewise.
687 * cp-name-parser.y: Likewise.
688 * gnu-nat.c: Likewise.
689 * go32-nat.c: Likewise.
690 * i386gnu-nat.c: Likewise.
691 * proc-api.c: Likewise.
692 * proc-events.c: Likewise.
693 * proc-flags.c: Likewise.
694 * proc-why.c: Likewise.
695 * python/python-internal.h: Likewise.
696 * target-memory.c: Likewise.
697 * tui/tui-io.c: Likewise.
698 * tui/tui.c: Likewise.
700 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
702 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
703 (scan_dyntag_auxv): Same.
705 2014-08-06 Yao Qi <yao@codesourcery.com>
707 * amd64-linux-nat.c: Remove duplicated include
709 * i386-linux-nat.c: Likewise.
711 2014-08-06 Yao Qi <yao@codesourcery.com>
713 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
714 operand" with "Special opcode" in comments.
716 2014-08-05 Gary Benson <gbenson@redhat.com>
718 * interps.c (initialize_interps): Remove prototype.
719 (interpreter_initialized): Remove static global.
720 (interp_add): Do not call initialize_interps.
721 (initialize_interps): Remove function.
723 2014-08-05 Gary Benson <gbenson@redhat.com>
725 * utils.c (vwarning): Remove spurious va_end.
727 2014-08-05 Alan Modra <amodra@gmail.com>
729 * charset.c (convert_between_encodings): Cast result of obstack_base.
730 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
731 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
732 (read_unwind_info): Use size_t for some locals.
733 * jit.c (finalize_symtab): Likewise.
734 * utils.c (hashtab_obstack_allocate): Likewise.
735 * symmisc.c (print_objfile_statistics): Update format strings.
737 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
739 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
740 (Changes in GDB 7.8): ... here.
742 2014-08-04 Tom Tromey <tromey@redhat.com>
744 * target.c (set_targetdebug): New function.
745 (initialize_targets): Pass set_targetdebug when creating "set
748 2014-08-01 Joel Brobecker <brobecker@adacore.com>
750 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
751 if detecting a variable-sized field that is not the last field.
752 Fix struct type length computation.
754 2014-08-01 Joel Brobecker <brobecker@adacore.com>
756 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
759 2014-08-01 Joel Brobecker <brobecker@adacore.com>
761 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
762 Remove "+ 8" offset in computation of CHAIN_VMA.
764 2014-07-31 Doug Evans <dje@google.com>
766 * inflow.c (child_terminal_inferior): Add comment.
767 (child_terminal_ours_for_output): Add comment.
768 (child_terminal_ours): Add comment.
769 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
770 (linux_nat_terminal_ours): Add comment.
772 2014-07-31 Gary Benson <gbenson@redhat.com>
774 * common/btrace-common.h: Do not include defs.h or server.h.
775 * nat/mips-linux-watch.h: Likewise.
776 * gdb-dlfcn.h: Do not include defs.h.
777 * tracefile.h: Likewise.
779 2014-07-30 Roland McGrath <mcgrathr@google.com>
781 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
783 2014-07-30 Tom Tromey <tromey@redhat.com>
785 * bsd-kvm.c (bsd_kvm_open): Constify.
786 * corelow.c (core_open): Constify.
787 * ctf.c (ctf_open): Constify.
788 * dbug-rom.c (dbug_open): Constify.
789 * exec.c (exec_open): Constify.
790 * m32r-rom.c (m32r_open, mon2000_open): Constify.
791 * microblaze-rom.c (picobug_open): Constify.
792 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
794 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
795 * record-btrace.c (record_btrace_open): Constify.
796 * record-full.c (record_full_core_open_1, record_full_open_1)
797 (record_full_open): Constify.
798 * remote-m32r-sdi.c (m32r_open): Constify.
799 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
800 (rockhopper_open, lsi_open): Constify.
801 * remote-sim.c (gdbsim_open): Constify.
802 * remote.c (remote_open, extended_remote_open, remote_open_1):
804 * target.h (struct target_ops) <to_open>: Make "arg" const.
805 * tracefile-tfile.c (tfile_open): Constify.
807 2014-07-30 Tom Tromey <tromey@redhat.com>
809 * breakpoint.c (map_breakpoint_numbers): Update.
810 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
811 (get_number_const): New function.
812 (get_number): Rewrite using get_number_const.
813 (init_number_or_range): Make "string" const.
814 (number_is_in_list): Make "list" const.
815 * cli/cli-utils.h (get_number_const): Declare.
816 (struct get_number_or_range_state) <string, end_ptr>: Now const.
817 (init_number_or_range, number_is_in_list): Update.
818 * printcmd.c (map_display_numbers): Update.
819 * value.c (value_from_history_ref): Constify.
820 * value.h (value_from_history_ref): Update.
822 2014-07-30 Tom Tromey <tromey@redhat.com>
824 * corefile.c (hook_type, call_extra_exec_file_hooks)
825 (specify_exec_file_hook): Constify.
826 * exec.c (exec_file_attach): Make "filename" const.
827 * gdbcore.h (deprecated_exec_file_display_hook)
828 (specify_exec_file_hook, exec_file_attach): Constify.
829 * main.c (captured_main): Use catch_command_errors_const.
831 2014-07-30 Tom Tromey <tromey@redhat.com>
833 * target.c (open_target): New function.
834 (add_target_with_completer, add_deprecated_target_alias): Use
835 set_cmd_sfunc, set_cmd_context.
836 (debug_to_open): Remove.
837 (setup_target_debug): Update.
839 2014-07-30 Yao Qi <yao@codesourcery.com>
841 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
843 * parse.c (exp_iterate): Update comments.
845 2014-07-30 Gary Benson <gbenson@redhat.com>
847 * common/common-defs.h: New file.
848 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
849 * defs.h: Include common-defs.h.
850 Do not include config.h or build-gnulib/config.h.
852 2014-07-30 Gary Benson <gbenson@redhat.com>
854 * common/common-utils.h: Do not include config.h.
855 * nat/linux-btrace.h: Likewise.
857 2014-07-30 Gary Benson <gbenson@redhat.com>
859 * btrace.c: Include defs.h.
860 * common/ptid.c: Include defs.h or server.h as appropriate.
861 * nat/mips-linux-watch.c: Likewise.
863 2014-07-29 Tom Tromey <tromey@redhat.com>
865 * target.c (target_is_pushed): Simplify.
867 2014-07-29 Joel Brobecker <brobecker@adacore.com>
871 2014-07-29 Yao Qi <yao@codesourcery.com>
874 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
876 2014-07-28 Doug Evans <xdje42@gmail.com>
879 * guile/scm-param.c (pascm_parameter_defined_p): New function.
880 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
883 2014-07-28 Will Newton <will.newton@linaro.org>
885 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
886 (THUMB2_SET_R7_SIGRETURN2): Likewise.
887 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
888 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
889 (THUMB2_EABI_SYSCALL): Likewise.
890 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
892 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
893 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
895 2014-07-27 Doug Evans <xdje42@gmail.com>
897 * guile/scm-param.c (pascm_print_param_smob): Fix output.
899 2014-07-27 Doug Evans <xdje42@gmail.com>
901 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
903 2014-07-26 Ludovic Courtès <ludo@gnu.org>
904 Doug Evans <xdje42@gmail.com>
907 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
908 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
909 * configure.ac: Try to use guild to compile an scm file, if it fails
910 then disable guile support.
911 * configure: Regenerate.
912 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
914 (GUILE_COMPILED_FILES): New variable.
915 (GUILE_FILES) Update.
916 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
917 (stamp-guile): Compile scm files.
918 * guile/guile.c (boot_guile_support): New function.
919 (standard_throw_args_p): New function.
920 (print_standard_throw_error, print_throw_error): New functions.
921 (handle_boot_error): New function.
922 (initialize_scheme_side): Rewrite to call boot_guile_support.
923 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
924 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
926 2014-07-26 Ludovic Courtès <ludo@gnu.org>
927 Doug Evans <xdje42@gmail.com>
930 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
931 * guile/lib/gdb/support.scm: New file.
932 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
933 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
935 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
937 (%assert-type): Ditto, and renamed to assert-type.
938 (%exception-print-style): Delete.
940 2014-07-26 Doug Evans <xdje42@gmail.com>
943 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
944 * configure: Regenerate.
945 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
947 (PYTHON_FILES): New variable.
948 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
949 (GUILE_FILES): New variable.
950 (stamp-python, install-python, uninstall-python): Handle empty
952 (stamp-guile, install-guile, uninstall-guile): Ditto.
954 2014-07-26 Doug Evans <xdje42@gmail.com>
957 * guile/lib/gdb.scm (pretty-printers): Export.
958 (set-pretty-printers!): Export.
959 * guile/lib/gdb/printing.scm (gdb module): Update.
960 (prepend-pretty-printer!, append-pretty-printer!): Update.
961 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
962 (pretty_printer_list_var): Delete.
963 (pretty_printer_list): New static global.
964 (gdbscm_pretty_printers): New function.
965 (gdbscm_set_pretty_printers_x): New function.
966 (ppscm_find_pretty_printer_from_gdb): Update.
967 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
968 (gdbscm_initialize_pretty_printers): Update.
970 2014-07-26 Doug Evans <xdje42@gmail.com>
973 * configure.ac: Add check for header gc/gc.h.
974 Add check for function setenv.
975 * configure: Regenerate.
976 * config.in: Regenerate.
977 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
979 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
981 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
982 variation in gdbarch matching.
984 2014-07-25 Tom Tromey <tromey@redhat.com>
986 * exec.c (using_exec_ops): Remove.
987 (exec_close_1): Update. Remove extraneous block, reindent.
988 (add_target_sections): Use target_is_pushed.
990 2014-07-25 Pedro Alves <palves@redhat.com>
992 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
993 * monitor.c (monitor_create_inferior): Likewise.
994 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
995 * remote-sim.c (gdbsim_create_inferior): Likewise.
996 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
997 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
998 * windows-nat.c (do_initial_windows_stuff): Likewise.
1000 2014-07-25 Pedro Alves <palves@redhat.com>
1002 * NEWS: Mention signal passing and "signal" command changes.
1003 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1005 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1007 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1008 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1009 (jump_command): Adjust clear_proceed_status call.
1010 (signal_command): Warn if other thread that are resumed have
1011 signals that will be delivered. Adjust clear_proceed_status call.
1012 (until_next_command, finish_command)
1013 (proceed_after_attach_callback, attach_command_post_wait)
1014 (attach_command): Adjust clear_proceed_status call.
1015 * infrun.c (proceed_after_vfork_done): Likewise.
1016 (proceed_after_attach_callback): Adjust comment.
1017 (clear_proceed_status_thread): Clear stop_signal if not in pass
1019 (clear_proceed_status_callback): Delete.
1020 (clear_proceed_status): New 'step' parameter. Only clear the
1021 proceed status of threads the command being prepared is about to
1023 (proceed): If passed in an explicit signal, override stop_signal
1024 with it. Don't pass the last stop signal to the thread we're
1026 (init_wait_for_inferior): Adjust clear_proceed_status call.
1027 (switch_back_to_stepped_thread): Clear the signal if it should not
1029 * infrun.h (clear_proceed_status): New 'step' parameter.
1030 (user_visible_resume_ptid): Add comment.
1031 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1032 signal is in pass state.
1033 * remote.c (append_pending_thread_resumptions): Likewise.
1034 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1036 2014-07-25 Tom Tromey <tromey@redhat.com>
1038 * target.h (target_stopped_data_address)
1039 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1042 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1044 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1046 (avr_pointer_to_address): Likewise.
1048 2014-07-24 Tom Tromey <tromey@redhat.com>
1050 * monitor.c (compile_pattern): Update.
1051 * target.h (struct target_ops) <to_shortname, to_longname,
1054 2014-07-24 Tom Tromey <tromey@redhat.com>
1056 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1057 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1058 (add_info_alias, add_com): Make "doc" const.
1059 (print_doc_line): Make "str" const.
1060 (delete_cmd): Update.
1061 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1062 (print_doc_line): Update.
1063 * cli/cli-script.c (document_command): Update.
1064 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1065 (add_com, add_info, add_info_alias): Update.
1066 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1067 * python/py-cmd.c (cmdpy_destroyer): Update.
1069 2014-07-24 Tom Tromey <tromey@redhat.com>
1071 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1072 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1073 (help_cmd_list): Constify.
1074 (lookup_cmd): Update.
1075 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1077 (help_cmd_list, apropos_cmd): Update.
1078 * cli/cli-script.c (show_user): Update.
1079 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1080 * cli/cli-setshow.h (cmd_show_list): Update.
1081 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1082 (cmd_show_list): Update.
1083 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1084 * python/py-cmd.c (cmdpy_destroyer): Update.
1086 2014-07-24 Tom Tromey <tromey@redhat.com>
1088 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1089 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1091 * command.h (deprecate_cmd): Update.
1092 * maint.c (maintenance_do_deprecate): Add casts.
1094 2014-07-24 Tom Tromey <tromey@redhat.com>
1096 * cli/cli-decode.c (help_cmd): Make parameter "const".
1097 * cli/cli-decode.h (help_cmd): Update.
1099 2014-07-24 Tom Tromey <tromey@redhat.com>
1101 * stack.c (up_silently_base, down_silently_base): Make argument
1104 2014-07-24 Tom Tromey <tromey@redhat.com>
1106 * solib.c (solib_add): Make "pattern" const.
1107 * solib.h (solib_add): Update.
1109 2014-07-24 Tom Tromey <tromey@redhat.com>
1111 * remote.c (remote_serial_open, print_packet, putpkt)
1112 (putpkt_binary): Constify.
1113 * remote.h (putpkt): Update.
1115 2014-07-24 Tom Tromey <tromey@redhat.com>
1117 * monitor.c (monitor_open): Make "args" const.
1118 * monitor.h (monitor_open): Update.
1120 2014-07-24 Tom Tromey <tromey@redhat.com>
1122 * maint.c (match_bfd_flags): Make "string" const.
1123 (print_bfd_section_info): Remove casts.
1124 (print_objfile_section_info): Make "string" const.
1126 2014-07-24 Tom Tromey <tromey@redhat.com>
1128 * inf-child.c (inf_child_open_target): Make "arg" const.
1129 * inf-child.h (inf_child_open_target): Update.
1131 2014-07-24 Tom Tromey <tromey@redhat.com>
1133 * environ.c (unset_in_environ): Make "var" const.
1134 * environ.h (unset_in_environ): Update.
1136 2014-07-24 Tom Tromey <tromey@redhat.com>
1138 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1140 (scan_filename_with_cleanup): Likewise.
1141 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1142 Make arguments const.
1143 (restore_command): Update.
1145 2014-07-24 Pedro Alves <palves@redhat.com>
1147 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1149 2014-07-24 Tom Tromey <tromey@redhat.com>
1150 Gary Benson <gbenson@redhat.com>
1152 * nat/linux-ptrace.c (additional_flags): New global.
1153 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1154 additional_flags; don't check GDBSERVER.
1155 (linux_ptrace_set_additional_flags): New function.
1156 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1158 * linux-nat.c (_initialize_linux_nat): Call
1159 linux_ptrace_set_additional_flags.
1161 2014-07-24 Tom Tromey <tromey@redhat.com>
1163 * make-target-delegates (munge_type, write_debugmethod): New
1165 (debug_names): New global.
1166 ($TARGET_DEBUG_PRINTER): New global.
1167 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1169 Write debug methods. Generate init_debug_target.
1170 * target-debug.h: New file.
1171 * target-delegates.c: Rebuild.
1172 * target.c: Include target-debug.h.
1173 (debug_target): Hoist definition.
1174 (target_kill, target_get_section_table, target_memory_map)
1175 (target_flash_erase, target_flash_done, target_detach)
1176 (target_disconnect, target_wait, target_resume)
1177 (target_pass_signals, target_program_signals, target_follow_fork)
1178 (target_mourn_inferior, target_search_memory)
1179 (target_thread_address_space, target_close)
1180 (target_find_new_threads, target_core_of_thread)
1181 (target_verify_memory, target_insert_mask_watchpoint)
1182 (target_remove_mask_watchpoint): Remove targetdebug code.
1183 (debug_to_post_attach, debug_to_prepare_to_store)
1184 (debug_to_files_info, debug_to_insert_breakpoint)
1185 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1186 (debug_to_region_ok_for_hw_watchpoint)
1187 (debug_to_can_accel_watchpoint_condition)
1188 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1189 (debug_to_watchpoint_addr_within_range)
1190 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1191 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1192 (debug_to_terminal_init, debug_to_terminal_inferior)
1193 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1194 (debug_to_terminal_save_ours, debug_to_terminal_info)
1195 (debug_to_load, debug_to_post_startup_inferior)
1196 (debug_to_insert_fork_catchpoint)
1197 (debug_to_remove_fork_catchpoint)
1198 (debug_to_insert_vfork_catchpoint)
1199 (debug_to_remove_vfork_catchpoint)
1200 (debug_to_insert_exec_catchpoint)
1201 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1202 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1203 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1204 (setup_target_debug): Call init_debug_target.
1205 * target.h (TARGET_DEBUG_PRINTER): New macro.
1206 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1207 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1209 2014-07-24 Gary Benson <gbenson@redhat.com>
1211 * exceptions.h (throw_vfatal): Renamed to...
1212 (throw_vquit): New declaration.
1213 (throw_quit): Likewise.
1214 * exceptions.c (throw_vfatal): Renamed to...
1215 (throw_vquit): New function.
1216 (throw_quit): Likewise.
1217 (throw_error): Call throw_verror rather than throw_it.
1218 * utils.h (vfatal): Removed.
1220 * utils.c (vfatal): Removed.
1222 (internal_verror): Replaced call to fatal with call to throw_quit.
1223 (quit): Replaced calls to fatal with calls to throw_quit.
1225 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1227 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1230 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1232 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1233 less than zero in conditional expression.
1235 2014-07-23 Tom Tromey <tromey@redhat.com>
1237 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1238 ($INTRO_PART): Don't match whitespace.
1239 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1241 ($METHOD): Add $METHOD_TRAILER.
1243 (scan_target_h): New sub.
1244 Change main loop not to collect state.
1245 * target-delegates.c: Rebuild.
1247 2014-07-23 Gary Benson <gbenson@redhat.com>
1249 * cp-support.c (gdb_demangle): Fix build on systems without
1252 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1255 for reference entry value target data value.
1257 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1259 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1260 value_available_contents_eq.
1262 2014-07-22 Pedro Alves <palves@redhat.com>
1264 * value.c (allocate_optimized_out_value): Don't mark value as
1267 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1269 * MAINTAINERS (Write After Approval): Update my email address.
1271 2014-07-20 Doug Evans <dje@google.com>
1274 * remote.c (putpkt_binary): Add text to error message.
1276 2014-07-20 Yao Qi <yao@codesourcery.com>
1278 * eval.c: Remove "Chill" from comments.
1279 * gdbtypes.h: Likewise.
1280 * symtab.h: Likewise.
1282 2014-07-20 Yao Qi <yao@codesourcery.com>
1284 * std-operator.def: Update comments to TERNOP_SLICE.
1286 2014-07-20 Yao Qi <yao@codesourcery.com>
1288 * std-operator.def: Remove BINOP_RANGE.
1289 * breakpoint.c (watchpoint_exp_is_const): Update.
1290 * expprint.c (dump_subexp_body_standard): Likewise.
1291 * eval.c (init_array_element): Remove dead code.
1292 (evaluate_subexp_standard): Likewise.
1294 2014-07-20 Yao Qi <yao@codesourcery.com>
1296 * std-operator.def: Remove BINOP_IN.
1297 * breakpoint.c (watchpoint_exp_is_const): Update.
1298 * eval.c (evaluate_subexp_standard): Likewise.
1299 * expprint.c (dump_subexp_body_standard): Likewise.
1301 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1303 * microblaze-tdep.c (microblaze_register_names): Add
1304 the rshr and rslr register names.
1305 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1306 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1307 Use of tdesc_numbered_register. Use of
1308 microblaze_register_g_packet_guesses. Use of
1309 tdesc_use_registers. Use of set_gdbarch_register_type.
1310 (microblaze_register_g_packet_guesses): New.
1311 * microblaze-tdep.h (microblaze_reg_num): Add
1312 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1313 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1314 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1315 * features/microblaze-core.xml: New file.
1316 * features/microblaze-stack-protect.xml: New file.
1317 * features/microblaze-with-stack-protect.c: New file.
1318 * features/microblaze-with-stack-protect.xml: New file.
1319 * features/microblaze.xml: New file.
1320 * features/microblaze.c: New file.
1321 * features/Makefile (microblaze-with-stack-protect): Add
1322 microblaze-with-stack-protect microblaze and microblaze-expedite.
1323 * regformats/microblaze-with-stack-protect.dat: New file.
1324 * regformats/microblaze.dat: New file.
1325 * doc/gdb.texinfo (MicroBlaze Features): Added.
1327 2014-07-18 Tom Tromey <tromey@redhat.com>
1329 * exec.c (exec_ops): Now static.
1330 * exec.h (exec_ops): Don't declare.
1332 2014-07-18 Tom Tromey <tromey@redhat.com>
1334 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1335 to find_target_beneath.
1336 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1337 find_target_beneath.
1338 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1340 2014-07-18 Tom Tromey <tromey@redhat.com>
1343 * utils.c (quit): Use target_supports_terminal_ours.
1344 * target.h (target_supports_terminal_ours): Declare.
1345 * target.c (target_supports_delete_record): Don't check
1346 to_delete_record against NULL.
1347 (target_supports_terminal_ours): New function.
1349 2014-07-18 Tom Tromey <tromey@redhat.com>
1352 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1353 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1354 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1355 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1356 * windows-nat.c (windows_xfer_partial): Always delegate.
1357 * record-btrace.c (record_btrace_xfer_partial): Simplify
1359 (record_btrace_fetch_registers, record_btrace_store_registers)
1360 (record_btrace_prepare_to_store, record_btrace_resume)
1361 (record_btrace_wait, record_btrace_find_new_threads)
1362 (record_btrace_thread_alive): Likewise.
1363 * procfs.c (procfs_xfer_partial): Always delegate.
1364 * corelow.c (core_xfer_partial): Always delegate.
1365 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1367 2014-07-18 Tom Tromey <tromey@redhat.com>
1369 * exec.c (exec_make_note_section): Move earlier.
1371 2014-07-17 Doug Evans <dje@google.com>
1374 * maint.c (count_symtabs_and_blocks): Handle NULL
1375 current_program_space.
1376 (report_command_stats): Check global enabled flag in addition to
1377 recorded enabled flag.
1378 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1380 2014-07-16 Pedro Alves <palves@redhat.com>
1382 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1384 2014-07-16 Tom Tromey <tromey@redhat.com>
1386 * target.h (struct target_ops) <to_delete_record>: Reformat
1389 2014-07-16 Tom Tromey <tromey@redhat.com>
1391 * target-delegates.c: Rebuild.
1393 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1395 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1396 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1397 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1398 (avr_pointer_to_address): Likewise.
1399 (avr_address_class_type_flags): New function.
1400 (avr_address_class_type_flags_to_name): Likewise.
1401 (avr_address_class_name_to_type_flags): Likewise.
1402 (avr_gdbarch_init): Set address_class_type_flags,
1403 address_class_type_flags_to_name and
1404 address_class_name_to_type_flags.
1406 2014-07-15 Pedro Alves <palves@redhat.com>
1408 * linux-nat.c (kill_callback): Save errno and work with saved
1411 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1413 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1415 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1417 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1418 breakpoint support correctly.
1420 2014-07-14 Pedro Alves <palves@redhat.com>
1422 * utils.c (prompt_for_continue): Call target_terminal_ours.
1424 2014-07-14 Pedro Alves <palves@redhat.com>
1426 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1427 catch_errors. Don't re-enable stdin or notify observers where,
1429 (fetch_inferior_event_wrapper): Delete.
1431 2014-07-14 Pedro Alves <palves@redhat.com>
1434 * top.c: Include "inf-loop.h".
1435 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1437 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1439 (gdb_readline_wrapper): Store whether the target is async, and
1442 2014-07-14 Pedro Alves <palves@redhat.com>
1445 * top.c (gdb_readline_wrapper_line): Tweak comment.
1446 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1447 the input handler callback.
1449 2014-07-14 Pedro Alves <palves@redhat.com>
1452 * main.c: Include event-top.h.
1453 (handle_command_errors): New function.
1454 (catch_command_errors, catch_command_errors_const): Use it.
1456 2014-07-14 Pedro Alves <palves@redhat.com>
1458 * exceptions.c (catch_command_errors, catch_command_errors_const):
1460 * exceptions.h (catch_command_errors_ftype)
1461 (catch_command_errors_const_ftype): Moved to main.c.
1462 (catch_command_errors, catch_command_errors_const): Delete
1464 * main.c (catch_command_errors_ftype)
1465 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1466 (catch_command_errors, catch_command_errors_const)): Moved here
1467 from exceptions.c and make static.
1469 2014-07-14 Pedro Alves <palves@redhat.com>
1471 * exceptions.c (print_any_exception): Delete.
1472 (catch_exceptions_with_msg): Use exception_print instead of
1473 print_any_exception.
1474 (catch_errors): Use exception_fprintf instead of
1475 print_any_exception.
1476 (catch_command_errors, catch_command_errors_const): Use
1477 exception_print instead of print_any_exception.
1479 2014-07-14 Pedro Alves <palves@redhat.com>
1481 * infcall.c (run_inferior_call): Set 'sync_execution' while
1482 running the inferior call.
1484 2014-07-14 Pedro Alves <palves@redhat.com>
1486 * value.c (value_contents_equal): Delete function.
1487 * value.h (value_contents_equal): Delete declaration.
1489 2014-07-14 Tom Tromey <tromey@redhat.com>
1492 * gdbtypes.c (is_dynamic_type_internal): New function, from
1494 (is_dynamic_type): Rewrite.
1495 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1496 (resolve_dynamic_struct): Likewise.
1497 (resolve_dynamic_type_internal): New function, from
1498 resolve_dynamic_type.
1499 (resolve_dynamic_type): Rewrite.
1501 2014-07-14 Tom Tromey <tromey@redhat.com>
1503 * target.c (target_require_runnable): Also check record_stratum.
1506 2014-07-11 Yao Qi <yao@codesourcery.com>
1508 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1509 thumb_instruction_restores_sp return true.
1511 2014-07-11 Yao Qi <yao@codesourcery.com>
1513 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1514 (thumb_in_function_epilogue_p): Call
1515 thumb_instruction_restores_sp.
1517 2014-07-11 Yao Qi <yao@codesourcery.com>
1519 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1521 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1523 2014-07-11 Gary Benson <gbenson@redhat.com>
1525 * amd64-linux-nat.c (gdbcore.h): Remove include.
1526 (regset.h): Likewise.
1527 (nat/linux-btrace.h): Likewise.
1528 (btrace.h): Likewise.
1529 (gdb_assert.h): Likewise.
1530 (string.h): Likewise.
1531 (sys/uio.h): Likewise.
1532 (sys/debugreg.h): Likewise.
1533 (sys/syscall.h): Likewise.
1534 (sys/procfs.h): Likewise.
1535 (sys/user.h): Likewise.
1536 (asm/ptrace.h): Likewise.
1537 (i386-nat.h): Likewise.
1538 * i386-linux-nat.c (i386-nat.h): Likewise.
1539 (regset.h): Likewise.
1540 (target.h): Likewise.
1541 (linux-nat.h): Likewise.
1542 (nat/linux-btrace.h): Likewise.
1543 (btrace.h): Likewise.
1544 (gdb_assert.h): Likewise.
1545 (string.h): Likewise.
1546 (sys/uio.h): Likewise.
1547 (sys/user.h): Likewise.
1548 (sys/procfs.h): Likewise.
1549 (sys/reg.h): Likewise.
1550 (sys/debugreg.h): Likewise.
1551 (ORIG_EAX): Remove definition.
1553 2014-07-11 Gary Benson <gbenson@redhat.com>
1555 * i386-linux-nat.h: New file.
1556 * x86-linux-nat.h: Likewise.
1557 * x86-linux-nat.c: Likewise.
1558 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1559 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1560 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1561 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1562 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1563 (PTRACE_SETREGSET): Likewise.
1564 (arch_lwp_info): Now in x86-linux-nat.c.
1565 (have_ptrace_getregset): Now in x86-linux-nat.h.
1566 (x86_linux_dr_get): Now in x86-linux-nat.c.
1567 (x86_linux_dr_set): Likewise.
1568 (x86_linux_dr_get_addr): Likewise.
1569 (x86_linux_dr_get_control): Likewise.
1570 (x86_linux_dr_get_status): Likewise.
1571 (update_debug_registers_callback): Likewise.
1572 (x86_linux_dr_set_control): Likewise.
1573 (x86_linux_dr_set_addr): Likewise.
1574 (x86_linux_prepare_to_resume): Likewise.
1575 (x86_linux_new_thread): Likewise.
1576 (x86_linux_new_fork): Likewise.
1577 (x86_linux_get_thread_area): Likewise.
1578 (super_post_startup_inferior): Likewise.
1579 (x86_linux_child_post_startup_inferior): Likewise.
1580 (AMD64_LINUX_USER64_CS): Likewise.
1581 (AMD64_LINUX_X32_DS): Likewise.
1582 (x86_linux_read_description): Likewise.
1583 (x86_linux_enable_btrace): Likewise.
1584 (x86_linux_disable_btrace): Likewise.
1585 (x86_linux_teardown_btrace): Likewise.
1586 (x86_linux_read_btrace): Likewise.
1587 (x86_linux_create_target): Likewise.
1588 (x86_linux_add_target): Likewise.
1589 * i386-linux-nat.c (x86-linux-nat.h): New include.
1590 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1591 (PTRACE_SETREGSET): Likewise.
1592 (arch_lwp_info): Now in x86-linux-nat.c.
1593 (have_ptrace_getregset): Now in x86-linux-nat.h.
1594 (x86_linux_dr_get): Now in x86-linux-nat.c.
1595 (x86_linux_dr_set): Likewise.
1596 (x86_linux_dr_get_addr): Likewise.
1597 (x86_linux_dr_get_control): Likewise.
1598 (x86_linux_dr_get_status): Likewise.
1599 (update_debug_registers_callback): Likewise.
1600 (x86_linux_dr_set_control): Likewise.
1601 (x86_linux_dr_set_addr): Likewise.
1602 (x86_linux_prepare_to_resume): Likewise.
1603 (x86_linux_new_thread): Likewise.
1604 (x86_linux_new_fork): Likewise.
1605 (x86_linux_get_thread_area): Likewise.
1606 (super_post_startup_inferior): Likewise.
1607 (x86_linux_child_post_startup_inferior): Likewise.
1608 (AMD64_LINUX_USER64_CS): Likewise.
1609 (AMD64_LINUX_X32_DS): Likewise.
1610 (x86_linux_read_description): Likewise.
1611 (x86_linux_enable_btrace): Likewise.
1612 (x86_linux_disable_btrace): Likewise.
1613 (x86_linux_teardown_btrace): Likewise.
1614 (x86_linux_read_btrace): Likewise.
1615 (x86_linux_create_target): Likewise.
1616 (x86_linux_add_target): Likewise.
1618 2014-07-11 Gary Benson <gbenson@redhat.com>
1620 * amd64-linux-nat.c: Comment and whitespace changes.
1621 * i386-linux-nat.c: Comment and whitespace changes.
1623 2014-07-11 Gary Benson <gbenson@redhat.com>
1625 * amd64-linux-nat.c (x86_linux_create_target): New function.
1626 (x86_linux_add_target): Likewise.
1627 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1628 * i386-linux-nat.c (x86_linux_create_target): New function.
1629 (x86_linux_add_target): Likewise.
1630 (_initialize_i386_linux_nat): Delegate to the above new functions.
1632 2014-07-11 Gary Benson <gbenson@redhat.com>
1634 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1635 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1636 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1637 (ps_get_thread_area): Delegate to the above.
1639 2014-07-11 Gary Benson <gbenson@redhat.com>
1641 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1642 x86_linux_read_description. All uses updated. amd64-specific
1643 code conditionalized. Conditionalized i386-specific code added.
1644 Redundant cast removed.
1645 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1646 x86_linux_read_description. All uses updated. i386-specific
1647 code conditionalized. Conditionalized amd64-specific code added.
1648 One sizeof replaced with the actual type it is describing.
1650 2014-07-11 Gary Benson <gbenson@redhat.com>
1652 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1653 x86_linux_dr_get. All uses updated.
1654 (amd64_linux_dr_set): Renamed to
1655 x86_linux_dr_set. All uses updated.
1656 (amd64_linux_dr_get_addr): Renamed to
1657 x86_linux_dr_get_addr. All uses updated.
1658 (amd64_linux_dr_get_control): Renamed to
1659 x86_linux_dr_get_control. All uses updated.
1660 (amd64_linux_dr_get_status): Renamed to
1661 x86_linux_dr_get_status. All uses updated.
1662 (amd64_linux_dr_set_control): Renamed to
1663 x86_linux_dr_set_control. All uses updated.
1664 (amd64_linux_dr_set_addr): Renamed to
1665 x86_linux_dr_set_addr. All uses updated.
1666 (amd64_linux_prepare_to_resume): Renamed to
1667 x86_linux_prepare_to_resume. All uses updated.
1668 (amd64_linux_new_thread): Renamed to
1669 x86_linux_new_thread. All uses updated.
1670 (amd64_linux_new_fork): Renamed to
1671 x86_linux_new_fork. All uses updated.
1672 (amd64_linux_child_post_startup_inferior): Renamed to
1673 x86_linux_child_post_startup_inferior. All uses updated.
1674 (amd64_linux_enable_btrace): Renamed to
1675 x86_linux_enable_btrace. All uses updated.
1676 (amd64_linux_disable_btrace): Renamed to
1677 x86_linux_disable_btrace. All uses updated.
1678 (amd64_linux_teardown_btrace): Renamed to
1679 x86_linux_teardown_btrace. All uses updated.
1680 (amd64_linux_read_btrace): Renamed to
1681 x86_linux_read_btrace. All uses updated.
1682 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1683 x86_linux_dr_get. All uses updated.
1684 (i386_linux_dr_set): Renamed to
1685 x86_linux_dr_set. All uses updated.
1686 (i386_linux_dr_get_addr): Renamed to
1687 x86_linux_dr_get_addr. All uses updated.
1688 (i386_linux_dr_get_control): Renamed to
1689 x86_linux_dr_get_control. All uses updated.
1690 (i386_linux_dr_get_status): Renamed to
1691 x86_linux_dr_get_status. All uses updated.
1692 (i386_linux_dr_set_control): Renamed to
1693 x86_linux_dr_set_control. All uses updated.
1694 (i386_linux_dr_set_addr): Renamed to
1695 x86_linux_dr_set_addr. All uses updated.
1696 (i386_linux_prepare_to_resume): Renamed to
1697 x86_linux_prepare_to_resume. All uses updated.
1698 (i386_linux_new_thread): Renamed to
1699 x86_linux_new_thread. All uses updated.
1700 (i386_linux_new_fork): Renamed to
1701 x86_linux_new_fork. All uses updated.
1702 (i386_linux_child_post_startup_inferior): Renamed to
1703 x86_linux_child_post_startup_inferior. All uses updated.
1704 (i386_linux_enable_btrace): Renamed to
1705 x86_linux_enable_btrace. All uses updated.
1706 (i386_linux_disable_btrace): Renamed to
1707 x86_linux_disable_btrace. All uses updated.
1708 (i386_linux_teardown_btrace): Renamed to
1709 x86_linux_teardown_btrace. All uses updated.
1710 (i386_linux_read_btrace): Renamed to
1711 x86_linux_read_btrace. All uses updated.
1713 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1715 * remote.c (extended_remote_post_attach): New function.
1716 (init_extended_remote_ops): Install it as to_post_attach method.
1718 2014-07-09 Pedro Alves <palves@redhat.com>
1720 * infcmd.c (attach_command_post_wait): Don't call
1721 target_terminal_inferior here.
1722 (attach_command): Call it here instead.
1724 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1726 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1728 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1729 from varobj.c, with additional checks.
1730 (c_varobj_ops): Fill in is_path_expr_parent field.
1731 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1732 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1734 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1736 (varobj_default_is_path_expr_parent): New function.
1737 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1738 (varobj_default_is_path_expr_parent): Declare new function.
1740 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1742 * infcmd.c (finish_backward): Turn internal error into normal error.
1744 2014-07-07 Pedro Alves <palves@redhat.com>
1747 * remote.c (async_handle_remote_sigint)
1748 (async_handle_remote_sigint_twice): Call
1749 gdb_call_async_signal_handler instead of
1750 mark_async_signal_handler.
1752 2014-07-07 Tom Tromey <tromey@redhat.com>
1754 * target-delegates.c: Rebuild.
1755 * target.c (target_info_record): Remove.
1756 * record.c (info_record_command): Unconditionally call
1758 * target.h (struct target_ops) <to_info_record>: Use
1759 TARGET_DEFAULT_IGNORE.
1760 (target_info_record): Remove.
1762 2014-07-07 Tom Tromey <tromey@redhat.com>
1764 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1765 TARGET_DEFAULT_NORETURN.
1766 * target.c (generic_tls_error): New function.
1767 (target_translate_tls_address): Don't search target stack.
1768 * target-delegates.c: Rebuild.
1769 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1771 * linux-thread-db.c (thread_db_get_thread_local_address):
1772 Unconditionally call beneath target.
1774 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1776 * cli/cli-logging.c (pop_output_files): Assign targerr to
1779 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1781 * MAINTAINERS (Write After Approval): Update my email address.
1783 2014-07-02 Gary Benson <gbenson@redhat.com>
1785 * proc-service.c (ps_xfer_memory): Update comment.
1786 (ps_pstop): Remove unused function.
1787 (ps_pcontinue): Likewise.
1788 (ps_lstop): Likewise.
1789 (ps_lcontinue): Likewise.
1790 (ps_lgetxregsize): Likewise.
1791 (ps_lgetxregs): Likewise.
1792 (ps_lsetxregs): Likewise.
1793 (ps_plog): Likewise.
1794 (ps_ptread): Likewise.
1795 (ps_ptwrite): Likewise.
1797 2014-07-01 Mark Wielaard <mjw@redhat.com>
1799 * dwarf2read.c (add_array_cv_type): New function.
1800 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1801 (read_tag_volatile_type): Likewise.
1803 2014-07-01 Tom Tromey <tromey@redhat.com>
1805 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1806 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1807 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1808 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1809 * command.h (cmd_cfunc_ftype): Move earlier.
1810 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1811 (add_com, add_info): Use cmd_cfunc_ftype.
1813 2014-06-30 Tom Tromey <tromey@redhat.com>
1815 * symtab.c (operator_chars): Make parameters and return type
1817 (file_matches): Make "files" const.
1818 (struct search_symbols_data) <files>: Now const.
1819 (search_symbols): Make "regexp" and "files" parameters const.
1821 (symtab_symbol_info): Remove cast.
1822 (rbreak_command): Update.
1823 * symtab.h (search_symbols): Update.
1825 2014-06-27 Yao Qi <yao@codesourcery.com>
1827 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1828 Change parameter type to 'struct thread_info *'. Caller
1830 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1832 * dummy-frame.c (struct dummy_frame_id): New.
1833 (dummy_frame_id_eq): New function.
1834 (struct dummy_frame) <id>: Change its type to 'struct
1836 (dummy_frame_push): Add parameter ptid and save it in
1838 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1840 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1842 (lookup_dummy_frame): Change parameter type to 'struct
1843 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1844 instead of frame_id_eq.
1845 (dummy_frame_pop): Add parameter ptid. Callers updated.
1846 Update comments. Compose dummy_frame_id and pass it to
1848 (dummy_frame_discard): Add parameter ptid.
1849 (dummy_frame_sniffer): Compose dummy_frame_id and call
1850 dummy_frame_id_eq instead of frame_id_eq.
1851 (fprint_dummy_frames): Print ptid.
1852 * dummy-frame.h: Remove comments.
1853 (dummy_frame_push): Add ptid in declaration.
1854 (dummy_frame_pop, dummy_frame_discard): Likewise.
1856 2014-06-26 Tom Tromey <tromey@redhat.com>
1858 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1859 * command.h (error_no_arg): Update.
1861 2014-06-26 Tom Tromey <tromey@redhat.com>
1863 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1864 (do_show_command): Make "arg" const.
1865 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1867 2014-06-26 Tom Tromey <tromey@redhat.com>
1869 * record-full.c (record_full_get_bookmark): Make "args" const.
1870 (record_full_goto_bookmark): Make "raw_bookmark" const.
1871 * record.c (record_goto): New function.
1872 (cmd_record_goto): Use it. Now static.
1873 * record.h (record_goto): Declare.
1874 (cmd_record_goto): Remove declaration.
1875 * target-delegates.c: Rebuild.
1876 * target.h (struct target_ops) <to_get_bookmark,
1877 to_goto_bookmark>: Make parameter const.
1879 2014-06-26 Tom Tromey <tromey@redhat.com>
1881 * defs.h (generic_load): Update.
1882 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1883 * monitor.c (monitor_load): Make "args" const.
1884 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1885 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1887 (mips_load): Make "file" const.
1888 * remote-sim.c (gdbsim_load): Make "args" const.
1889 * remote.c (remote_load): Make "name" const.
1890 * symfile.c (generic_load): Make "args" const.
1891 * target-delegates.c: Rebuild.
1892 * target.c (target_load): Make "arg" const.
1893 (debug_to_load): Make "args" const.
1894 * target.h (struct target_ops) <to_load>: Make parameter const.
1895 (target_load): Update.
1897 2014-06-26 Tom Tromey <tromey@redhat.com>
1900 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1901 (dwarf2_physname, read_partial_die)
1902 (guess_partial_die_structure_name, fixup_partial_die)
1903 (guess_full_die_structure_name, anonymous_struct_prefix)
1904 (dwarf2_name): Use per-BFD obstack.
1906 2014-06-26 Yao Qi <yao@codesourcery.com>
1908 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1909 dummyframe and this_id into inner block below.
1911 2014-06-26 Yao Qi <yao@codesourcery.com>
1913 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1914 with "signal_pass[0]" in the initialization of signal_pass.
1916 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1918 * record-btrace.c (record_btrace_generating_corefile)
1919 (record_btrace_prepare_to_generate_core)
1920 (record_btrace_done_generating_core): New.
1921 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1922 (record_btrace_store_registers, record_btrace_prepare_to_store):
1923 Forward request when generating a core file.
1924 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1925 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1926 to_done_generating_core.
1928 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1930 * target.h (target_ops) <to_prepare_to_generate_core>
1931 <to_done_generating_core>: New.
1932 (target_prepare_to_generate_core, target_done_generating_core): New.
1933 * target.c (target_prepare_to_generate_core)
1934 (target_done_generating_core): New.
1935 * target-delegates.c: Regenerate.
1936 * gcore.c: (write_gcore_file): Rename to ...
1937 (write_gcore_file_1): ...this.
1938 (write_gcore_file): Call target_prepare_to_generate_core
1939 and target_done_generating_core.
1941 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1943 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1944 * gcore.c (write_gcore_file): Free memory returned from
1945 make_corefile_notes.
1946 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1947 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1949 2014-06-24 Yao Qi <yao@codesourcery.com>
1951 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1952 (arm_linux_init_abi): Set skip_trampoline_code with
1953 gdbarch_skip_trampoline_code instead of
1954 find_solib_trampoline_target.
1956 2014-06-24 Yao Qi <yao@codesourcery.com>
1958 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1959 arm_skip_bx_reg returns non-zero.
1961 2014-06-24 Yao Qi <yao@codesourcery.com>
1963 * arm-tdep.c (arm_skip_bx_reg): New function.
1964 (arm_skip_stub): Call arm_skip_bx_reg.
1966 2014-06-23 Don Breazeal <donb@codesourcery.com>
1968 * MAINTAINERS: Add myself as write-after-approval maintainer.
1970 2014-06-23 Pedro Alves <palves@redhat.com>
1972 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1973 DR_CONTROL before setting DR0..DR3.
1974 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1975 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1976 bits of DR_CONTROL related to the debug register slot being
1977 disabled. If all slots are vacant, clear local slowdown as well,
1978 and assert DR_CONTROL is 0.
1980 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1982 * python/lib/gdb/command/xmethods.py
1983 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1984 current progspace only if the string "progspace" matches LOCUS_RE.
1986 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1988 Fix --with-system-readline with readline-6.3 patch 5.
1989 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1990 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1993 2014-06-20 Tom Tromey <tromey@redhat.com>
1995 * dwarf2read.c (dw2_get_real_path): Use correct type in
1997 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1999 2014-06-20 Gary Benson <gbenson@redhat.com>
2001 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2002 * common/glibc_thread_db.h: Likewise.
2003 * common/i386-cpuid.h: Likewise.
2004 * common/i386-gcc-cpuid.h: Likewise.
2005 * common/linux-btrace.h: Likewise.
2006 * common/linux-osdata.h: Likewise.
2007 * common/linux-procfs.h: Likewise.
2008 * common/linux-ptrace.h: Likewise.
2009 * common/mips-linux-watch.h: Likewise.
2010 * common/linux-btrace.c: Moved to nat.
2011 * common/linux-osdata.c: Likewise.
2012 * common/linux-procfs.c: Likewise.
2013 * common/linux-ptrace.c: Likewise.
2014 * common/mips-linux-watch.c: Likewise.
2015 * nat/gdb_thread_db.h: Moved from common.
2016 * nat/glibc_thread_db.h: Likewise.
2017 * nat/i386-cpuid.h: Likewise.
2018 * nat/i386-gcc-cpuid.h: Likewise.
2019 * nat/linux-btrace.c: Likewise.
2020 * nat/linux-btrace.h: Likewise.
2021 * nat/linux-osdata.c: Likewise.
2022 * nat/linux-osdata.h: Likewise.
2023 * nat/linux-procfs.c: Likewise.
2024 * nat/linux-procfs.h: Likewise.
2025 * nat/linux-ptrace.c: Likewise.
2026 * nat/linux-ptrace.h: Likewise.
2027 * nat/mips-linux-watch.c: Likewise.
2028 * nat/mips-linux-watch.h: Likewise.
2029 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2030 (object file files): Reordered.
2031 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2032 of glibc_thread_db.h.
2034 2014-06-20 Gary Benson <gbenson@redhat.com>
2036 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2037 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2038 (i386_dr_low): Likewise.
2039 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2040 (i386_dr_low_set_addr): Likewise.
2041 (i386_dr_low_get_addr): Likewise.
2042 (i386_dr_low_can_set_control): Likewise.
2043 (i386_dr_low_set_control): Likewise.
2044 (i386_dr_low_get_control): Likewise.
2045 (i386_dr_low_get_status): Likewise.
2046 (i386_get_debug_register_length): Likewise.
2047 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2048 (i386_dr_low): Likewise.
2049 * nat/i386-dregs.c (i386-low.h): Remove include.
2050 (i386-nat.h): Likewise.
2051 (nat/i386-dregs.h): New include.
2052 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2053 (i386_dr_low_set_addr): Likewise.
2054 (i386_dr_low_get_addr): Likewise.
2055 (i386_dr_low_can_set_control): Likewise.
2056 (i386_dr_low_set_control): Likewise.
2057 (i386_dr_low_get_control): Likewise.
2058 (i386_dr_low_get_status): Likewise.
2059 (i386_get_debug_register_length): Likewise.
2060 (debug_hw_points): Likewise.
2062 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2064 * Makefile.in (SFILES): Add d-exp.y.
2065 (YYFILES): Add d-exp.c.
2066 (YYOBJ): Add d-exp.o.
2067 (local-maintainer-clean): Delete d-exp.c.
2068 * d-exp.y: New file.
2069 * d-lang.h (d_parse): New declaration.
2070 (d_error): New declaration.
2071 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2072 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2073 PREC_ORDER operators.
2074 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2076 2014-06-19 Yao Qi <yao@codesourcery.com>
2078 * gdbthread.h (any_running): Remove the declaration.
2079 * thread.c (any_running): Remove.
2081 2014-06-19 Yao Qi <yao@codesourcery.com>
2083 * gdbthread.h (struct thread_info) <state>: Change its type to
2084 'enum thread_state'. Update comments.
2086 2014-06-19 Pedro Alves <palves@redhat.com>
2088 * gdbthread.h (ALL_THREADS): Delete.
2089 (ALL_NON_EXITED_THREADS): New macro.
2090 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2091 instead of ALL_THREADS.
2092 * infrun.c (find_thread_needs_step_over)
2093 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2094 instead of ALL_THREADS.
2095 * record-btrace.c (record_btrace_open)
2096 (record_btrace_stop_recording, record_btrace_close)
2097 (record_btrace_is_replaying, record_btrace_resume)
2098 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2099 * remote.c (append_pending_thread_resumptions): Likewise.
2100 * thread.c (thread_apply_all_command): Likewise.
2102 2014-06-19 Gary Benson <gbenson@redhat.com>
2104 * i386-nat.c (i386_stopped_by_watchpoint):
2105 Use i386_dr_stopped_by_watchpoint.
2106 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2107 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2109 2014-06-19 Gary Benson <gbenson@redhat.com>
2111 * nat/i386-dregs.c: New file.
2112 * Makefile.in (i386-dregs.o): New rule.
2113 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2114 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2115 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2116 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2117 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2118 * config/i386/go32.mh (NATDEPFILES): Likewise.
2119 * config/i386/linux.mh (NATDEPFILES): Likewise.
2120 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2121 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2122 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2123 * i386-nat.h (debug_hw_points): New declaration.
2124 * i386-nat.c (breakpoint.h): Remove include.
2125 (command.h): Likewise.
2126 (target.h): Likewise.
2127 (gdb_assert.h): Likewise.
2128 (debug_hw_points): Made nonstatic.
2129 (debug_printf): Now in i386-dregs.c.
2130 (TARGET_HAS_DR_LEN_8): Likewise.
2131 (DR_CONTROL_SHIFT): Likewise.
2132 (DR_CONTROL_SIZE): Likewise.
2133 (DR_RW_EXECUTE): Likewise.
2134 (DR_RW_WRITE): Likewise.
2135 (DR_RW_READ): Likewise.
2136 (DR_RW_IORW): Likewise.
2137 (DR_LEN_1): Likewise.
2138 (DR_LEN_2): Likewise.
2139 (DR_LEN_4): Likewise.
2140 (DR_LEN_8): Likewise.
2141 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2142 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2143 (DR_ENABLE_SIZE): Likewise.
2144 (DR_LOCAL_SLOWDOWN): Likewise.
2145 (DR_GLOBAL_SLOWDOWN): Likewise.
2146 (DR_CONTROL_RESERVED): Likewise.
2147 (I386_DR_CONTROL_MASK): Likewise.
2148 (I386_DR_VACANT): Likewise.
2149 (I386_DR_LOCAL_ENABLE): Likewise.
2150 (I386_DR_GLOBAL_ENABLE): Likewise.
2151 (I386_DR_DISABLE): Likewise.
2152 (I386_DR_SET_RW_LEN): Likewise.
2153 (I386_DR_GET_RW_LEN): Likewise.
2154 (I386_DR_WATCH_HIT): Likewise.
2155 (i386_wp_op_t): Likewise.
2156 (i386_show_dr): Likewise.
2157 (i386_length_and_rw_bits): Likewise.
2158 (i386_insert_aligned_watchpoint): Likewise.
2159 (i386_remove_aligned_watchpoint): Likewise.
2160 (i386_handle_nonaligned_watchpoint): Likewise.
2161 (i386_update_inferior_debug_regs): Likewise.
2162 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2163 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2164 (i386_region_ok_for_watchpoint):
2165 Use i386_dr_region_ok_for_watchpoint.
2166 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2168 2014-06-19 Gary Benson <gbenson@redhat.com>
2170 * i386-nat.c (i386_insert_hw_breakpoint): Use
2171 i386_insert_watchpoint.
2172 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2174 2014-06-19 Gary Benson <gbenson@redhat.com>
2176 * i386-nat.c (i386_dr_show): Renamed to
2177 i386_show_dr and made static. All uses updated.
2178 (i386_dr_length_and_rw_bits): Renamed to
2179 i386_length_and_rw_bits and made static.
2181 (i386_dr_insert_aligned_watchpoint): Renamed to
2182 i386_insert_aligned_watchpoint and made static.
2184 (i386_dr_remove_aligned_watchpoint): Renamed to
2185 i386_remove_aligned_watchpoint and made static.
2187 (i386_dr_update_inferior_debug_regs): Renamed to
2188 i386_update_inferior_debug_regs and made static.
2190 * nat/i386-dregs.h (i386_dr_show): Removed.
2191 (i386_dr_length_and_rw_bits): Likewise.
2192 (i386_dr_insert_aligned_watchpoint): Likewise.
2193 (i386_dr_remove_aligned_watchpoint): Likewise.
2194 (i386_dr_update_inferior_debug_regs): Likewise.
2196 2014-06-19 Gary Benson <gbenson@redhat.com>
2198 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2199 * configure: Regenerate.
2200 * config.in: Likewise.
2201 * main.c (signal.h): New include.
2202 (setup_alternate_signal_stack): New function.
2203 (captured_main): Call the above.
2204 * cp-support.c (signal.h): New include.
2205 (catch_demangler_crashes): New flag.
2206 (SIGJMP_BUF): New define.
2207 (SIGSETJMP): Likewise.
2208 (SIGLONGJMP): Likewise.
2209 (gdb_demangle_jmp_buf): New static global.
2210 (gdb_demangle_attempt_core_dump): Likewise.
2211 (gdb_demangle_signal_handler): New function.
2212 (gdb_demangle): If catch_demangler_crashes is set, install the
2213 above signal handler before calling bfd_demangle, and restore
2214 the original signal handler afterwards. Display the offending
2215 symbol and call demangler_warning the first time a segmentation
2217 (_initialize_cp_support): New maint set/show command.
2219 2014-06-19 Gary Benson <gbenson@redhat.com>
2221 * utils.h (resource_limit_kind): New enum.
2222 (can_dump_core): New declaration.
2223 (warn_cant_dump_core): Likewise.
2224 (dump_core): Likewise.
2225 * utils.c (dump_core): Made nonstatic. Added new
2226 parameter "limit_kind".
2227 (can_dump_core): Made nonstatic. Moved printing code to...
2228 (warn_cant_dump_core): New function.
2229 (can_dump_core_warn): Likewise.
2230 (internal_vproblem): Replace calls to can_dump_core with
2231 calls to can_dump_core_warn. Supply new argument to each.
2233 2014-06-19 Gary Benson <gbenson@redhat.com>
2235 * utils.h (demangler_vwarning): New declaration.
2236 (demangler_warning): Likewise.
2237 * utils.c (struct internal_problem)
2238 <user_settable_should_quit>: New field.
2239 <user_settable_should_dump_core>: Likewise
2240 (internal_error_problem): Add values for above new fields.
2241 (internal_warning_problem): Likewise.
2242 (demangler_warning_problem): New static global.
2243 (demangler_vwarning): New function.
2244 (demangler_warning): Likewise.
2245 (add_internal_problem_command): Selectively add commands.
2246 (_initialize_utils): New internal problem command.
2247 * maint.c (maintenance_demangler_warning): New function.
2248 (_initialize_maint_cmds): New command.
2250 2014-06-18 Tom Tromey <tromey@redhat.com>
2252 * f-valprint.c (info_common_command_for_block): Update.
2253 * symtab.h (struct general_symbol_info) <common_block>: Now
2256 2014-06-18 Tom Tromey <tromey@redhat.com>
2258 * symtab.h (struct symtab) <blockvector>: Now const.
2259 * ada-lang.c (ada_add_global_exceptions): Update.
2260 * buildsym.c (augment_type_symtab): Update.
2261 * dwarf2read.c (dw2_lookup_symbol): Update.
2262 * jit.c (finalize_symtab): Update.
2263 * jv-lang.c (add_class_symtab_symbol): Update.
2264 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2266 * objfiles.c (objfile_relocate1): Update.
2267 * psymtab.c (lookup_symbol_aux_psymtabs)
2268 (maintenance_check_psymtabs): Update.
2269 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2271 * spu-tdep.c (spu_catch_start): Update.
2272 * symmisc.c (dump_symtab_1): Update.
2273 * symtab.c (lookup_global_symbol_from_objfile)
2274 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2275 (basic_lookup_transparent_type_quick)
2276 (basic_lookup_transparent_type, find_pc_sect_symtab)
2277 (find_pc_sect_line, search_symbols): Update.
2278 * block.c (find_block_in_blockvector): Make "bl" const.
2279 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2281 (blockvector_contains_pc): Make "bv" const.
2282 (block_for_pc_sect): Update.
2283 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2284 (blockvector_contains_pc): Update.
2285 * breakpoint.c (resolve_sal_pc): Update.
2286 * inline-frame.c (block_starting_point_at): Update.
2288 2014-06-18 Tom Tromey <tromey@redhat.com>
2290 * completer.c (complete_line): Make "line_buffer" const.
2291 * completer.h (complete_line): Update.
2293 2014-06-18 Tom Tromey <tromey@redhat.com>
2295 * symtab.c (add_macro_name): Remove unneeded cast.
2297 2014-06-18 Tom Tromey <tromey@redhat.com>
2299 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2300 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2302 2014-06-18 Tom Tromey <tromey@redhat.com>
2304 * probe.c (info_probes_for_ops): Make "arg" const.
2305 * probe.h (info_probes_for_ops): Update.
2307 2014-06-18 Tom Tromey <tromey@redhat.com>
2309 * varobj.c (varobj_create): Update.
2310 * valops.c (value_of_this): Update.
2311 * tracepoint.c (add_local_symbols, scope_info): Update.
2312 * symtab.h (struct general_symbol_info) <block>: Now const.
2313 * symtab.c (skip_prologue_sal)
2314 (default_make_symbol_completion_list_break_on)
2315 (skip_prologue_using_sal): Update.
2316 * stack.h (iterate_over_block_locals)
2317 (iterate_over_block_local_vars): Update.
2318 * stack.c (print_frame_args): Update.
2319 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2321 (get_selected_block): Make return type const.
2322 * python/py-frame.c (frapy_block): Update.
2323 * python/py-block.c (gdbpy_block_for_pc): Update.
2324 * p-exp.y (%union) <bval>: Now const.
2325 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2326 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2327 * m2-exp.y (%union) <bval>: Now const.
2328 * linespec.c (get_current_search_block): Make return type const.
2329 (create_sals_line_offset, find_label_symbols): Update.
2330 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2332 (block_starting_point_at): Make "block" const.
2333 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2334 (check_exception_resume): Update.
2335 * guile/scm-frame.c (gdbscm_frame_block): Update.
2336 * guile/scm-block.c (gdbscm_lookup_block): Update.
2337 * frame.h (get_frame_block): Update.
2338 (get_selected_block): Make return type const.
2339 * frame.c (frame_id_inner): Update.
2340 * f-valprint.c (info_common_command_for_block)
2341 (info_common_command): Update.
2342 * dwarf2loc.c (dwarf2_find_location_expression)
2343 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2344 (locexpr_describe_location_piece): Update.
2345 * c-exp.y (%union) <bval>: Now const.
2346 * breakpoint.c (resolve_sal_pc): Update.
2347 * blockframe.c (get_frame_block):Make return type const.
2348 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2349 (block_innermost_frame): Update.
2350 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2351 (block_for_pc, block_for_pc_sect): Update.
2352 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2354 (block_for_pc_sect, block_for_pc): Make return type const.
2355 * ax-gdb.c (gen_expr): Update.
2356 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2357 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2358 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2359 (ada_read_var_value): Update.
2360 * ada-exp.y (struct name_info) <block>: Now const.
2362 (block_lookup): Constify.
2364 2014-06-18 Gary Benson <gbenson@redhat.com>
2366 * nat/i386-dregs.h: New file.
2367 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2368 * i386-nat.h (i386-dregs.h): New include.
2369 (DR_FIRSTADDR): Now in i386-dregs.h.
2370 (DR_LASTADDR): Likewise.
2371 (DR_NADDR): Likewise.
2372 (DR_STATUS): Likewise.
2373 (DR_CONTROL): Likewise.
2374 (i386_debug_reg_state): Likewise.
2375 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2377 2014-06-18 Don Breazeal <donb@codesourcery.com>
2379 * breakpoint.c (set_longjmp_breakpoint): Call
2380 momentary_breakpoint_from_master with additional argument.
2381 (set_longjmp_breakpoint_for_call_dummy): Call
2382 momentary_breakpoint_from_master with additional argument.
2383 (set_std_terminate_breakpoint): Call
2384 momentary_breakpoint_from_master with additional argument.
2385 (momentary_breakpoint_from_master): Add argument to function
2386 definition and use it to initialize structure member flag.
2387 (clone_momentary_breakpoint): Call
2388 momentary_breakpoint_from_master with additional argument.
2389 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2390 member flags set in momentary_breakpoint_from_master.
2392 2014-06-18 Gary Benson <gbenson@redhat.com>
2394 * i386-nat.c (i386_show_dr): Renamed to
2395 i386_dr_show and made nonstatic. All uses updated.
2396 (i386_length_and_rw_bits): Renamed to
2397 i386_dr_length_and_rw_bits and made nonstatic.
2399 (i386_insert_aligned_watchpoint): Renamed to
2400 i386_dr_insert_aligned_watchpoint and made nonstatic.
2402 (i386_remove_aligned_watchpoint): Renamed to
2403 i386_dr_remove_aligned_watchpoint and made nonstatic.
2405 (i386_update_inferior_debug_regs): Renamed to
2406 i386_dr_update_inferior_debug_regs and made nonstatic.
2409 2014-06-18 Gary Benson <gbenson@redhat.com>
2411 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2412 (i386_dr_low_can_set_control): Likewise.
2413 (i386_dr_low_set_addr): Likewise.
2414 (i386_dr_low_set_control): Likewise.
2415 (i386_dr_low_get_addr): Likewise.
2416 (i386_dr_low_get_status): Likewise.
2417 (i386_dr_low_get_control): Likewise.
2418 (i386_insert_aligned_watchpoint): Use new macros.
2419 (i386_update_inferior_debug_regs): Likewise.
2420 (i386_stopped_data_address): Likewise.
2422 2014-06-18 Gary Benson <gbenson@redhat.com>
2424 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2425 New parameter. All uses updated.
2427 2014-06-18 Gary Benson <gbenson@redhat.com>
2429 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2432 2014-06-18 Gary Benson <gbenson@redhat.com>
2434 * i386-nat.c (debug_printf): New macro.
2435 (i386_get_debug_register_length): Likewise.
2436 (TARGET_HAS_DR_LEN_8): Use above macro.
2437 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2438 and printf_unfiltered. Use phex to format values.
2440 2014-06-18 Gary Benson <gbenson@redhat.com>
2442 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2445 2014-06-18 Gary Benson <gbenson@redhat.com>
2447 * i386-nat.c: Comment changes.
2449 2014-06-18 Gary Benson <gbenson@redhat.com>
2451 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2453 2014-06-18 Gary Benson <gbenson@redhat.com>
2455 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2456 (i386_insert_aligned_watchpoint): Likewise.
2457 (i386_remove_aligned_watchpoint): Likewise.
2458 (i386_handle_nonaligned_watchpoint): Likewise.
2460 2014-06-18 Gary Benson <gbenson@redhat.com>
2462 * i386-nat.c: Whitespace changes.
2464 2014-06-17 Samuel Bronson <naesten@gmail.com>
2466 * MAINTAINERS: Update Roland McGrath's email address.
2467 Thanks to Sergio Durigan Junior for pointing out that he left
2468 Red Hat a while ago, and giving me a current address.
2470 2014-06-17 Tom Tromey <tromey@redhat.com>
2472 * utils.h (savestring): Remove declaration.
2474 2014-06-17 Tom Tromey <tromey@redhat.com>
2476 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2478 2014-06-16 Keith Seitz <keiths@redhat.com>
2481 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2482 to update the varobj if inferior_ptid is null_ptid.
2484 2014-06-16 Tom Tromey <tromey@redhat.com>
2486 * target.h (struct target_ops) <to_info_proc>: Make parameter
2488 (target_info_proc): Update.
2489 * target.c (target_info_proc): Make "args" const.
2490 * procfs.c (procfs_info_proc): Update.
2491 * linux-tdep.c (linux_info_proc): Update.
2492 (linux_core_info_proc_mappings): Make "args" const.
2493 (linux_core_info_proc): Update.
2494 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2495 * gdbarch.c: Rebuild.
2496 * gdbarch.h: Rebuild.
2497 * corelow.c (core_info_proc): Update.
2499 2014-06-16 Tom Tromey <tromey@redhat.com>
2501 * target.h (struct target_ops) <to_disconnect>: Make parameter
2503 (target_disconnect): Update.
2504 * target.c (target_disconnect): Make "args" const.
2505 * target-delegates.c: Rebuild.
2506 * remote.c (remote_disconnect): Update.
2507 * record.h (record_disconnect): Update.
2508 * record.c (record_disconnect): Update.
2509 * inf-child.c (inf_child_disconnect): Update.
2511 2014-06-16 Tom Tromey <tromey@redhat.com>
2513 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2514 * target.c (debug_to_rcmd, default_rcmd): Update.
2515 * target-delegates.c: Rebuild.
2516 * remote.c (remote_rcmd): Update.
2517 * monitor.c (monitor_rcmd): Update.
2519 2014-06-16 Pedro Alves <palves@redhat.com>
2521 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2522 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2523 have OBJF_SHARED set.
2524 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2525 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2526 instead of OBJF_USERLOADED.
2527 * objfiles.h (OBJF_SHARED): Update comment.
2528 (userloaded_objfile_contains_address_p): Rename to ...
2529 (shared_objfile_contains_address_p): ... this, and update
2531 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2533 (remove_symbol_file_command): Skip objfiles that don't have
2536 2014-06-16 Tom Tromey <tromey@redhat.com>
2538 * minsyms.h (prim_record_minimal_symbol)
2539 (prim_record_minimal_symbol_and_info): Update comments.
2541 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2543 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2544 or --without-guile, according to how GDB was built.
2546 2014-06-13 Tom Tromey <tromey@redhat.com>
2548 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2550 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2552 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2554 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2555 help_list.Pass all_commands, not -1, to help_list.
2556 * cli/cli-dump.c (dump_command, append_command)
2557 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2558 (binary_dump_command, binary_append_command): Pass all_commands,
2559 not -1, to help_list.
2560 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2562 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2564 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2566 * top.c (set_history): Pass all_commands, not -1, to help_list.
2567 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2568 all_commands, not -1, to help_list.
2569 * symfile.c (overlay_command): Pass all_commands, not -1, to
2571 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2573 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2575 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2577 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2578 not -1, to help_list.
2579 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2580 not -1, to help_list.
2581 * maint.c (maintenance_command, maintenance_info_command)
2582 (maintenance_print_command, maintenance_set_cmd): Pass
2583 all_commands, not -1, to help_list.
2584 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2586 * language.c (set_check): Pass all_commands, not -1, to help_list.
2587 * infcmd.c (unset_command): Pass all_commands, not -1, to
2589 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2591 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2593 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2595 * breakpoint.c (save_command): Pass all_commands, not -1, to
2597 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2598 all_commands, not -1, to help_list.
2600 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2602 * regcache.c (struct register_to_invalidate): New structure.
2603 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2605 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2607 2014-06-12 Yao Qi <yao@codesourcery.com>
2609 * varobj.c (varobj_get_num_children): Call
2610 varobj_is_dynamic_p.
2611 (varobj_list_children): Likewise.
2612 (varobj_update): Likewise. Update comments.
2614 2014-06-12 Yao Qi <yao@codesourcery.com>
2616 * varobj.c (varobj_pretty_printed_p): Rename to ...
2617 (varobj_is_dynamic_p): ... this. New function.
2618 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2619 (varobj_is_dynamic_p): Declare.
2620 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2621 (mi_print_value_p, varobj_update_one): Likewise.
2623 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2624 Yao Qi <yao@codesourcery.com>
2626 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2627 (varobj_get_iterator): Wrap up code for pretty-printer by
2628 "#if HAVE_PYTHON" and "#endif".
2629 (update_dynamic_varobj_children): Likewise.
2631 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2632 Yao Qi <yao@codesourcery.com>
2634 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2635 gdb_python_initialized is false. Move some code from varobj.c.
2636 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2637 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2638 (struct varobj_item): Moved to varobj-iter.h".
2639 (varobj_clear_saved_item): New function.
2640 (update_dynamic_varobj_children): Move python-related code to
2642 (free_variable): Call varobj_clear_saved_item and
2645 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2646 Yao Qi <yao@codesourcery.com>
2648 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2649 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2650 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2651 (py-varobj.o): New rule.
2652 * python/py-varobj.c: New file.
2653 * python/python-internal.h (py_varobj_get_iterator): Declare.
2654 * varobj-iter.h: New file.
2655 * varobj.c: Include "varobj-iter.h"
2656 (struct varobj) <child_iter>: Change its type from "PyObject *"
2657 to "struct varobj_iter *".
2658 <saved_item>: Likewise.
2659 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2660 [HAVE_PYTHON] (varobj_get_iterator): New function.
2661 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2662 python-specific code to python/py-varobj.c.
2663 (install_visualizer): Call varobj_iter_delete instead of
2665 * varobj.h (varobj_ensure_python_env): Declare.
2667 2014-06-12 Yao Qi <yao@codesourcery.com>
2669 * varobj.c (struct varobj_item): New structure.
2670 (create_child_with_value): Update declaration.
2671 (varobj_add_child): Replace arguments 'name' and 'value' with
2672 'item'. All callers updated.
2673 (install_dynamic_child): Likewise.
2674 (update_dynamic_varobj_children): Likewise.
2675 (varobj_add_child): Likewise.
2676 (create_child_with_value): Likewise.
2678 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2680 * NEWS: Create a new section for the next release branch.
2681 Rename the section of the current branch, now that it has
2684 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2686 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2687 * version.in: Bump version to 7.8.50.DATE-cvs.
2689 2014-06-11 Pedro Alves <palves@redhat.com>
2692 * ser-mingw.c (net_windows_socket_check_pending): New function.
2693 (net_windows_select_thread): Ignore spurious wakeups. Use
2694 net_windows_socket_check_pending.
2695 (net_windows_wait_handle): Check for pending events with
2696 ioctlsocket, through net_windows_socket_check_pending, instead of
2697 checking the socket's event.
2699 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2701 * python/python-internal.h (gdb_PyObject_GetAttrString)
2702 (gdb_PyObject_HasAttrString): New inline function definitions.
2703 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2704 char * of the second argument to PyObject_GetAttrString.
2706 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2708 * serial.c (serial_write): Fix index of character to be printed
2709 in call to serial_logchar when serial debug traces are enabled.
2711 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2713 * gdbtypes (resolve_dynamic_range): Add function description.
2715 2014-06-09 Pedro Alves <palves@redhat.com>
2717 * linux-nat.c (linux_child_follow_fork): Initialize status with
2718 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2719 inner block. Only pass the signal to PTRACE_DETACH if in pass
2722 2014-06-09 Gary Benson <gbenson@redhat.com>
2724 * common/signals.c (gdb_signal_from_host): Reorder to separate
2725 the always-available ANSI-standard signals from the signals that
2727 (do_gdb_signal_to_host): Likewise.
2728 * proc-events.c (signal_table): Likewise.
2730 2014-06-08 Hui Zhu <hui@codesourcery.com>
2732 * common/linux-ptrace.c (linux_disable_event_reporting): New
2734 * common/linux-ptrace.h (linux_disable_event_reporting): New
2736 * linux-nat.c (linux_child_follow_fork): Do a single step before
2739 2014-06-07 Keith Seitz <keiths@redhat.com>
2743 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2744 from symbol_matches_domain in symtab.c. All local callers
2745 of symbol_matches_domain updated.
2746 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2747 search STRUCT_DOMAIN.
2748 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2749 independently. standard_lookup will do that automatically.
2750 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2751 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2752 (cp_lookup_symbol_in_namespace): Likewise.
2753 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2754 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2755 may return a STRUCT_DOMAIN match.
2756 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2757 * cp-support.c: Include language.h.
2758 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2760 * psymtab.c (match_partial_symbol): Compare the requested
2761 domain with the symbol's domain directly.
2762 (lookup_partial_symbol): Likewise.
2763 * symtab.c (lookup_symbol_in_language): Explain when/why
2764 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2765 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2766 appropriate languages.
2767 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2768 and moved to ada-lang.c
2769 (lookup_block_symbol): Explain that this function only returns
2770 symbol matching the requested DOMAIN.
2771 Compare the requested domain with the symbol's domain directly.
2772 (iterate_over_symbols): Compare the requested domain with the
2773 symbol's domain directly.
2774 * symtab.h (symbol_matches_domain): Remove.
2776 2014-06-06 Doug Evans <xdje42@gmail.com>
2778 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2779 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2780 (gdbscm_guile_version_is_at_least): Declare.
2781 (gdbscm_scm_string_to_int): Declare.
2782 * guile/guile.c (gdbscm_guile_major_version): New global.
2783 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2784 (guile_datadir): New static global.
2785 (gdbscm_guile_data_directory): New function.
2786 (initialize_scheme_side): Update.
2787 (misc_guile_functions): Add guile-data-directory.
2788 (initialize_gdb_module): Fetch guile version number.
2789 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2790 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2791 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2792 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2794 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2795 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2796 * guile/scm-value.c (gdbscm_value_to_string): Only call
2797 scm_port_conversion_strategy if Guile version >= 2.0.6.
2799 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2801 * main.c (print_gdb_help): Add -q and --silent.
2803 2014-06-06 Gary Benson <gbenson@redhat.com>
2805 * common/signals.c: Remove preprocessor conditionals for
2806 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2807 SIGSEGV and SIGTERM.
2808 * proc-events.c: Likewise.
2810 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2812 * symfile.c (symfile_free_objfile): Remove restriction to
2814 * symfile-mem.c (symbol_file_add_from_memory): Call
2815 add_target_sections_of_objfile.
2817 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2819 * guile/scm-value.c (gdbscm_history_append_x): Use
2820 'vlscm_get_value_smob_arg_unsafe' instead of
2821 'vlscm_scm_to_value'.
2823 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2826 * utils.c (printchar): Don't escape at all if quoter is NUL.
2827 Update function documentation to clarify effect of parameter
2829 * remote.c (escape_buffer): Pass '\\' as the quoter to
2830 fputstrn_unfiltered.
2831 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2832 generate the output.
2833 (mi_solib_unloaded): Same.
2835 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2837 * development.sh: Delete.
2838 * Makefile.in (config.status): Adjust dependency on development.sh.
2839 * configure.ac: Adjust development.sh source call.
2840 * configure: Regenerate.
2842 2014-06-04 Doug Evans <xdje42@gmail.com>
2844 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2845 is_scheme_bkpt, spec.
2846 (bpscm_make_breakpoint_smob): Initialize new members.
2847 (gdbscm_create_breakpoint_x): Split into two ...
2848 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2849 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2850 (scheme_function breakpoint_functions): Update.
2851 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2852 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2853 register-breakpoint!.
2855 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2858 * mem-break.c (z_type_supported): Return zero if
2859 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2861 2014-06-04 Tom Tromey <tromey@redhat.com>
2863 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2864 value_from_contents_and_address_unresolved.
2865 (ada_template_to_fixed_record_type_1): Likewise.
2866 (ada_which_variant_applies): Likewise.
2867 * value.h (value_from_contents_and_address_unresolved): Declare.
2868 * value.c (value_from_contents_and_address_unresolved): New
2870 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2871 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2872 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2874 2014-06-04 Tom Tromey <tromey@redhat.com>
2876 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2878 2014-06-04 Tom Tromey <tromey@redhat.com>
2880 * procfs.c (procfs_attach): Make "args" const.
2881 * windows-nat.c (windows_attach): Make "args" const.
2882 * nto-procfs.c (procfs_attach): Make "args" const.
2883 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2884 * go32-nat.c (go32_attach): Make "args" const.
2885 * gnu-nat.c (gnu_attach): Make "args" const.
2886 * darwin-nat.c (darwin_attach): Make "args" const.
2887 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2888 * linux-nat.c (linux_nat_attach): Make "args" const.
2889 * remote.c (extended_remote_attach_1, extended_remote_attach):
2891 * target.h (struct target_ops) <to_attach>: Make "args" const.
2892 (find_default_attach): Likewise.
2893 * utils.c (parse_pid_to_attach): Make "args" const.
2894 * utils.h (parse_pid_to_attach): Update.
2896 2014-06-04 Tom Tromey <tromey@redhat.com>
2898 * target-delegates.c: Rebuild.
2899 * target.c (default_thread_address_space): New function.
2900 (target_thread_address_space): Simplify.
2901 * target.h (struct target_ops) <to_thread_address_space>: Add
2902 TARGET_DEFAULT_FUNC.
2904 2014-06-04 Doug Evans <xdje42@gmail.com>
2906 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2908 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2910 * record-btrace.c: Include event-loop.h and inf-loop.h.
2911 (record_btrace_resume_exec_dir)
2912 (record_btrace_async_inferior_event_handler)
2913 (record_btrace_handle_async_inferior_event): New.
2914 (record_btrace_open): Create async event handler.
2915 (record_btrace_close): Delete async event handler.
2916 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2917 Mark async event handler.
2918 (record_btrace_execution_direction): New.
2919 (init_record_btrace_ops): Initialize to_execution_direction.
2921 2014-06-03 Doug Evans <xdje42@gmail.com>
2923 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2924 (gdbscm_make_parameter): Ditto.
2926 2014-06-03 Doug Evans <dje@google.com>
2928 * exec.c (exec_close_1): Call clear_section_table instead of
2929 resize_section_table.
2930 (clear_section_table): New function.
2931 (resize_section_table): Make static. Rename arg num_added to
2933 * exec.h (clear_section_table): Declare.
2934 (resize_section_table): Delete.
2935 * progspace.c (release_program_space): Call clear_section_table
2936 instead of resize_section_table.
2938 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2940 * NEWS (Python Scripting): Add entry about the new xmethods
2943 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2945 * python/py-xmethods.c: New file.
2946 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2947 (objfpy_dealloc): XDECREF on the new xmethods field.
2948 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2950 (objfpy_get_xmethods): New function.
2951 (objfile_getset): New entry 'xmethods'.
2952 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2953 (pspy_dealloc): XDECREF on the new xmethods field.
2954 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2956 (pspy_get_xmethods): New function.
2957 (pspace_getset): New entry 'xmethods'.
2958 * python/python-internal.h: Add declarations for new functions.
2959 * python/python.c (_initialize_python): Invoke
2960 gdbpy_initialize_xmethods.
2961 * python/lib/gdb/__init__.py (xmethods): New
2963 * python/lib/gdb/xmethod.py: New file.
2964 * python/lib/gdb/command/xmethods.py: New file.
2966 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2968 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2969 best match method returned by find_overload_match is an xmethod.
2970 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2971 the best matching operator returned by find_overload_match is an
2973 * valops.c: #include "extension.h".
2974 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2975 Return void. The list of matching source methods is returned in
2976 "fn_list" and a vector of matching debug method workers is
2977 returned in "xm_worker_vec". Update all callers.
2978 (value_find_oload_method_list): Likewise.
2979 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2980 non-NULL, then the index of the best matching method in this
2981 vector is returned. Update all callers.
2982 (find_overload_match): Include xmethods while performing overload
2985 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2987 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2988 * extension-priv.h (struct extension_language_ops): Add the
2990 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2991 get_matching_xmethod_workers, get_xmethod_argtypes,
2992 invoke_xmethod, free_xmethod_worker,
2993 free_xmethod_worker_vec): New functions.
2994 * extension.h: #include "common/vec.h".
2995 New function declarations.
2996 (struct xmethod_worker): New struct.
2997 (VEC (xmethod_worker_ptr)): New vector type.
2998 (xmethod_worker_ptr): New typedef.
2999 (xmethod_worker_vec): Likewise.
3000 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3002 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3003 (struct builtin_type): New field "xmethod".
3004 * valarith.c (value_ptradd): Assert that the value argument is not
3006 * valops.c (value_must_coerce_to_target): Return 0 for
3007 lval_xcallable values.
3008 * value.c (struct value): New field XM_WORKER in the field
3010 (value_address, value_raw_address): Return 0 for lval_xcallable
3012 (set_value_address): Assert that the value is not an
3014 (value_free): Free the associated xmethod worker when freeing
3015 lval_xcallable values.
3016 (set_value_component_location): Assert that the WHOLE value is not
3018 (value_of_xmethod, call_xmethod): New functions.
3019 * value.h: Declare "struct xmethod_worker".
3020 Declare new functions value_of_xmethod, call_xmethod.
3022 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3023 Pedro Alves <palves@redhat.com>
3025 PR breakpoints/17000
3026 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3027 New function, extracted from software_breakpoint_inserted_here_p.
3028 (software_breakpoint_inserted_here_p): Replace factored out code
3029 by call to find_non_raw_software_breakpoint_inserted_here.
3030 (bp_target_info_copy_insertion_state): New function.
3031 (bkpt_insert_location): Handle the case of a single-step
3032 breakpoint already inserted at the same address.
3033 (bkpt_remove_location): Handle the case of a single-step
3034 breakpoint still inserted at the same address.
3035 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3036 breakpoint already inserted at the same address.
3037 (deprecated_remove_raw_breakpoint): Handle the case of a
3038 non-raw breakpoint still inserted at the same address.
3039 (find_single_step_breakpoint): New function, extracted from
3040 single_step_breakpoint_inserted_here_p.
3041 (find_single_step_breakpoint): New function,
3042 factored out from single_step_breakpoint_inserted_here_p.
3043 (single_step_breakpoint_inserted_here_p): Reimplement.
3045 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3047 Pushed by Joel Brobecker <brobecker@adacore.com>
3048 * source.c (show_substitute_path_command): Fix display of matching
3051 2014-06-03 Gary Benson <gbenson@redhat.com>
3053 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3055 2014-06-02 Doug Evans <xdje42@gmail.com>
3057 Add parameter support for Guile.
3058 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3059 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3060 (scm-param.o): New rule.
3061 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3062 (gdbscm_misc_error): Declare.
3063 (gdbscm_canonicalize_command_name): Declare.
3064 (gdbscm_scm_to_host_string): Declare.
3065 (gdbscm_scm_from_host_string): Declare.
3066 (gdbscm_initialize_parameters): Declare.
3067 * guile/guile.c (initialize_gdb_module): Call
3068 gdbscm_initialize_parameters.
3069 * guile/lib/gdb.scm: Export parameter symbols.
3070 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3071 cmdscm_canonicalize_name and made public. All callers updated.
3072 * guile/scm-exception.c (gdbscm_misc_error): New function.
3073 * guile/scm-param.c: New file.
3074 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3075 (gdbscm_scm_to_host_string): New function.
3076 (gdbscm_scm_from_host_string): New function.
3077 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3079 2014-06-02 Doug Evans <xdje42@gmail.com>
3081 Add command support for Guile.
3082 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3083 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3084 (scm-cmd.o): New rule.
3085 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3086 (gdbscm_user_error_p): Declare.
3087 (gdbscm_parse_command_name): Declare.
3088 (gdbscm_valid_command_class_p): Declare.
3089 (gdbscm_initialize_commands): Declare.
3090 * guile/guile.c (initialize_gdb_module): Call
3091 gdbscm_initialize_commands.
3092 * guile/lib/gdb.scm: Export command symbols.
3093 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3094 (throw-user-error): New function.
3095 * guile/scm-cmd.c: New file.
3096 * guile/scm-exception.c (user_error_symbol): New static global.
3097 (gdbscm_user_error_p): New function.
3098 (gdbscm_initialize_exceptions): Set user_error_symbol.
3099 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3101 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3103 * top.c (command_loop): Handle comments here...
3104 (command_line_input): ... not here.
3106 2014-06-02 Doug Evans <xdje42@gmail.com>
3108 Add progspace support for Guile.
3109 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3110 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3111 (scm-progspace.o): New rule.
3112 * guile/guile-internal.h (pspace_smob): New typedef.
3113 (psscm_pspace_smob_pretty_printers): Declare.
3114 (psscm_pspace_smob_from_pspace): Declare.
3115 (psscm_scm_from_pspace): Declare.
3116 * guile/guile.c (initialize_gdb_module): Call
3117 gdbscm_initialize_pspaces.
3118 * guile/lib/gdb.scm: Export progspace symbols.
3119 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3121 (append-pretty-printer!): Ditto.
3122 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3124 * guile/scm-progspace.c: New file.
3126 2014-06-03 Alan Modra <amodra@gmail.com>
3128 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3129 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3131 2014-06-02 Doug Evans <dje@google.com>
3133 Add support for skeletonless type units.
3134 * dwarf2read.c (struct dwarf2_per_objfile): New member
3135 n_allocated_type_units.
3136 (struct dwarf2_per_objfile) <tu_stats>: New member
3137 nr_all_type_units_reallocs.
3138 (create_signatured_type_table_from_index): Initialize
3139 n_allocated_type_units
3140 (create_all_type_units): Ditto.
3141 (add_type_unit): Move up in file. New arg slot.
3142 All callers updated. Increase space for all_type_units more
3144 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3145 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3146 (lookup_dwp_signatured_type): Ditto.
3147 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3148 All callers updated.
3149 (build_type_psymtabs_1): Leave type_unit_groups as
3150 NULL if no TUs present.
3151 (print_tu_stats): New function.
3152 (process_skeletonless_type_unit): New function.
3153 (process_dwo_file_for_skeletonless_type_units): New
3155 (process_skeletonless_type_units): New function.
3156 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3157 Call print tu_stats if debugging enabled.
3159 2014-06-02 Pedro Alves <palves@redhat.com>
3161 * breakpoint.c (build_target_command_list): Don't build a command
3162 list if we have any duplicate location that isn't a dprintf.
3164 2014-06-02 Pedro Alves <palves@redhat.com>
3166 * breakpoint.c (dprintf_breakpoint_hit): New function.
3167 (initialize_breakpoint_ops): Install it as dprintf's
3168 breakpoint_hit method.
3170 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3172 * source.c (substitute_path_rule_matches): Simplify using
3173 filename_ncmp instead of FILENAME_CMP.
3175 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3177 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3179 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3181 * configure.ac: When Guile is available, check for the
3182 availability of 'scm_new_smob'.
3183 * configure, config.h.in: Regenerate.
3184 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3187 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3189 * frame.c (struct frame_info): Add stop_string field.
3190 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3191 (get_prev_frame_always): Old content moved into
3192 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3193 TRY_CATCH, handle MEMORY_ERROR exceptions.
3194 (frame_stop_reason_string): New function definition.
3195 * frame.h (unwind_stop_reason_to_string): Extend comment to
3196 mention frame_stop_reason_string.
3197 (frame_stop_reason_string): New function declaration.
3198 * stack.c (frame_info): Switch to frame_stop_reason_string.
3199 (backtrace_command_1): Switch to frame_stop_reason_string.
3200 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3201 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3202 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3204 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3206 * frame.c (frame_stop_reason_string): Rename to ...
3207 (unwind_stop_reason_to_string): this.
3208 * frame.h (frame_stop_reason_string): Rename to ...
3209 (unwind_stop_reason_to_string): this.
3210 * stack.c (frame_info): Update call to frame_stop_reason_string.
3211 (backtrace_command_1): Likewise.
3212 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3213 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3215 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3217 * frame.c (remove_prev_frame): New function.
3218 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3221 2014-05-29 Pedro Alves <palves@redhat.com>
3223 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3224 and make it const. When a single-step decays to a continue,
3225 clear 'step', not 'hw_step'. Pass whether the caller wanted
3226 to step to user_visible_resume_ptid, not what we ask the
3229 2014-05-29 Pedro Alves <palves@redhat.com>
3231 * infrun.c (process_event_stop_test, handle_step_into_function)
3232 (handle_step_into_function_backward): Adjust.
3233 Don't set the even thread's stop_step and call stop_waiting before
3234 calling end_stepping_range. Instead do that ...
3235 (end_stepping_range): ... here. Take an ecs pointer parameter.
3237 2014-05-29 Pedro Alves <palves@redhat.com>
3239 * infrun.c (stop_stepping): Rename to ...
3240 (stop_waiting): ... this.
3241 (proceed): Update comment.
3242 (process_event_stop_test, handle_inferior_event)
3243 (handle_signal_stop, handle_step_into_function)
3244 (handle_step_into_function_backward): Update.
3246 2014-05-29 Pedro Alves <palves@redhat.com>
3248 * infcall.c (run_inferior_call): Don't check whether the current
3249 thread is running after the proceed call.
3251 2014-05-29 Pedro Alves <palves@redhat.com>
3252 Tom Tromey <tromey@redhat.com>
3254 * NEWS: Mention "maint set target-async", "set mi-async", and that
3255 background execution commands are now always available.
3256 * target.h (target_async_permitted): Update comment.
3257 * target.c (target_async_permitted, target_async_permitted_1):
3259 (set_target_async_command): Rename to ...
3260 (maint_set_target_async_command): ... this.
3261 (show_target_async_command): Rename to ...
3262 (maint_show_target_async_command): ... this.
3263 (_initialize_target): Adjust.
3264 * infcmd.c (prepare_execution_command): Make extern.
3265 * inferior.h (prepare_execution_command): Declare.
3266 * infrun.c (set_observer_mode): Leave target async alone.
3267 * mi/mi-interp.c (mi_interpreter_init): Install
3268 mi_on_sync_execution_done as sync_execution_done observer.
3269 (mi_on_sync_execution_done): New function.
3270 (mi_execute_command_input_handler): Don't print the prompt if we
3271 just started a synchronous command with an async target.
3272 (mi_on_resume): Check sync_execution before printing prompt.
3273 * mi/mi-main.h (mi_async_p): Declare.
3274 * mi/mi-main.c: Include gdbcmd.h.
3275 (mi_async_p): New function.
3276 (mi_async, mi_async_1): New globals.
3277 (set_mi_async_command, show_mi_async_command, mi_async): New
3279 (exec_continue): Call prepare_execution_command.
3280 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3281 (mi_execute_async_cli_command): Use mi_async_p.
3282 (_initialize_mi_main): Install "set mi-async". Make
3283 "target-async" a deprecated alias.
3285 2014-05-29 Pedro Alves <palves@redhat.com>
3287 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3288 (_initialize_cli_interp): Adjust.
3289 * event-loop.c: Include "observer.h".
3290 (start_event_loop): Notify 'command_error' observers instead of
3291 calling display_gdb_prompt. Remove FIXME comment.
3292 * event-top.c (display_gdb_prompt): Remove call into the
3294 * inf-loop.c: Include "observer.h".
3295 (inferior_event_handler): Notify 'command_error' observers instead
3296 of calling display_gdb_prompt.
3297 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3298 observers instead of calling display_gdb_prompt.
3299 * interps.c (interp_set): Don't call display_gdb_prompt.
3300 (current_interp_display_prompt_p): Delete.
3301 * interps.h (interp_prompt_p): Delete declaration.
3302 (interp_prompt_p_ftype): Delete.
3303 (struct interp_procs) <prompt_proc_p>: Delete field.
3304 (current_interp_display_prompt_p): Delete declaration.
3305 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3306 (_initialize_mi_interp): Adjust.
3307 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3308 'command_error' observers.
3309 (tui_on_sync_execution_done, tui_on_command_error): New
3311 (tui_display_prompt_p): Delete.
3312 (_initialize_tui_interp): Adjust.
3314 2014-05-29 Pedro Alves <palves@redhat.com>
3317 * cli/cli-interp.c: Include infrun.h and observer.h.
3318 (cli_uiout, cli_interp): New globals.
3319 (cli_on_signal_received, cli_on_end_stepping_range)
3320 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3322 (cli_interpreter_init): Install them as 'end_stepping_range',
3323 'signal_received' 'signal_exited', 'exited' and 'no_history'
3325 (_initialize_cli_interp): Remove cli_interp local.
3326 * infrun.c (handle_inferior_event): Call the several stop reason
3327 observers instead of printing the stop reason directly.
3328 (end_stepping_range): New function.
3329 (print_end_stepping_range_reason, print_signal_exited_reason)
3330 (print_exited_reason, print_signal_received_reason)
3331 (print_no_history_reason): Make static, and add an uiout
3332 parameter. Print to that instead of to CURRENT_UIOUT.
3333 * infrun.h (print_end_stepping_range_reason)
3334 (print_signal_exited_reason, print_exited_reason)
3335 (print_signal_received_reason print_no_history_reason): New
3337 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3339 <cli_uiout>: New field.
3340 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3341 uiout for CLI output. Install 'signal_received',
3342 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3344 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3345 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3346 (mi_on_no_history): New functions.
3347 (ui_out_free_cleanup): Delete function.
3348 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3349 instead use the one already stored in the MI interpreter data.
3350 (mi_ui_out): Adjust.
3351 * tui/tui-interp.c: Include infrun.h and observer.h.
3352 (tui_interp): New global.
3353 (tui_on_signal_received, tui_on_end_stepping_range)
3354 (tui_on_signal_exited, tui_on_exited)
3355 (tui_on_no_history): New functions.
3356 (tui_init): Install them as 'end_stepping_range',
3357 'signal_received' 'signal_exited', 'exited' and 'no_history'
3359 (_initialize_tui_interp): Delete tui_interp local.
3361 2014-05-29 Pedro Alves <palves@redhat.com>
3364 * linux-nat.c (linux_nat_resume_callback): Rename the second
3365 parameter to 'except'. Skip LP if it points to EXCEPT.
3366 (linux_nat_resume): Don't mark the event lwp as not stopped
3367 before resuming sibling lwps. Instead ask
3368 linux_nat_resume_callback to skip the event lwp. Mark it as not
3369 stopped after actually resuming it.
3370 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3372 (wait_lwp): Mark the lwp as stopped here.
3373 (stop_wait_callback): Mark the lwp as not stopped right after
3374 resuming it. Don't mark lwps as stopped here.
3375 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3376 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3378 2014-05-29 Pedro Alves <palves@redhat.com>
3381 * infrun.c (resume): Determine how much to resume depending on
3382 whether the caller wanted a step, not whether we can hardware step
3383 the target. Mark all threads that we intend to run as running,
3384 unless we're calling an inferior function.
3385 (normal_stop): If the thread is running an infcall, don't finish
3387 * target.c (target_resume): Don't mark threads as running here.
3389 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3391 * serial.c (_initialize_serial): Remove support for
3392 the "set remotebaud" and "show remotebaud" commands.
3393 * NEWS: Add entry documenting the removal of that command.
3395 2014-05-28 Yao Qi <yao@codesourcery.com>
3397 * charset.c: Fix typo in comments.
3399 2014-05-27 Gary Benson <gbenson@redhat.com>
3401 * utils.c (internal_vproblem): Prompt for a bug report.
3403 2014-05-26 Andy Wingo <wingo@igalia.com>
3405 * guile/scm-arch.c (arscm_mark_arch_smob):
3406 * guile/scm-block.c (bkscm_mark_block_smob)
3407 (bkscm_mark_block_syms_progress_smob):
3408 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3409 * guile/scm-exception.c (exscm_mark_exception_smob):
3410 * guile/scm-frame.c (frscm_mark_frame_smob):
3411 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3412 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3413 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3414 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3415 (ppscm_mark_pretty_printer_worker_smob):
3416 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3417 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3418 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3419 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3421 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3424 2014-05-26 Andy Wingo <wingo@igalia.com>
3425 Doug Evans <xdje42@gmail.com>
3427 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3428 empty_base_class. All uses updated.
3429 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3430 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3432 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3433 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3434 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3435 (gdbscm_gsmob_has_property_p, add_property_name)
3436 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3437 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3438 (gdb-object-has-property?, gdb-object-properties): Remove.
3439 (gdb-object-kind): Renamed from gsmob-kind.
3441 2014-05-26 Andy Wingo <wingo@igalia.com>
3443 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3444 * configure: Regenerate.
3446 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3448 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3450 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3452 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3453 (replay_memory_access_read_only, replay_memory_access_read_write)
3454 (replay_memory_access_types, replay_memory_access)
3455 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3456 (cmd_set_record_btrace, cmd_show_record_btrace)
3457 (cmd_show_replay_memory_access): New.
3458 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3459 (record_btrace_remove_breakpoint): Replace
3460 record_btrace_allow_memory_access with replay_memory_access.
3461 (_initialize_record_btrace): Add commands.
3462 * NEWS: Announce it.
3464 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3466 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3468 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3470 * MAINTAINERS (Write After Approval): Move self back from
3473 2014-05-22 Pedro Alves <palves@redhat.com>
3475 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3476 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3477 (disable_randomization, enum exec_direction_kind)
3478 (execution_direction, stop_registers, start_remote)
3479 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3480 (wait_for_inferior, normal_stop, get_last_target_status)
3481 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3482 (insert_step_resume_breakpoint_at_sal)
3483 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3484 (set_step_info, print_stop_event, signal_stop_state)
3485 (signal_print_state, signal_pass_state, signal_stop_update)
3486 (signal_print_update, signal_pass_update)
3487 (update_signals_program_target, clear_exit_convenience_vars)
3488 (displaced_step_dump_bytes, update_observer_mode)
3489 (signal_catch_update, gdb_signal_from_command): Move
3491 * infrun.h: ... to this new file.
3492 * amd64-tdep.c: Include infrun.h.
3493 * annotate.c: Include infrun.h.
3494 * arch-utils.c: Include infrun.h.
3495 * arm-linux-tdep.c: Include infrun.h.
3496 * arm-tdep.c: Include infrun.h.
3497 * break-catch-sig.c: Include infrun.h.
3498 * breakpoint.c: Include infrun.h.
3499 * common/agent.c: Include infrun.h instead of inferior.h.
3500 * corelow.c: Include infrun.h.
3501 * event-top.c: Include infrun.h.
3502 * go32-nat.c: Include infrun.h.
3503 * i386-tdep.c: Include infrun.h.
3504 * inf-loop.c: Include infrun.h.
3505 * infcall.c: Include infrun.h.
3506 * infcmd.c: Include infrun.h.
3507 * infrun.c: Include infrun.h.
3508 * linux-fork.c: Include infrun.h.
3509 * linux-nat.c: Include infrun.h.
3510 * linux-thread-db.c: Include infrun.h.
3511 * monitor.c: Include infrun.h.
3512 * nto-tdep.c: Include infrun.h.
3513 * procfs.c: Include infrun.h.
3514 * record-btrace.c: Include infrun.h.
3515 * record-full.c: Include infrun.h.
3516 * remote-m32r-sdi.c: Include infrun.h.
3517 * remote-mips.c: Include infrun.h.
3518 * remote-notif.c: Include infrun.h.
3519 * remote-sim.c: Include infrun.h.
3520 * remote.c: Include infrun.h.
3521 * reverse.c: Include infrun.h.
3522 * rs6000-tdep.c: Include infrun.h.
3523 * s390-linux-tdep.c: Include infrun.h.
3524 * solib-irix.c: Include infrun.h.
3525 * solib-osf.c: Include infrun.h.
3526 * solib-svr4.c: Include infrun.h.
3527 * target.c: Include infrun.h.
3528 * top.c: Include infrun.h.
3529 * windows-nat.c: Include infrun.h.
3530 * mi/mi-interp.c: Include infrun.h.
3531 * mi/mi-main.c: Include infrun.h.
3532 * python/py-threadevent.c: Include infrun.h.
3534 2014-05-22 Pedro Alves <palves@redhat.com>
3536 * infrun.c (handle_inferior_event): Store the exit code for
3537 --return-child-result here, instead of ...
3538 (print_exited_reason): ... here.
3540 2014-05-21 Pedro Alves <palves@redhat.com>
3543 * gdbthread.h (struct thread_control_state): New field
3545 * infrun.c (follow_fork): Copy the new thread control field to the
3547 (clear_proceed_status_thread): Clear the new thread control field.
3548 (proceed): Set the new thread control field.
3549 * interps.h (command_interp): Declare.
3550 * interps.c (command_interpreter): New global.
3551 (command_interp): New function.
3552 (interp_exec): Set `command_interpreter' while here.
3553 * cli-out.c (cli_uiout_dtor): New function.
3554 (cli_ui_out_impl): Install it.
3555 * mi/mi-interp.c: Include cli-out.h.
3556 (mi_cmd_interpreter_exec): Add comment.
3557 (restore_current_uiout_cleanup): New function.
3558 (ui_out_free_cleanup): New function.
3559 (mi_on_normal_stop): If finishing an execution command started by
3560 a CLI command, or any kind of breakpoint-like event triggered,
3561 print the stop event to the output (CLI) stream.
3562 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3564 2014-05-21 Pedro Alves <palves@redhat.com>
3566 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3567 current source line having changed.
3568 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3569 * infrun.c (normal_stop): Adjust call to
3570 set_current_sal_from_frame.
3571 * source.c (clear_lines_listed_range): New function.
3572 (set_current_source_symtab_and_line, identify_source_line): Clear
3573 the lines listed range.
3574 (line_info): Handle the first "info line" after the current source
3575 line having changed.
3576 * stack.c (print_stack_frame): Remove center handling.
3577 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3580 2014-05-21 Pedro Alves <palves@redhat.com>
3582 * inf-child.c (inf_child_mourn_inferior): New function.
3583 * inf-child.h (inf_child_mourn_inferior): New declaration.
3584 * darwin-nat.c (darwin_mourn_inferior): Use
3585 inf_child_mourn_inferior.
3586 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3587 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3588 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3589 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3590 * windows-nat.c (windows_mourn_inferior): Likewise.
3592 2014-05-21 Doug Evans <xdje42@gmail.com>
3594 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3596 2014-05-21 Doug Evans <xdje42@gmail.com>
3598 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3599 (gdbscm_out_of_range_error): Ditto.
3600 (gdbscm_memory_error): Ditto.
3601 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3602 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3603 (gdbscm_out_of_range_error): Update.
3604 (gdbscm_memory_error): Update.
3605 (gdbscm_scm_to_target_string_unsafe): Delete.
3607 2014-05-21 Pedro Alves <palves@redhat.com>
3609 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3611 (inf_child_open_target): New function.
3612 (inf_child_open): Use inf_child_open_target to push the target
3613 instead of erroring out.
3614 (inf_child_disconnect, inf_child_close)
3615 (inf_child_maybe_unpush_target): New functions.
3616 (inf_child_target): Install inf_child_disconnect and
3617 inf_child_close. Store a pointer to the returned object.
3618 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3620 * target.c (auto_connect_native_target): New global.
3621 (show_default_run_target): New function.
3622 (find_default_run_target): Return NULL if automatically connecting
3623 to the native target is disabled.
3624 (_initialize_target): Install set/show auto-connect-native-target.
3625 * NEWS: Mention "set auto-connect-native-target", and "target
3627 * linux-nat.c (super_close): New global.
3628 (linux_nat_close): Call super_close.
3629 (linux_nat_add_target): Store a pointer to the base class's
3631 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3632 inf_child_maybe_unpush.
3633 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3635 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3636 the inferior. Use inf_child_maybe_unpush_target.
3637 (inf_ttrace_attach): Don't push the target if it is already
3639 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3640 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3641 after mourning the inferior. Use inf_child_maybe_unpush_target.
3642 (darwin_attach_pid): Don't push the target if it is already
3644 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3645 mourning the inferior. Use inf_child_maybe_unpush_target.
3646 (gnu_detach): Use inf_child_maybe_unpush_target.
3647 * go32-nat.c (go32_create_inferior): Don't push the target if it
3649 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3650 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3651 (procfs_open): Rename to ...
3652 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3653 comments. Can target_preopen before changing node. Call
3654 inf_child_open_target to push the target explicitly.
3655 (procfs_attach): Don't push the target if it is already pushed.
3656 (procfs_detach): Use inf_child_maybe_unpush_target.
3657 (procfs_create_inferior): Don't push the target if it is already
3659 (nto_native_ops): New global.
3660 (procfs_open): Reimplement.
3661 (procfs_native_open): New function.
3662 (init_procfs_targets): Install procfs_native_open as to_open of
3663 "target native". Store a pointer to the "native" target in
3665 * procfs.c (procfs_attach): Don't push the target if it is already
3667 (procfs_detach): Use inf_child_maybe_unpush_target.
3668 (procfs_mourn_inferior): Only unpush the target after mourning the
3669 inferior. Use inf_child_maybe_unpush_target.
3670 (procfs_init_inferior): Don't push the target if it is already
3672 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3673 if it is already pushed.
3675 2014-05-21 Pedro Alves <palves@redhat.com>
3677 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3678 and "procfs" targets are now called "native" instead.
3680 2014-05-21 Pedro Alves <palves@redhat.com>
3682 * go32-nat.c (go32_open): Delete.
3683 (go32_target): Don't override the to_open method.
3685 2014-05-21 Pedro Alves <palves@redhat.com>
3687 * nto-procfs.c (procfs_can_run): New function.
3688 (nto_procfs_ops): New global.
3689 (init_procfs_targets): New, based on procfs_target. Install
3690 "target native" in addition to "target procfs".
3691 (_initialize_procfs): Call init_procfs_targets instead of adding
3694 2014-05-21 Pedro Alves <palves@redhat.com>
3696 * windows-nat.c (windows_target): Don't override to_shortname,
3697 to_longname or to_doc.
3699 2014-05-21 Pedro Alves <palves@redhat.com>
3701 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3704 2014-05-21 Pedro Alves <palves@redhat.com>
3706 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3707 to_shortname, to_longname or to_doc.
3709 2014-05-21 Pedro Alves <palves@redhat.com>
3711 * go32-nat.c (go32_target): Don't override to_shortname,
3712 to_longname or to_doc.
3714 2014-05-21 Pedro Alves <palves@redhat.com>
3716 * inf-child.c (inf_child_open): Remove mention of "child".
3717 (inf_child_target): Rename target to "native" instead of "child".
3719 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3721 * Makefile.in (SFILES): Delete "regset.c".
3722 (COMMON_OBS): Delete "regset.o".
3724 * regset.h (regset_alloc): Delete prototype.
3726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3728 * sparc-linux-tdep.c (sparc32_linux_gregset)
3729 (sparc32_linux_fpregset): New static regset structures.
3730 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3731 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3733 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3734 (sparc64_linux_fpregset): New static regset structures.
3735 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3736 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3737 New static regset structures.
3738 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3739 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3740 New static regset structures.
3741 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3742 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3743 New static regset structures.
3744 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3745 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3746 New static regset structures.
3747 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3749 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3751 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3752 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3753 register maps ("regmaps") from "*regset" to "*regmap". Do this
3754 for all regmap types and variables.
3755 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3756 (sparc32_linux_supply_core_gregset)
3757 (sparc32_linux_collect_core_gregset)
3758 (sparc32_linux_supply_core_fpregset)
3759 (sparc32_linux_collect_core_fpregset): Likewise.
3760 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3761 (sparc_gregmap, sparc_fpregmap): ... these.
3762 (sparc_supply_gregset, sparc_collect_gregset)
3763 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3764 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3765 (_initialize_sparc_nat): Rename regmaps.
3766 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3767 (sparc_gregmap, sparc_fpregmap): ... these.
3768 (sparc_supply_gregset, sparc_collect_gregset)
3769 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3770 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3772 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3773 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3775 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3777 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3778 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3779 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3781 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3782 (sparc32_bsd_fpregset): Rename to...
3783 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3784 (sparc32_bsd_fpregmap): ... these.
3785 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3786 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3787 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3788 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3789 (struct sparc_gregmap, struct sparc_fpregmap)
3790 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3791 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3792 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3793 (sparc32_supply_regset, sparc32_collect_gregset)
3794 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3796 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3797 (sparc64_linux_ptrace_gregmap): ... this.
3798 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3799 (_initialize_sparc64_linux_nat): Rename regmaps.
3800 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3801 (sparc64_linux_core_gregmap): ... this.
3802 (sparc64_linux_supply_core_gregset)
3803 (sparc64_linux_collect_core_gregset)
3804 (sparc64_linux_supply_core_fpregset)
3805 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3806 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3807 (sparc64_sol2_fpregset): Rename to...
3808 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3809 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3810 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3812 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3813 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3814 (sparc64_bsd_fpregset): Rename to...
3815 (struct sparc_gregmap, sparc64_sol2_gregmap)
3816 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3817 (sparc64_bsd_fpregmap): ... these.
3818 (sparc64_supply_gregset, sparc64_collect_gregset)
3819 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3821 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3822 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3823 (sparc64fbsd_gregmap): ... this.
3824 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3825 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3827 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3828 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3829 (sparc64nbsd_collect_fpregset): Likewise.
3830 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3831 (sparc64nbsd_gregmap): ... this.
3832 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3834 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3835 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3836 (sparc64obsd_gregmap): ... this.
3837 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3839 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3840 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3841 (sparc32nbsd_gregmap): ... this.
3842 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3845 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3847 * score-tdep.c (score7_linux_gregset): New static regset
3849 (score7_linux_regset_from_core_section): Remove dynamic regset
3851 (score_gdbarch_init): Drop allocation of tdep structure.
3852 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3854 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3856 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3858 (am33_regset_from_core_section): Remove dynamic regset
3861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3863 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3864 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3866 (mips_linux_regset_from_core_section): Remove dynamic regset
3868 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3869 'gregset64', 'fpregset', and 'fpregset64'.
3870 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3871 deleted tdep fields.
3873 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3875 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3877 (amd64_regset_from_core_section): Remove dynamic regset
3879 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3881 (amd64obsd_regset_from_core_section): Remove dynamic regset
3883 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3885 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3886 x86-common regset supply function.
3887 * i386-tdep.c (i386_collect_gregset): Make static.
3888 (i386_gregset): New global regset structure.
3889 (i386_fpregset, i386_xstateregset): New static regset structures.
3890 (i386_regset_from_core_section): Remove dynamic regset
3892 (i386_gdbarch_init): Remove initialization of tdep fields
3893 'gregset', 'fpregset', and 'xstateregset'.
3894 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3895 'fpregset', and 'xstateregset'.
3896 (i386_collect_gregset): Remove prototype.
3897 (i386_gregset): New declaration.
3898 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3900 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3903 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3905 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3906 (arm_linux_vfpregset): New static regset structures.
3907 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3909 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3910 and 'vfpregset' fields.
3912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3914 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3915 (aarch64_linux_fpregset): New static regset structures.
3916 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3917 of regset structures.
3918 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3921 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3923 * regset.h (struct regset): Remove gdbarch field.
3924 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3925 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3926 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3928 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3929 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3930 (ppc32_linux_vsxregset): Likewise.
3931 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3932 via the regcache instead of the regset.
3933 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3934 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3935 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3936 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3939 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3941 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3942 Constify structures.
3943 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3944 (alphanbsd_aout_gregset): Likewise.
3945 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3946 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3948 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3949 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3951 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3952 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3953 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3954 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3955 * m88k-tdep.c (m88k_gregset): Likewise.
3956 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3957 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3958 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3959 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3960 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3961 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3962 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3963 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3964 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3966 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3967 * sh-tdep.h (sh_corefile_gregset): Likewise.
3968 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3969 * vax-tdep.c (vax_gregset): Likewise.
3971 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3973 Fix TLS access for -static -pthread.
3974 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3975 (try_thread_db_load_1): Initialize it.
3976 (thread_db_get_thread_local_address): Call it if LM is zero.
3977 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3978 * target.h (struct target_ops) (to_get_thread_local_address): Add
3979 load_module_addr comment.
3981 2014-05-21 Pedro Alves <palves@redhat.com>
3983 * dcache.c (dcache_read_memory_partial): If reading the cache line
3984 fails, fallback to reading just the memory the caller wanted.
3986 2014-05-20 Doug Evans <dje@google.com>
3988 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3989 instead of get_current_arch.
3991 2014-05-20 Pedro Alves <palves@redhat.com>
3993 * NEWS: Mention that compare-sections now works with all targets.
3995 * remote.c (PACKET_qCRC): New enum value.
3996 (remote_verify_memory): Don't send qCRC if the target has no
3997 execution. Use packet_support/packet_ok. If the target doesn't
3998 support the qCRC packet, fallback to a deep memory copy.
3999 (compare_sections_command): Say "target image" instead of "remote
4001 (_initialize_remote): Add PACKET_qCRC to the list of config
4002 packets that have no associated command. Extend comment.
4003 * target.c (simple_verify_memory, default_verify_memory): New
4005 * target.h (struct target_ops) <to_verify_memory>: Default to
4006 default_verify_memory.
4007 (simple_verify_memory): New declaration.
4008 * target-delegates.c: Regenerate.
4010 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4012 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4014 2014-05-20 Hui Zhu <hui@codesourcery.com>
4015 Yao Qi <yao@codesourcery.com>
4018 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4019 and change address of sp and pc.
4021 2014-05-19 Tom Tromey <tromey@redhat.com>
4023 * gdbtypes.c (rank_function): Use XNEWVEC.
4024 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4026 2014-05-19 Doug Evans <dje@google.com>
4028 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4029 build_type_unit_groups and moved closer to only caller. Remove
4030 arguments. All references updated. Remove outdated .gdb_index
4032 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4033 build_type_psymtabs_1.
4035 2014-05-19 Doug Evans <dje@google.com>
4037 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4038 n_type_unit_groups, all_type_unit_groups. All uses removed.
4039 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4040 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4041 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4042 (add_type_unit_group_to_table): Delete.
4044 2014-05-19 Doug Evans <dje@google.com>
4046 * eval.c (evaluate_subexp_standard): Add some comments.
4048 2014-05-17 Doug Evans <xdje42@gmail.com>
4050 * progspace.c (remove_program_space): Delete, unused.
4051 * progspace.h (remove_program_space): Ditto.
4053 2014-05-17 Doug Evans <xdje42@gmail.com>
4055 * inferior.c (prune_inferiors): Fix comment.
4056 (remove_inferior_command): Call prune_program_spaces.
4058 2014-05-16 Doug Evans <dje@google.com>
4060 New command line option -D.
4062 * main.c (set_gdb_data_directory): New function.
4063 (captured_main): Recognize -D. Flag error for --data-directory "".
4064 Call set_gdb_data_directory.
4065 (print_gdb_help): Print --data-directory, -D.
4066 * main.h (set_gdb_data_directory): Declare.
4067 * top.c (staged_gdb_datadir): New static global.
4068 (set_gdb_datadir): Call set_gdb_data_directory
4069 (show_gdb_datadir): New function.
4070 (init_main): Update init of data-directory parameter.
4072 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4074 Import the "dirfd" gnulib module.
4075 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4076 * gnulib/aclocal.m4: Update.
4077 * gnulib/config.in: Update.
4078 * gnulib/configure: Update.
4079 * gnulib/import/Makefile.am: Update.
4080 * gnulib/import/Makefile.in: Update.
4081 * gnulib/import/dirfd.c: New.
4082 * gnulib/import/m4/dirfd.m4: New.
4083 * gnulib/import/m4/gnulib-cache.m4: Update.
4084 * gnulib/import/m4/gnulib-comp.m4: Update.
4086 2014-05-16 Pierre Muller <muller@sourceware.org>
4087 Yao Qi <yao@codesourcery.com>
4089 * valprint.c (print_wchar): Move the code on checking whether
4090 W is a printable wide char to the default branch of switch
4091 statement below. Call wchar_printable instead of gdb_iswprint.
4093 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4095 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4096 ldr.w and ldrd instructions.
4098 2014-05-15 Doug Evans <dje@google.com>
4100 * dwarf2read.c (read_structure_type): Delete outdated comments.
4102 2014-05-14 Tom Tromey <tromey@redhat.com>
4104 * macrocmd.c (print_macro_definition): Reindent.
4106 2014-05-13 Doug Evans <xdje42@gmail.com>
4108 * python/py-cmd.c (cmdpy_completer): Add comment.
4109 (completers): Make const.
4111 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4113 * infrun.c (resume): Remove should_resume (unused). Move up
4114 declaration of resume_ptid.
4116 2014-05-13 Tom Tromey <tromey@redhat.com>
4118 * language.h (unop_type_check): Remove.
4119 (binop_type_check): Don't declare.
4121 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4123 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4124 call to regcache_raw_collect.
4126 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4128 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4129 mi_console->quote as the quoting character.
4131 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4133 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4135 2014-04-29 Tom Tromey <tromey@redhat.com>
4137 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4138 "show debug varobj".
4140 2014-05-07 Kyle McMartin <kyle@redhat.com>
4142 Pushed by Joel Brobecker <brobecker@adacore.com>.
4143 * aarch64-tdep.c (aarch64_software_single_step): New function.
4144 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4145 with aarch64_software_single_step.
4147 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4151 2014-05-05 Keith Seitz <keiths@redhat.com>
4153 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4154 variable or history value is successfully parsed.
4156 2014-05-05 Yao Qi <yao@codesourcery.com>
4157 Pedro Alves <palves@redhat.com>
4159 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4160 address of blocks that intersects the requested range. Trim
4161 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4163 * ctf.c (ctf_xfer_partial): Likewise.
4165 2014-05-05 Yao Qi <yao@codesourcery.com>
4167 * printcmd.c (display_command): Remove the check to
4168 target_has_execution.
4170 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4172 * ppcobsd-nat.c: Include "obsd-nat.h".
4173 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4175 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4177 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4179 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4180 and 16-bit signed and unsigned arguments. Update comment.
4181 (stap_parse_probe_arguments): Extend code to handle such
4182 arguments. Use warning instead of complaint to notify about
4183 unrecognized bitness.
4185 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4187 PR breakpoints/16889
4188 * stap-probe.c (stap_parse_probe_arguments): Simplify
4189 check for non-prefixed probes (i.e., probes whose
4190 arguments do not start with "N@"). Always set the
4191 argument type to a sane value.
4193 2014-05-01 David Taylor <dtaylor@emc.com>
4195 * remote.c (compare_sections_command): Add -r option to compare
4196 all loadable read-only sections.
4198 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4200 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4201 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4203 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4204 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4205 Remove unused CORE_ADDR argument. Update all callers.
4207 2014-04-29 Pedro Alves <palves@redhat.com>
4209 * remote.c (struct packet_config) <detect>: Extend comment.
4210 (add_packet_config_cmd): Don't set the config's detect or support
4212 (init_all_packet_configs): Also initialize the config's 'detect'
4214 (reset_all_packet_configs_support): New function.
4215 (remote_open_1): Call reset_all_packet_configs_support instead of
4216 init_all_packet_configs.
4217 (_initialize_remote): Initialize all packet configs. Assert that
4218 all packets have an associated command, except a few known
4221 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4223 * dwarf2read.c (read_subrange_type): Handle dynamic
4224 DW_AT_lower_bound attributes.
4226 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4228 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4229 dynamic bounds before computing its upper bound.
4230 (ada_discrete_type_low_bound): Same as above with the lower bound.
4232 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4234 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4235 range types. Adjust the array handling implementation to
4236 take advantage of this change.
4237 (resolve_dynamic_range): New function, mostly extracted from
4238 resolve_dynamic_bounds.
4239 (resolve_dynamic_array): New function, mostly extracted from
4240 resolve_dynamic_bounds.
4241 (resolve_dynamic_bounds): Delete.
4242 (resolve_dynamic_type): Reimplement. Add handling of
4243 TYPE_CODE_RANGE types.
4245 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4247 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4248 handling of parallel ___XA types.
4250 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4252 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4253 unnecessary second call to static_unwrap_type.
4255 2014-04-27 Hui Zhu <hui@codesourcery.com>
4257 * stack.c (print_frame_info): Call do_gdb_disassembly with
4258 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4260 2014-04-26 Doug Evans <xdje42@gmail.com>
4262 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4264 2014-04-25 Pedro Alves <palves@redhat.com>
4267 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4268 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4269 and newline from built string.
4270 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4271 (linux_ptrace_attach_fail_reason): ... this.
4272 * linux-nat.c (linux_nat_attach): Adjust to use
4273 linux_ptrace_attach_fail_reason.
4275 2014-04-25 Pedro Alves <palves@redhat.com>
4277 * remote.c (struct remote_state): Remove multi_process_aware,
4278 non_stop_aware, cond_tracepoints, cond_breakpoints,
4279 breakpoint_commands, fast_tracepoints, static_tracepoints,
4280 install_in_trace, disconnected_tracing,
4281 enable_disable_tracepoints, string_tracing, and
4282 augmented_libraries_svr4_read fields.
4283 (remote_multi_process_p): Move further below in the file.
4284 (struct packet_config): Add comments.
4285 (update_packet_config): Delete function.
4286 (show_packet_config_cmd): Use packet_config_support.
4287 (add_packet_config_cmd): Use NULL as set callback.
4288 (packet_ok): "set remote foo-packet"-style commands no longer
4289 change config->supported -- adjust.
4290 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4291 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4292 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4293 (PACKET_QNonStop, PACKET_multiprocess_feature)
4294 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4295 (PACKET_DisconnectedTracing_feature)
4296 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4297 (set_remote_protocol_packet_cmd): Delete function.
4298 (packet_config_support, packet_support): New functions.
4299 (set_remote_protocol_Z_packet_cmd): Don't call
4300 update_packet_config.
4301 (remote_query_attached, remote_pass_signals)
4302 (remote_program_signals, remote_threads_info)
4303 (remote_threads_extra_info, remote_start_remote): Use
4305 (remote_start_remote): Use packet_config_support and
4307 (init_all_packet_configs): Set all packets to unknown support,
4308 instead of calling update_packet_config.
4309 (remote_check_symbols): Use packet_support.
4310 (remote_supported_packet): Unconditionally set the packet config's
4312 (remote_multi_process_feature, remote_non_stop_feature)
4313 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4314 (remote_breakpoint_commands_feature)
4315 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4316 (remote_install_in_trace_feature)
4317 (remote_disconnected_tracing_feature)
4318 (remote_enable_disable_tracepoint_feature)
4319 (remote_string_tracing_feature)
4320 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4321 (remote_protocol_features): Adjust to use remote_supported_packet
4322 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4323 "ConditionalTracepoints", "ConditionalBreakpoints",
4324 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4325 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4326 "EnableDisableTracepoints", and "tracenz".
4327 (remote_query_supported): Use packet_support.
4328 (remote_open_1): Adjust.
4329 (extended_remote_attach_1): Use packet_support. Switch on the
4330 result of packet_ok instead of checking whether the packet ended
4332 (remote_vcont_resume): Use packet_support.
4333 (remote_resume, remote_stop_ns, fetch_register_using_p)
4334 (remote_prepare_to_store, store_register_using_P)
4335 (check_binary_download, remote_write_bytes): Use packet_support.
4336 (remote_vkill): Use packet_support. Switch on the result of
4337 packet_ok instead of checking whether the packet ended up
4339 (extended_remote_supports_disable_randomization): Use
4341 (extended_remote_run): Switch on the result of packet_ok instead
4342 of checking whether the packet ended up disabled.
4343 (remote_insert_breakpoint, remote_remove_breakpoint)
4344 (remote_insert_watchpoint, remote_remove_watchpoint)
4345 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4347 (remote_search_memory): Use packet_config_support.
4348 (remote_get_thread_local_address, remote_get_tib_address)
4349 (remote_hostio_send_command, remote_can_execute_reverse): Use
4351 (remote_supports_cond_tracepoints)
4352 (remote_supports_cond_breakpoints)
4353 (remote_supports_fast_tracepoints)
4354 (remote_supports_static_tracepoints)
4355 (remote_supports_install_in_trace)
4356 (remote_supports_enable_disable_tracepoint)
4357 (remote_supports_string_tracing)
4358 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4359 the packet config says the feature is enabled or disabled.
4360 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4361 (remote_get_trace_status): Use packet_support.
4362 (remote_set_disconnected_tracing): Adjust to check whether the
4363 feature is enabled with packet_support.
4364 (remote_set_trace_buffer_size, remote_use_agent)
4365 (remote_can_use_agent, remote_supports_btrace): Use
4367 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4368 Use packet_config_support.
4369 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4370 the packet config says the feature is enabled or disabled.
4371 (set_range_stepping): Use packet_support.
4373 2014-04-25 Tom Tromey <tromey@redhat.com>
4375 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4378 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4380 * NEWS: Mention support for C99 variable length arrays.
4382 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4384 * ada-lang.c (standard_exc): Expand introductory comment.
4386 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4387 Walfred Tedeschi <walfred.tedeschi@intel.com>
4389 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4391 (amd64_linux_read_description): Add code to handle AVX512 xstate
4392 mask and return respective tdesc.
4393 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4394 and features/i386/x32-avx512-linux.c.
4395 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4396 (amd64_linux_core_read_description): Add code to handle AVX512
4397 xstate mask and return respective tdesc.
4398 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4399 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4401 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4402 (tdesc_amd64_avx512_linux): New prototype.
4403 (tdesc_x32_avx512_linux): Likewise.
4404 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4405 features/i386/x32-avx512.c.
4406 (amd64_ymm_avx512_names): New register names for pseudo
4408 (amd64_ymmh_avx512_names): New register names for raw registers
4410 (amd64_k_names): New register names for K registers.
4411 (amd64_zmmh_names): New register names for ZMM raw registers.
4412 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4413 (amd64_xmm_avx512_names): New register names for XMM16-31
4415 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4417 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4418 if feature is present.
4419 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4420 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4421 (AMD64_NUM_REGS): Adjust to new number of registers.
4422 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4423 registers supplied via XSTATE by AVX512 registers.
4424 (i386_linux_read_description): Add case for AVX512.
4425 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4426 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4427 (i386_linux_core_read_description): Add case for AVX512.
4428 (i386_linux_init_abi): Install supported register note section
4430 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4432 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4433 registers to be number of zmm7h + 1.
4434 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4435 * i386-tdep.c: Include features/i386/i386-avx512.c.
4436 (i386_zmm_names): Add ZMM pseudo register names array.
4437 (i386_zmmh_names): Add ZMM raw register names array.
4438 (i386_k_names): Add K raw register names array.
4439 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4440 registers. AVX512 has 16 more ZMM registers than there are YMM
4442 (i386_zmmh_regnum_p): Add function to look up register number of
4444 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4445 (i386_k_regnum_p): Likewise for K raw registers.
4446 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4447 registers added by AVX512.
4448 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4449 registers added by AVX512.
4450 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4452 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4453 (i386_pseudo_register_name): Add ZMM pseudo registers.
4454 (i386_zmm_type): Construct and return vector registers type for ZMM
4456 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4457 ZMM0-31 pseudo registers and K registers.
4458 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4459 and YMM16-31 registers from register cache.
4460 (i386_pseudo_register_write): Add code to write K, ZMM and
4462 (i386_register_reggroup_p): Add code to include/exclude AVX512
4463 registers in/from respective register groups.
4464 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4465 registers if feature is present in xcr0.
4466 (i386_gdbarch_init): Add code to initialize AVX512 feature
4467 variables in tdep structure, wire in pseudo registers and call
4468 initialize_tdesc_i386_avx512.
4469 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4471 (i386_regnum): Add AVX512 registers.
4472 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4473 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4474 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4475 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4477 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4478 (i386_ymm_avx512_regnum_p): Likewise.
4479 (i386_k_regnum_p): Likewise.
4480 (i386_zmm_regnum_p): Likewise.
4481 (i386_zmmh_regnum_p): Likewise.
4482 * i387-tdep.c : Update year in copyright notice.
4483 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4485 (XSAVE_YMM_AVX512_ADDR): New macro.
4486 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4488 (XSAVE_XMM_AVX512_ADDR): New macro.
4489 (xsave_avx512_k_offset): New table for K register offsets in
4491 (XSAVE_AVX512_K_ADDR): New macro.
4492 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4494 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4495 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4497 (i387_collect_xsave): Add code to collect AVX512 registers from
4499 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4500 of XMM16-31 registers.
4501 (I387_NUM_K_REGS): New define for number of K registers.
4502 (I387_K0_REGNUM): New define for K0 register number.
4503 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4504 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4505 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4507 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4508 (I387_XMM16_REGNUM): New define for XMM16 register number.
4509 (I387_YMM0_REGNUM): New define for YMM0 register number.
4510 (I387_KEND_REGNUM): New define for last K register number.
4511 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4512 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4514 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4516 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4518 * features/Makefile: Add AVX512 related files.
4519 * features/i386/32bit-avx512.xml: New file.
4520 * features/i386/64bit-avx512.xml: Likewise.
4521 * features/i386/amd64-avx512-linux.c: Likewise.
4522 * features/i386/amd64-avx512-linux.xml: Likewise.
4523 * features/i386/amd64-avx512.c: Likewise.
4524 * features/i386/amd64-avx512.xml: Likewise.
4525 * features/i386/i386-avx512-linux.c: Likewise.
4526 * features/i386/i386-avx512-linux.xml: Likewise.
4527 * features/i386/i386-avx512.c: Likewise.
4528 * features/i386/i386-avx512.xml: Likewise.
4529 * features/i386/x32-avx512-linux.c: Likewise.
4530 * features/i386/x32-avx512-linux.xml: Likewise.
4531 * features/i386/x32-avx512.c: Likewise.
4532 * features/i386/x32-avx512.xml: Likewise.
4533 * regformats/i386/amd64-avx512-linux.dat: New file.
4534 * regformats/i386/amd64-avx512.dat: Likewise.
4535 * regformats/i386/i386-avx512-linux.dat: Likewise.
4536 * regformats/i386/i386-avx512.dat: Likewise.
4537 * regformats/i386/x32-avx512-linux.dat: Likewise.
4538 * regformats/i386/x32-avx512.dat: Likewise.
4539 * NEWS: Add note about new support for AVX512.
4542 2014-04-23 Pedro Alves <palves@redhat.com>
4544 * breakpoint.c (insert_bp_location): Tolerate errors if the
4545 breakpoint is set in a user-loaded objfile.
4546 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4547 location is marked shlib_disabled. If the breakpoint is set in a
4548 user-loaded objfile is a GDB-side memory breakpoint, validate it
4549 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4550 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4552 * mem-break.c (memory_validate_breakpoint): New function.
4553 * objfiles.c (userloaded_objfile_contains_address_p): New
4555 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4556 * target.h (memory_validate_breakpoint): New declaration.
4558 2014-04-23 Pedro Alves <palves@redhat.com>
4560 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4561 the breakpoint is set in a shared library, only suppress
4562 errors for software breakpoints, not hardware breakpoints.
4564 2014-04-22 Pedro Alves <palves@redhat.com>
4566 * infrun.c (schedlock_applies): New function, factored out from
4567 find_thread_needs_step_over.
4568 (find_thread_needs_step_over): Use it.
4569 (switch_back_to_stepped_thread): Always clear trap_expected if the
4570 step over is finished. Return early if scheduler locking applies.
4571 Look for the stepping thread and a potential step-over thread with
4573 (currently_stepping_or_nexting_callback): Delete.
4575 2014-04-22 Nick Clifton <nickc@redhat.com>
4577 * NEWS: Mention that ARM sim now supports tracing.
4579 2014-04-22 Yao Qi <yao@codesourcery.com>
4581 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4583 * tracefile.c (tracefile_fetch_registers): ... it. New
4585 * tracefile.h (tracefile_fetch_registers): Declare.
4586 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4587 tracefile_fetch_registers.
4589 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4592 * windows-nat.c (thread_rec): Don't display a warning when
4593 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4594 fails for any reason, set th->suspended to -1, so that we don't
4595 try to resume such a thread. Also, don't return NULL in these
4596 cases, to avoid completely ruin the session due to "PC register is
4597 not available" error.
4598 (do_windows_fetch_inferior_registers): Check errors in
4599 GetThreadContext call.
4600 (windows_continue): Accept an additional argument KILLED; if not
4601 zero, ignore errors in the SetThreadContext call, since the
4602 inferior was killed and is shutting down.
4603 (windows_resume, get_windows_debug_event)
4604 (windows_create_inferior, windows_mourn_inferior)
4605 (windows_kill_inferior): All callers of windows_continue changed
4606 to adjust to its new calling sequence.
4608 2014-04-19 Yao Qi <yao@codesourcery.com>
4610 * ctf.c (ctf_open): Call post_create_inferior.
4612 2014-04-19 Yao Qi <yao@codesourcery.com>
4614 * ctf.c (handle_id): New static variable.
4615 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4616 value. Get the declaration of event "register" and get length
4617 of field "contents".
4619 2014-04-19 Yao Qi <yao@codesourcery.com>
4621 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4623 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4625 * valops.c (oload_method_static): Remove unnecessary argument
4626 METHOD. Update all callers.
4628 2014-04-18 Pedro alves <palves@redhat.com>
4629 Tom Tromey <tromey@redhat.com>
4632 * frame.c (get_prev_frame_1): Rename to ...
4633 (get_prev_frame_always): ... this, and make extern. Adjust.
4634 (skip_artificial_frames): Use get_prev_frame_always.
4635 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4636 (get_frame_unwind_stop_reason): Adjust to rename.
4637 * frame.h (get_prev_frame_always): Declare.
4638 * inline-frame.c: Include frame.h.
4639 (inline_frame_this_id): Use get_prev_frame_always.
4641 2014-04-18 Tristan Gingold <gingold@adacore.com>
4643 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4644 code by using bfd_mach_o_get_base_address.
4646 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4648 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4649 (spu_ax_pseudo_register_collect): New function.
4650 (spu_ax_pseudo_register_push_stack): Likewise.
4651 (spu_dwarf_reg_to_regnum): Likewise.
4652 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4654 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4656 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4657 Replace FRAME argument with FRAME_ID.
4658 * gdbarch.c, gdbarch.h: Regenerate.
4659 * findvar.c (default_value_from_register): Add GDBARCH argument;
4660 replace FRAME by FRAME_ID. No longer call get_frame_id.
4661 (value_from_register): Update call to gdbarch_value_from_register.
4662 * value.h (default_value_from_register): Update prototype.
4663 * s390-linux-tdep.c (s390_value_from_register): Update interface
4664 and call to default_value_from_register.
4665 * spu-tdep.c (spu_value_from_register): Likewise.
4667 * findvar.c (address_from_register): Remove TYPE argument.
4668 Do not call value_from_register; use gdbarch_value_from_register
4669 with null_frame_id instead.
4670 * value.h (address_from_register): Update prototype.
4671 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4672 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4673 address_from_register interface change.
4675 2014-04-17 Yao Qi <yao@codesourcery.com>
4677 * gdbtypes.h: Update comments to link to types and macros'
4680 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4682 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4684 2014-04-16 Keith Seitz <keiths@redhat.com>
4687 * dwarf2read.c (skip_one_die): Check that all relative-offset
4688 sibling DIEs fall within range of the current reader's buffer.
4689 (read_partial_die): Likewise.
4691 2014-04-16 Keith Seitz <keiths@redhat.com>
4694 * cp-namespace.c (lookup_symbol_file): If the type name of
4695 `this' is NULL, return immediately.
4697 2014-04-14 Keith Seitz <keiths@redhat.com>
4700 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4701 from symbol_matches_domain in symtab.c. All local callers
4702 of symbol_matches_domain updated.
4703 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4704 search STRUCT_DOMAIN.
4705 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4706 independently. standard_lookup will do that automatically.
4707 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4708 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4709 (cp_lookup_symbol_in_namespace): Likewise.
4710 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4711 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4712 may return a STRUCT_DOMAIN match.
4713 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4714 * cp-support.c: Include language.h.
4715 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4717 * psymtab.c (match_partial_symbol): Compare the requested
4718 domain with the symbol's domain directly.
4719 (lookup_partial_symbol): Likewise.
4720 * symtab.c (lookup_symbol_in_language): Explain when/why
4721 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4722 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4723 appropriate languages.
4724 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4725 and moved to ada-lang.c
4726 (lookup_block_symbol): Explain that this function only returns
4727 symbol matching the requested DOMAIN.
4728 Compare the requested domain with the symbol's domain directly.
4729 (iterate_over_symbols): Compare the requested domain with the
4730 symbol's domain directly.
4731 * symtab.h (symbol_matches_domain): Remove.
4733 2014-04-14 Tom Tromey <tromey@redhat.com>
4736 * c-exp.y (type_aggregate_p): New function.
4737 (qualified_name, classify_inner_name): Use it.
4738 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4739 and TYPE_TARGET_TYPE of an enum type.
4740 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4742 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4743 handle TYPE_DECLARED_CLASS.
4744 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4746 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4747 * valops.c (enum_constant_from_type): New function.
4748 (value_aggregate_elt): Use it.
4749 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4752 2014-04-14 Tom Tromey <tromey@redhat.com>
4754 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4755 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4757 * value.h (value_aggregate_elt): Update.
4759 2014-04-14 Tom Tromey <tromey@redhat.com>
4761 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4763 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4765 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4766 (evaluate_subexp_standard): Pass noside argument.
4767 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4768 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4769 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4770 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4771 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4773 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4775 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4776 points to a constant blob.
4778 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4780 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4781 property and store it as the high bound and flag the range accordingly.
4782 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4783 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4784 * gdbtypes.h (enum range_flags): New enum.
4785 (struct range_bounds): Add flags member.
4787 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4789 * c-typeprint.c (c_type_print_varspec_suffix): Added
4790 check for not yet resolved high bound. If unresolved, print
4791 "variable length" string to the console instead of random
4794 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4796 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4798 (ada_template_to_fixed_record_type_1): Likewise.
4799 (ada_to_fixed_type_1): Likewise.
4800 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4801 (cp_print_value): Likewise.
4802 * d-valprint.c (dynamic_array_type): Likewise.
4803 * findvar.c (address_of_variable): Likewise.
4804 * jv-valprint.c (java_value_print): Likewise.
4805 * valops.c (value_ind): Likewise.
4806 * value.c (coerce_ref): Likewise.
4808 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4810 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4811 value and retrieve the dynamic type size.
4813 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4815 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4816 passed to sizeof is dynamic evaluate the argument to compute the length.
4818 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4819 Joel Brobecker <brobecker@adacore.com>
4821 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4822 (dwarf2_evaluate_property): New function.
4823 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4824 * dwarf2read.c (attr_to_dynamic_prop): New function.
4825 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4827 * gdbtypes.c: Include dwarf2loc.h.
4828 (is_dynamic_type): New function.
4829 (resolve_dynamic_type): New function.
4830 (resolve_dynamic_bounds): New function.
4831 (get_type_length): New function.
4832 (check_typedef): Use get_type_length to compute type length.
4833 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4834 (TYPE_LOW_BOUND_KIND): New macro.
4835 (is_dynamic_type): New function prototype.
4836 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4837 to resolve dynamic properties of the type. Update comment.
4838 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4840 2014-04-14 Richard Henderson <rth@redhat.com>
4842 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4844 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4845 Doug Evans <xdje42@gmail.com>
4847 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4848 dereference TYPE_CODE_REF values.
4850 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4852 Revert the following changes due to regressions:
4854 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4855 (dwarf2_evaluate_property): New function.
4856 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4857 * dwarf2read.c (attr_to_dynamic_prop): New function.
4858 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4860 * gdbtypes.c: Include dwarf2loc.h.
4861 (is_dynamic_type): New function.
4862 (resolve_dynamic_type): New function.
4863 (resolve_dynamic_bounds): New function.
4864 (get_type_length): New function.
4865 (check_typedef): Use get_type_length to compute type length.
4866 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4867 (TYPE_LOW_BOUND_KIND): New macro.
4868 (is_dynamic_type): New function prototype.
4869 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4870 to resolve dynamic properties of the type. Update comment.
4871 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4873 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4874 passed to sizeof is dynamic evaluate the argument to compute the length.
4876 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4877 value and retrieve the dynamic type size.
4879 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4880 (ada_template_to_fixed_record_type_1): Likewise.
4881 (ada_to_fixed_type_1): Likewise.
4882 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4883 (cp_print_value): Likewise.
4884 * d-valprint.c (dynamic_array_type): Likewise.
4885 * eval.c (evaluate_subexp_with_coercion): Likewise.
4886 * findvar.c (address_of_variable): Likewise.
4887 * jv-valprint.c (java_value_print): Likewise.
4888 * valops.c (value_ind): Likewise.
4889 * value.c (coerce_ref): Likewise.
4891 * c-typeprint.c (c_type_print_varspec_suffix): Added
4892 check for not yet resolved high bound. If unresolved, print
4893 "variable length" string to the console instead of random
4896 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4897 property and store it as the high bound and flag the range accordingly.
4898 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4899 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4900 * gdbtypes.h (enum range_flags): New enum.
4901 (struct range_bounds): Add flags member.
4903 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4904 points to a constant blob.
4906 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4907 (evaluate_subexp_standard): Pass noside argument.
4908 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4909 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4910 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4911 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4912 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4914 2014-04-11 Keith Seitz <keiths@redhat.com>
4917 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4918 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4921 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4923 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4924 (evaluate_subexp_standard): Pass noside argument.
4925 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4926 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4927 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4928 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4929 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4931 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4934 points to a constant blob.
4936 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4939 property and store it as the high bound and flag the range accordingly.
4940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4942 * gdbtypes.h (enum range_flags): New enum.
4943 (struct range_bounds): Add flags member.
4945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4947 * c-typeprint.c (c_type_print_varspec_suffix): Added
4948 check for not yet resolved high bound. If unresolved, print
4949 "variable length" string to the console instead of random
4952 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4955 (ada_template_to_fixed_record_type_1): Likewise.
4956 (ada_to_fixed_type_1): Likewise.
4957 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4958 (cp_print_value): Likewise.
4959 * d-valprint.c (dynamic_array_type): Likewise.
4960 * eval.c (evaluate_subexp_with_coercion): Likewise.
4961 * findvar.c (address_of_variable): Likewise.
4962 * jv-valprint.c (java_value_print): Likewise.
4963 * valops.c (value_ind): Likewise.
4964 * value.c (coerce_ref): Likewise.
4966 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4969 value and retrieve the dynamic type size.
4971 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4973 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4974 passed to sizeof is dynamic evaluate the argument to compute the length.
4976 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4978 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4979 (dwarf2_evaluate_property): New function.
4980 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4981 * dwarf2read.c (attr_to_dynamic_prop): New function.
4982 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4984 * gdbtypes.c: Include dwarf2loc.h.
4985 (is_dynamic_type): New function.
4986 (resolve_dynamic_type): New function.
4987 (resolve_dynamic_bounds): New function.
4988 (get_type_length): New function.
4989 (check_typedef): Use get_type_length to compute type length.
4990 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4991 (TYPE_LOW_BOUND_KIND): New macro.
4992 (is_dynamic_type): New function prototype.
4993 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4994 to resolve dynamic properties of the type. Update comment.
4995 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4997 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4999 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5000 declaring high/low bounds and change uses accordingly. Call
5001 create_range_type instead of create_static_range_type.
5002 * gdbtypes.c (create_range_type): New function.
5003 (create_range_type): Convert bounds into struct bound_prop and pass
5004 them to create_range_type.
5005 * gdbtypes.h (struct bound_prop): New struct.
5006 (create_range_type): New function prototype.
5007 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5008 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5009 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5011 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5015 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5016 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5017 * ada-lang.c: All uses of create_range_type updated.
5018 * coffread.c: All uses of create_range_type updated.
5019 * dwarf2read.c: All uses of create_range_type updated.
5020 * f-exp.y: All uses of create_range_type updated.
5021 * m2-valprint.c: All uses of create_range_type updated.
5022 * mdebugread.c: All uses of create_range_type updated.
5023 * stabsread.c: All uses of create_range_type updated.
5024 * valops.c: All uses of create_range_type updated.
5025 * valprint.c: All uses of create_range_type updated.
5027 2014-04-10 Pedro Alves <palves@redhat.com>
5029 * breakpoint.c (single_step_breakpoints)
5030 (single_step_gdbarch): Move up in the file.
5031 (one_breakpoint_xfer_memory): New function, factored out from ...
5032 (breakpoint_xfer_memory): ... here. Also process single-step
5035 2014-04-09 Tristan Gingold <gingold@adacore.com>
5037 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5039 (darwin_decode_exception_message): Free port only after use.
5041 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5043 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5044 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5045 when setting the size of call_length.
5047 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5049 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5050 dereference TYPE_CODE_REF values.
5052 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5054 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5055 end of warning message.
5057 2014-04-03 Doug Evans <dje@google.com>
5059 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5060 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5062 2014-04-02 Alan Modra <amodra@gmail.com>
5064 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5065 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5066 (struct symbol_file_add_from_memory_args): Add size field.
5067 (find_vdso_size): New function.
5068 (add_vsyscall_page): Attempt to find vdso size.
5070 2014-04-01 Doug Evans <dje@google.com>
5072 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5074 2014-04-01 Tristan Gingold <gingold@adacore.com>
5076 * darwin-nat.c (darwin_encode_reply): Add prototype.
5077 (darwin_decode_exception_message): Reply to unknown inferiors.
5078 (darwin_decode_message): Handle message by id. Ignore message
5079 to unknown inferior.
5080 (darwin_wait): Discard unknown messages, add debug trace.
5082 2014-03-31 Doug Evans <dje@google.com>
5084 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5087 2014-03-31 Doug Evans <dje@google.com>
5089 New option "set print symbol-loading".
5091 * solib.c (solib_read_symbols): Only print symbol loading messages
5093 (solib_add): If symbol loading is in "brief" mode, notify user
5094 symbols are being loaded.
5095 (reload_shared_libraries_1): Ditto.
5096 * symfile.c (print_symbol_loading_off): New static global.
5097 (print_symbol_loading_brief): New static global.
5098 (print_symbol_loading_full): New static global.
5099 (print_symbol_loading_enums): New static global.
5100 (print_symbol_loading): New static global.
5101 (print_symbol_loading_p): New function.
5102 (symbol_file_add_with_addrs): Only print symbol loading messages
5104 (_initialize_symfile): Register "print symbol-loading" set/show
5106 * symfile.h (print_symbol_loading_p): Declare.
5108 2014-03-30 Doug Evans <xdje42@gmail.com>
5110 * infrun.c (set_last_target_status): New function.
5111 (handle_inferior_event): Call it.
5113 2014-03-30 Doug Evans <xdje42@gmail.com>
5115 * inferior.h (enum stop_kind): Improve comment.
5117 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5119 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5120 a reference, strip the reference layer before calling
5121 the lang_ops value_has_mutated callback.
5123 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5125 Remove some globals from our parser.
5126 * language.c (unk_lang_parser): Add "struct parser_state"
5128 * language.h (struct language_defn) <la_parser>: Likewise.
5129 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5130 (initialize_expout): Add "struct parser_state" argument.
5131 Rewrite function to use the parser state.
5132 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5133 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5134 write_exp_elt_longcst, write_exp_elt_dblcst,
5135 write_exp_elt_decfloatcst, write_exp_elt_type,
5136 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5137 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5138 write_dollar_variable): Likewise.
5139 (parse_exp_in_context_1): Use parser state.
5140 (insert_type_address_space): Add "struct parser_state" argument.
5142 (increase_expout_size): New function.
5143 * parser-defs.h: Forward declare "struct language_defn" and
5144 "struct parser_state".
5145 (expout, expout_size, expout_ptr): Remove extern declarations.
5146 (parse_gdbarch, parse_language): Rewrite macro declarations to
5147 accept the parser state.
5148 (struct parser_state): New struct.
5149 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5150 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5151 write_exp_elt_decfloatcst, write_exp_elt_type,
5152 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5153 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5154 write_exp_msymbol, write_dollar_variable,
5155 mark_struct_expression, insert_type_address_space): Add "struct
5156 parser_state" argument.
5157 (increase_expout_size): New function.
5158 * utils.c (do_clear_parser_state): New function.
5159 (make_cleanup_clear_parser_state): Likewise.
5160 * utils.h (make_cleanup_clear_parser_state): New function
5162 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5163 Update calls to write_exp* in order to pass the parser state.
5164 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5165 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5166 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5167 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5168 * stap-probe.c (stap_parse_register_operand): Likewise.
5169 (stap_parse_single_operand): Likewise.
5170 (stap_parse_argument_1): Likewise.
5171 (stap_parse_argument): Use parser state.
5172 * stap-probe.h: Include "parser-defs.h".
5173 (struct stap_parse_info) <pstate>: New field.
5174 * c-exp.y (parse_type): Rewrite to use parser state.
5175 (yyparse): Redefine to c_parse_internal.
5176 (pstate): New global variable.
5177 (parse_number): Add "struct parser_state" argument.
5178 (write_destructor_name): Likewise.
5179 (type_exp): Update calls to write_exp* and similars in order to
5181 (exp1, exp, variable, qualified_name, space_identifier,
5182 typename, typebase): Likewise.
5183 (write_destructor_name, parse_number, lex_one_token,
5184 classify_name, classify_inner_name, c_parse): Add "struct
5185 parser_state" argument. Update function to use parser state.
5186 * c-lang.h: Forward declare "struct parser_state".
5187 (c_parse): Add "struct parser_state" argument.
5188 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5189 (yyparse): Redefine macro to ada_parse_internal.
5190 (pstate): New variable.
5191 (write_int, write_object_renaming, write_var_or_type,
5192 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5193 type_int, type_long, type_long_long, type_float, type_double,
5194 type_long_double, type_char, type_boolean, type_system_address):
5195 Add "struct parser_state" argument.
5196 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5197 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5198 var_or_type, aggregate, aggregate_component_list,
5199 positional_list, others, component_group,
5200 component_associations): Update calls to write_exp* and similar
5201 functions in order to use parser state.
5202 (ada_parse, write_var_from_sym, write_int,
5203 write_exp_op_with_string, write_object_renaming,
5204 find_primitive_type, write_selectors, write_ambiguous_var,
5205 write_var_or_type, write_name_assoc, type_int, type_long,
5206 type_long_long, type_float, type_double, type_long_double,
5207 type_char, type_boolean, type_system_address): Add "struct
5208 parser_state" argument. Adjust function to use parser state.
5209 * ada-lang.c (parse): Likewise.
5210 * ada-lang.h: Forward declare "struct parser_state".
5211 (ada_parse): Add "struct parser_state" argument.
5212 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5213 calls to both functions.
5214 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5216 (yyparse): Redefine macro to f_parse_internal.
5217 (pstate): New variable.
5218 (parse_number): Add "struct parser_state" argument.
5219 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5220 and similars in order to use parser state.
5221 (parse_number): Adjust code to use parser state.
5223 (f_parse): New function.
5224 * f-lang.h: Forward declare "struct parser_state".
5225 (f_parse): Add "struct parser_state" argument.
5226 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5228 (yyparse): Redefine macro for java_parse_internal.
5229 (pstate): New variable.
5230 (push_expression_name, push_expression_name, insert_exp): Add
5231 "struct parser_state" argument.
5232 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5233 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5234 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5235 PostIncrementExpression, PostDecrementExpression,
5236 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5237 UnaryExpressionNotPlusMinus, CastExpression,
5238 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5239 RelationalExpression, EqualityExpression, AndExpression,
5240 ExclusiveOrExpression, InclusiveOrExpression,
5241 ConditionalAndExpression, ConditionalOrExpression,
5242 ConditionalExpression, Assignment, LeftHandSide): Update
5243 calls to write_exp* and similars in order to use parser state.
5244 (parse_number): Ajust code to use parser state.
5246 (java_parse): New function.
5247 (push_variable): Add "struct parser_state" argument. Adjust
5248 code to user parser state.
5249 (push_fieldnames, push_qualified_expression_name,
5250 push_expression_name, insert_exp): Likewise.
5251 * jv-lang.h: Forward declare "struct parser_state".
5252 (java_parse): Add "struct parser_state" argument.
5253 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5255 (yyparse): Redefine macro to m2_parse_internal.
5256 (pstate): New variable.
5257 (type_exp, exp, fblock, variable, type): Update calls to
5258 write_exp* and similars to use parser state.
5260 (m2_parse): New function.
5261 * m2-lang.h: Forward declare "struct parser_state".
5262 (m2_parse): Add "struct parser_state" argument.
5263 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5264 * objc-lang.h: Forward declare "struct parser_state".
5265 (end_msglist): Add "struct parser_state" argument.
5266 * p-exp.y (parse_type): Rewrite macro to use parser state.
5267 (yyparse): Redefine macro to pascal_parse_internal.
5268 (pstate): New variable.
5269 (parse_number): Add "struct parser_state" argument.
5270 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5271 write_exp* and similars in order to use parser state.
5272 (parse_number, yylex): Adjust code to use parser state.
5273 (pascal_parse): New function.
5274 * p-lang.h: Forward declare "struct parser_state".
5275 (pascal_parse): Add "struct parser_state" argument.
5276 * go-exp.y (parse_type): Rewrite macro to use parser state.
5277 (yyparse): Redefine macro to go_parse_internal.
5278 (pstate): New variable.
5279 (parse_number): Add "struct parser_state" argument.
5280 (type_exp, exp1, exp, variable, type): Update calls to
5281 write_exp* and similars in order to use parser state.
5282 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5283 to use parser state.
5284 (go_parse): Likewise.
5285 * go-lang.h: Forward declare "struct parser_state".
5286 (go_parse): Add "struct parser_state" argument.
5288 2014-03-27 Doug Evans <dje@google.com>
5290 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5292 2014-03-27 Doug Evans <dje@google.com>
5294 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5295 Remove argument abbrev_section. All callers updated.
5297 2014-03-27 Doug Evans <dje@google.com>
5299 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5300 addr_base, ranges_base.
5302 2014-03-26 Keith Seitz <keiths@redhat.com>
5304 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5305 types, not VAR_DOMAIN.
5307 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5309 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5311 * features/nios2-linux.c: Regenerated.
5312 * features/nios2.c: Regenerated.
5314 2014-03-25 Pedro Alves <palves@redhat.com>
5316 * cli/cli-script.c (script_from_file): Force the interpreter to
5319 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5321 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5322 small stack allocation.
5324 2014-03-24 Tristan Gingold <gingold@adacore.com>
5326 * darwin-nat.c (exc_server): Remove unused prototype.
5327 (darwin_dump_message): Correctly display data on x86_64.
5328 (darwin_encode_reply): Fix style.
5329 Add comments and fix indentation.
5331 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5333 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5335 2014-03-22 Doug Evans <xdje42@gmail.com>
5337 * infcmd.c: Whitespace fixes.
5338 (interrupt_command): Merge two function comments into one.
5340 2014-03-22 Doug Evans <xdje42@gmail.com>
5342 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5345 2014-03-22 Yao Qi <yao@codesourcery.com>
5347 * remote.c (target_read_live_memory): Remove.
5348 (memory_xfer_live_readonly_partial): Rename it to
5349 remote_xfer_live_readonly_partial. Remove argument 'object'.
5350 All callers updated. Call remote_read_bytes_1
5351 instead of target_read_live_memory.
5352 * tracepoint.c (set_traceframe_number): Remove.
5353 (make_cleanup_restore_traceframe_number): Likewise .
5354 * tracepoint.h (set_traceframe_number): Remove declaration.
5355 (make_cleanup_restore_traceframe_number): Likewise.
5357 2014-03-22 Yao Qi <yao@codesourcery.com>
5359 * remote.c (remote_read_bytes): Move code on reading from the
5361 (remote_read_bytes_1): ... here. New function.
5363 2014-03-22 Yao Qi <yao@codesourcery.com>
5365 * ctf.c (ctf_xfer_partial): Check the return value of
5366 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5367 return TARGET_XFER_UNAVAILABLE.
5368 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5369 * target.c (target_read_live_memory): Move it to remote.c.
5370 (memory_xfer_live_readonly_partial): Likewise.
5371 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5372 * remote.c (target_read_live_memory): Moved from target.c.
5373 (memory_xfer_live_readonly_partial): Likewise.
5374 (remote_read_bytes): Factored out from
5375 memory_xfer_partial_1.
5377 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5379 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5382 2014-03-21 Pedro Alves <palves@redhat.com>
5384 * infrun.c (normal_stop): Extend comment.
5386 2014-03-21 Hui Zhu <hui@codesourcery.com>
5387 Pedro Alves <palves@redhat.com>
5389 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5391 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5392 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5393 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5395 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5397 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5398 `z' formatted output modifier.
5400 2014-03-20 Tom Tromey <tromey@redhat.com>
5401 Sergio Durigan Junior <sergiodj@redhat.com>
5403 * probe.c (parse_probes): Turn assert into an ordinary error.
5404 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5405 exceptions when parsing probes. Rearrange the code for clarity.
5407 2014-03-20 Tom Tromey <tromey@redhat.com>
5410 * top.c (execute_command): Only dispatch events if the command
5413 2014-03-20 Tom Tromey <tromey@redhat.com>
5416 * infcall.c: Include event-top.h.
5417 (run_inferior_call): Call async_disable_stdin if needed.
5419 2014-03-20 Pedro Alves <palves@redhat.com>
5421 * infrun.c (prepare_to_proceed): Delete.
5422 (thread_still_needs_step_over): New function.
5423 (find_thread_needs_step_over): New function.
5424 (proceed): If the current thread needs a step-over, set its
5425 steping_over_breakpoint flag. Adjust to use
5426 find_thread_needs_step_over instead of prepare_to_proceed.
5427 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5428 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5430 (switch_back_to_stepped_thread): Step over breakpoints of all
5431 threads not the stepping thread, before switching back to the
5434 2014-03-20 Pedro Alves <palves@redhat.com>
5436 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5438 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5439 * infrun.c (saved_singlestep_ptid)
5440 (stepping_past_singlestep_breakpoint): Delete.
5441 (resume): Remove stepping_past_singlestep_breakpoint handling.
5442 (proceed): Store the prev_pc of the stepping thread too.
5443 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5445 (enum infwait_states): Delete infwait_thread_hop_state.
5446 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5448 (handle_inferior_event): Adjust.
5449 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5450 handling and the thread-hop code. Before removing single-step
5451 breakpoints, check whether the thread hit a single-step breakpoint
5452 of another thread. If it did, the trap is not a random signal.
5453 (switch_back_to_stepped_thread): If the event thread hit a
5454 single-step breakpoint, unblock it before switching to the
5455 stepping thread. Handle the case of the stepped thread having
5457 (keep_going): Handle the case of the current thread moving past a
5458 single-step breakpoint.
5460 2014-03-20 Pedro Alves <palves@redhat.com>
5463 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5464 are being stepped over.
5465 (breakpoint_address_match): Make extern.
5466 * breakpoint.h (breakpoint_address_match): New declaration.
5467 * inferior.h (stepping_past_instruction_at): New declaration.
5468 * infrun.c (struct step_over_info): New type.
5469 (step_over_info): New global.
5470 (set_step_over_info, clear_step_over_info)
5471 (stepping_past_instruction_at): New functions.
5472 (handle_inferior_event): Clear the step-over info when
5473 trap_expected is cleared.
5474 (resume): Remove now stale comment.
5475 (clear_proceed_status): Clear step-over info.
5476 (proceed): Adjust step-over handling to set or clear the step-over
5477 info instead of removing all breakpoints.
5478 (handle_signal_stop): When setting up a thread-hop, don't remove
5480 (stop_stepping): Clear step-over info.
5481 (keep_going): Adjust step-over handling to set or clear step-over
5482 info and then always inserting breakpoints, instead of removing
5483 all breakpoints when stepping over one.
5485 2014-03-20 Pedro Alves <palves@redhat.com>
5487 * infrun.c (previous_inferior_ptid): Adjust comment.
5488 (deferred_step_ptid): Delete.
5489 (infrun_thread_ptid_changed, prepare_to_proceed)
5490 (init_wait_for_inferior): Adjust.
5491 (handle_signal_stop): Delete deferred_step_ptid handling.
5493 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5496 * defs.h (sync_quit_force_run): New declaration.
5497 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5498 * event-top.c (async_sigterm_handler): New declaration.
5499 (async_sigterm_token): New variable.
5500 (async_init_signals): Create also async_sigterm_token.
5501 (async_sigterm_handler): New function.
5502 (sync_quit_force_run): New variable.
5503 (handle_sigterm): Replace quit_force call by other calls.
5504 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5506 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5508 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5509 offset into SPE pseudo registers.
5511 2014-03-18 Pedro Alves <palves@redhat.com>
5514 * inferior.h (print_stop_event): Declare.
5515 * infrun.c (print_stop_event): New, factored out from ...
5516 (normal_stop): ... this.
5517 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5518 of bpstat_print/print_stack_frame.
5520 2014-03-17 Tom Tromey <tromey@redhat.com>
5522 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5524 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5526 * ada-lang.c (decode_constrained_packed_array): Perform a
5527 minimal coercion for reference with coerce_ref instead of
5530 2014-03-17 Tristan Gingold <gingold@adacore.com>
5532 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5533 (darwin_solib_create_inferior_hook): Emit a warning if version
5536 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5538 * python/py-value.c (get_field_flag): Cast flag_name argument to
5539 PyObject_GetAttrString to support Python 2.4.
5541 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5543 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5544 (Global Maintainers): Remove Jan Kratochvil.
5546 2014-03-14 Pedro Alves <palves@redhat.com>
5548 * inferior.h (terminal_ours_for_output): Rename to ...
5549 (child_terminal_ours_for_output): ... this.
5550 (terminal_save_ours): Rename to ...
5551 (child_terminal_save_ours): ... this.
5552 (terminal_ours): Rename to ...
5553 (child_terminal_ours): ... this.
5554 (terminal_inferior): Rename to ...
5555 (child_terminal_inferior): ... this.
5556 (terminal_init_inferior): Rename to ...
5557 (child_terminal_init_inferior): ... this.
5558 (terminal_init_inferior_with_pgrp): Rename to ...
5559 (child_terminal_init_inferior_with_pgrp): ... this.
5560 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5561 (child_terminal_init_with_pgrp): ... this.
5562 (terminal_save_ours): Rename to ...
5563 (child_terminal_save_ours): ... this.
5564 (terminal_init_inferior): Rename to ...
5565 (child_terminal_init): ... this. Adjust.
5566 (terminal_inferior): Rename to ...
5567 (child_terminal_inferior): ... this.
5568 (terminal_ours_for_output): Rename to ...
5569 (child_terminal_ours_for_output): ... this. Adjust.
5570 (terminal_ours): Rename to ...
5571 (child_terminal_ours): ... this.
5572 (terminal_ours_1): Rename to ...
5573 (child_terminal_ours_1): ... this. Adjust.
5574 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5575 * windows-nat.c (do_initial_windows_stuff): Adjust.
5576 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5577 (gnu_terminal_init): ... this. Adjust.
5578 (gnu_target): Adjust.
5579 * inf-child.c (inf_child_target): Adjust.
5581 2014-03-13 Doug Evans <xdje42@gmail.com>
5584 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5587 2014-03-13 Doug Evans <xdje42@gmail.com>
5589 * value.c (record_latest_value): Call release_value_or_incref
5590 instead of release_value.
5592 2014-03-13 Pedro Alves <palves@redhat.com>
5594 * procfs.c (procfs_target): Don't override to_shortname,
5595 to_longname or to_doc.
5597 2014-03-13 Pedro Alves <palves@redhat.com>
5599 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5600 Unix in user visible strings.
5602 2014-03-12 Stan Shebs <stan@codesourcery.com>
5604 * gdbtypes.h: Annotate comments for Doxygen, add a page
5605 block comment with some general info.
5607 2014-03-12 Pedro Alves <palves@redhat.com>
5609 * infcmd.c (prepare_execution_command): New function, factored out
5610 from several execution commands.
5611 (run_command_1, continue_command, step_1, jump_command)
5612 (signal_command, until_command, advance_command, finish_command)
5613 (attach_command): Use prepare_execution_command.
5615 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5617 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5620 (struct arm_linux_thread_points): Removed.
5621 (struct arm_linux_process_info): New.
5622 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5623 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5624 (arm_linux_find_breakpoints_by_tid): Removed.
5625 (struct arch_lwp_info): New.
5626 (arm_linux_find_process_pid): New functions.
5627 (arm_linux_add_process): New functions.
5628 (arm_linux_process_info_get): New functions.
5629 (arm_linux_forget_process): New function.
5630 (arm_linux_get_debug_reg_state): New function.
5631 (struct update_registers_data): New.
5632 (update_registers_callback): New function.
5633 (arm_linux_insert_hw_breakpoint1): Updated.
5634 (arm_linux_remove_hw_breakpoint1): Updated.
5635 (arm_linux_insert_hw_breakpoint): Updated.
5636 (arm_linux_remove_hw_breakpoint): Updated.
5637 (arm_linux_insert_watchpoint): Updated.
5638 (arm_linux_remove_watchpoint): Updated.
5639 (arm_linux_new_thread): Updated.
5640 (arm_linux_prepare_to_resume): New function.
5641 (arm_linux_new_fork): New function.
5642 (_initialize_arm_linux_nat): Updated.
5644 2014-03-12 Pedro Alves <palves@redhat.com>
5646 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5648 2014-03-12 Tom Tromey <tromey@redhat.com>
5650 * inf-child.c (return_zero): New function.
5651 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5652 * aix-thread.c (aix_thread_inferior_created): New function.
5653 (aix_thread_attach): Remove.
5654 (init_aix_thread_ops): Don't set to_attach.
5655 (_initialize_aix_thread): Register inferior_created observer.
5656 * corelow.c (init_core_ops): Don't set to_attach or
5658 * exec.c (init_exec_ops): Don't set to_attach or
5660 * infcmd.c (run_command_1): Use find_run_target. Make direct
5662 (attach_command): Use find_attach_target. Make direct target
5664 * record-btrace.c (init_record_btrace_ops): Don't set
5666 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5668 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5669 set to_create_inferior.
5670 * target.c (complete_target_initialization): Add assertion.
5671 (target_create_inferior): Remove.
5672 (find_default_attach, find_default_create_inferior): Remove.
5673 (find_attach_target, find_run_target): New functions.
5674 (find_default_is_async_p, find_default_can_async_p)
5675 (target_supports_non_stop, target_attach): Remove.
5676 (init_dummy_target): Don't set to_create_inferior or
5677 to_supports_non_stop.
5678 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5679 TARGET_DEFAULT_FUNC.
5680 <to_create_inferior>: Add comment.
5681 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5682 TARGET_DEFAULT_RETURN.
5683 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5684 (find_attach_target, find_run_target): Declare.
5685 (target_create_inferior): Remove.
5686 (target_has_execution_1): Update comment.
5687 (target_supports_non_stop): Remove.
5688 * target-delegates.c: Rebuild.
5690 2014-03-12 Pedro Alves <palves@redhat.com>
5692 * inf-child.h: Update comment to not mention Unix.
5694 2014-03-12 Pedro Alves <palves@redhat.com>
5696 * inf-child.c: Update top comment to not mention Unix. Add
5697 generic comment describing how this target is meant to be used.
5698 (inf_child_post_attach, inf_child_post_startup_inferior)
5699 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5702 2014-03-12 Pedro Alves <palves@redhat.com>
5704 * nto-procfs.c: Include inf-child.h.
5705 (procfs_ops): Delete global.
5706 (procfs_can_run): Delete method.
5707 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5708 target pointer instead of referencing procfs_ops.
5709 (procfs_prepare_to_store): Delete.
5710 (init_procfs_ops): Delete function.
5711 (procfs_target): New function, based on init_procfs_ops, but
5712 inherit inf_child_target.
5713 (_initialize_procfs): Use procfs_target.
5715 2014-03-12 Pedro Alves <palves@redhat.com>
5717 * windows-nat.c: Include inf-child.h.
5718 (windows_ops): Delete global.
5719 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5721 (init_windows_ops): Delete function.
5722 (windows_target): New function, based on init_windows_ops, but
5723 inherit inf_child_target.
5724 (_initialize_windows_nat): Use windows_target. Install x86
5725 specific target methods here.
5727 2014-03-10 Doug Evans <xdje42@gmail.com>
5729 * guile/guile.c (call_initialize_gdb_module): New function.
5730 (initialize_guile): Replace call to scm_init_guile with call to
5733 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5735 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5736 in call to TYPE_CODE macro.
5738 2014-03-10 Jerome Guitton <guitton@adacore.com>
5740 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5741 Resolve tagged types to full view.
5743 2014-03-10 Hui Zhu <hui@codesourcery.com>
5745 * target.h (target_insert_breakpoint): Remove "hardware" from its
5748 2014-03-07 Doug Evans <dje@google.com>
5750 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5752 2014-03-07 Doug Evans <dje@google.com>
5754 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5755 Remove unused local comp_dir_attr. Assert exactly one of
5756 stub_comp_unit_die, stub_comp_dir is non-NULL.
5758 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5760 * target.h (complete_target_initialization, add_target):
5763 2014-03-07 Pedro Alves <palves@redhat.com>
5765 * go32-nat.c: Include inf-child.h.
5766 (go32_ops): Delete global.
5767 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5769 (go32_create_inferior): Push the passed in target pointer instead
5770 of referencing go32_ops.
5771 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5772 (go32_target): New function, based on init_go32_ops, but inherit
5774 (_initialize_go32_nat): Use go32_target. Move parts of
5777 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5779 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5780 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5781 SYMBOL_VALUE_ADDRESS.
5782 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5784 2014-03-06 Yao Qi <yao@codesourcery.com>
5786 * breakpoint.c (get_tracepoint_by_number): Remove argument
5787 optional_p. All callers updated. Adjust comments. Update
5789 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5791 2014-03-06 Yao Qi <yao@codesourcery.com>
5793 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5794 early if get_number returns zero. Use 'p' instead of 'args'.
5796 2014-03-06 Yao Qi <yao@codesourcery.com>
5798 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5801 2014-03-06 Yao Qi <yao@codesourcery.com>
5803 PR breakpoints/16508
5804 * tracepoint.c (check_trace_running): New function.
5805 (trace_find_command): Move code to check_trace_running and
5806 call check_trace_running.
5807 (trace_find_pc_command): Likewise.
5808 (trace_find_tracepoint_command): Likewise.
5809 (trace_find_line_command): Likewise.
5810 (trace_find_range_command): Likewise.
5811 * tracepoint.h (check_trace_running): Likewise.
5812 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5814 2014-03-06 Yao Qi <yao@codesourcery.com>
5816 * target.h (struct target_ops) <to_traceframe_info>: Use
5817 TARGET_DEFAULT_NORETURN (tcomplain ()).
5818 * target-delegates.c: Regenerated.
5820 2014-03-05 Pedro Alves <palves@redhat.com>
5823 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5824 void. Update comment.
5825 (dcache_xfer_memory): Delete.
5826 (dcache_read_memory_partial): New, based on the read bits of
5828 (dcache_update): Add status parameter. Use ULONGEST for len, and
5829 adjust. Discard cache lines if the reason for the update was
5831 * dcache.h (dcache_xfer_memory): Delete declaration.
5832 (dcache_read_memory_partial): New declaration.
5833 (dcache_update): Update prototype.
5834 * target.c (raw_memory_xfer_partial): Update the dcache here.
5835 (memory_xfer_partial_1): Don't handle dcache writes here.
5837 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5839 * remote-sim.c (gdbsim_load): Add const to prog.
5841 2014-03-03 Tom Tromey <tromey@redhat.com>
5843 * elfread.c (probe_key): Change to bfd_data.
5844 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5845 now per-BFD, not per-objfile.
5846 * stap-probe.c (stap_probe_destroy): Update comment.
5847 (handle_stap_probe): Allocate on the per-BFD obstack.
5849 2014-03-03 Tom Tromey <tromey@redhat.com>
5851 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5852 * breakpoint.c (create_longjmp_master_breakpoint): Use
5854 (add_location_to_breakpoint, bkpt_probe_insert_location)
5855 (bkpt_probe_remove_location): Update.
5856 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5857 * elfread.c (elf_symfile_relocate_probe): Remove.
5858 (elf_probe_fns): Update.
5859 (insert_exception_resume_breakpoint): Change type of "probe"
5860 parameter to bound_probe.
5861 (check_exception_resume): Update.
5862 * objfiles.c (objfile_relocate1): Don't relocate probes.
5863 * probe.c (bound_probe_s): New typedef.
5864 (parse_probes): Use get_probe_address. Set sal's objfile.
5865 (find_probe_by_pc): Return a bound_probe.
5866 (collect_probes): Return a VEC(bound_probe_s).
5867 (compare_probes): Update.
5868 (gen_ui_out_table_header_info): Change type of "probes"
5870 (info_probes_for_ops): Update.
5871 (get_probe_address): New function.
5872 (probe_safe_evaluate_at_pc): Update.
5873 * probe.h (struct probe_ops) <get_probe_address>: New field.
5874 <set_semaphore, clear_semaphore>: Add objfile parameter.
5875 (struct probe) <objfile>: Remove field.
5877 <address>: Update comment.
5878 (struct bound_probe): New.
5879 (find_probe_by_pc): Return a bound_probe.
5880 (get_probe_address): Declare.
5881 * solib-svr4.c (struct probe_and_action) <address>: New field.
5882 (hash_probe_and_action, equal_probe_and_action): Update.
5883 (register_solib_event_probe): Add address parameter.
5884 (solib_event_probe_at): Update.
5885 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5887 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5888 (stap_get_probe_address): New function.
5889 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5890 (compile_probe_arg): Update.
5891 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5893 (handle_stap_probe): Don't relocate the probe.
5894 (stap_relocate): Remove.
5895 (stap_gen_info_probes_table_values): Update.
5896 (stap_probe_ops): Remove stap_relocate.
5897 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5898 (debug_sym_probe_fns): Update.
5899 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5900 * symtab.c (init_sal): Use memset.
5901 * symtab.h (struct symtab_and_line) <objfile>: New field.
5902 * tracepoint.c (start_tracing, stop_tracing): Update.
5904 2014-03-03 Tom Tromey <tromey@redhat.com>
5906 * probe.h (parse_probes, find_probe_by_pc)
5907 (find_probes_in_objfile): Fix comments.
5909 2014-03-02 Doug Evans <xdje42@gmail.com>
5911 * infrun.c (handle_signal_stop): Replace test for
5912 TARGET_WAITKIND_STOPPED with an assert.
5914 2014-03-02 Doug Evans <xdje42@gmail.com>
5916 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5918 2014-03-02 Doug Evans <xdje42@gmail.com>
5920 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5922 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5924 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5926 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5928 * i386obsd-nat.c: Include "obsd-nat.h".
5929 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5931 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5933 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5935 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5937 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5939 * mips64obsd-nat.c: Include "obsd-nath".
5940 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5942 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5944 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5946 * amd64obsd-nat.c: Include "obsd-nat,h.
5947 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5949 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5951 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5953 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5954 (find_overload_match): Update call to find_oload_champ.
5955 (find_oload_champ_namespace_loop): Likewise
5957 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5959 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5961 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5962 * config/sparc/obsd64.mh: New file.
5963 * sparc64obsd-nat.c: New file.
5965 * obsd-nat.h: New file.
5966 * obsd-nat.c: New file.
5967 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5968 (ALLDEPFILES): Add obsd-nat.c.
5970 2014-02-28 Tom Tromey <tromey@redhat.com>
5972 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5973 * cli-out.h (cli_ui_out_impl): Now const.
5974 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5975 * ui-out.c (struct ui_out) <impl>: Now const.
5976 (default_ui_out_impl): Now const.
5977 (ui_out_new): Make 'impl' parameter const.
5978 * ui-out.h (ui_out_new): Update.
5980 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5982 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5984 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5986 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5988 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5990 Additional PR 8882 fix.
5991 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5993 2014-02-27 Pedro Alves <palves@redhat.com>
5995 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5998 2014-02-27 Pedro Alves <palves@redhat.com>
6001 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6002 * nat/linux-waitpid.c: Include string.h.
6003 (status_to_str): Moved here and made extern.
6004 * nat/linux-waitpid.h (status_to_str): New declaration.
6006 2014-02-27 Hui Zhu <hui@codesourcery.com>
6009 * infrun.c (ptid_match): Move ...
6010 * common/ptid.c (ptid_match): ... here.
6011 * inferior.h (ptid_match): Move ...
6012 * common/ptid.h (ptid_match): ... here.
6014 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6016 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6017 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6020 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6022 * obsd-tdep.c (obsd_auxv_parse): New function.
6023 (obsd_init_abi): Set auxv_parse.
6025 * gdbarch.sh (auxv_parse): New.
6026 * gdbarch.h: Regenerated.
6027 * gdbarch.c: Regenerated.
6028 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6030 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6032 * guile/scm-value.c (gdbscm_history_append_x): New function.
6033 (value_functions): Add it.
6035 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6037 * dwarf2read.c (attr_value_as_address): New function.
6038 (dwarf2_find_base_address, read_call_site_scope): Use
6039 attr_value_as_address in place of DW_ADDR.
6040 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6041 the low and high addresses. Slight rework of the handling
6042 of the high pc being a constant form, and limit it to
6043 DWARF verson 4 or higher.
6044 (dwarf2_record_block_ranges): Likewise.
6045 (read_partial_die): Likewise.
6046 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6048 2014-02-26 Tom Tromey <tromey@redhat.com>
6050 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6052 2014-02-26 Tom Tromey <tromey@redhat.com>
6054 * elfread.c (elf_read_minimal_symbols): Return early if
6055 minimal symbols have already been read. Add "ei" parameter.
6056 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6057 * minsyms.c (prim_record_minimal_symbol_full): Update.
6058 * objfiles.h (struct objstats) <n_minsyms>: Move...
6059 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6060 * symmisc.c (print_objfile_statistics): Update.
6062 2014-02-26 Tom Tromey <tromey@redhat.com>
6064 * elfread.c (elf_read_minimal_symbols): New function, from
6066 (elf_symfile_read): Call it.
6068 2014-02-26 Tom Tromey <tromey@redhat.com>
6070 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6071 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6072 (lookup_minimal_symbol_solib_trampoline)
6073 (lookup_minimal_symbol_by_pc_section_1)
6074 (lookup_minimal_symbol_and_objfile): Update.
6075 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6076 Don't allocate a minimal symbol if minsyms have already been read.
6077 (build_minimal_symbol_hash_tables): Update.
6078 (install_minimal_symbols): Do nothing if minsyms already read.
6079 Use the per-BFD obstack.
6080 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6081 * objfiles.c (allocate_objfile): Call
6082 terminate_minimal_symbol_table later.
6083 (have_minimal_symbols): Update.
6084 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6085 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6086 Move from struct objfile.
6087 <minsyms_read>: New field.
6088 (struct objfile) <msymbols, minimal_symbol_count,
6089 msymbol_hash, msymbol_demangled_hash>: Move.
6090 (ALL_OBJFILE_MSYMBOLS): Update.
6091 * symfile.c (read_symbols): Set minsyms_read.
6092 (reread_symbols): Update.
6093 * symmisc.c (dump_objfile, dump_msymbols): Update.
6095 2014-02-26 Tom Tromey <tromey@redhat.com>
6097 * minsyms.c (msymbols_sort): Remove.
6098 * minsyms.h (msymbols_sort): Remove.
6099 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6100 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6101 * elfread.c (elf_symtab_read): Don't add section offsets.
6102 * xcoffread.c (record_minimal_symbol): Don't add section offset
6103 to minimal symbol address.
6104 * somread.c (text_offset, data_offset): Remove.
6105 (som_symtab_read): Don't add section offsets to minimal symbol
6107 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6108 Don't add section offsets to minimal symbols.
6109 * coffread.c (coff_symtab_read): Don't add section offsets
6110 to minimal symbol addresses.
6111 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6112 to minimal symbol addresses.
6113 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6114 section offset to minimal symbol addresses.
6115 * mdebugread.c (parse_partial_symbols): Don't add section
6116 offset to minimal symbol addresses.
6117 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6118 offset to minimal symbol addresses.
6120 2014-02-26 Tom Tromey <tromey@redhat.com>
6122 * ada-lang.c (ada_main_name): Update.
6123 (ada_add_standard_exceptions): Update.
6124 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6125 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6126 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6127 * auxv.c (ld_so_xfer_auxv): Update.
6128 * avr-tdep.c (avr_scan_prologue): Update.
6129 * ax-gdb.c (gen_var_ref): Update.
6130 * blockframe.c (get_pc_function_start)
6131 (find_pc_partial_function_gnu_ifunc): Update.
6132 * breakpoint.c (create_overlay_event_breakpoint)
6133 (create_longjmp_master_breakpoint)
6134 (create_std_terminate_master_breakpoint)
6135 (create_exception_master_breakpoint): Update.
6136 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6137 * c-valprint.c (c_val_print): Update.
6138 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6139 * common/agent.c (agent_look_up_symbols): Update.
6140 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6141 * dwarf2loc.c (call_site_to_target_addr): Update.
6142 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6143 * elfread.c (elf_gnu_ifunc_record_cache)
6144 (elf_gnu_ifunc_resolve_by_got): Update.
6145 * findvar.c (default_read_var_value): Update.
6146 * frame.c (inside_main_func): Update.
6147 * frv-tdep.c (frv_frame_this_id): Update.
6148 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6149 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6151 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6152 (hppa_hpux_find_dummy_bpaddr): Update.
6153 * hppa-tdep.c (hppa_symbol_address): Update.
6154 * infcmd.c (until_next_command): Update.
6155 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6157 * linespec.c (minsym_found, add_minsym): Update.
6158 * linux-nat.c (get_signo): Update.
6159 * linux-thread-db.c (inferior_has_bug): Update.
6160 * m32c-tdep.c (m32c_return_value)
6161 (m32c_m16c_address_to_pointer): Update.
6162 * m32r-tdep.c (m32r_frame_this_id): Update.
6163 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6164 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6165 * maint.c (maintenance_translate_address): Update.
6166 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6167 (frob_address): New function.
6168 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6169 frob_address. Rename parameter to "pc_in".
6170 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6172 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6174 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6175 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6176 * objc-lang.c (find_objc_msgsend): Update.
6177 * objfiles.c (objfile_relocate1): Update.
6178 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6179 * p-valprint.c (pascal_val_print): Update.
6180 * parse.c (write_exp_msymbol): Update.
6181 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6182 (ppc_elfv2_skip_entrypoint): Update.
6183 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6184 * printcmd.c (build_address_symbolic, msym_info)
6185 (address_info): Update.
6186 * proc-service.c (ps_pglobal_lookup): Update.
6187 * psymtab.c (find_pc_sect_psymtab_closer)
6188 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6189 Change msymbol parameter to bound_minimal_symbol.
6190 * ravenscar-thread.c (get_running_thread_id): Update.
6191 * remote.c (remote_check_symbols): Update.
6192 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6194 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6195 * solib-dsbt.c (lm_base): Update.
6196 * solib-frv.c (lm_base, main_got): Update.
6197 * solib-irix.c (locate_base): Update.
6198 * solib-som.c (som_solib_create_inferior_hook)
6199 (link_map_start): Update.
6200 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6201 * solib-svr4.c (elf_locate_base, enable_break): Update.
6202 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6203 (flush_ea_cache): Update.
6204 * stabsread.c (define_symbol, scan_file_globals): Update.
6205 * stack.c (find_frame_funname): Update.
6206 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6207 (debug_qf_find_pc_sect_symtab): Update.
6208 * symfile.c (simple_read_overlay_table)
6209 (simple_overlay_update): Update.
6210 * symfile.h (struct quick_symbol_functions)
6211 <find_pc_sect_symtab>: Change type of msymbol to
6212 bound_minimal_symbol.
6213 * symmisc.c (dump_msymbols): Update.
6214 * symtab.c (find_pc_sect_symtab_via_partial)
6215 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6216 (search_symbols, print_msymbol_info): Update.
6217 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6218 (MSYMBOL_VALUE_ADDRESS): Redefine.
6219 (BMSYMBOL_VALUE_ADDRESS): New macro.
6220 * tracepoint.c (scope_info): Update.
6221 * tui/tui-disasm.c (tui_find_disassembly_address)
6222 (tui_get_begin_asm_address): Update.
6223 * valops.c (find_function_in_inferior): Update.
6224 * value.c (value_static_field, value_fn_field): Update.
6226 2014-02-26 Tom Tromey <tromey@redhat.com>
6228 * ada-lang.c (ada_update_initial_language): Update.
6229 (ada_main_name, ada_has_this_exception_support): Update.
6230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6231 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6232 * arm-tdep.c (arm_skip_stub): Update.
6233 * auxv.c (ld_so_xfer_auxv): Update.
6234 * avr-tdep.c (avr_scan_prologue): Update.
6235 * ax-gdb.c (gen_var_ref): Update.
6236 * breakpoint.c (struct breakpoint_objfile_data)
6237 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6238 type to bound_minimal_symbol.
6239 (create_overlay_event_breakpoint)
6240 (create_longjmp_master_breakpoint)
6241 (create_std_terminate_master_breakpoint)
6242 (create_exception_master_breakpoint): Update.
6243 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6244 * c-exp.y (classify_name): Update.
6245 * coffread.c (coff_symfile_read): Update.
6246 * common/agent.c (agent_look_up_symbols): Update.
6247 * d-lang.c (d_main_name): Update.
6248 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6249 * dec-thread.c (enable_dec_thread): Update.
6250 * dwarf2loc.c (call_site_to_target_addr): Update.
6251 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6252 * eval.c (evaluate_subexp_standard): Update.
6253 * findvar.c (struct minsym_lookup_data) <result>: Change type
6254 to bound_minimal_symbol.
6256 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6257 * frame.c (inside_main_func): Update.
6258 * frv-tdep.c (frv_frame_this_id): Update.
6259 * gcore.c (call_target_sbrk): Update.
6260 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6261 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6263 * go-lang.c (go_main_name): Update.
6264 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6265 (hppa_hpux_find_import_stub_for_addr): Update.
6266 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6267 Update. Change return type.
6268 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6270 * jit.c (jit_breakpoint_re_set_internal): Update.
6271 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6273 * linux-nat.c (get_signo): Update.
6274 * linux-thread-db.c (inferior_has_bug): Update
6275 * m32c-tdep.c (m32c_return_value)
6276 (m32c_m16c_address_to_pointer): Update.
6277 * m32r-tdep.c (m32r_frame_this_id): Update.
6278 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6279 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6280 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6281 lookup_minimal_symbol. Change return type.
6282 (lookup_minimal_symbol): Remove.
6283 (lookup_bound_minimal_symbol): Update.
6284 (lookup_minimal_symbol_text): Change return type.
6285 (lookup_minimal_symbol_solib_trampoline): Change return type.
6286 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6287 (lookup_minimal_symbol_solib_trampoline): Change return type.
6288 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6289 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6290 (value_nsstring, find_imps): Update.
6291 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6292 * p-lang.c (pascal_main_name): Update.
6293 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6294 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6295 * proc-service.c (ps_pglobal_lookup): Update.
6296 * ravenscar-thread.c (get_running_thread_msymbol): Change
6298 (has_ravenscar_runtime, get_running_thread_id): Update.
6299 * remote.c (remote_check_symbols): Update.
6300 * sol-thread.c (ps_pglobal_lookup): Update.
6301 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6302 * solib-dsbt.c (lm_base): Update.
6303 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6305 * solib-irix.c (locate_base): Update.
6306 * solib-som.c (som_solib_create_inferior_hook)
6307 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6309 * solib-spu.c (spu_enable_break): Update.
6310 * solib-svr4.c (elf_locate_base, enable_break): Update.
6311 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6312 (flush_ea_cache): Update.
6313 * stabsread.c (define_symbol): Update.
6314 * symfile.c (simple_read_overlay_table): Update.
6315 * symtab.c (find_pc_sect_line): Update.
6316 * tracepoint.c (scope_info): Update.
6317 * tui-disasm.c (tui_get_begin_asm_address): Update.
6318 * value.c (value_static_field): Update.
6320 2014-02-26 Tom Tromey <tromey@redhat.com>
6322 * minsyms.c (prim_record_minimal_symbol_full): Use
6323 SET_MSYMBOL_VALUE_ADDRESS.
6324 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6325 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6326 SET_MSYMBOL_VALUE_ADDRESS.
6327 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6328 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6330 2014-02-26 Tom Tromey <tromey@redhat.com>
6332 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6333 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6334 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6335 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6336 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6337 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6338 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6339 * ada-lang.c (ada_main_name): Update.
6340 (ada_lookup_simple_minsym): Update.
6341 (ada_make_symbol_completion_list): Update.
6342 (ada_add_standard_exceptions): Update.
6343 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6344 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6345 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6346 * arm-tdep.c (skip_prologue_function): Update.
6347 (arm_skip_stack_protector, arm_skip_stub): Update.
6348 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6349 (arm_wince_skip_main_prologue): Update.
6350 * auxv.c (ld_so_xfer_auxv): Update.
6351 * avr-tdep.c (avr_scan_prologue): Update.
6352 * ax-gdb.c (gen_var_ref): Update.
6353 * block.c (call_site_for_pc): Update.
6354 * blockframe.c (get_pc_function_start): Update.
6355 (find_pc_partial_function_gnu_ifunc): Update.
6356 * breakpoint.c (create_overlay_event_breakpoint): Update.
6357 (create_longjmp_master_breakpoint): Update.
6358 (create_std_terminate_master_breakpoint): Update.
6359 (create_exception_master_breakpoint): Update.
6360 (resolve_sal_pc): Update.
6361 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6362 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6364 * c-valprint.c (c_val_print): Update.
6365 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6366 * coffread.c (coff_symfile_read): Update.
6367 * common/agent.c (agent_look_up_symbols): Update.
6368 * dbxread.c (find_stab_function_addr): Update.
6369 (end_psymtab): Update.
6370 * dwarf2loc.c (call_site_to_target_addr): Update.
6371 (func_verify_no_selftailcall): Update.
6372 (tailcall_dump): Update.
6373 (call_site_find_chain_1): Update.
6374 (dwarf_expr_reg_to_entry_parameter): Update.
6375 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6376 (elf_gnu_ifunc_resolve_by_got): Update.
6377 * f-valprint.c (info_common_command): Update.
6378 * findvar.c (read_var_value): Update.
6379 * frame.c (get_prev_frame_1): Update.
6380 (inside_main_func): Update.
6381 * frv-tdep.c (frv_skip_main_prologue): Update.
6382 (frv_frame_this_id): Update.
6383 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6384 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6385 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6386 (gnuv3_skip_trampoline): Update.
6387 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6388 (hppa64_hpux_in_solib_call_trampoline): Update.
6389 (hppa_hpux_skip_trampoline_code): Update.
6390 (hppa64_hpux_search_dummy_call_sequence): Update.
6391 (hppa_hpux_find_import_stub_for_addr): Update.
6392 (hppa_hpux_find_dummy_bpaddr): Update.
6393 * hppa-tdep.c (hppa_symbol_address)
6394 (hppa_lookup_stub_minimal_symbol): Update.
6395 * i386-tdep.c (i386_skip_main_prologue): Update.
6396 (i386_pe_skip_trampoline_code): Update.
6397 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6398 * infcall.c (get_function_name): Update.
6399 * infcmd.c (until_next_command): Update.
6400 * jit.c (jit_breakpoint_re_set_internal): Update.
6401 (jit_inferior_init): Update.
6402 * linespec.c (minsym_found): Update.
6403 (add_minsym): Update.
6404 * linux-fork.c (info_checkpoints_command): Update.
6405 * linux-nat.c (get_signo): Update.
6406 * linux-thread-db.c (inferior_has_bug): Update.
6407 * m32c-tdep.c (m32c_return_value): Update.
6408 (m32c_m16c_address_to_pointer): Update.
6409 (m32c_m16c_pointer_to_address): Update.
6410 * m32r-tdep.c (m32r_frame_this_id): Update.
6411 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6412 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6413 * maint.c (maintenance_translate_address): Update.
6414 * minsyms.c (add_minsym_to_hash_table): Update.
6415 (add_minsym_to_demangled_hash_table): Update.
6416 (msymbol_objfile): Update.
6417 (lookup_minimal_symbol): Update.
6418 (iterate_over_minimal_symbols): Update.
6419 (lookup_minimal_symbol_text): Update.
6420 (lookup_minimal_symbol_by_pc_name): Update.
6421 (lookup_minimal_symbol_solib_trampoline): Update.
6422 (lookup_minimal_symbol_by_pc_section_1): Update.
6423 (lookup_minimal_symbol_and_objfile): Update.
6424 (prim_record_minimal_symbol_full): Update.
6425 (compare_minimal_symbols): Update.
6426 (compact_minimal_symbols): Update.
6427 (build_minimal_symbol_hash_tables): Update.
6428 (install_minimal_symbols): Update.
6429 (terminate_minimal_symbol_table): Update.
6430 (find_solib_trampoline_target): Update.
6431 (minimal_symbol_upper_bound): Update.
6432 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6433 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6434 (mips_skip_pic_trampoline_code): Update.
6435 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6436 * objc-lang.c (selectors_info): Update.
6437 (classes_info): Update.
6438 (find_methods): Update.
6439 (find_imps): Update.
6440 (find_objc_msgsend): Update.
6441 * objfiles.c (objfile_relocate1): Update.
6442 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6443 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6444 * p-valprint.c (pascal_val_print): Update.
6445 * parse.c (write_exp_msymbol): Update.
6446 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6447 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6448 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6449 * printcmd.c (build_address_symbolic): Update.
6451 (address_info): Update.
6452 * proc-service.c (ps_pglobal_lookup): Update.
6453 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6454 (find_pc_sect_psymtab): Update.
6455 * python/py-framefilter.c (py_print_frame): Update.
6456 * ravenscar-thread.c (get_running_thread_id): Update.
6457 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6459 * remote.c (remote_check_symbols): Update.
6460 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6461 (rs6000_skip_trampoline_code): Update.
6462 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6463 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6464 * solib-dsbt.c (lm_base): Update.
6465 * solib-frv.c (lm_base): Update.
6467 * solib-irix.c (locate_base): Update.
6468 * solib-som.c (som_solib_create_inferior_hook): Update.
6469 (som_solib_desire_dynamic_linker_symbols): Update.
6470 (link_map_start): Update.
6471 * solib-spu.c (spu_enable_break): Update.
6472 (ocl_enable_break): Update.
6473 * solib-svr4.c (elf_locate_base): Update.
6474 (enable_break): Update.
6475 * spu-tdep.c (spu_get_overlay_table): Update.
6476 (spu_catch_start): Update.
6477 (flush_ea_cache): Update.
6478 * stabsread.c (define_symbol): Update.
6479 (scan_file_globals): Update.
6480 * stack.c (find_frame_funname): Update.
6481 (frame_info): Update.
6482 * symfile.c (simple_read_overlay_table): Update.
6483 (simple_overlay_update): Update.
6484 * symmisc.c (dump_msymbols): Update.
6485 * symtab.c (fixup_section): Update.
6486 (find_pc_sect_line): Update.
6487 (skip_prologue_sal): Update.
6488 (search_symbols): Update.
6489 (print_msymbol_info): Update.
6490 (rbreak_command): Update.
6491 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6492 (completion_list_objc_symbol): Update.
6493 (default_make_symbol_completion_list_break_on): Update.
6494 * tracepoint.c (scope_info): Update.
6495 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6496 (tui_get_begin_asm_address): Update.
6497 * valops.c (find_function_in_inferior): Update.
6498 * value.c (value_static_field): Update.
6499 (value_fn_field): Update.
6501 2014-02-26 Tom Tromey <tromey@redhat.com>
6503 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6504 bound minimal symbols. Move code that knows about minsym
6506 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6508 * minsyms.h (minimal_symbol_upper_bound): Declare.
6509 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6510 minimal_symbol_upper_bound.
6512 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6514 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6515 Use the type's name if its basic type does not have a tag.
6517 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6519 * dwarf2read.c (read_subrange_type): Add comment.
6521 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6523 * dwarf2read.c (update_enumeration_type_from_children): New
6524 function, mostly extracted from process_structure_scope.
6525 (read_enumeration_type): Call update_enumeration_type_from_children.
6526 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6527 and flag_flag_enum fields.
6529 2014-02-26 Pedro Alves <palves@redhat.com>
6531 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6532 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6533 to_xfer_partial method.
6535 2014-02-26 Pedro Alves <palves@redhat.com>
6537 * target.c (complete_target_initialization): Don't install
6538 default_xfer_partial as to_xfer_partial hook.
6540 (update_current_target): Don't INHERIT nor de_fault
6541 deprecated_xfer_memory. Delete de_fault macro.
6542 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6543 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6544 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6547 2014-02-26 Pedro Alves <palves@redhat.com>
6549 * go32-nat.c (my_write_child): New function.
6550 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6551 (go32_xfer_partial): New function.
6552 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6553 Instead install a to_xfer_partial hook.
6555 2014-02-26 Pedro Alves <palves@redhat.com>
6557 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6558 to_xfer_partial helper. Rewrite.
6559 (procfs_xfer_partial): New function.
6560 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6561 Install a to_xfer_partial hook.
6563 2014-02-26 Pedro Alves <palves@redhat.com>
6565 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6566 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6567 (m32r_xfer_partial): New function.
6568 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6569 Install a to_xfer_partial hook.
6571 2014-02-26 Pedro Alves <palves@redhat.com>
6573 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6575 (mips_xfer_partial): New function.
6576 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6577 hook. Install a to_xfer_partial hook.
6579 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6581 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6582 * gdbtypes.c (create_array_type_with_stride): New function,
6583 renaming create_array_type, but with an added parameter
6584 called "bit_stride".
6585 (create_array_type): Re-implement using
6586 create_array_type_with_stride.
6587 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6588 and DW_AT_bit_stride attributes.
6590 2014-02-26 Pedro Alves <palves@redhat.com>
6592 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6593 task-specific breakpoints.
6595 2014-02-25 Pedro Alves <palves@redhat.com>
6597 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6598 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6600 2014-02-25 Stan Shebs <stan@codesourcery.com>
6602 * defs.h: Annotate comments for Doxygen.
6604 2014-02-25 Tom Tromey <tromey@redhat.com>
6606 * target.h (target_ignore): Don't declare.
6607 * target.c (target_ignore): Remove.
6609 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6612 * auto-load.c (auto_load_objfile_script_1): Change filename to
6615 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6617 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6618 documentation. Adjust prototype to match the target_ops
6619 to_xfer_partial method. Adjust implementation accordingly.
6621 2014-02-25 Hui Zhu <hui@codesourcery.com>
6623 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6626 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6628 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6629 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6630 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6631 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6632 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6633 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6634 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6635 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6637 (rl78_register_type): Use a data pointer type for SP and
6638 new pseudo registers mentioned above. Use a 16 bit integer
6639 type for all other register pairs.
6640 (rl78_register_name, rl78_g10_register_name): Update for
6641 new pseudo registers.
6642 (rl78_pseudo_register_read): Likewise.
6643 (rl78_pseudo_register_write): Likewise.
6644 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6645 to the newly added pseudo registers.
6647 2014-02-24 Doug Evans <dje@google.com>
6649 * value.c (record_latest_value): Fix comment.
6650 * printcmd.c (print_command_1): Remove code to handle -1 return from
6651 record_latest_value.
6653 2014-02-24 Pedro Alves <palves@redhat.com>
6655 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6656 deprecated_xfer_memory hook.
6657 (procfs_xfer_partial): Call procfs_xfer_memory instead
6658 of the deprecated_xfer_memory target hook.
6659 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6662 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6664 * windows-nat.c (windows_xfer_shared_libraries): Return
6665 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6666 requested object is TARGET_OBJECT_LIBRARIES.
6668 2014-02-24 Yao Qi <yao@codesourcery.com>
6670 * target.h (enum target_xfer_status)
6671 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6672 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6674 * corefile.c (memory_error_message): User updated.
6675 * exec.c (section_table_read_available_memory): Likewise.
6676 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6677 * target.c (target_xfer_status_to_string): Likewise.
6678 (raw_memory_xfer_partial): Likewise.
6679 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6680 * valops.c (read_value_memory): Likewise.
6681 * exec.h: Update comments.
6683 2014-02-24 Yao Qi <yao@codesourcery.com>
6685 * target.c (target_xfer_status_to_string): Rename argument err
6687 * target.h (target_xfer_status_to_string): Update declaration.
6688 Replace target_xfer_error_to_string with
6689 target_xfer_status_to_string in comment.
6691 2014-02-24 Yao Qi <yao@codesourcery.com>
6693 * mips-linux-nat.c (super_close): Update its type.
6694 (mips_linux_close): Pass 'self' to super_close.
6696 2014-02-24 Yao Qi <yao@codesourcery.com>
6698 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6699 * corefile.c (read_memory): Adjusted.
6700 * target.c (target_write_with_progress): Adjusted.
6702 2014-02-23 Yao Qi <yao@codesourcery.com>
6706 2013-10-25 Yao Qi <yao@codesourcery.com>
6708 * remote.c (remote_traceframe_info): Return early if
6709 traceframe is not selected.
6711 2013-07-19 Yao Qi <yao@codesourcery.com>
6713 * target.c (update_current_target): Change the default action
6714 of 'to_traceframe_info' from tcomplain to return_zero.
6715 * target.h (struct target_ops) <to_traceframe_info>: Add more
6718 2014-02-23 Yao Qi <yao@codesourcery.com>
6720 * valops.c (read_value_memory): Rewrite it. Call
6721 target_xfer_partial in a loop.
6722 * exec.h (section_table_available_memory): Remove declaration.
6723 Move comments to ...
6724 * exec.c (section_table_available_memory): ... here. Make it
6727 2014-02-23 Yao Qi <yao@codesourcery.com>
6729 * exec.c (section_table_read_available_memory): New function.
6730 * exec.h (section_table_read_available_memory): Declare.
6731 * ctf.c (ctf_xfer_partial): Call
6732 section_table_read_available_memory.
6733 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6735 2014-02-23 Yao Qi <yao@codesourcery.com>
6737 * ctf.c (ctf_xfer_partial): Move code to ...
6738 * exec.c (exec_read_partial_read_only): ... it. New function.
6739 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6740 * tracefile.c: Include "exec.h".
6741 * exec.h (exec_read_partial_read_only): Declare.
6743 2014-02-23 Yao Qi <yao@codesourcery.com>
6745 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6746 (tfile_has_memory): Remove.
6747 (init_tfile_ops): Don't set fields to_has_all_memory and
6748 to_has_memory of tfile_ops.
6749 * tracefile.c (tracefile_has_all_memory): New function.
6750 (tracefile_has_memory): New function.
6751 (init_tracefile_ops): Initialize fields to_has_all_memory and
6752 to_has_memory of 'ops'.
6754 2014-02-23 Yao Qi <yao@codesourcery.com>
6756 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6757 (ctf_thread_alive, ctf_get_trace_status): Remove.
6758 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6760 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6761 (tfile_has_stack, tfile_has_registers): Remove.
6762 (tfile_thread_alive): Remove.
6763 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6765 * tracefile.c (tracefile_has_stack): New function.
6766 (tracefile_has_registers): New function.
6767 (tracefile_thread_alive): New function.
6768 (tracefile_get_trace_status): New function.
6769 (init_tracefile_ops): New function.
6770 * tracefile.h (init_tracefile_ops): Declare.
6772 2014-02-23 Yao Qi <yao@codesourcery.com>
6774 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6775 (O_LARGEFILE): Likewise.
6776 (tfile_ops): Likewise.
6777 (TRACE_HEADER_SIZE): Likewise.
6778 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6779 (cur_data_size): Likewise.
6780 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6781 (tfile_close, tfile_files_info): Likewise.
6782 (tfile_get_trace_status): Likewise.
6783 (tfile_get_tracepoint_status): Likewise.
6784 (tfile_get_traceframe_address): Likewise.
6785 (tfile_trace_find, match_blocktype): Likewise.
6786 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6787 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6788 (tfile_get_trace_state_variable_value): Likewise.
6789 (tfile_has_all_memory, tfile_has_memory): Likewise.
6790 (tfile_has_stack, tfile_has_registers): Likewise.
6791 (tfile_thread_alive, build_traceframe_info): Likewise.
6792 (tfile_traceframe_info, init_tfile_ops): Likewise.
6793 (_initialize_tracepoint): Don't call init_tfile_ops
6794 and add_target_with_completer.
6795 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6796 exec.h, completer.h and filenames.h.
6797 (_initialize_tracefile_tfile): New function.
6799 2014-02-23 Yao Qi <yao@codesourcery.com>
6801 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6803 (HFILES_NO_SRCDIR): Add tracefile.h.
6804 * ctf.c: Include "tracefile.h".
6805 * tracefile.h: New file.
6806 * tracefile.c: New file
6807 * tracefile-tfile.c: New file.
6808 * tracepoint.c: Include "tracefile.h".
6809 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6810 (stop_reason_names): Add const.
6811 (trace_file_writer_xfree): Move it to tracefile.c.
6812 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6813 (trace_save_ctf): Likewise.
6814 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6815 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6816 (tfile_write_header, tfile_write_regblock_type): Likewise.
6817 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6818 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6819 (tfile_write_raw_data, tfile_end): Likewise.
6820 (tfile_trace_file_writer_new): Likewise.
6821 (free_uploaded_tp): Make it extern.
6822 (free_uploaded_tsv): Make it extern.
6823 (_initialize_tracepoint): Move code to register command 'tsave'
6825 * tracepoint.h (stop_reason_names): Declare.
6826 (struct trace_frame_write_ops): Move it to tracefile.h.
6827 (struct trace_file_write_ops): Likewise.
6828 (struct trace_file_writer): Likewise.
6829 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6831 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6834 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6836 (get_cores_used_by_process): New parameter num_cores, use it.
6837 (linux_xfer_osdata_processes): Pass num_cores to it.
6838 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6841 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6843 * target.c (memory_xfer_partial): Fix length arg in call to
6844 breakpoint_xfer_memory.
6846 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6849 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6850 number comes after the + or - signs. Adjust length of register
6851 name to be extracted.
6853 2014-02-20 Tom Tromey <tromey@redhat.com>
6855 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6856 (ada_varobj_ops): Mark "extern".
6858 2014-02-20 Tom Tromey <tromey@redhat.com>
6860 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6862 2014-02-20 Doug Evans <xdje42@gmail.com>
6864 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6865 All callers updated.
6866 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6867 All callers updated.
6868 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6869 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6871 2014-02-20 lin zuojian <manjian2006@gmail.com>
6872 Joel Brobecker <brobecker@adacore.com>
6873 Doug Evans <xdje42@gmail.com>
6876 * dwarf2read.c (struct die_info): New member in_process.
6877 (reset_die_in_process): New function.
6878 (process_die): Set it at the start, reset when returning.
6879 (inherit_abstract_dies): Only call process_die if origin_child_die
6880 not already being processed.
6882 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6884 * windows-nat.c (handle_unload_dll): Add function documentation.
6885 (do_initial_windows_stuff): Add comment explaining why we wait
6886 until after inferior initialization has finished before
6887 processing all DLLs.
6889 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6891 * windows-nat.c (get_module_name): Delete.
6892 (windows_get_exec_module_filename): New function, mostly
6893 inspired from get_module_name.
6894 (windows_pid_to_exec_file): Replace call to get_module_name
6895 by call to windows_get_exec_module_filename.
6897 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6899 * windows-nat.c (handle_load_dll): Rewrite this function's
6900 introductory comment. Remove code using get_module_name
6901 to get the DLL's name.
6903 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6905 * windows-nat.c (get_windows_debug_event): Ignore
6906 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6907 if windows_initialization_done == 0.
6908 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6909 Adjust implementation to always load all DLLs.
6910 (do_initial_windows_stuff): Replace call to
6911 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6913 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6915 * windows-nat.c (_initialize_windows_nat): Deprecate the
6916 "dll-symbols" command. Turn the "add-shared-symbol-files"
6917 and "assf" aliases into commands, and deprecate them as well.
6918 * NEWS: Add entry explaining that "dll-symbols" and its two
6919 aliases are now deprecated.
6921 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6923 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6924 new-line in debug string. Remove trailing spaces.
6926 2014-02-19 Stan Shebs <stan@codesourcery.com>
6928 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6930 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6932 * NEWS: Add entry for the new feature
6933 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6936 2014-02-19 Stan Shebs <stan@codesourcery.com>
6938 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6940 2014-02-19 Pedro Alves <palves@redhat.com>
6942 * common/ptid.h (struct ptid): Mention that process_stratum
6943 targets should prefer ptid.lwp.
6945 2014-02-19 Pedro Alves <palves@redhat.com>
6947 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6948 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6949 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6950 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6951 store remote thread ids rather than ptid.tid.
6952 (_initialize_remote): Adjust.
6954 2014-02-19 Tom Tromey <tromey@redhat.com>
6956 * target.c (target_get_unwinder): Rewrite.
6957 (target_get_tailcall_unwinder): Rewrite.
6958 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6959 (record_btrace_to_get_tailcall_unwinder): New function.
6960 (init_record_btrace_ops): Update.
6961 * target.h (struct target_ops) <to_get_unwinder,
6962 to_get_tailcall_unwinder>: Now function pointers. Use
6963 TARGET_DEFAULT_RETURN.
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6967 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6969 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6975 * target-delegates.c: Rebuild.
6976 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6977 TARGET_DEFAULT_FUNC.
6978 * target.c (default_target_decr_pc_after_break): Rename from
6979 forward_target_decr_pc_after_break. Simplify.
6980 (target_decr_pc_after_break): Rely on delegation.
6982 2014-02-19 Tom Tromey <tromey@redhat.com>
6984 * target.c (update_current_target): Do not INHERIT to_doc or
6985 to_magic. Do not de_fault to_open or to_close.
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * gcore.h (objfile_find_memory_regions): Declare.
6990 * gcore.c (objfile_find_memory_regions): No longer static. Add
6992 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6993 * exec.c: Include gcore.h.
6994 (exec_set_find_memory_regions): Remove.
6995 (exec_find_memory_regions): Remove.
6996 (exec_do_find_memory_regions): Remove.
6997 (init_exec_ops): Update.
6998 * defs.h (exec_set_find_memory_regions): Remove.
7000 2014-02-19 Tom Tromey <tromey@redhat.com>
7002 * target-delegates.c: Rebuild.
7003 * target.h (struct target_ops) <to_extra_thread_info,
7004 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7005 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7006 not 0, in TARGET_DEFAULT_RETURN.
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7010 * target.c (complete_target_initialization): Remove casts. Use
7011 return_zero_has_execution.
7012 (return_zero): Add "ignore" argument.
7013 (return_zero_has_execution): New function.
7014 (init_dummy_target): Remove casts. Use
7015 return_zero_has_execution.
7017 2014-02-19 Tom Tromey <tromey@redhat.com>
7019 * target.c (update_current_target): Update comments. Do not
7022 2014-02-19 Tom Tromey <tromey@redhat.com>
7024 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7026 * corelow.c (core_read_description): Delegate when needed.
7027 * remote.c (remote_read_description): Delegate when needed.
7028 * target-delegates.c: Rebuild.
7029 * target.c (target_read_description): Rewrite.
7030 * target.h (struct target_ops) <to_read_description>: Update
7031 comment. Use TARGET_DEFAULT_RETURN.
7033 2014-02-19 Tom Tromey <tromey@redhat.com>
7035 * target-delegates.c: Rebuild.
7036 * target.c (update_current_target): Don't inherit or default
7038 (find_default_run_target): Check against delegate_can_run.
7039 * target.h (struct target_ops) <to_can_run>: Use
7040 TARGET_DEFAULT_RETURN.
7042 2014-02-19 Tom Tromey <tromey@redhat.com>
7044 * target-delegates.c: Rebuild.
7045 * target.c (target_disconnect): Unconditionally delegate.
7046 * target.h (struct target_ops) <to_disconnect>: Use
7047 TARGET_DEFAULT_NORETURN.
7049 2014-02-19 Tom Tromey <tromey@redhat.com>
7051 * record.c (record_stop): Unconditionally delegate.
7052 * target-delegates.c: Rebuild.
7053 * target.c (target_stop_recording): Unconditionally delegate.
7054 * target.h (struct target_ops) <to_stop_recording>: Use
7055 TARGET_DEFAULT_IGNORE.
7057 2014-02-19 Tom Tromey <tromey@redhat.com>
7059 * target-delegates.c: Rebuild.
7060 * target.c (target_enable_btrace): Unconditionally delegate.
7061 * target.h (struct target_ops) <to_enable_btrace>: Use
7062 TARGET_DEFAULT_NORETURN.
7064 2014-02-19 Tom Tromey <tromey@redhat.com>
7066 * target-delegates.c: Rebuild.
7067 * target.c (target_read_btrace): Unconditionally delegate.
7068 * target.h (struct target_ops) <to_read_btrace>: Use
7069 TARGET_DEFAULT_NORETURN.
7071 2014-02-19 Tom Tromey <tromey@redhat.com>
7073 * target-delegates.c: Rebuild.
7074 * target.c (target_teardown_btrace): Unconditionally delegate.
7075 * target.h (struct target_ops) <to_teardown_btrace>: Use
7076 TARGET_DEFAULT_NORETURN.
7078 2014-02-19 Tom Tromey <tromey@redhat.com>
7080 * target-delegates.c: Rebuild.
7081 * target.c (target_disable_btrace): Unconditionally delegate.
7082 * target.h (struct target_ops) <to_disable_btrace>: Use
7083 TARGET_DEFAULT_NORETURN.
7085 2014-02-19 Tom Tromey <tromey@redhat.com>
7087 * target-delegates.c: Rebuild.
7088 * target.c (default_search_memory): New function.
7089 (simple_search_memory): Update comment.
7090 (target_search_memory): Unconditionally delegate.
7091 * target.h (struct target_ops) <to_search_memory>: Use
7092 TARGET_DEFAULT_FUNC.
7094 2014-02-19 Tom Tromey <tromey@redhat.com>
7096 * auxv.c (default_auxv_parse): No longer static.
7097 (target_auxv_parse): Unconditionally delegate.
7098 * auxv.h (default_auxv_parse): Declare.
7099 * target-delegates.c: Rebuild.
7100 * target.c: Include auxv.h.
7101 * target.h (struct target_ops) <to_auxv_parse>: Use
7102 TARGET_DEFAULT_FUNC.
7104 2014-02-19 Tom Tromey <tromey@redhat.com>
7106 * target-delegates.c: Rebuild.
7107 * target.c (target_memory_map): Unconditionally delegate.
7108 * target.h (struct target_ops) <to_memory_map>: Use
7109 TARGET_DEFAULT_RETURN.
7111 2014-02-19 Tom Tromey <tromey@redhat.com>
7113 * target-delegates.c: Rebuild.
7114 * target.c (target_thread_alive): Unconditionally delegate.
7115 * target.h (struct target_ops) <to_thread_alive>: Use
7116 TARGET_DEFAULT_RETURN.
7118 2014-02-19 Tom Tromey <tromey@redhat.com>
7120 * target-delegates.c: Rebuild.
7121 * target.c (target_save_record): Unconditionally delegate.
7122 * target.h (struct target_ops) <to_save_record>: Use
7123 TARGET_DEFAULT_NORETURN.
7125 2014-02-19 Tom Tromey <tromey@redhat.com>
7127 * target-delegates.c: Rebuild.
7128 * target.c (target_delete_record): Unconditionally delegate.
7129 * target.h (struct target_ops) <to_delete_record>: Use
7130 TARGET_DEFAULT_NORETURN.
7132 2014-02-19 Tom Tromey <tromey@redhat.com>
7134 * target-delegates.c: Rebuild.
7135 * target.c (target_record_is_replaying): Unconditionally
7137 * target.h (struct target_ops) <to_record_is_replaying>: Use
7138 TARGET_DEFAULT_RETURN.
7140 2014-02-19 Tom Tromey <tromey@redhat.com>
7142 * target-delegates.c: Rebuild.
7143 * target.c (target_goto_record_begin): Unconditionally delegate.
7144 * target.h (struct target_ops) <to_goto_record_begin>: Use
7145 TARGET_DEFAULT_NORETURN.
7147 2014-02-19 Tom Tromey <tromey@redhat.com>
7149 * target-delegates.c: Rebuild.
7150 * target.c (target_goto_record_end): Unconditionally delegate.
7151 * target.h (struct target_ops) <to_goto_record_end>: Use
7152 TARGET_DEFAULT_NORETURN.
7154 2014-02-19 Tom Tromey <tromey@redhat.com>
7156 * target-delegates.c: Rebuild.
7157 * target.c (target_goto_record): Unconditionally delegate.
7158 * target.h (struct target_ops) <to_goto_record>: Use
7159 TARGET_DEFAULT_NORETURN.
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7163 * target-delegates.c: Rebuild.
7164 * target.c (target_insn_history): Unconditionally delegate.
7165 * target.h (struct target_ops) <to_insn_history>: Use
7166 TARGET_DEFAULT_NORETURN.
7168 2014-02-19 Tom Tromey <tromey@redhat.com>
7170 * target-delegates.c: Rebuild.
7171 * target.c (target_insn_history_from): Unconditionally delegate.
7172 * target.h (struct target_ops) <to_insn_history_from>: Use
7173 TARGET_DEFAULT_NORETURN.
7175 2014-02-19 Tom Tromey <tromey@redhat.com>
7177 * target-delegates.c: Rebuild.
7178 * target.c (target_insn_history_range): Unconditionally delegate.
7179 * target.h (struct target_ops) <to_insn_history_range>: Use
7180 TARGET_DEFAULT_NORETURN.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * target-delegates.c: Rebuild.
7185 * target.c (target_call_history): Unconditionally delegate.
7186 * target.h (struct target_ops) <to_call_history>: Use
7187 TARGET_DEFAULT_NORETURN.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * target-delegates.c: Rebuild.
7192 * target.c (target_call_history_from): Unconditionally delegate.
7193 * target.h (struct target_ops) <to_call_history_from>: Use
7194 TARGET_DEFAULT_NORETURN.
7196 2014-02-19 Tom Tromey <tromey@redhat.com>
7198 * target-delegates.c: Rebuild.
7199 * target.c (target_call_history_range): Unconditionally delegate.
7200 * target.h (struct target_ops) <to_call_history_range>: Use
7201 TARGET_DEFAULT_NORETURN.
7203 2014-02-19 Tom Tromey <tromey@redhat.com>
7205 * target-delegates.c: Rebuild.
7206 * target.c (target_verify_memory): Unconditionally delegate.
7207 * target.h (struct target_ops) <to_verify_memory>: Use
7208 TARGET_DEFAULT_NORETURN.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * target-delegates.c: Rebuild.
7213 * target.c (target_core_of_thread): Unconditionally delegate.
7214 * target.h (struct target_ops) <to_core_of_thread>: Use
7215 TARGET_DEFAULT_RETURN.
7217 2014-02-19 Tom Tromey <tromey@redhat.com>
7219 * target-delegates.c: Rebuild.
7220 * target.c (target_flash_done): Unconditionally delegate.
7221 * target.h (struct target_ops) <to_flash_done>: Use
7222 TARGET_DEFAULT_NORETURN.
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7226 * target-delegates.c: Rebuild.
7227 * target.c (target_flash_erase): Unconditionally delegate.
7228 * target.h (struct target_ops) <to_flash_erase>: Use
7229 TARGET_DEFAULT_NORETURN.
7231 2014-02-19 Tom Tromey <tromey@redhat.com>
7233 * target-delegates.c: Rebuild.
7234 * target.c (target_get_section_table): Unconditionally delegate.
7235 * target.h (struct target_ops) <to_get_section_table>: Use
7236 TARGET_DEFAULT_RETURN.
7238 2014-02-19 Tom Tromey <tromey@redhat.com>
7240 * target-delegates.c: Rebuild.
7241 * target.c (target_pid_to_str): Unconditionally delegate.
7242 (init_dummy_target): Don't initialize to_pid_to_str.
7243 (default_pid_to_str): Rename from dummy_pid_to_str.
7244 * target.h (struct target_ops) <to_pid_to_str>: Use
7245 TARGET_DEFAULT_FUNC.
7247 2014-02-19 Tom Tromey <tromey@redhat.com>
7249 * target-delegates.c: Rebuild.
7250 * target.c (target_find_new_threads): Unconditionally delegate.
7251 * target.h (struct target_ops) <to_find_new_threads>: Use
7252 TARGET_DEFAULT_RETURN.
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7256 * target-delegates.c: Rebuild.
7257 * target.c (target_program_signals): Unconditionally delegate.
7258 * target.h (struct target_ops) <to_program_signals>: Use
7259 TARGET_DEFAULT_IGNORE.
7261 2014-02-19 Tom Tromey <tromey@redhat.com>
7263 * target-delegates.c: Rebuild.
7264 * target.c (target_pass_signals): Unconditionally delegate.
7265 * target.h (struct target_ops) <to_pass_signals>: Use
7266 TARGET_DEFAULT_IGNORE.
7268 2014-02-19 Tom Tromey <tromey@redhat.com>
7270 * target-delegates.c: Rebuild.
7271 * target.c (default_mourn_inferior): New function.
7272 (target_mourn_inferior): Unconditionally delegate.
7273 * target.h (struct target_ops) <to_mourn_inferior>: Use
7274 TARGET_DEFAULT_FUNC.
7276 2014-02-19 Tom Tromey <tromey@redhat.com>
7278 * target-delegates.c: Rebuild.
7279 * target.c (default_follow_fork): New function.
7280 (target_follow_fork): Unconditionally delegate.
7281 * target.h (struct target_ops) <to_follow_fork>: Use
7282 TARGET_DEFAULT_FUNC.
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7286 * target-delegates.c: Rebuild.
7287 * target.c (target_kill): Unconditionally delegate.
7288 * target.h (struct target_ops) <to_kill>: Use
7289 TARGET_DEFAULT_NORETURN.
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7293 * target-delegates.c: Rebuild.
7294 * target.c (target_masked_watch_num_registers): Unconditionally
7296 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7297 Use TARGET_DEFAULT_RETURN.
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7301 * target-delegates.c: Rebuild.
7302 * target.c (target_remove_mask_watchpoint): Unconditionally
7304 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7305 TARGET_DEFAULT_RETURN.
7307 2014-02-19 Tom Tromey <tromey@redhat.com>
7309 * target-delegates.c: Rebuild.
7310 * target.c (target_insert_mask_watchpoint): Unconditionally
7312 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7313 TARGET_DEFAULT_RETURN.
7315 2014-02-19 Tom Tromey <tromey@redhat.com>
7317 * target-delegates.c: Rebuild.
7318 * target.c (target_ranged_break_num_registers): Unconditionally
7320 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7321 Use TARGET_DEFAULT_RETURN.
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7325 * target-delegates.c: Rebuild.
7326 * target.c (target_fetch_registers): Unconditionally delegate.
7327 * target.h (struct target_ops) <to_fetch_registers>: Use
7328 TARGET_DEFAULT_NORETURN.
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7332 * target-delegates.c: Rebuild.
7333 * target.c (update_current_target): Don't inherit or default
7335 * target.h (struct target_ops) <to_stop>: Use
7336 TARGET_DEFAULT_IGNORE.
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7340 * target-delegates.c: Rebuild.
7341 * target.c (update_current_target): Don't inherit or default
7342 to_can_run_breakpoint_commands.
7343 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7344 Use TARGET_DEFAULT_RETURN.
7346 2014-02-19 Tom Tromey <tromey@redhat.com>
7348 * target-delegates.c: Rebuild.
7349 * target.c (update_current_target): Don't inherit or default
7350 to_supports_evaluation_of_breakpoint_conditions.
7351 * target.h (struct target_ops)
7352 <to_supports_evaluation_of_breakpoint_conditions>: Use
7353 TARGET_DEFAULT_RETURN.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target-delegates.c: Rebuild.
7358 * target.c (update_current_target): Don't inherit or default
7359 to_augmented_libraries_svr4_read.
7360 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7361 Use TARGET_DEFAULT_RETURN.
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7365 * target-delegates.c: Rebuild.
7366 * target.c (update_current_target): Don't inherit or default
7368 * target.h (struct target_ops) <to_can_use_agent>: Use
7369 TARGET_DEFAULT_RETURN.
7371 2014-02-19 Tom Tromey <tromey@redhat.com>
7373 * target-delegates.c: Rebuild.
7374 * target.c (update_current_target): Don't inherit or default
7376 * target.h (struct target_ops) <to_use_agent>: Use
7377 TARGET_DEFAULT_NORETURN.
7379 2014-02-19 Tom Tromey <tromey@redhat.com>
7381 * target-delegates.c: Rebuild.
7382 * target.c (update_current_target): Don't inherit or default
7384 (return_null): Remove.
7385 * target.h (struct target_ops) <to_traceframe_info>: Use
7386 TARGET_DEFAULT_RETURN.
7388 2014-02-19 Tom Tromey <tromey@redhat.com>
7390 * target-delegates.c: Rebuild.
7391 * target.c (update_current_target): Don't inherit or default
7392 to_static_tracepoint_markers_by_strid.
7393 * target.h (struct target_ops)
7394 <to_static_tracepoint_markers_by_strid>: Use
7395 TARGET_DEFAULT_NORETURN.
7397 2014-02-19 Tom Tromey <tromey@redhat.com>
7399 * target-delegates.c: Rebuild.
7400 * target.c (update_current_target): Don't inherit or default
7401 to_static_tracepoint_marker_at.
7402 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7403 Use TARGET_DEFAULT_RETURN.
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * target-delegates.c: Rebuild.
7408 * target.c (update_current_target): Don't inherit or default
7410 * target.h (struct target_ops) <to_set_permissions>: Use
7411 TARGET_DEFAULT_IGNORE.
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7415 * target-delegates.c: Rebuild.
7416 * target.c (update_current_target): Don't inherit or default
7418 * target.h (struct target_ops) <to_get_tib_address>: Use
7419 TARGET_DEFAULT_NORETURN.
7421 2014-02-19 Tom Tromey <tromey@redhat.com>
7423 * target-delegates.c: Rebuild.
7424 * target.c (update_current_target): Don't inherit or default
7426 * target.h (struct target_ops) <to_set_trace_notes>: Use
7427 TARGET_DEFAULT_RETURN.
7429 2014-02-19 Tom Tromey <tromey@redhat.com>
7431 * target-delegates.c: Rebuild.
7432 * target.c (update_current_target): Don't initialize
7433 to_set_trace_buffer_size.
7434 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7435 TARGET_DEFAULT_IGNORE.
7437 2014-02-19 Tom Tromey <tromey@redhat.com>
7439 * target-delegates.c: Rebuild.
7440 * target.c (update_current_target): Don't inherit or default
7441 to_set_circular_trace_buffer.
7442 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7443 TARGET_DEFAULT_IGNORE.
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7447 * target-delegates.c: Rebuild.
7448 * target.c (update_current_target): Don't inherit or default
7449 to_set_disconnected_tracing.
7450 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7451 TARGET_DEFAULT_IGNORE.
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * target-delegates.c: Rebuild.
7456 * target.c (update_current_target): Don't inherit or default
7457 to_get_min_fast_tracepoint_insn_len.
7458 (return_minus_one): Remove.
7459 * target.h (struct target_ops)
7460 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target-delegates.c: Rebuild.
7465 * target.c (update_current_target): Don't inherit or default
7466 to_get_raw_trace_data.
7467 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7468 TARGET_DEFAULT_NORETURN.
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target-delegates.c: Rebuild.
7473 * target.c (update_current_target): Don't inherit or default
7474 to_upload_trace_state_variables.
7475 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7476 Use TARGET_DEFAULT_RETURN.
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7480 * target-delegates.c: Rebuild.
7481 * target.c (update_current_target): Don't inherit or default
7482 to_upload_tracepoints.
7483 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7484 TARGET_DEFAULT_RETURN.
7486 2014-02-19 Tom Tromey <tromey@redhat.com>
7488 * target-delegates.c: Rebuild.
7489 * target.c (update_current_target): Don't inherit or default
7491 * target.h (struct target_ops) <to_save_trace_data>: Use
7492 TARGET_DEFAULT_NORETURN.
7494 2014-02-19 Tom Tromey <tromey@redhat.com>
7496 * target-delegates.c: Rebuild.
7497 * target.c (update_current_target): Don't inherit or default
7498 to_get_trace_state_variable_value.
7499 * target.h (struct target_ops)
7500 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7502 2014-02-19 Tom Tromey <tromey@redhat.com>
7504 * target-delegates.c: Rebuild.
7505 * target.c (update_current_target): Don't inherit or default
7507 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * target-delegates.c: Rebuild.
7512 * target.c (update_current_target): Don't inherit or default
7514 * target.h (struct target_ops) <to_trace_stop>: Use
7515 TARGET_DEFAULT_NORETURN.
7517 2014-02-19 Tom Tromey <tromey@redhat.com>
7519 * target-delegates.c: Rebuild.
7520 * target.c (update_current_target): Don't inherit or default
7521 to_get_tracepoint_status.
7522 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7523 TARGET_DEFAULT_NORETURN.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * target-delegates.c: Rebuild.
7528 * target.c (update_current_target): Don't inherit or default
7529 to_get_trace_status.
7530 * target.h (struct target_ops) <to_get_trace_status>: Use
7531 TARGET_DEFAULT_RETURN.
7533 2014-02-19 Tom Tromey <tromey@redhat.com>
7535 * target-delegates.c: Rebuild.
7536 * target.c (update_current_target): Don't inherit or default
7538 * target.h (struct target_ops) <to_trace_start>: Use
7539 TARGET_DEFAULT_NORETURN.
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * target-delegates.c: Rebuild.
7544 * target.c (update_current_target): Don't inherit or default
7545 to_trace_set_readonly_regions.
7546 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7547 Use TARGET_DEFAULT_NORETURN.
7549 2014-02-19 Tom Tromey <tromey@redhat.com>
7551 * target-delegates.c: Rebuild.
7552 * target.c (update_current_target): Don't inherit or default
7553 to_disable_tracepoint.
7554 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7555 TARGET_DEFAULT_NORETURN.
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7559 * target-delegates.c: Rebuild.
7560 * target.c (update_current_target): Don't inherit or default
7561 to_enable_tracepoint.
7562 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7563 TARGET_DEFAULT_NORETURN.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target-delegates.c: Rebuild.
7568 * target.c (update_current_target): Don't inherit or default
7569 to_download_trace_state_variable.
7570 * target.h (struct target_ops) <to_download_trace_state_variable>:
7571 Use TARGET_DEFAULT_NORETURN.
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target-delegates.c: Rebuild.
7576 * target.c (update_current_target): Don't inherit or default
7577 to_can_download_tracepoint.
7578 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7579 TARGET_DEFAULT_RETURN.
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7583 * target-delegates.c: Rebuild.
7584 * target.c (update_current_target): Don't inherit or default
7585 to_download_tracepoint.
7586 * target.h (struct target_ops) <to_download_tracepoint>: Use
7587 TARGET_DEFAULT_NORETURN.
7589 2014-02-19 Tom Tromey <tromey@redhat.com>
7591 * target-delegates.c: Rebuild.
7592 * target.c (update_current_target): Don't inherit or default
7594 * target.h (struct target_ops) <to_trace_init>: Use
7595 TARGET_DEFAULT_RETURN.
7597 2014-02-19 Tom Tromey <tromey@redhat.com>
7599 * target-delegates.c: Rebuild.
7600 * target.c (update_current_target): Don't inherit or default
7601 to_supports_string_tracing.
7602 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7603 TARGET_DEFAULT_RETURN.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * target-delegates.c: Rebuild.
7608 * target.c (update_current_target): Don't inherit or default
7609 to_supports_enable_disable_tracepoint.
7610 * target.h (struct target_ops)
7611 <to_supports_enable_disable_tracepoint>: Use
7612 TARGET_DEFAULT_RETURN.
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7616 * target-delegates.c: Rebuild.
7617 * target.c (update_current_target): Don't inherit or default
7618 to_supports_multi_process.
7619 * target.h (struct target_ops) <to_supports_multi_process>: Use
7620 TARGET_DEFAULT_RETURN.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target-delegates.c: Rebuild.
7625 * target.c (update_current_target): Don't inherit or default
7626 to_get_ada_task_ptid.
7627 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7628 TARGET_DEFAULT_FUNC.
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target-delegates.c: Rebuild.
7633 * target.c (update_current_target): Don't inherit or default
7634 to_thread_architecture.
7635 * target.h (struct target_ops) <to_thread_architecture>: Use
7636 TARGET_DEFAULT_FUNC.
7638 2014-02-19 Tom Tromey <tromey@redhat.com>
7640 * target-delegates.c: Rebuild.
7641 * target.c (update_current_target): Don't inherit or default
7642 to_execution_direction.
7643 * target.h (struct target_ops) <to_execution_direction>: Use
7644 TARGET_DEFAULT_FUNC.
7646 2014-02-19 Tom Tromey <tromey@redhat.com>
7648 * target-delegates.c: Rebuild.
7649 * target.c (update_current_target): Don't inherit or default
7650 to_can_execute_reverse.
7651 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7652 TARGET_DEFAULT_RETURN.
7653 (target_can_execute_reverse): Unconditionally delegate.
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * target-delegates.c: Rebuild.
7658 * target.c (update_current_target): Don't inherit or default
7660 (dummy_goto_bookmark): Remove.
7661 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7662 * target.h (struct target_ops) <to_goto_bookmark>: Use
7663 TARGET_DEFAULT_NORETURN.
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7667 * target-delegates.c: Rebuild.
7668 * target.c (update_current_target): Don't inherit or default
7670 (dummy_get_bookmark): Remove.
7671 (init_dummy_target): Don't inherit or default to_get_bookmark.
7672 * target.h (struct target_ops) <to_get_bookmark>: Use
7673 TARGET_DEFAULT_NORETURN
7675 2014-02-19 Tom Tromey <tromey@redhat.com>
7677 * target-delegates.c: Rebuild.
7678 * target.c (update_current_target): Don't inherit or default
7679 to_make_corefile_notes.
7680 (init_dummy_target): Don't initialize to_make_corefile_notes.
7681 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7682 TARGET_DEFAULT_FUNC.
7684 2014-02-19 Tom Tromey <tromey@redhat.com>
7686 * target-delegates.c: Rebuild.
7687 * target.c (update_current_target): Don't inherit or default
7688 to_find_memory_regions.
7689 (init_dummy_target): Don't initialize to_find_memory_regions.
7690 * target.h (struct target_ops) <to_find_memory_regions>: Use
7691 TARGET_DEFAULT_FUNC.
7693 2014-02-19 Tom Tromey <tromey@redhat.com>
7695 * target-delegates.c: Rebuild.
7696 * target.c (update_current_target): Don't inherit or default
7698 * target.h (struct target_ops) <to_log_command>: Use
7699 TARGET_DEFAULT_IGNORE.
7700 (target_log_command): Unconditionally delegate.
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7704 * target-delegates.c: Rebuild.
7705 * target.c (update_current_target): Don't inherit or default
7706 to_pid_to_exec_file.
7707 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7708 TARGET_DEFAULT_RETURN.
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7712 * target-delegates.c: Rebuild.
7713 * target.c (update_current_target): Don't inherit or default
7715 (target_thread_name): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_thread_name>: Use
7717 TARGET_DEFAULT_RETURN.
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7721 * target-delegates.c: Rebuild.
7722 * target.c (update_current_target): Don't inherit or default
7723 to_extra_thread_info.
7724 * target.h (struct target_ops) <to_extra_thread_info>: Use
7725 TARGET_DEFAULT_RETURN.
7727 2014-02-19 Tom Tromey <tromey@redhat.com>
7729 * target-delegates.c: Rebuild.
7730 * target.c (update_current_target): Don't inherit or default
7732 * target.h (struct target_ops) <to_has_exited>: Use
7733 TARGET_DEFAULT_RETURN..
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7737 * target-delegates.c: Rebuild.
7738 * target.c (update_current_target): Don't inherit or default
7739 to_set_syscall_catchpoint.
7740 (return_one): Remove.
7741 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7742 TARGET_DEFAULT_RETURN.
7744 2014-02-19 Tom Tromey <tromey@redhat.com>
7746 * target-delegates.c: Rebuild.
7747 * target.c (update_current_target): Don't inherit or default
7748 to_insert_exec_catchpoint.
7749 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7750 TARGET_DEFAULT_RETURN.
7752 2014-01-08 Tom Tromey <tromey@redhat.com>
7754 * target-delegates.c: Rebuild.
7755 * target.c (update_current_target): Don't inherit or default
7756 to_insert_exec_catchpoint.
7757 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7758 TARGET_DEFAULT_RETURN.
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7762 * target-delegates.c: Rebuild.
7763 * target.c (update_current_target): Don't inherit or default
7764 to_remove_vfork_catchpoint.
7765 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7766 TARGET_DEFAULT_RETURN.
7768 2014-02-19 Tom Tromey <tromey@redhat.com>
7770 * target-delegates.c: Rebuild.
7771 * target.c (update_current_target): Don't inherit or default
7772 to_insert_vfork_catchpoint.
7773 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7774 TARGET_DEFAULT_RETURN.
7776 2014-02-19 Tom Tromey <tromey@redhat.com>
7778 * target-delegates.c: Rebuild.
7779 * target.c (update_current_target): Don't inherit or default
7780 to_remove_fork_catchpoint.
7781 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7782 TARGET_DEFAULT_RETURN.
7784 2014-02-19 Tom Tromey <tromey@redhat.com>
7786 * target-delegates.c: Rebuild.
7787 * target.c (update_current_target): Don't inherit or default
7788 to_insert_fork_catchpoint.
7789 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7790 TARGET_DEFAULT_RETURN.
7792 2014-02-19 Tom Tromey <tromey@redhat.com>
7794 * target-delegates.c: Rebuild.
7795 * target.c (update_current_target): Don't inherit or default
7796 to_post_startup_inferior.
7797 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7798 TARGET_DEFAULT_IGNORE.
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7802 * target-delegates.c: Rebuild.
7803 * target.c (update_current_target): Don't inherit or default
7805 * target.h (struct target_ops) <to_load>: Use
7806 TARGET_DEFAULT_NORETURN.
7808 2014-02-19 Tom Tromey <tromey@redhat.com>
7810 * target-delegates.c: Rebuild.
7811 * target.c (update_current_target): Don't inherit or default
7813 * target.h (struct target_ops) <to_terminal_info>: Use
7814 TARGET_DEFAULT_FUNC.
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7818 * target-delegates.c: Rebuild.
7819 * target.c (update_current_target): Don't inherit or default
7820 to_terminal_save_ours.
7821 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7822 TARGET_DEFAULT_IGNORE.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * target-delegates.c: Rebuild.
7827 * target.c (update_current_target): Don't inherit or default
7829 * target.h (struct target_ops) <to_terminal_ours>: Use
7830 TARGET_DEFAULT_IGNORE.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target-delegates.c: Rebuild.
7835 * target.c (update_current_target): Don't inherit or default
7836 to_terminal_ours_for_output.
7837 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7838 TARGET_DEFAULT_IGNORE.
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7842 * target-delegates.c: Rebuild.
7843 * target.c (update_current_target): Don't inherit or default
7844 to_terminal_inferior.
7845 * target.h (struct target_ops) <to_terminal_inferior>: Use
7846 TARGET_DEFAULT_IGNORE.
7848 2014-02-19 Tom Tromey <tromey@redhat.com>
7850 * target-delegates.c: Rebuild.
7851 * target.c (update_current_target): Don't inherit or default
7853 * target.h (struct target_ops) <to_terminal_init>: Use
7854 TARGET_DEFAULT_IGNORE.
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7858 * target-delegates.c: Rebuild.
7859 * target.c (update_current_target): Don't inherit or default
7860 to_can_accel_watchpoint_condition.
7861 * target.h (struct target_ops)
7862 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7864 2014-02-19 Tom Tromey <tromey@redhat.com>
7866 * target-delegates.c: Rebuild.
7867 * target.c (update_current_target): Don't inherit or default
7868 to_region_ok_for_hw_watchpoint.
7869 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7870 Use TARGET_DEFAULT_FUNC.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * target-delegates.c: Rebuild.
7875 * target.c (update_current_target): Don't inherit or default
7876 to_watchpoint_addr_within_range.
7877 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7878 Use TARGET_DEFAULT_FUNC.
7880 2014-02-19 Tom Tromey <tromey@redhat.com>
7882 * target-delegates.c: Rebuild.
7883 * target.c (update_current_target): Don't inherit or default
7884 to_remove_watchpoint.
7885 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7886 TARGET_DEFAULT_NORETURN.
7888 2014-02-19 Tom Tromey <tromey@redhat.com>
7890 * target-delegates.c: Rebuild.
7891 * target.c (update_current_target): Don't inherit or default
7892 to_insert_watchpoint.
7893 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7894 TARGET_DEFAULT_RETURN.
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7898 * target-delegates.c: Rebuild.
7899 * target.c (update_current_target): Don't inherit or default
7900 to_remove_hw_breakpoint.
7901 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7902 TARGET_DEFAULT_RETURN.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (update_current_target): Don't inherit or default
7908 to_insert_hw_breakpoint.
7909 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7910 TARGET_DEFAULT_RETURN.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (update_current_target): Don't inherit or default
7916 to_can_use_hw_breakpoint.
7917 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7918 TARGET_DEFAULT_RETURN.
7920 2014-02-19 Tom Tromey <tromey@redhat.com>
7922 * target-delegates.c: Rebuild.
7923 * target.c (update_current_target): Don't inherit or default
7925 * target.h (struct target_ops) <to_files_info>: Use
7926 TARGET_DEFAULT_IGNORE.
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7930 * target-delegates.c: Rebuild.
7931 * target.c (update_current_target): Don't inherit or default
7933 * target.h (struct target_ops) <to_store>: Use
7934 TARGET_DEFAULT_NORETURN.
7936 2014-02-19 Tom Tromey <tromey@redhat.com>
7938 * target-delegates.c: Rebuild.
7939 * target.c (update_current_target): Don't inherit or default
7941 * target.h (struct target_ops) <to_post_attach>: Use
7942 TARGET_DEFAULT_IGNORE.
7944 2014-02-19 Tom Tromey <tromey@redhat.com>
7946 * target-delegates.c: Rebuild.
7947 * target.c (update_current_target): Don't inherit or default
7949 (default_rcmd): New function.
7950 (do_monitor_command): Unconditionally delegate.
7951 * target.h (struct target_ops) <to_rmcd>: Use
7952 TARGET_DEFAULT_FUNC.
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7956 * target-delegates.c: Rebuild.
7957 * target.c (init_dummy_target): Don't initialize to_attach.
7958 (target_attach): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_attach>: Use
7960 TARGET_DEFAULT_FUNC.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_detach): Unconditionally delegate.
7966 (init_dummy_target): Don't initialize to_detach.
7967 * target.h (struct target_ops) <to_detach>: Use
7968 TARGET_DEFAULT_IGNORE.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7974 (target_augmented_libraries_svr4_read): Add argument.
7975 * target.c (update_current_target): Update.
7976 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7981 * target.h (struct target_ops) <to_call_history_range>: Add
7983 * target.c (target_call_history_range): Add argument.
7984 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7986 (record_btrace_call_history_from): Update.
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7990 * target.h (struct target_ops) <to_call_history_from>: Add
7992 * target.c (target_call_history_from): Add argument.
7993 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7998 * target.h (struct target_ops) <to_call_history>: Add argument.
7999 * target.c (target_call_history): Add argument.
8000 * record-btrace.c (record_btrace_call_history): Add 'self'
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8005 * target.h (struct target_ops) <to_insn_history_range>: Add
8007 * target.c (target_insn_history_range): Add argument.
8008 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8010 (record_btrace_insn_history_from): Update.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target.h (struct target_ops) <to_insn_history_from>: Add
8016 * target.c (target_insn_history_from): Add argument.
8017 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8022 * target.h (struct target_ops) <to_insn_history>: Add argument.
8023 * target.c (target_insn_history): Add argument.
8024 * record-btrace.c (record_btrace_insn_history): Add 'self'
8027 2014-02-19 Tom Tromey <tromey@redhat.com>
8029 * target.h (struct target_ops) <to_goto_record>: Add argument.
8030 * target.c (target_goto_record): Add argument.
8031 * record-full.c (record_full_goto): Add 'self' argument.
8032 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8036 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8037 * target.c (target_goto_record_end): Add argument.
8038 * record-full.c (record_full_goto_end): Add 'self' argument.
8039 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target.h (struct target_ops) <to_goto_record_begin>: Add
8045 * target.c (target_goto_record_begin): Add argument.
8046 * record-full.c (record_full_goto_begin): Add 'self' argument.
8047 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target.h (struct target_ops) <to_record_is_replaying>: Add
8054 * target.c (target_record_is_replaying): Add argument.
8055 * record-full.c (record_full_is_replaying): Add 'self' argument.
8056 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8058 (record_btrace_xfer_partial, record_btrace_store_registers)
8059 (record_btrace_prepare_to_store, record_btrace_resume)
8060 (record_btrace_wait, record_btrace_decr_pc_after_break)
8061 (record_btrace_find_new_threads, record_btrace_thread_alive):
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target.h (struct target_ops) <to_delete_record>: Add argument.
8067 * target.c (target_delete_record): Add argument.
8068 * record-full.c (record_full_delete): Add 'self' argument.
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8072 * target.h (struct target_ops) <to_save_record>: Add argument.
8073 * target.c (target_save_record): Add argument.
8074 * record-full.c (record_full_save): Add 'self' argument.
8075 (record_full_save): Add 'self' argument.
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8079 * target.h (struct target_ops) <to_info_record>: Add argument.
8080 * target.c (target_info_record): Add argument.
8081 * record.c (info_record_command): Add argument.
8082 * record-full.c (record_full_info): Add 'self' argument.
8083 * record-btrace.c (record_btrace_info): Add 'self' argument.
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8087 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8088 * target.c (target_stop_recording): Add argument.
8089 * record.c (record_stop): Add argument.
8090 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8093 2014-02-19 Tom Tromey <tromey@redhat.com>
8095 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8096 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8097 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8099 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8100 (_initialize_amd64_linux_nat): Use it.
8101 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8102 (_initialize_i386_linux_nat): Use it.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8107 * target.c (target_teardown_btrace): Add argument.
8108 * remote.c (remote_teardown_btrace): Add 'self' argument.
8109 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8111 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8117 * target.c (target_disable_btrace): Add argument.
8118 * remote.c (remote_disable_btrace): Add 'self' argument.
8119 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8121 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8126 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8127 * target.c (target_enable_btrace): Add argument.
8128 * remote.c (remote_enable_btrace): Add 'self' argument.
8129 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8131 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8137 (target_can_use_agent): Add argument.
8138 * target.c (update_current_target): Update.
8139 * remote.c (remote_can_use_agent): Add 'self' argument.
8140 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8144 * target.h (struct target_ops) <to_use_agent>: Add argument.
8145 (target_use_agent): Add argument.
8146 * target.c (update_current_target): Update.
8147 * remote.c (remote_use_agent): Add 'self' argument.
8148 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8152 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8153 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8154 (target_traceframe_info): Add argument.
8155 * target.c (update_current_target): Update.
8156 * remote.c (remote_traceframe_info): Add 'self' argument.
8157 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8161 * target.h (target_static_tracepoint_markers_by_strid): Add
8163 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8165 * target.c (update_current_target): Update.
8166 * remote.c (struct target_ops)
8167 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8168 * linux-nat.c (struct target_ops)
8169 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8175 (target_static_tracepoint_marker_at): Add argument.
8176 * target.c (update_current_target): Update.
8177 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8182 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8183 (target_set_permissions): Add argument.
8184 * target.c (update_current_target): Update.
8185 * remote.c (remote_set_permissions): Add 'self' argument.
8186 (remote_start_remote): Update.
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8190 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8191 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8192 (target_get_tib_address): Add argument.
8193 * target.c (update_current_target): Update.
8194 * remote.c (remote_get_tib_address): Add 'self' argument.
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8199 (target_set_trace_notes): Add argument.
8200 * target.c (update_current_target): Update.
8201 * remote.c (remote_set_trace_notes): Add 'self' argument.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8207 (target_set_trace_buffer_size): Add argument.
8208 * target.c (update_current_target): Update.
8209 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8215 (target_set_circular_trace_buffer): Add argument.
8216 * target.c (update_current_target): Update.
8217 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8224 (target_set_disconnected_tracing): Add argument.
8225 * target.c (update_current_target): Update.
8226 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8230 * target.h (struct target_ops)
8231 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8232 (target_get_min_fast_tracepoint_insn_len): Add argument.
8233 * target.c (update_current_target): Update.
8234 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8241 (target_get_raw_trace_data): Add argument.
8242 * target.c (update_current_target): Update.
8243 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8245 2014-02-19 Tom Tromey <tromey@redhat.com>
8247 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8249 (target_upload_trace_state_variables): Add argument.
8250 * target.c (update_current_target): Update.
8251 * remote.c (remote_upload_trace_state_variables): Add 'self'
8253 (remote_start_remote): Update.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8259 (target_upload_tracepoints): Add argument.
8260 * target.c (update_current_target): Update.
8261 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8262 (remote_start_remote): Update.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8267 (target_save_trace_data): Add argument.
8268 * target.c (update_current_target): Update.
8269 * remote.c (remote_save_trace_data): Add 'self' argument.
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8273 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8275 * target.h (struct target_ops)
8276 <to_get_trace_state_variable_value>: Add argument.
8277 (target_get_trace_state_variable_value): Add argument.
8278 * target.c (update_current_target): Update.
8279 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8281 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8286 * target.h (struct target_ops) <to_trace_find>: Add argument.
8287 (target_trace_find): Add argument.
8288 * target.c (update_current_target): Update.
8289 * remote.c (remote_trace_find): Add 'self' argument.
8290 * ctf.c (ctf_trace_find): Add 'self' argument.
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8294 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8295 (target_trace_stop): Add argument.
8296 * target.c (update_current_target): Update.
8297 * remote.c (remote_trace_stop): Add 'self' argument.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8302 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8304 (target_get_tracepoint_status): Add argument.
8305 * target.c (update_current_target): Update.
8306 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8311 * target.h (struct target_ops) <to_get_trace_status>: Add
8313 (target_get_trace_status): Add argument.
8314 * target.c (update_current_target): Update.
8315 * remote.c (remote_get_trace_status): Add 'self' argument.
8316 (remote_start_remote, remote_can_download_tracepoint): Update.
8317 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * target.h (struct target_ops) <to_trace_start>: Add argument.
8322 (target_trace_start): Add argument.
8323 * target.c (update_current_target): Update.
8324 * remote.c (remote_trace_start): Add 'self' argument.
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8328 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8330 (target_trace_set_readonly_regions): Add argument.
8331 * target.c (update_current_target): Update.
8332 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8339 (target_disable_tracepoint): Add argument.
8340 * target.c (update_current_target): Update.
8341 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8347 (target_enable_tracepoint): Add argument.
8348 * target.c (update_current_target): Update.
8349 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8351 2014-02-19 Tom Tromey <tromey@redhat.com>
8353 * target.h (struct target_ops) <to_download_trace_state_variable>:
8355 (target_download_trace_state_variable): Add argument.
8356 * target.c (update_current_target): Update.
8357 * remote.c (remote_download_trace_state_variable): Add 'self'
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8362 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8364 (target_can_download_tracepoint): Add argument.
8365 * target.c (update_current_target): Update.
8366 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8370 * target.h (struct target_ops) <to_download_tracepoint>: Add
8372 (target_download_tracepoint): Add argument.
8373 * target.c (update_current_target): Update.
8374 * remote.c (remote_download_tracepoint): Add 'self' argument.
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8378 * target.h (struct target_ops) <to_trace_init>: Add argument.
8379 (target_trace_init): Add argument.
8380 * target.c (update_current_target): Update.
8381 * remote.c (remote_trace_init): Add 'self' argument.
8383 2014-02-19 Tom Tromey <tromey@redhat.com>
8385 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8386 * target.c (target_fileio_readlink): Add argument.
8387 * remote.c (remote_hostio_readlink): Add 'self' argument.
8388 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8393 * target.c (target_fileio_unlink): Add argument.
8394 * remote.c (remote_hostio_unlink): Add 'self' argument.
8395 (remote_file_delete): Update.
8396 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8401 * target.c (target_fileio_close): Add argument.
8402 * remote.c (remote_hostio_close): Add 'self' argument.
8403 (remote_hostio_close_cleanup): Update.
8404 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8406 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8411 * target.c (target_fileio_pread): Add argument.
8412 * remote.c (remote_hostio_pread): Add 'self' argument.
8413 (remote_bfd_iovec_pread, remote_file_get): Update.
8414 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8419 * target.c (target_fileio_pwrite): Add argument.
8420 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8421 (remote_file_put): Update.
8422 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8427 * target.c (target_fileio_open): Add argument.
8428 * remote.c (remote_hostio_open): Add 'self' argument.
8429 (remote_bfd_iovec_open): Add 'self' argument.
8430 (remote_file_put): Add 'self' argument.
8431 (remote_file_get): Add 'self' argument.
8432 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8438 (target_can_run_breakpoint_commands): Add argument.
8439 * target.c (update_current_target): Update.
8440 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8442 (remote_insert_breakpoint): Add 'self' argument.
8443 (remote_insert_hw_breakpoint): Add 'self' argument.
8444 (remote_can_run_breakpoint_commands): Add 'self' argument.
8446 2014-02-19 Tom Tromey <tromey@redhat.com>
8448 * target.h (struct target_ops)
8449 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8450 (target_supports_evaluation_of_breakpoint_conditions): Add
8452 * target.c (update_current_target): Update.
8453 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8455 (remote_insert_breakpoint): Add 'self' argument.
8456 (remote_insert_hw_breakpoint): Add 'self' argument.
8457 (remote_supports_cond_breakpoints): Add 'self' argument.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8463 (target_supports_string_tracing): Add argument.
8464 * target.c (update_current_target): Update.
8465 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8469 * target.h (struct target_ops)
8470 <to_supports_disable_randomization>: Add argument.
8471 * target.c (find_default_supports_disable_randomization): Add
8473 (target_supports_disable_randomization): Add argument.
8474 (find_default_supports_disable_randomization): Add 'self'
8476 * remote.c (extended_remote_supports_disable_randomization): Add
8478 (remote_supports_disable_randomization): Add 'self' argument.
8479 (extended_remote_create_inferior): Update.
8480 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target.h (struct target_ops)
8486 <to_supports_enable_disable_tracepoint>: Add argument.
8487 (target_supports_enable_disable_tracepoint): Add argument.
8488 * target.c (update_current_target): Update.
8489 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target.h (struct target_ops) <to_supports_multi_process>: Add
8496 (target_supports_multi_process): Add argument.
8497 * target.c (update_current_target): Update.
8498 * remote.c (remote_supports_multi_process): Add 'self' argument.
8499 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8501 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target.h (struct target_ops) <to_execution_direction>: Add
8508 (target_execution_direction): Add argument.
8509 * target.c (default_execution_direction): Add 'self' argument.
8510 * record-full.c (record_full_execution_direction): Add 'self'
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8515 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8517 (target_can_execute_reverse): Add argument.
8518 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8519 * record-full.c (record_full_can_execute_reverse): Add 'self'
8521 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8527 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8529 (target_get_ada_task_ptid): Add argument.
8530 * target.c (update_current_target): Update.
8531 (default_get_ada_task_ptid): Add 'self' argument.
8532 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8533 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8534 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8536 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8538 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8540 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8542 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8543 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8549 (target_goto_bookmark): Add argument.
8550 * target.c (dummy_goto_bookmark): Add 'self' argument.
8551 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8556 (target_get_bookmark): Add argument.
8557 * target.c (dummy_get_bookmark): Add 'self' argument.
8558 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8564 (target_make_corefile_notes): Add argument.
8565 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8566 * procfs.c (procfs_make_note_section): Add 'self' argument.
8567 (procfs_make_note_section): Add 'self' argument.
8568 (procfs_make_note_section): Add 'self' argument.
8569 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8571 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8572 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8573 * exec.c (exec_make_note_section): Add 'self' argument.
8574 (exec_make_note_section): Add 'self' argument.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target.h (struct target_ops) <to_find_memory_regions>: Add
8580 (target_find_memory_regions): Add argument.
8581 * target.c (dummy_find_memory_regions): Add 'self' argument.
8582 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8583 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8584 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8585 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8586 * exec. (exec_do_find_memory_regions): New global.
8587 (exec_set_find_memory_regions): Rewrite.
8588 (exec_find_memory_regions): New function.
8589 (init_exec_ops): Use exec_find_memory_regions.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target.h (struct target_ops) <to_supports_non_stop>: Add
8595 * target.c (find_default_supports_non_stop): Add argument.
8596 (target_supports_non_stop): Add argument.
8597 (find_default_supports_non_stop): Add 'self' argument.
8598 * remote.c (remote_supports_non_stop): Add 'self' argument.
8599 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target.h (struct target_ops) <to_log_command>: Add argument.
8604 (target_log_command): Add argument.
8605 * serial.h (serial_log_command): Add 'self' argument.
8606 * serial.c (serial_log_command): Add 'self' argument.
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8610 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8611 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8613 (target_pid_to_exec_file): Add argument.
8614 * target.c (debug_to_pid_to_exec_file): Add argument.
8615 (update_current_target): Update.
8616 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8617 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8618 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8619 (linux_handle_extended_wait): Update.
8620 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8621 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8622 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8623 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target.h (struct target_ops) <to_rcmd>: Add argument.
8628 (target_rcmd): Add argument.
8629 * target.c (debug_to_rcmd): Add argument.
8630 (update_current_target, do_monitor_command): Update.
8631 * remote.c (remote_rcmd): Add 'self' argument.
8632 * monitor.c (monitor_rcmd): Add 'self' argument.
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * windows-nat.c (windows_stop): Add 'self' argument.
8637 * target.h (struct target_ops) <to_stop>: Add argument.
8638 * target.c (target_stop): Add argument.
8639 (debug_to_stop): Add argument.
8640 (update_current_target): Update.
8641 * remote.c (remote_stop): Add 'self' argument.
8642 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8643 (gdbsim_cntrl_c): Update.
8644 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8645 * procfs.c (procfs_stop): Add 'self' argument.
8646 * nto-procfs.c (procfs_stop): Add 'self' argument.
8647 * monitor.c (monitor_stop): Add 'self' argument.
8648 (monitor_open): Update.
8649 * linux-nat.c (linux_nat_stop): Add argument.
8650 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8651 * gnu-nat.c (gnu_stop): Add 'self' argument.
8652 * darwin-nat.c (darwin_stop): Add 'self' argument.
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * target.h (struct target_ops) <to_thread_name>: Add argument.
8657 * target.c (target_thread_name): Add argument.
8658 (update_current_target): Update.
8659 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target.h (struct target_ops) <to_extra_thread_info>: Add
8665 (target_extra_thread_info): Add argument.
8666 * target.c (update_current_target): Update.
8667 * remote.c (remote_threads_extra_info): Add 'self' argument.
8668 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8670 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8671 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8672 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8674 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8676 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8678 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target.h (struct target_ops) <to_program_signals>: Add argument.
8684 * target.c (target_program_signals): Add argument.
8685 * remote.c (remote_program_signals): Add 'self' argument.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8690 * target.c (target_pass_signals): Add argument.
8691 * remote.c (remote_pass_signals): Add 'self' argument.
8692 (remote_start_remote): Update.
8693 * procfs.c (procfs_pass_signals): Add 'self' argument.
8694 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8695 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8696 (linux_nat_create_inferior, linux_nat_attach): Update.
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * windows-nat.c (windows_can_run): Add 'self' argument.
8701 * target.h (struct target_ops) <to_can_run>: Add argument.
8702 (target_can_run): Add argument.
8703 * target.c (debug_to_can_run): Add argument.
8704 (update_current_target): Update.
8705 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8706 * inf-child.c (inf_child_can_run): Add 'self' argument.
8707 * go32-nat.c (go32_can_run): Add 'self' argument.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target.h (struct target_ops) <to_has_exited>: Add argument.
8712 (target_has_exited): Add argument.
8713 * target.c (debug_to_has_exited): Add argument.
8714 (update_current_target): Update.
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8718 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8720 (target_set_syscall_catchpoint): Add argument.
8721 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8723 * target.c (update_current_target): Update.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8729 (target_remove_exec_catchpoint): Add argument.
8730 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8731 (update_current_target): Update.
8732 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8739 (target_insert_exec_catchpoint): Add argument.
8740 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8741 (update_current_target): Update.
8742 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8747 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8749 (target_remove_vfork_catchpoint): Add argument.
8750 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8751 (update_current_target): Update.
8752 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8759 (target_insert_vfork_catchpoint): Add argument.
8760 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8761 (update_current_target): Update.
8762 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8769 (target_remove_fork_catchpoint): Add argument.
8770 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8771 (update_current_target): Update.
8772 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8779 (target_insert_fork_catchpoint): Add argument.
8780 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8781 (update_current_target): Update.
8782 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8789 (target_post_startup_inferior): Add argument.
8790 * target.c (debug_to_post_startup_inferior): Add argument.
8791 (update_current_target): Update.
8792 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8794 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8796 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8798 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8800 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8802 (super_post_startup_inferior): Likewise.
8803 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8805 (super_post_startup_inferior): Likewise.
8806 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8807 Add 'self' argument.
8808 (super_post_startup_inferior): Likewise.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target.h (struct target_ops) <to_load>: Add argument.
8813 * target.c (target_load): Add argument.
8814 (debug_to_load): Add argument.
8815 (update_current_target): Update.
8816 * remote.c (remote_load): Add 'self' argument.
8817 * remote-sim.c (gdbsim_load): Add 'self' argument.
8818 * remote-mips.c (mips_load): Add 'self' argument.
8819 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8820 * monitor.c (monitor_load): Add 'self' argument.
8821 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8826 (target_terminal_info): Add argument.
8827 * target.c (debug_to_terminal_info): Add argument.
8828 (default_terminal_info): Likewise.
8829 * inflow.c (child_terminal_info): Add 'self' argument.
8830 * inferior.h (child_terminal_info): Add 'self' argument.
8831 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8837 (target_terminal_save_ours): Add argument.
8838 * target.c (debug_to_terminal_save_ours): Add argument.
8839 (update_current_target): Update.
8840 * inflow.c (terminal_save_ours): Add 'self' argument.
8841 * inferior.h (terminal_save_ours): Add 'self' argument.
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8845 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8846 (target_terminal_ours): Add argument.
8847 * target.c (debug_to_terminal_ours): Add argument.
8848 (update_current_target): Update.
8849 * remote.c (remote_terminal_ours): Add 'self' argument.
8850 (remote_close): Update.
8851 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8852 * inflow.c (terminal_ours): Add 'self' argument.
8853 * inferior.h (terminal_ours): Add 'self' argument.
8854 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8856 2014-02-19 Pedro Alves <palves@redhat.com>
8857 Tom Tromey <tromey@redhat.com>
8859 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8861 (target_terminal_ours_for_output): Add argument.
8862 * target.c (debug_to_terminal_ours_for_output): Add argument.
8863 (update_current_target): Update.
8864 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8865 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8866 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target.h (struct target_ops) <to_terminal_inferior>: Add
8872 * target.c (target_terminal_inferior): Add argument.
8873 (update_current_target): Update.
8874 * remote.c (remote_terminal_inferior): Add 'self' argument.
8875 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8876 * inflow.c (terminal_inferior): Add 'self' argument.
8877 * inferior.h (terminal_inferior): Add 'self' argument.
8878 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8879 (go32_terminal_inferior): Add 'self' argument.
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8884 (target_terminal_init): Add argument.
8885 * target.c (debug_to_terminal_init): Add argument.
8886 (update_current_target): Update.
8887 * inflow.c (terminal_init_inferior): Add 'self' argument.
8888 * inferior.h (terminal_init_inferior): Add 'self' argument.
8889 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8890 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target.h (struct target_ops)
8895 <to_can_accel_watchpoint_condition>: Add argument.
8896 (target_can_accel_watchpoint_condition): Add argument.
8897 * target.c (debug_to_can_accel_watchpoint_condition): Add
8899 (update_current_target): Update.
8900 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8907 (target_region_ok_for_hw_watchpoint): Add argument.
8908 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8909 (default_region_ok_for_hw_watchpoint): Add argument.
8910 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8911 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8913 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8915 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8917 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8919 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8921 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8923 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8924 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8926 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8927 Add 'self' argument.
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8931 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8933 (target_insert_watchpoint): Add argument.
8934 * target.c (debug_to_insert_watchpoint): Add argument.
8935 (update_current_target): Update.
8936 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8937 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8938 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8939 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8940 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8941 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8943 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8944 (procfs_insert_hw_watchpoint): Add 'self' argument.
8945 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8947 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8949 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8951 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8952 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8954 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8959 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8961 (target_remove_watchpoint): Add argument.
8962 * target.c (debug_to_remove_watchpoint): Add argument.
8963 (update_current_target): Update.
8964 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8965 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8966 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8967 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8968 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8969 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8971 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8972 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8974 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8976 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8978 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8979 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8981 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8988 (target_remove_hw_breakpoint): Add argument.
8989 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8990 (update_current_target): Update.
8991 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8992 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8994 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8995 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8997 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9004 (target_insert_hw_breakpoint): Add argument.
9005 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9006 (update_current_target): Update.
9007 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9008 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9010 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9011 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9012 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9014 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9021 (target_can_use_hardware_watchpoint): Add argument.
9022 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9023 (update_current_target): Update.
9024 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9026 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9028 * remote.c (remote_check_watch_resources): Add 'self' argument.
9029 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9030 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9032 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9033 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9035 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9037 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9039 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9041 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9043 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9045 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9046 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9048 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * target.h (struct target_ops) <to_post_attach>: Add argument.
9054 (target_post_attach): Add argument.
9055 * target.c (debug_to_post_attach): Add argument.
9056 (update_current_target): Update.
9057 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9058 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9059 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9060 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9061 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * windows-nat.c (windows_close): Add 'self' argument.
9066 * tracepoint.c (tfile_close): Add 'self' argument.
9067 * target.h (struct target_ops) <to_close>: Add argument.
9068 * target.c (target_close): Add argument.
9069 (update_current_target): Update.
9070 * remote.c (remote_close): Add 'self' argument.
9071 * remote-sim.c (gdbsim_close): Add 'self' argument.
9072 * remote-mips.c (mips_close): Add 'self' argument.
9073 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9074 * record-full.c (record_full_close): Add 'self' argument.
9075 * record-btrace.c (record_btrace_close): Add 'self' argument.
9076 * monitor.h (monitor_close): Add 'self' argument.
9077 * monitor.c (monitor_close): Add 'self' argument.
9078 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9079 * linux-nat.c (linux_nat_close): Add argument.
9080 * go32-nat.c (go32_close): Add 'self' argument.
9081 * exec.c (exec_close_1): Add 'self' argument.
9082 * ctf.c (ctf_close): Add 'self' argument.
9083 * corelow.c (core_close): Add 'self' argument.
9084 (core_close_cleanup): Update.
9085 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9086 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * remote.c (remote_load): New function.
9091 (init_remote_ops): Use it.
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9095 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9097 * common/linux-btrace.h (linux_supports_btrace): Update.
9098 * remote.c (remote_supports_btrace): Add "self" argument.
9099 * target-delegates.c: Rebuild.
9100 * target.c (target_supports_btrace): Remove.
9101 * target.h (struct target_ops) <to_supports_btrace>: Add
9102 target_ops argument.
9103 (target_supports_btrace): New define.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * record-full.c (record_full_beneath_to_resume_ops)
9108 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9109 (record_full_beneath_to_wait)
9110 (record_full_beneath_to_store_registers_ops)
9111 (record_full_beneath_to_store_registers)
9112 (record_full_beneath_to_xfer_partial_ops)
9113 (record_full_beneath_to_xfer_partial)
9114 (record_full_beneath_to_insert_breakpoint_ops)
9115 (record_full_beneath_to_insert_breakpoint)
9116 (record_full_beneath_to_remove_breakpoint_ops)
9117 (record_full_beneath_to_remove_breakpoint)
9118 (record_full_beneath_to_stopped_by_watchpoint)
9119 (record_full_beneath_to_stopped_data_address)
9120 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9121 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9122 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9123 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9124 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9125 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9126 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9127 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9128 (record_full_resume, record_full_wait_1)
9129 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9130 (record_full_store_registers, record_full_xfer_partial)
9131 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9132 (record_full_async, record_full_core_xfer_partial): Use target
9134 * target-delegates.c: Rebuild.
9135 * target.c (current_xfer_partial): Remove.
9136 (update_current_target): Do not INHERIT or de_fault
9137 to_insert_breakpoint, to_remove_breakpoint,
9138 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9139 to_is_async_p, to_async. Do not set to_xfer_partial field.
9140 (default_xfer_partial): Simplify.
9141 (current_xfer_partial): Remove.
9142 (target_wait, target_resume): Simplify.
9143 (find_default_can_async_p, find_default_is_async_p): Update.
9144 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9145 to_xfer_partial, to_stopped_by_watchpoint,
9146 to_stopped_data_address.
9147 (target_store_registers): Simplify.
9148 (forward_target_remove_breakpoint)
9149 (forward_target_insert_breakpoint): Remove.
9150 (target_remove_breakpoint, target_insert_breakpoint)
9151 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9152 * target.h (struct target_ops) <to_resume, to_wait,
9153 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9154 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9155 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9157 (forward_target_remove_breakpoint)
9158 (forward_target_insert_breakpoint): Remove.
9159 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9161 (record_btrace_insert_breakpoint): Delegate directly.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9166 * target-delegates.c: New file.
9167 * target.c: Include target-delegates.c.
9168 (init_dummy_target): Call install_dummy_methods.
9169 (complete_target_initialization): Call install_delegators.
9170 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9171 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9172 * make-target-delegates: New file.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * record.c (find_record_target): Use find_target_at.
9177 * target.c (find_target_at): New function.
9178 * target.h (find_target_at): Declare.
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9184 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9186 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9187 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9189 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9191 * linux-nat.c (save_sigtrap): Update.
9192 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9193 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9194 (linux_nat_close): Update.
9195 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9197 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9199 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9200 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9201 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9202 (tmp_to_async): Add 'ops' argument.
9203 (record_full_stopped_by_watchpoint, record_full_async)
9204 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9206 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9207 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9208 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9209 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9210 (remote_is_async_p, remote_async): Add 'ops' argument.
9211 (remote_stopped_data_address): Update.
9212 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9213 * target.c (update_current_target)
9214 (find_default_can_async_p, find_default_is_async_p): Update.
9215 (init_dummy_target): Update.
9216 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9217 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9218 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9219 (target_can_async_p, target_is_async_p, target_async)
9220 (target_stopped_by_watchpoint): Update.
9222 2014-02-19 Yao Qi <yao@codesourcery.com>
9225 * gdbarch.sh: Remove startup_gdbarch.
9226 * gdbarch.c: Regenerated.
9227 * gdbarch.h: Likewise.
9229 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9231 * rl78-tdep.c (rl78_g10_register_name): New function.
9232 (rl78_return_value): Add g10 support.
9233 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9236 2014-02-17 Doug Evans <xdje42@gmail.com>
9238 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9239 (SUBDIR_GUILE_SRCS): Ditto.
9240 (scm-gsmob.o): Ditto.
9242 2014-02-17 Yao Qi <yao@codesourcery.com>
9244 * gnu-nat.c (ILL_RPC): Declare defined function.
9246 2014-02-17 Yao Qi <yao@codesourcery.com>
9248 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9249 mach_msg_type_number_t.
9250 (gnu_write_inferior): Likewise.
9252 2014-02-17 Yao Qi <yao@codesourcery.com>
9254 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9256 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9257 (inf_validate_procs, inf_signal): Likewise.
9258 (S_exception_raise_request): Likewise.
9259 (do_mach_notify_dead_name): Likewise.
9260 (steal_exc_port): Likewise.
9261 (gnu_read_inferior): Change 'copy_count''s type to
9262 mach_msg_type_number_t.
9263 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9266 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9268 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9269 flag. Adjust all users; in particular...
9270 (gnu_wait): ..., don't decrement its value in here...
9271 (gnu_create_inferior): ..., and instead set the flag in here,
9272 around the startup_inferior call, and call that one with
9273 START_INFERIOR_TRAPS_EXPECTED.
9275 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9276 (ILL_RPC): ... new macro.
9277 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9278 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9279 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9280 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9281 functions with ILL_RPC macro.
9282 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9283 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9284 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9285 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9286 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9287 (S_proc_getlogin_reply, S_proc_getsid_reply)
9288 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9289 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9290 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9291 (S_proc_getnports_reply, S_proc_is_important_reply)
9292 (S_proc_get_code_reply): New stub functions, generated with
9295 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9296 collected the type check structures.
9298 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9300 2014-02-14 Doug Evans <dje@google.com>
9302 * target.c (target_write_partial): Fix result type.
9304 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9306 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9307 the proper offsets to access fpregset_t.
9309 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9311 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9312 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9313 * h8300-tdep.c (setmachinelist): Remove global.
9314 * hppa-tdep.c (hppa_sigtramp): Remove global.
9315 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9316 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9317 * ravenscar-thread.c (update_target_observer): Remove global.
9318 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9320 2014-02-12 Tom Tromey <tromey@redhat.com>
9322 * common/rsp-low.c: Update comments.
9323 * common/rsp-low.h: Update comments.
9325 2014-02-12 Tom Tromey <tromey@redhat.com>
9327 * common/rsp-low.c (convert_ascii_to_int): Remove.
9328 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9330 2014-02-12 Tom Tromey <tromey@redhat.com>
9332 * common/rsp-low.h (unhexify): Don't declare.
9333 * common/rsp-low.c (unhexify): Remove.
9335 2014-02-12 Tom Tromey <tromey@redhat.com>
9337 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9338 * common/rsp-low.c (convert_int_to_ascii): Remove.
9340 2014-02-12 Tom Tromey <tromey@redhat.com>
9342 * common/rsp-low.h (hexify): Don't declare.
9343 * common/rsp-low.c (hexify): Remove.
9345 2014-02-12 Tom Tromey <tromey@redhat.com>
9347 * common/rsp-low.c (hexify): Never take strlen of argument.
9349 2014-02-12 Tom Tromey <tromey@redhat.com>
9351 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9352 * remote.c (extended_remote_run, remote_rcmd)
9353 (remote_download_trace_state_variable, remote_save_trace_data)
9354 (remote_set_trace_notes): Update.
9355 * tracepoint.c (encode_source_string, tfile_write_status)
9356 (tfile_write_uploaded_tsv): Update.
9358 2014-02-12 Tom Tromey <tromey@redhat.com>
9360 * tracepoint.c: Include rsp-low.h.
9361 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9362 * remote.c: Include rsp-low.h.
9363 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9364 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9365 (remote_unescape_input): Move to common/rsp-low.c.
9366 * common/rsp-low.h: New file.
9367 * common/rsp-low.c: New file.
9368 * Makefile.in (SFILES): Add common/rsp-low.c.
9369 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9370 (COMMON_OBS): Add rsp-low.o.
9371 (rsp-low.o): New target.
9373 2014-02-12 Tom Tromey <tromey@redhat.com>
9375 * utils.h: Include print-utils.h.
9376 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9377 (int_string, core_addr_to_string, core_addr_to_string_nz)
9378 (hex_string, hex_string_custom): Don't declare.
9379 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9380 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9381 (hex_string_custom, int_string, core_addr_to_string)
9382 (core_addr_to_string_nz, host_address_to_string): Move to
9383 common/print-utils.c.
9384 * common/print-utils.h: New file.
9385 * common/print-utils.c: New file
9386 * Makefile.in (SFILES): Add common/print-utils.c.
9387 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9388 (COMMON_OBS): Add print-utils.o.
9389 (print-utils.o): New target.
9391 2014-02-12 Tom Tromey <tromey@redhat.com>
9393 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9395 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9397 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9401 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9402 if a PT_IO ptrace request returns sucessfully but indicates that 0
9403 bytes were transferred.
9405 2014-02-12 Pedro Alves <palves@redhat.com>
9406 Kevin Buettner <kevinb@redhat.com>
9408 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9409 TYPE_INSTANCE_FLAG_CODE_SPACE.
9411 2014-02-12 Pedro Alves <palves@redhat.com>
9413 * h8300-tdep.c (pseudo_from_raw_register)
9414 (raw_from_pseudo_register): New functions.
9415 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9418 2014-02-12 Pedro Alves <palves@redhat.com>
9420 * h8300-tdep.c (h8300_register_sim_regno): New function.
9421 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9422 gdbarch_register_sim_regno hook.
9424 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9426 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9428 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9430 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9432 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9434 * obsd-tdep.h (obsd_init_abi): New prototype.
9435 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9436 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9437 (obsd_init_abi): New functions.
9438 * i386obsd-tdep.c: Include "obsd-tdep.h".
9439 (i386obsd_init_abi): Call obsd_init_abi.
9440 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9441 (amd64obsd_init_abi): Call obsd_init_abi.
9442 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9443 obsd-tdep.c to gdb_target_obs.
9445 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9447 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9448 double float arguments to 16-byte in the argument slots.
9450 2014-02-11 Doug Evans <xdje42@gmail.com>
9452 * configure.ac: Don't crash if pkg-config is not found and guile
9453 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9455 * configure: Regenerate.
9457 2014-02-11 Yao Qi <yao@codesourcery.com>
9459 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9460 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9461 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9462 * gnu-nat.c (gnu_xfer_memory): Likewise.
9463 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9464 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9468 2014-02-11 Yao Qi <yao@codesourcery.com>
9470 * target.h (enum target_xfer_error): Rename to ...
9471 (enum target_xfer_status): ... it. New. All users updated.
9472 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9474 (TARGET_XFER_STATUS_ERROR_P): New macro.
9475 (target_xfer_error_to_string): Remove declaration.
9476 (target_xfer_status_to_string): Declare.
9477 (target_xfer_partial_ftype): Adjust it.
9478 (struct target_ops) <to_xfer_partial>: Return
9479 target_xfer_status. Add argument xfered_len. Update
9481 * target.c (target_xfer_error_to_string): Rename to ...
9482 (target_xfer_status_to_string): ... it. New. All callers
9484 (target_read_live_memory): Likewise. Call target_xfer_partial
9485 instead of target_read.
9486 (memory_xfer_live_readonly_partial): Return
9487 target_xfer_status. Add argument xfered_len.
9488 (raw_memory_xfer_partial): Likewise.
9489 (memory_xfer_partial_1): Likewise.
9490 (memory_xfer_partial): Likewise.
9491 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9492 properly. Update debug message.
9493 (default_xfer_partial, current_xfer_partial): Likewise.
9494 (target_write_partial): Likewise.
9495 (target_read_partial): Likewise. All callers updated.
9496 (read_whatever_is_readable): Likewise.
9497 (target_write_with_progress): Likewise.
9498 (target_read_alloc_1): Likewise.
9500 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9501 * auxv.c (procfs_xfer_auxv): Likewise.
9502 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9503 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9504 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9505 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9506 * corefile.c (read_memory): Adjust.
9507 * corelow.c (core_xfer_partial): Likewise.
9508 * ctf.c (ctf_xfer_partial): Likewise.
9509 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9511 (darwin_xfer_partial): Likewise.
9512 * exec.c (section_table_xfer_memory_partial): Likewise. All
9514 (exec_xfer_partial): Likewise.
9515 * exec.h (section_table_xfer_memory_partial): Update
9517 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9519 (gnu_xfer_partial): Likewise.
9520 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9521 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9522 (ia64_hpux_xfer_solib_got): Likewise.
9523 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9524 type of 'partial_len' to ULONGEST.
9525 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9526 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9527 (linux_nat_xfer_partial): Likewise.
9528 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9529 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9530 * monitor.c (monitor_xfer_memory): Likewise.
9531 (monitor_xfer_partial): Likewise.
9532 * procfs.c (procfs_xfer_partial): Likewise.
9533 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9534 * record-full.c (record_full_xfer_partial): Likewise.
9535 (record_full_core_xfer_partial): Likewise.
9536 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9537 (gdbsim_xfer_partial): Likewise.
9538 * remote.c (remote_write_bytes_aux): Likewise. All callers
9540 (remote_write_bytes, remote_read_bytes): Likewise. All
9542 (remote_flash_erase): Likewise. All callers updated.
9543 (remote_write_qxfer): Likewise. All callers updated.
9544 (remote_read_qxfer): Likewise. All callers updated.
9545 (remote_xfer_partial): Likewise.
9546 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9547 (rs6000_xfer_shared_libraries): Likewise.
9548 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9549 (sol_thread_xfer_partial): Likewise.
9550 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9551 (sparc_xfer_partial): Likewise.
9552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9554 (spu_xfer_partial): Likewise.
9555 * spu-multiarch.c (spu_xfer_partial): Likewise.
9556 * tracepoint.c (tfile_xfer_partial): Likewise.
9557 * windows-nat.c (windows_xfer_memory): Likewise.
9558 (windows_xfer_shared_libraries): Likewise.
9559 (windows_xfer_partial): Likewise.
9560 * valprint.c: Replace 'target_xfer_error' with
9561 'target_xfer_status' in comments.
9563 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9565 Checked in by Joel Brobecker <brobecker@adacore.com>.
9566 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9568 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9570 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9571 function parameters.
9573 2014-02-10 Will Newton <will.newton@linaro.org>
9575 * elfread.c (elf_rel_plt_read): Look for a .got section if
9576 looking up .got.plt fails.
9577 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9578 on address passed to elf_gnu_ifunc_record_cache.
9579 (elf_gnu_ifunc_resolve_addr): Likewise.
9580 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9582 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9584 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9585 (X_RETTURN): New macro.
9586 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9588 * sparc64-tdep.c (sparc64_init_abi): Hook
9589 sparc_in_function_epilogue_p.
9591 2014-02-10 Gary Benson <gbenson@redhat.com>
9593 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9594 Rename name_matcher to symbol_matcher.
9596 2014-02-10 Gary Benson <gbenson@redhat.com>
9598 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9599 Use expand_symtabs_file_matcher_ftype and
9600 expand_symtabs_symbol_matcher_ftype.
9602 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9604 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9605 (struct ada_symbol_cache): New.
9606 (ada_free_symbol_cache): Forward declare.
9607 (struct ada_pspace_data): New.
9608 (ada_pspace_data_handle): New static global.
9609 (get_ada_pspace_data, ada_pspace_data_cleanup)
9610 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9611 (cache_space, cache): Delete, now folded inside struct
9613 (ada_get_symbol_cache): New function.
9614 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9616 (_initialize_ada_language): Remove initialization of cache_space.
9617 Move call to observer_attach_inferior_exit up, grouping it
9618 with the other observer registrations inside this function.
9619 Rename command to be more general. Add call to
9620 register_program_space_data_with_cleanup.
9622 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9624 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9625 ada_new_objfile_observer.
9626 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9627 (_initialize_tasks): Update uses of ada_new_objfile_observer
9628 and ada_tasks_normal_stop_observer.
9630 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9632 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9633 returned by the 'Length attribute to integer.
9635 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9637 * ada-lang.c (_initialize_ada_language): Initialize
9638 cache_space obstack.
9640 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9642 * ada-lang.c (HASH_SIZE): New macro.
9643 (struct cache_entry): New type.
9644 (cache_space, cache): New static globals.
9645 (ada_clear_symbol_cache, find_entry): New functions.
9646 (lookup_cached_symbol, cache_symbol): Implement.
9647 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9648 (_initialize_ada_language): Attach ada_new_objfile_observer
9649 and ada_free_objfile_observer.
9651 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9653 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9654 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9655 struct block * parameter.
9656 (ada_lookup_symbol_list_worker): Constify local variable "block".
9657 Remove cast which is no longer necessary.
9659 2014-02-10 Doug Evans <xdje42@gmail.com>
9661 Add Guile as an extension language.
9662 * NEWS: Mention Guile scripting.
9663 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9664 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9665 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9666 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9667 (CLIBS): Add GUILE_LIBS.
9668 (install-guile): New rule.
9669 (guile.o): New rule.
9670 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9671 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9672 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9673 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9674 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9675 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9676 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9677 * configure.ac: New option --with-guile.
9678 * configure: Regenerate.
9679 * config.in: Regenerate.
9680 * auto-load.c: Remove #include "python/python.h". Add #include
9681 "gdb/section-scripts.h".
9682 (source_section_scripts): Handle Guile scripts.
9683 (_initialize_auto_load): Add name of Guile objfile script to
9684 scripts-directory help text.
9685 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9686 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9687 (struct breakpoint): New member scm_bp_object.
9688 * defs.h (enum command_control_type): New value guile_control.
9689 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9691 (show_user): Update comment.
9692 (_initialize_cli_cmds): Update help text for "show user". Update help
9693 text for max-user-call-depth.
9694 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9696 (multi_line_command_p): Add guile_control.
9697 (print_command_lines): Handle guile_control.
9698 (execute_control_command, recurse_read_control_structure): Ditto.
9699 (process_next_line): Recognize "guile" commands.
9700 * disasm.c (gdb_disassemble_info): Make non-static.
9701 * disasm.h: #include "dis-asm.h".
9702 (struct gdbarch): Add forward decl.
9703 (gdb_disassemble_info): Declare.
9704 * extension.c: #include "guile/guile.h".
9705 (extension_languages): Add guile.
9706 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9707 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9708 * gdbtypes.c (get_unsigned_type_max): New function.
9709 (get_signed_type_minmax): New function.
9710 * gdbtypes.h (get_unsigned_type_max): Declare.
9711 (get_signed_type_minmax): Declare.
9712 * guile/README: New file.
9713 * guile/guile-internal.h: New file.
9714 * guile/guile.c: New file.
9715 * guile/guile.h: New file.
9716 * guile/scm-arch.c: New file.
9717 * guile/scm-auto-load.c: New file.
9718 * guile/scm-block.c: New file.
9719 * guile/scm-breakpoint.c: New file.
9720 * guile/scm-disasm.c: New file.
9721 * guile/scm-exception.c: New file.
9722 * guile/scm-frame.c: New file.
9723 * guile/scm-gsmob.c: New file.
9724 * guile/scm-iterator.c: New file.
9725 * guile/scm-lazy-string.c: New file.
9726 * guile/scm-math.c: New file.
9727 * guile/scm-objfile.c: New file.
9728 * guile/scm-ports.c: New file.
9729 * guile/scm-pretty-print.c: New file.
9730 * guile/scm-safe-call.c: New file.
9731 * guile/scm-string.c: New file.
9732 * guile/scm-symbol.c: New file.
9733 * guile/scm-symtab.c: New file.
9734 * guile/scm-type.c: New file.
9735 * guile/scm-utils.c: New file.
9736 * guile/scm-value.c: New file.
9737 * guile/lib/gdb.scm: New file.
9738 * guile/lib/gdb/boot.scm: New file.
9739 * guile/lib/gdb/experimental.scm: New file.
9740 * guile/lib/gdb/init.scm: New file.
9741 * guile/lib/gdb/iterator.scm: New file.
9742 * guile/lib/gdb/printing.scm: New file.
9743 * guile/lib/gdb/types.scm: New file.
9744 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9745 (VPATH): Add $(GUILE_SRCDIR).
9746 (GUILE_DIR): New variable.
9747 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9748 (all): Add stamp-guile dependency.
9749 (stamp-guile): New rule.
9750 (clean-guile, install-guile, uninstall-guile): New rules.
9751 (install-only): Add install-guile dependency.
9752 (uninstall): Add uninstall-guile dependency.
9753 (clean): Add clean-guile dependency.
9755 2014-02-09 Doug Evans <xdje42@gmail.com>
9757 Revert this patch (which I approved, mea culpa).
9759 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9761 * Makefile.in (all-lib): Remove.
9762 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9764 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9766 Fix Python stack corruption.
9767 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9770 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9772 * Makefile.in (all-lib): Remove.
9773 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9775 2014-02-07 Doug Evans <dje@google.com>
9777 * extension-priv.h (extension_language_script_ops): Add comment.
9778 (extension_language_ops): Add comment.
9779 (active_ext_lang_state): Fix typo in comment.
9781 2014-02-07 Pedro Alves <palves@redhat.com>
9783 PR breakpoints/16292
9784 * infrun.c (handle_signal_stop) <signal arrives while stepping
9785 over a breakpoint>: Switch back to the stepping thread.
9787 2014-02-07 Yao Qi <yao@codesourcery.com>
9789 * target.c (target_xfer_partial): Return zero if LEN is zero.
9791 2014-02-07 Yao Qi <yao@codesourcery.com>
9793 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9794 (ld_so_xfer_auxv): Likewise.
9795 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9796 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9797 * corelow.c (core_xfer_partial): Likewise.
9798 * ctf.c (ctf_xfer_partial): Likewise.
9799 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9800 (darwin_xfer_partial): Likewise.
9801 * exec.c (exec_xfer_partial): Likewise.
9802 * gnu-nat.c (gnu_xfer_partial): Likewise.
9803 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9804 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9805 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9806 * linux-nat.c (linux_xfer_siginfo): Likewise.
9807 (linux_proc_xfer_spu): Likewise.
9808 * procfs.c (procfs_xfer_partial): Likewise.
9809 * record-full.c (record_full_xfer_partial): Likewise.
9810 (record_full_core_xfer_partial): Likewise.
9811 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9812 * remote.c (remote_write_qxfer): Likewise.
9813 (remote_write_qxfer, remote_read_qxfer): Likewise.
9814 (remote_xfer_partial): Likewise.
9815 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9816 (rs6000_xfer_shared_libraries): Likewise.
9817 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9818 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9819 (spu_xfer_partial): Likewise.
9820 * target.c (memory_xfer_partial_1): Likewise.
9821 * tracepoint.c (tfile_xfer_partial): Likewise.
9822 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9823 (windows_xfer_partial): Likewise.
9825 2014-02-07 Yao Qi <yao@codesourcery.com>
9827 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9829 (core_xfer_shared_libraries_aix): Likewise.
9830 * gdbarch.c, gdbarch.h: Regenerated.
9831 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9832 ULONGEST. Change 'len_avail' type to ULONGEST.
9833 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9834 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9836 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9838 2014-02-07 Yao Qi <yao@codesourcery.com>
9840 * corefile.c (memory_error): Get 'exception' from ERR and pass
9841 'exception' to throw_error.
9843 2014-02-06 Doug Evans <xdje42@gmail.com>
9845 * configure.ac (libpython checking): Remove all but python.o from
9846 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9847 * configure: Regenerate.
9849 * Makefile.in (SFILES): Add extension.c.
9850 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9851 (COMMON_OBS): Add extension.o.
9852 * extension.h: New file.
9853 * extension-priv.h: New file.
9854 * extension.c: New file.
9856 * python/python-internal.h: #include "extension.h".
9857 (gdbpy_auto_load_enabled): Declare.
9858 (gdbpy_apply_val_pretty_printer): Declare.
9859 (gdbpy_apply_frame_filter): Declare.
9860 (gdbpy_preserve_values): Declare.
9861 (gdbpy_breakpoint_cond_says_stop): Declare.
9862 (gdbpy_breakpoint_has_cond): Declare.
9863 (void source_python_script_for_objfile): Delete.
9864 * python/python.c: #include "extension-priv.h".
9865 Delete inclusion of "observer.h".
9866 (extension_language_python): Moved here and renamed from
9867 script_language_python in py-auto-load.c.
9868 Redefined to be of type extension_language_defn.
9869 (python_extension_script_ops): New global.
9870 (python_extension_ops): New global.
9871 (struct python_env): New member previous_active.
9872 (restore_python_env): Call restore_active_ext_lang.
9873 (ensure_python_env): Call set_active_ext_lang.
9874 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9876 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9878 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9880 (gdbpy_eval_from_control_command): Renamed from
9881 eval_python_from_control_command, made static. New arg extlang.
9882 (gdbpy_source_script) Renamed from source_python_script, made static.
9884 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9885 result to int. New arg extlang.
9886 (gdbpy_source_objfile_script): Renamed from
9887 source_python_script_for_objfile, made static. New arg extlang.
9888 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9889 static. New args extlang, extlang_printers. Change result type to
9891 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9892 static. New arg extlang. Rename arg printers to extlang_printers
9893 and change type to ext_lang_type_printers *.
9894 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9895 static. Replace argument arg with extlang, extlang_printers.
9896 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9897 (!HAVE_PYTHON, source_python_script): Delete.
9898 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9899 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9900 (!HAVE_PYTHON, start_type_printers): Delete.
9901 (!HAVE_PYTHON, apply_type_printers): Delete.
9902 (!HAVE_PYTHON, free_type_printers): Delete.
9903 (_initialize_python): Delete call to observer_attach_before_prompt.
9904 (finalize_python): Set/restore active extension language.
9905 (gdbpy_finish_initialization) Renamed from
9906 finish_python_initialization, made static. New arg extlang.
9907 (gdbpy_initialized): New function.
9908 * python/python.h: #include "extension.h". Delete #include
9909 "value.h", "mi/mi-cmds.h".
9910 (extension_language_python): Declare.
9911 (GDBPY_AUTO_FILE_NAME): Delete.
9912 (enum py_bt_status): Moved to extension.h and renamed to
9914 (enum frame_filter_flags): Moved to extension.h.
9915 (enum py_frame_args): Moved to extension.h and renamed to
9916 ext_lang_frame_args.
9917 (finish_python_initialization): Delete.
9918 (eval_python_from_control_command): Delete.
9919 (source_python_script): Delete.
9920 (apply_val_pretty_printer): Delete.
9921 (apply_frame_filter): Delete.
9922 (preserve_python_values): Delete.
9923 (gdbpy_script_language_defn): Delete.
9924 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9925 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9927 * auto-load.c: #include "extension.h".
9928 (GDB_AUTO_FILE_NAME): Delete.
9929 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9930 (script_language_gdb): Delete, moved to extension.c and renamed to
9931 extension_language_gdb.
9932 (source_gdb_script_for_objfile): Delete.
9933 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9934 (loaded_script): Change type of language member to
9935 struct extension_language_defn *.
9936 (init_loaded_scripts_info): Initialize
9937 unsupported_script_warning_printed.
9938 (maybe_add_script): Make static. Change type of language arg to
9939 struct extension_language_defn *.
9940 (clear_section_scripts): Reset unsupported_script_warning_printed.
9941 (auto_load_objfile_script_1): Rewrite to use extension language API.
9942 (auto_load_objfile_script): Make public. Remove support-compiled-in
9943 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9944 (source_section_scripts): Rewrite to use extension language API.
9945 (load_auto_scripts_for_objfile): Rewrite to use
9946 auto_load_scripts_for_objfile.
9947 (collect_matching_scripts_data): Change type of language member to
9948 struct extension_language_defn *.
9949 (auto_load_info_scripts): Change type of language arg to
9950 struct extension_language_defn *.
9951 (unsupported_script_warning_print): New function.
9952 (script_not_found_warning_print): Make static.
9953 (_initialize_auto_load): Rewrite construction of scripts-directory
9955 * auto-load.h (struct objfile): Add forward decl.
9956 (struct script_language): Delete.
9957 (struct auto_load_pspace_info): Add forward decl.
9958 (struct extension_language_defn): Add forward decl.
9959 (maybe_add_script): Delete.
9960 (auto_load_objfile_script): Declare.
9961 (script_not_found_warning_print): Delete.
9962 (auto_load_info_scripts): Update prototype.
9963 (auto_load_gdb_scripts_enabled): Declare.
9964 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9965 auto_load_python_scripts_enabled and made public.
9966 (script_language_python): Delete, moved to python.c.
9967 (gdbpy_script_language_defn): Delete.
9968 (info_auto_load_python_scripts): Update to use
9969 extension_language_python.
9971 * breakpoint.c (condition_command): Replace call to
9972 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9973 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9974 with call to breakpoint_ext_lang_cond_says_stop.
9975 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9976 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9977 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9978 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9980 (local_setattro): Print name of extension language with existing
9983 * valprint.c (val_print, value_print): Update to call
9984 apply_ext_lang_val_pretty_printer.
9985 * cp-valprint.c (cp_print_value): Update call to
9986 apply_ext_lang_val_pretty_printer.
9987 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9988 (gdbpy_apply_val_pretty_printer): Renamed from
9989 apply_val_pretty_printer. New arg extlang.
9990 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9992 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9993 extension language API.
9994 * cli/cli-script.c (execute_control_command): Update to call
9995 eval_ext_lang_from_control_command.
9997 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9998 enum ext_lang_bt_status values. Update call to
9999 apply_ext_lang_frame_filter.
10000 (mi_cmd_stack_list_locals): Ditto.
10001 (mi_cmd_stack_list_args): Ditto.
10002 (mi_cmd_stack_list_variables): Ditto.
10003 * mi/mi-main.c: Delete #include "python/python-internal.h".
10004 Add #include "extension.h".
10005 (mi_cmd_list_features): Replace reference to python internal variable
10006 gdb_python_initialized with call to ext_lang_initialized_p.
10008 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10009 Update to use enum ext_lang_frame_args. Update to call
10010 apply_ext_lang_frame_filter.
10011 * python/py-framefilter.c (extract_sym): Update to use enum
10012 ext_lang_bt_status.
10013 (extract_value, py_print_type, py_print_value): Ditto.
10014 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10015 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10016 (py_print_frame): Ditto.
10017 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10018 New arg extlang. Update to use enum ext_lang_bt_status.
10020 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10021 finish_python_initialization. Replace with call to
10022 finish_ext_lang_initialization.
10024 * typeprint.c (do_free_global_table): Update to call
10025 free_ext_lang_type_printers.
10026 (create_global_typedef_table): Update to call
10027 start_ext_lang_type_printers.
10028 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10029 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10030 (type_print_options): Change type of global_printers from "void *"
10031 to "struct ext_lang_type_printers *".
10033 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10034 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10035 (gdbpy_preserve_values): Renamed from preserve_python_values.
10037 (!HAVE_PYTHON, preserve_python_values): Delete.
10039 * utils.c (quit_flag): Delete, moved to extension.c.
10040 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10043 * eval.c: Delete #include "python/python.h".
10044 * main.c: Delete #include "python/python.h".
10046 * defs.h: Update comment.
10048 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10052 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10054 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10057 2014-02-05 Yao Qi <yao@codesourcery.com>
10059 * remote.c (remote_pass_signals): Remove local 'buf' and use
10061 (remote_program_signals): Likewise.
10063 2014-02-05 Yao Qi <yao@codesourcery.com>
10065 * ctf.c: Include "inferior.h" and "gdbthread.h".
10066 (CTF_PID): A new macro.
10067 (ctf_open): Call inferior_appeared and add_thread_silent.
10068 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10069 (ctf_thread_alive): New function.
10070 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10072 2014-02-05 Yao Qi <yao@codesourcery.com>
10076 2013-05-24 Yao Qi <yao@codesourcery.com>
10078 * tracepoint.c (TFILE_PID): Remove.
10079 (tfile_open): Don't add thread and inferior.
10080 (tfile_close): Don't set 'inferior_ptid'. Don't call
10081 exit_inferior_silent.
10082 (tfile_thread_alive): Remove.
10083 (init_tfile_ops): Don't set field 'to_thread_alive' of
10086 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10088 * remote.c (remote_start_remote): Call remote_check_symbols even
10089 if only symbol-file (not file) has been given.
10091 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10093 * gdbarch.sh (skip_entrypoint): New callback.
10094 * gdbarch.c, gdbarch.h: Regenerate.
10095 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10096 * infrun.c (fill_in_stop_func): Likewise.
10097 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10098 (ppc_elfv2_elf_make_msymbol_special): New function.
10099 (ppc_elfv2_skip_entrypoint): Likewise.
10100 (ppc_linux_init_abi): Install them for ELFv2.
10102 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10104 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10105 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10106 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10107 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10108 structures returned in GPRs.
10110 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10112 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10113 offset to the stack parameter list for the ELFv2 ABI.
10115 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10117 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10118 set_gdbarch_convert_from_func_ptr_addr and
10119 set_gdbarch_elf_make_msymbol_special for ELFv1.
10120 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10121 function descriptors on ELFv1.
10122 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10123 set up r12 at function entry.
10125 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10127 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10128 (struct gdbarch_tdep): New member elf_abi.
10130 * rs6000-tdep.c: Include "elf/ppc64.h".
10131 (rs6000_gdbarch_init): Detect ELF ABI version.
10133 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10135 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10136 within a register pair holding a DFP 128-bit value on little-endian.
10137 (ppc64_sysv_abi_return_value_base): Likewise.
10138 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10139 (dfp_pseudo_register_write): Likewise.
10141 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10143 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10144 offset on little-endian when passing _Decimal32.
10145 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10147 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10149 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10150 of the overlapped FP register within the VSX register on little-
10152 (efpr_pseudo_register_write): Likewise.
10154 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10156 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10157 offset on little-endian when passing small structures.
10159 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10161 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10162 (struct ppc64_sysv_argpos): New data structure.
10163 (ppc64_sysv_abi_push_float): Remove.
10164 (ppc64_sysv_abi_push_val): New function.
10165 (ppc64_sysv_abi_push_integer): Likewise.
10166 (ppc64_sysv_abi_push_freg): Likewise.
10167 (ppc64_sysv_abi_push_vreg): Likewise.
10168 (ppc64_sysv_abi_push_param): Likewise.
10169 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10170 (ppc64_sysv_abi_return_value_base): New function.
10171 (ppc64_sysv_abi_return_value): Refactor to use it.
10173 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10175 * NEWS: Document new target powerpc64le-*-linux*.
10177 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10179 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10180 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10182 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10183 register set used in ELF core dumps. Add floating-point register set.
10185 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10187 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10188 dwarf2_to_gdb[] table using symbolic constants. Adjust
10189 penultimate entry from number representing the PC register
10190 to symbolic constant representing the MDR register. Add
10191 constant for the PC register to the end of the table.
10193 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10195 * bsd-kvm.c: Include <sys/param.h>
10197 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10199 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10201 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10203 * ada-lang.h (clear_ada_sym_cache): Delete.
10205 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10207 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10209 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10211 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10212 the sigreturn register save area only if the syscall is
10215 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10217 * valops.c (value_slice): Minor reformatting.
10219 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10221 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10223 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10225 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10226 New static globals.
10227 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10228 (ada_ignore_descriptive_types_p): New static global.
10229 (find_parallel_type_by_descriptive_type): Return immediately
10230 if ada_ignore_descriptive_types_p is set.
10231 (_initialize_ada_language): Register new commands "maintenance
10232 set ada", "maintenance show ada", "maintenance set ada
10233 ignore-descriptive-types" and "maintenance show ada
10234 ignore-descriptive-types".
10235 * NEWS: Add entry for new "maint ada set/show
10236 ignore-descriptive-types" commands.
10238 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10240 * record-btrace.c (record_btrace_close): Call btrace_teardown
10243 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10245 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10248 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10250 * ada-typeprint (type_is_full_subrange_of_target_type):
10252 (print_range): Add parameter bounds_prefered_p. If not set,
10253 try printing range types using the name of their base type.
10254 (print_range_type): Add parameter bounds_prefered_p.
10255 Use it in call to print_range.
10256 (print_array_type, ada_print_type): Update calls to print_range
10257 and print_range_type.
10259 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10261 * ada-typeprint.c (print_array_type, print_choices, print_range)
10262 (print_range_bound, print_dynamic_range_bound, print_range_type):
10263 Remove declaration.
10265 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10267 * ada-typeprint.c (print_range): Add missing empty line
10268 after local declaration.
10270 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10272 * ada-valprint.c (print_optional_low_bound): Get index_type's
10273 target type for as long as it is a TYPE_CODE_RANGE.
10275 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10277 * procfs.c (procfs_make_note_section): Remove assertion and
10278 associated comment.
10280 2014-01-24 Yao Qi <yao@codesourcery.com>
10282 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10283 * corelow.c (get_core_siginfo): Likewise.
10285 2014-01-24 Yao Qi <yao@codesourcery.com>
10287 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10288 ULONGEST. Don't check 'len' is negative.
10289 (remote_write_bytes): Change type of 'len' to ULONGEST.
10291 2014-01-23 Tom Tromey <tromey@redhat.com>
10294 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10295 Handle exception from frame.block.
10296 (FrameVars.fetch_frame_locals): Likewise.
10298 2014-01-23 Tom Tromey <tromey@redhat.com>
10301 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10302 on a NULL pointer. Move "goto error" to correct place.
10304 2014-01-23 Tom Tromey <tromey@redhat.com>
10307 * python/py-framefilter.c (apply_frame_filter): Call
10308 ensure_python_env after computing gdbarch.
10310 2014-01-23 Yao Qi <yao@codesourcery.com>
10312 * target.c (raw_memory_xfer_partial): Change argument type
10313 from void * to gdb_byte *.
10314 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10316 2014-01-22 Doug Evans <dje@google.com>
10318 New gdbserver option --debug-format=timestamp.
10319 * NEWS: Mention it.
10321 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10323 * syscalls/s390x-linux.xml: New file.
10324 * syscalls/s390-linux.xml: New file.
10325 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10326 (XML_SYSCALL_FILENAME_S390X): Likewise.
10327 (op_svc): New enum value for SVC opcode.
10328 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10329 (s390_linux_get_syscall_number): New function.
10330 (s390_gdbarch_init): Register '*get_syscall_number' and the
10331 syscall xml file name.
10332 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10333 "s390-linux.xml" and "s390x-linux.xml".
10334 * NEWS: Announce new feature.
10336 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10338 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10340 2014-01-22 Pedro Alves <palves@redhat.com>
10342 * xtensa-config.c: Include defs.h.
10344 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10346 * common/common-utils.h: Add "ARI:" comment beside __func__
10349 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10351 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10352 documentation a bit.
10354 2014-01-21 Roland McGrath <mcgrathr@google.com>
10356 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10357 * configure: Regenerate.
10358 * aclocal.m4: Regenerate.
10359 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10360 New substituted variables.
10361 (install-strip): New target.
10362 (INSTALL_SCRIPT): New substituted variable.
10363 (FLAGS_TO_PASS): Add it.
10364 (install-only): Use $(INSTALL_SCRIPT) rather than
10365 $(INSTALL_PROGRAM) for gcore.
10367 2014-01-20 Tom Tromey <tromey@redhat.com>
10369 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10372 2014-01-20 Tom Tromey <tromey@redhat.com>
10374 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10375 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10376 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10377 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10378 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10379 (struct cmd_list_element) <flags>: Remove.
10380 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10381 doc_allocated>: New fields.
10382 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10384 * maint.c (maintenance_do_deprecate): Update.
10385 * top.c (execute_command): Update.
10387 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10389 * xtensa-linux-nat.c: Include asm/ptrace.h.
10391 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10393 * Makefile.in (SFILES): Add d-support.c.
10394 (COMMON_OBS): Add d-support.o.
10395 * d-lang.h (d_parse_symbol): Add comment, now defined in
10397 * d-lang.c (parse_call_convention)
10398 (parse_attributes, parse_function_types)
10399 (parse_function_args, parse_type, parse_identifier)
10400 (call_convention_p, d_parse_symbol): Move functions to ...
10401 * d-support.c: ... New file.
10403 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10405 * d-lang.h (d_parse_symbol): Add declaration.
10406 * d-lang.c (extract_identifiers)
10407 (extract_type_info): Remove functions.
10408 (parse_call_convention, parse_attributes)
10409 (parse_function_types, parse_function_args)
10410 (parse_type, parse_identifier, call_convention_p)
10411 (d_parse_symbol): New functions.
10412 (d_demangle): Use d_parse_symbol to demangle D symbols.
10414 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10416 * d-lang.h (struct builtin_d_type): New data type.
10417 (builtin_d_type): Add declaration.
10418 * d-lang.c (d_language_arch_info, build_d_types)
10419 (builtin_d_type): New functions.
10420 (enum d_primitive_types): New data type.
10421 (d_language_defn): Change c_language_arch_info to
10422 d_language_arch_info.
10423 (d_type_data): New static variable.
10424 (_initialize_d_language): Initialize d_type_data.
10426 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10428 * d-lang.h (d_main_name): Add declaration.
10429 * d-lang.c (d_main_name): New function.
10430 * symtab.c (find_main_name): Add call to d_main_name.
10432 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10434 * d-lang.c (d_language_defn): Change macro_expansion_c to
10435 macro_expansion_no.
10437 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10439 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10441 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10443 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10444 gdb_exception" declaration.
10445 * remote.c (getpkt_or_notif_sane): Likewise.
10447 2014-01-17 Doug Evans <dje@google.com>
10449 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10450 function, contents of dirnames_to_char_ptr_vec_append moved here.
10451 (delim_string_to_char_ptr_vec): New function.
10452 (dirnames_to_char_ptr_vec_append): Rewrite.
10453 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10455 2014-01-17 Doug Evans <dje@google.com>
10457 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10459 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10460 #include "common-utils.h".
10461 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10462 * common/vec.h (VEC_ASSERT_PASS): Update.
10463 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10464 (MACH_CHECK_ERROR): Update.
10466 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10468 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10470 * gdbarch.h: Regenerate.
10472 2014-01-16 Tom Tromey <tromey@redhat.com>
10474 * value.c (struct value) <regnum>: Move earlier.
10476 2014-01-16 Tom Tromey <tromey@redhat.com>
10478 * remote.c (extended_remote_create_inferior): Rename from
10479 extended_remote_create_inferior_1. Add "ops" argument. Remove
10480 old implementation.
10482 2014-01-16 Pedro Alves <palves@redhat.com>
10484 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10485 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10488 2014-01-16 Doug Evans <dje@google.com>
10490 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10494 * btrace.h (btrace_thread_flag): New.
10495 (struct btrace_thread_info) <flags>: New.
10496 * record-btrace.c (record_btrace_resume_thread)
10497 (record_btrace_find_thread_to_move, btrace_step_no_history)
10498 (btrace_step_stopped, record_btrace_start_replaying)
10499 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10500 (record_btrace_find_resume_thread): New.
10501 (record_btrace_resume, record_btrace_wait): Extend.
10502 (record_btrace_can_execute_reverse): New.
10503 (record_btrace_open): Fail in non-stop mode.
10504 (record_btrace_set_replay): Split into this, ...
10505 (record_btrace_stop_replaying): ... this, ...
10506 (record_btrace_clear_histories): ... and this.
10507 (init_record_btrace_ops): Init to_can_execute_reverse.
10508 * NEWS: Announce it.
10510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10512 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10513 (forward_target_decr_pc_after_break)
10514 (target_decr_pc_after_break): New.
10515 * target.c (forward_target_decr_pc_after_break)
10516 (target_decr_pc_after_break): New.
10517 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10518 instead of gdbarch_decr_pc_after_break.
10519 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10520 instead of gdbarch_decr_pc_after_break.
10521 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10522 instead of gdbarch_decr_pc_after_break.
10523 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10524 instead of gdbarch_decr_pc_after_break.
10525 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10526 instead of gdbarch_decr_pc_after_break.
10527 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10528 instead of gdbarch_decr_pc_after_break.
10530 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10532 * btrace.c: Include regcache.h.
10533 (btrace_add_pc): New.
10534 (btrace_enable): Call btrace_add_pc.
10535 (btrace_is_empty): New.
10536 * btrace.h (btrace_is_empty): New.
10537 * record-btrace.c (require_btrace, record_btrace_info): Call
10540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10542 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10543 Support delta reads.
10544 (linux_disable_btrace): Change return type.
10545 * common/linux-btrace.h (linux_read_btrace): Change parameters
10546 and return type to allow error reporting. Update users.
10547 (linux_disable_btrace): Change return type. Update users.
10548 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10550 (btrace_error): New.
10551 (btrace_block) <begin>: Comment on BEGIN == 0.
10552 * btrace.c (btrace_compute_ftrace): Start from the end of
10554 (btrace_stitch_trace, btrace_clear_history): New.
10555 (btrace_fetch): Read delta trace, return if replaying.
10556 (btrace_clear): Move clear history code to btrace_clear_history.
10557 (parse_xml_btrace): Throw an error if parsing failed.
10558 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10559 and return type to allow error reporting.
10560 (target_read_btrace): Change parameters and return type to allow
10562 * target.c (target_read_btrace): Update.
10563 * remote.c (remote_read_btrace): Support delta reads. Pass
10565 * NEWS: Announce it.
10567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10569 * record.h (record_btrace_frame_unwind)
10570 (record_btrace_tailcall_frame_unwind): New declarations.
10571 * dwarf2-frame: Include record.h
10572 (dwarf2_frame_cfa): Throw an error for btrace frames.
10573 * record-btrace.c: Include hashtab.h.
10574 (btrace_get_bfun_name): New.
10575 (btrace_call_history): Call btrace_get_bfun_name.
10576 (struct btrace_frame_cache): New.
10578 (bfcache_hash, bfcache_eq, bfcache_new): New.
10579 (btrace_get_frame_function): New.
10580 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10581 (record_btrace_frame_this_id): Compute own id.
10582 (record_btrace_frame_prev_register): Provide PC, throw_error
10583 for all other registers.
10584 (record_btrace_frame_sniffer): Detect btrace frames.
10585 (record_btrace_tailcall_frame_sniffer): New.
10586 (record_btrace_frame_dealloc_cache): New.
10587 (record_btrace_frame_unwind): Add new functions.
10588 (record_btrace_tailcall_frame_unwind): New.
10589 (_initialize_record_btrace): Allocate cache.
10590 * btrace.c (btrace_clear): Call reinit_frame_cache.
10591 * NEWS: Announce it.
10593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10595 * record-btrace.c (record_btrace_set_replay)
10596 (record_btrace_goto_begin, record_btrace_goto_end)
10597 (record_btrace_goto): New.
10598 (init_record_btrace_ops): Initialize them.
10599 * NEWS: Announce it.
10601 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10603 * record-btrace.c (record_btrace_find_new_threads)
10604 (record_btrace_thread_alive): New.
10605 (init_record_btrace_ops): Initialize to_find_new_threads and
10608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10610 * record-btrace.c (record_btrace_resume): New.
10611 (record_btrace_wait): New.
10612 (init_record_btrace_ops): Initialize to_wait and to_resume.
10614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10616 * record-btrace.c (record_btrace_xfer_partial)
10617 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10618 (record_btrace_allow_memory_access): New.
10619 (init_record_btrace_ops): Initialize new methods.
10620 * target.c (raw_memory_xfer_partial): Bail out if target reports
10621 that this memory is not available.
10623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10625 * target.h (target_ops) <to_insert_breakpoint>
10626 <to_remove_breakpoint>: Add target_ops parameter.
10627 (forward_target_insert_breakpoint): New.
10628 (forward_target_remove_breakpoint): New.
10629 (memory_remove_breakpoint, memory_insert_breakpoint):
10630 Add target_ops parameter.
10631 * target.c (target_insert_breakpoint): Split into this and ...
10632 (forward_target_insert_breakpoint): ... this.
10633 (target_remove_breakpoint): Split into this and ...
10634 (forward_target_remove_breakpoint): ... this.
10635 (debug_to_insert_breakpoint): Add target_ops parameter.
10636 Call forward_target_insert_breakpoint.
10637 (debug_to_remove_breakpoint): Add target_ops parameter.
10638 Call forward_target_remove_breakpoint.
10639 (update_current_target): Do not inherit or default to_insert_breakpoint
10640 and to_remove_breakpoint.
10641 * corelow.c (ignore): Add target_ops parameter.
10642 * exec.c (ignore): Add target_ops parameter.
10643 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10644 Add target_ops parameter.
10645 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10646 Add target_ops parameter.
10647 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10648 Add target_ops parameter.
10649 * record-full.c (record_full_beneath_to_insert_breakpoint)
10650 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10651 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10652 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10653 (record_full_core_remove_breakpoint): Add target_ops parameter.
10655 (record_full_beneath_to_insert_breakpoint_ops)
10656 (record_full_beneath_to_remove_breakpoint_ops)
10657 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10658 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10659 tmp_to_remove_breakpoint_ops,
10660 record_full_beneath_to_insert_breakpoint_ops, and
10661 record_full_beneath_to_remove_breakpoint_ops.
10662 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10663 (m32r_remove_breakpoint): Add target_ops parameter.
10664 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10665 Add target_ops parameter.
10666 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10667 Add target_ops parameter.
10669 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10670 Markus Metzger <markus.t.metzger@intel.com>
10672 * record-btrace.c: Include frame-unwind.h.
10673 (record_btrace_frame_unwind_stop_reason)
10674 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10675 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10677 (init_record_btrace_ops): Install it.
10679 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10681 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10684 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10686 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10689 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10691 * frame-unwind.c: Include target.h.
10692 (frame_unwind_try_unwinder): New function with code from ...
10693 (frame_unwind_find_by_frame): ... here. New variable
10694 unwinder_from_target, call also target_get_unwinder)
10695 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10696 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10697 * target.h (struct target_ops): New fields to_get_unwinder and
10698 to_get_tailcall_unwinder.
10699 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10703 * record-btrace.c (record_btrace_fetch_registers)
10704 (record_btrace_store_registers)
10705 (record_btrace_to_prepare_to_store): New.
10706 (init_record_btrace_ops): Add the above.
10708 2014-01-16 Tom Tromey <tromey@redhat.com>
10710 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10711 * target.h (struct target_ops) <to_prepare_to_store>: Add
10713 (target_prepare_to_store): Add argument.
10714 * target.c (debug_to_prepare_to_store): Add argument.
10715 (update_current_target): Update.
10716 * remote.c (remote_prepare_to_store): Add 'self' argument.
10717 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10718 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10719 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10720 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10722 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10723 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10724 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10725 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10726 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10730 * btrace.h (replay) <replay>: New.
10731 (btrace_is_replaying): New.
10732 * btrace.c (btrace_clear): Free replay iterator.
10733 (btrace_is_replaying): New.
10734 * record-btrace.c (record_btrace_is_replaying): New.
10735 (record_btrace_info): Print insn number if replaying.
10736 (record_btrace_insn_history): Start at replay position.
10737 (record_btrace_call_history): Start at replay position.
10738 (init_record_btrace_ops): Init to_record_is_replaying.
10740 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10742 * record-btrace.c (record_btrace_insn_history_range): Include
10744 (record_btrace_insn_history_from): Adjust range.
10745 (record_btrace_call_history_range): Include
10747 (record_btrace_call_history_from): Adjust range.
10748 * NEWS: Announce changes.
10750 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10752 * record.h (enum record_print_flag)
10753 <record_print_indent_calls>: New.
10754 * record.c (get_call_history_modifiers): Recognize /c modifier.
10755 (_initialize_record): Document /c modifier.
10756 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10757 Reorder fields. Optionally indent the function name. Update
10759 * NEWS: Announce changes.
10761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10763 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10767 * btrace.c (ftrace_new_function): Start counting at one.
10768 * record-btrace.c (record_btrace_info): Adjust number of calls
10770 * NEWS: Announce it.
10772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10774 * record-btrace.c (btrace_call_history_insn_range): Print
10775 insn range as [begin, end].
10777 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10779 * btrace.h (struct btrace_func_link): New.
10780 (enum btrace_function_flag): New.
10781 (struct btrace_inst): Rename to ...
10782 (struct btrace_insn): ...this. Update all users.
10783 (struct btrace_func) <ibegin, iend>: Remove.
10784 (struct btrace_func_link): New.
10785 (struct btrace_func): Rename to ...
10786 (struct btrace_function): ...this. Update all users.
10787 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10788 (number, level, flags>: New.
10789 (struct btrace_insn_iterator): Rename to ...
10790 (struct btrace_insn_history): ...this.
10792 (struct btrace_insn_iterator, btrace_call_iterator): New.
10793 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10794 (struct btrace_target_info) <begin, end, level>
10795 <insn_history, call_history>: New.
10796 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10797 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10798 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10799 (btrace_call_number, btrace_call_begin, btrace_call_end)
10800 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10801 (btrace_find_function_by_number, btrace_set_insn_history)
10802 (btrace_set_call_history): New.
10803 * btrace.c (btrace_init_insn_iterator)
10804 (btrace_init_func_iterator, compute_itrace): Remove.
10805 (ftrace_print_function_name, ftrace_print_filename)
10806 (ftrace_skip_file): Change
10807 parameter to const.
10808 (ftrace_init_func): Remove.
10809 (ftrace_debug): Use new btrace_function fields.
10810 (ftrace_function_switched): Also consider gaining and
10811 losing symbol information).
10812 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10813 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10814 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10816 (ftrace_new_function): Move. Remove debug print.
10817 (ftrace_update_lines, ftrace_update_insns): New.
10818 (ftrace_update_function): Check for call, ret, and jump.
10819 (compute_ftrace): Renamed to ...
10820 (btrace_compute_ftrace): ...this. Rewritten to compute call
10822 (btrace_fetch, btrace_clear): Updated.
10823 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10824 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10825 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10826 (btrace_call_number, btrace_call_begin, btrace_call_end)
10827 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10828 (btrace_find_function_by_number, btrace_set_insn_history)
10829 (btrace_set_call_history): New.
10830 * record-btrace.c (require_btrace): Use new btrace thread
10832 (record_btrace_info, btrace_insn_history)
10833 (record_btrace_insn_history, record_btrace_insn_history_range):
10834 Use new btrace thread info fields and new iterator.
10835 (btrace_func_history_src_line): Rename to ...
10836 (btrace_call_history_src_line): ...this. Use new btrace
10837 thread info fields.
10838 (btrace_func_history): Rename to ...
10839 (btrace_call_history): ...this. Use new btrace thread info
10840 fields and new iterator.
10841 (record_btrace_call_history, record_btrace_call_history_range):
10842 Use new btrace thread info fields and new iterator.
10844 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10846 * frame.h (frame_id_build_unavailable_stack_special): New.
10847 * frame.c (frame_id_build_unavailable_stack_special): New.
10849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10851 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10852 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10853 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10855 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10856 (i386_insn_is_jump, i386_jmp_p): New.
10857 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10858 insn_is_jump to gdbarch.
10859 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10860 * gdbarch.h: Regenerated.
10861 * gdbarch.c: Regenerated.
10862 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10863 (default_insn_is_jump): New.
10864 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10865 (default_insn_is_jump): New.
10867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10869 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10871 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10872 (btrace_read_type) <btrace_read_new>: Change to ...
10873 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10877 * common/linux-btrace.c (linux_read_btrace): Free trace from
10878 previous iteration.
10880 2014-01-15 Doug Evans <dje@google.com>
10882 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10885 2014-01-15 Tom Tromey <tromey@redhat.com>
10887 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10888 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10889 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10890 (set_objfile_main_name): New function.
10891 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10892 language_of_main>: New fields.
10893 (set_objfile_main_name): Declare.
10894 * symtab.c (find_main_name): Loop over objfiles to find the main
10896 (set_main_name): Now static.
10897 (get_main_info): Add comment.
10898 * symtab.h (set_main_name): Don't declare.
10900 2014-01-15 Tom Tromey <tromey@redhat.com>
10902 * symtab.c (main_progspace_key): New global.
10903 (struct main_info): New.
10904 (name_of_main, language_of_main): Remove.
10905 (get_main_info, main_info_cleanup): New function.
10906 (set_main_name, main_name, main_language): Use get_main_info.
10907 (_initialize_symtab): Initialize main_progspace_key.
10909 2014-01-15 Tom Tromey <tromey@redhat.com>
10911 * dbxread.c (process_one_symbol): Update.
10912 * dwarf2read.c (read_partial_die): Update.
10913 * symfile.c (set_initial_language): Call main_language.
10914 * symtab.c (language_of_main): Now static.
10915 (set_main_name): Add 'lang' parameter.
10916 (find_main_name): Update.
10917 (main_language): New function.
10918 (symtab_observer_executable_changed): Update.
10919 * symtab.h (set_main_name): Update.
10920 (language_of_main): Remove.
10921 (main_language): Declare.
10923 2014-01-15 Tom Tromey <tromey@redhat.com>
10925 * symfile.c (init_entry_point_info): Use new "initialized" field.
10927 * objfiles.h (struct entry_point) <initialized>: New field.
10928 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10929 (struct objfile) <ei>: ...here. Remove.
10930 * objfiles.c (entry_point_address_query): Update.
10932 2014-01-15 Tom Tromey <tromey@redhat.com>
10934 * objfiles.c (entry_point_address_query): Relocate entry point
10936 (objfile_relocate1): Do not relocate entry point address.
10937 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10938 <the_bfd_section_index>: New field.
10939 * symfile.c (init_entry_point_info): Find the entry point's
10942 2014-01-15 Tom Tromey <tromey@redhat.com>
10944 * solib-frv.c (enable_break): Use entry_point_address_query.
10946 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10948 * NEWS: Add note on improved process record-replay on
10949 arm*-linux* targets.
10951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10953 * arm-tdep.c (enum arm_record_result): New enum.
10954 (arm_record_unsupported_insn): New function.
10955 (arm_record_coproc_data_proc): Removed.
10956 (thumb2_record_ld_st_multiple): New function.
10957 (thumb2_record_ld_st_dual_ex_tbb): New function.
10958 (thumb2_record_data_proc_sreg_mimm): New function.
10959 (thumb2_record_ps_dest_generic): New function.
10960 (thumb2_record_branch_misc_cntrl): New function.
10961 (thumb2_record_str_single_data): New function.
10962 (thumb2_record_ld_mem_hints): New function.
10963 (thumb2_record_ld_word): New function.
10964 (thumb2_record_lmul_lmla_div): New function.
10965 (thumb2_record_decode_insn_handler): New function.
10966 (decode_insn): Add thumb32 instruction handlers.
10968 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10970 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10971 (struct arm_linux_record_tdep): Declare.
10972 (arm_canonicalize_syscall): New function.
10973 (arm_all_but_pc_registers_record): New function.
10974 (arm_linux_syscall_record): New function.
10975 (arm_linux_init_abi): Add syscall recording constructs.
10976 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10977 decoding. (arm_record_coproc_data_proc): Update arm syscall
10979 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10980 <arm_syscall_record>: New field.
10981 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10984 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10986 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10987 register for push instruction recording.
10989 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10991 * arm-tdep.c (thumb_record_misc): Update to correct logical
10992 error while recording ldm, ldmia and pop instructions.
10994 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10996 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10998 2014-01-15 Pedro Alves <palves@redhat.com>
11000 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11001 (go32_resume, go32_fetch_registers, store_register)
11002 (go32_store_registers, go32_prepare_to_store)
11003 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11004 (go32_create_inferior, go32_can_run, go32_terminal_init)
11005 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11008 2014-01-15 Tom Tromey <tromey@redhat.com>
11010 * target.h (async_callback_ftype): New typedef.
11011 (struct target_ops) <to_async>: Use it.
11013 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11015 * python/py-value.c (get_field_type): Remove unnecessary curly
11016 braces for single-statement if block.
11018 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11020 * python/py-type.c (convert_field): Add missing empty line
11021 after declarations.
11023 2014-01-14 Doug Evans <dje@google.com>
11025 * symfile.h (expand_symtabs_matching): Renamed from
11026 expand_partial_symbol_names. Update prototype.
11027 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11028 * symfile.c (expand_symtabs_matching): Renamed from
11029 expand_partial_symbol_names. New args file_matcher, kind.
11030 Rename arg fun to symbol_matcher.
11031 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11032 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11033 ada_expand_partial_symbol_name.
11034 (ada_make_symbol_completion_list): Update to call
11035 expand_symtabs_matching.
11036 (ada_add_global_exceptions): Call expand_symtabs_matching.
11037 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11038 call map_symbol_filenames.
11039 * symtab.c (sources_info): Update to call map_symbol_filenames.
11040 (search_symbols): Call expand_symtabs_matching.
11041 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11042 (default_make_symbol_completion_list_break_on): Update to call
11043 expand_symtabs_matching.
11044 (make_source_files_completion_list): Update to call
11045 map_symbol_filenames.
11047 2014-01-14 Doug Evans <dje@google.com>
11049 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11050 (expand_symtabs_symbol_matcher_ftype): New typedef.
11051 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11052 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11053 * symfile.c (expand_partial_symbol_names): Update to use
11054 expand_symtabs_symbol_matcher_ftype.
11055 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11056 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11057 Arg name_matcher renamed to symbol_matcher.
11058 * psymtab.c (recursively_search_psymtabs): Update to use
11059 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11061 (expand_symtabs_matching_via_partial): Update to use
11062 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11063 Arg name_matcher renamed to symbol_matcher.
11065 2014-01-14 Doug Evans <dje@google.com>
11067 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11068 (map_partial_symbol_filenames): Ditto.
11069 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11070 (map_partial_symbol_filenames): Ditto.
11071 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11072 (map_partial_symbol_filenames): Ditto.
11073 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11074 (map_partial_symbol_filenames): Ditto.
11075 * symtab.c: Delete #include "psymtab.h".
11077 2014-01-14 Pedro Alves <palves@redhat.com>
11078 Tom Tromey <tromey@redhat.com>
11080 * infrun.c (use_displaced_stepping): Use find_record_target
11081 instead of RECORD_IS_USED.
11082 (adjust_pc_after_break): Use record_full_is_used instead of
11084 * record-btrace.c (record_btrace_open): Call record_preopen
11085 instead of checking RECORD_IS_USED.
11086 * record-full.c (record_full_shortname)
11087 (record_full_core_shortname): New globals.
11088 (record_full_is_used): New function.
11089 (find_full_open): Call record_preopen instead of checking
11091 (init_record_full_ops): Set the target's shortname to
11092 record_full_shortname.
11093 (init_record_full_core_ops): Set the target's shortname to
11094 record_full_core_shortname.
11095 * record-full.h (record_full_is_used): Declare.
11096 * record.c (find_record_target): Make extern.
11097 (record_preopen): New function.
11098 * record.h (RECORD_IS_USED): Delete macro.
11099 (find_record_target, record_preopen): Declare functions.
11101 2014-01-14 Yao Qi <yao@codesourcery.com>
11103 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11104 'len''s type to ULONGEST.
11105 (core_xfer_shared_libraries_aix): Likewise.
11106 * gdbarch.c, gdbarch.h: Regenerated.
11107 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11108 Change type of 'len' to ULONGEST.
11109 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11110 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11112 2014-01-14 Yao Qi <yao@codesourcery.com>
11114 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11115 type of 'len' to ULONGEST.
11116 (linux_xfer_osdata_processgroups): Likewise.
11117 (linux_xfer_osdata_threads): Likewise.
11118 (linux_xfer_osdata_fds): Likewise.
11119 (linux_xfer_osdata_isockets): Likewise.
11120 (linux_xfer_osdata_shm): Likewise.
11121 (linux_xfer_osdata_sem): Likewise.
11122 (linux_xfer_osdata_msg): Likewise.
11123 (linux_common_xfer_osdata): Likewise.
11124 (struct osdata_type) <getter>: Likewise.
11125 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11128 2014-01-14 Yao Qi <yao@codesourcery.com>
11130 * target.h (target_xfer_partial_ftype): Update.
11131 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11133 * aix-thread.c (aix_thread_xfer_partial): Change type of
11134 argument 'len' to ULONGEST.
11135 * auxv.c (procfs_xfer_auxv): Likewise.
11136 (ld_so_xfer_auxv): Likewise.
11137 (memory_xfer_auxv): Likewise.
11138 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11139 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11140 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11141 * corelow.c (core_xfer_partial): Likewise.
11142 * ctf.c (ctf_xfer_partial): Likewise.
11143 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11145 (darwin_read_dyld_info): Likewise.
11146 (darwin_xfer_partial): Likewise.
11147 * exec.c (section_table_xfer_memory_partial): Likewise.
11148 (exec_xfer_partial): Likewise.
11149 * exec.h (section_table_xfer_memory_partial): Update
11151 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11152 instead of plongest.
11153 (gnu_xfer_partial): Likewise.
11154 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11155 (ia64_hpux_xfer_solib_got): Likewise.
11156 (ia64_hpux_xfer_partial): Likewise.
11157 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11158 * inf-ptrace.c (inf_ptrace_xfer_partial):
11159 * inf-ttrace.c (inf_ttrace_xfer_partial):
11160 * linux-nat.c (linux_xfer_siginfo): Likewise.
11161 (linux_nat_xfer_partial): Likewise.
11162 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11163 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11164 * monitor.c (monitor_xfer_memory): Likewise.
11165 (monitor_xfer_partial): Likewise.
11166 * procfs.c (procfs_xfer_partial): Likewise.
11167 * record-full.c (record_full_xfer_partial): Likewise.
11168 (record_full_core_xfer_partial): Likewise.
11169 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11170 instead of plongest.
11171 (gdbsim_xfer_partial): Likewise.
11172 * remote.c (remote_xfer_partial): Likewise.
11173 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11174 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11176 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11177 (rs6000_xfer_shared_libraries): Likewise.
11178 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11179 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11180 (sparc_xfer_partial): Likewise.
11181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11182 (spu_xfer_partial): Likewise.
11183 * spu-multiarch.c (spu_xfer_partial): Likewise.
11184 * target.c (target_read_live_memory): Likewise.
11185 (memory_xfer_live_readonly_partial): Likewise.
11186 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11187 (target_xfer_partial, default_xfer_partial): Likewise.
11188 (current_xfer_partial): Likewise.
11189 * tracepoint.c (tfile_xfer_partial): Likewise.
11190 * windows-nat.c (windows_xfer_memory): Likewise. Call
11191 pulongest instead of plongest.
11192 (windows_xfer_partial): Likewise.
11193 (windows_xfer_shared_libraries): Likewise.
11195 2014-01-14 Yao Qi <yao@codesourcery.com>
11197 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11198 target_xfer_partial_ftype.
11200 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11204 * valops.c (value_struct_elt_bitpos): New function
11205 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11206 object to 'None' if the field name is an empty string ("").
11207 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11208 attribute to look for a field when 'name' is 'None'.
11209 (get_field_type): New function
11211 2014-01-13 Doug Evans <dje@google.com>
11214 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11215 (try_open_dwop_file): Ditto.
11216 * gdb_bfd.c: #include "vec.h".
11217 (bfdp): New typedef.
11218 (struct gdb_bfd_data): New member included_bfds.
11219 (gdb_bfd_unref): Unref all included bfds.
11220 (gdb_bfd_record_inclusion): New function.
11221 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11223 2014-01-13 Tom Tromey <tromey@redhat.com>
11225 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11227 2014-01-13 Tom Tromey <tromey@redhat.com>
11229 * defs.h (use_windows): Remove.
11230 * gdb.c (main): Update.
11231 * main.c (captured_main, gdb_main): Update.
11232 * main.h (struct captured_main_args) <use_windows>: Remove.
11233 * top.c (use_windows): Remove.
11235 2014-01-13 Tom Tromey <tromey@redhat.com>
11237 * defs.h (deprecated_flush_hook): Remove.
11239 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11242 * linux-thread-db.c (try_thread_db_load): Add parameter
11243 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11244 (try_thread_db_load_from_pdir_1): Move it there from here.
11245 (try_thread_db_load_from_sdir): Update caller.
11246 (try_thread_db_load_from_dir): Move it there from here.
11248 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11250 * regformats/regdat.sh: Always rewrite the register file.
11252 2014-01-13 Pedro Alves <palves@redhat.com>
11254 * Makefile.in (CHECK_HEADERS): New variable.
11255 (check-headers:): New rule.
11257 2014-01-13 Tom Tromey <tromey@redhat.com>
11259 * cli/cli-setshow.c (do_set_command): Update.
11260 * defs.h (deprecated_set_hook): Remove.
11261 * top.c (deprecated_set_hook): Remove.
11263 2014-01-13 Pedro Alves <palves@redhat.com>
11265 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11266 the tracepoint if the PC is a pseudo-register.
11268 2014-01-13 Tom Tromey <tromey@redhat.com>
11270 * defs.h (XCALLOC): Remove.
11271 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11272 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11273 * dwarf2loc.c (allocate_piece_closure): Likewise.
11274 * elfread.c (elf_symfile_segments): Likewise.
11275 (elf_symfile_segments): Likewise.
11276 * gdbtypes.c (copy_type_recursive): Likewise.
11277 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11278 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11279 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11281 * mt-tdep.c (mt_gdbarch_init): Likewise.
11282 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11284 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11285 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11286 * registry.c (registry_alloc_data): Likewise.
11287 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11288 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11289 * serial.c (serial_fdopen_ops): Likewise.
11290 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11292 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11293 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11296 2014-01-13 Tom Tromey <tromey@redhat.com>
11298 * defs.h (XMALLOC): Remove.
11299 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11300 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11301 * cli-out.c (struct ui_out *): Likewise.
11302 * cli/cli-dump.c (add_dump_command): Likewise.
11303 (add_dump_command): Likewise.
11304 * complaints.c (get_complaints): Likewise.
11305 (find_complaint): Likewise.
11306 * dwarf2-frame.c (execute_cfa_program): Likewise.
11307 * dwarf2read.c (abbrev_table_read_table): Likewise.
11308 * gdbarch.sh: Likewise.
11309 * gdbarch.c: Rebuild.
11310 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11311 * interps.c (interp_new): Likewise.
11312 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11313 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11314 * mi/mi-console.c (mi_console_file_new): Likewise.
11315 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11316 * mi/mi-out.c (mi_out_new): Likewise.
11317 * mi/mi-parse.c (mi_parse): Likewise.
11318 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11319 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11320 * observer.c (xalloc_observer_list_node): Likewise.
11321 * regcache.c (regcache_xmalloc_1): Likewise.
11322 * reggroups.c (reggroup_new): Likewise.
11323 (_initialize_reggroup): Likewise.
11324 * registry.c (register_data_with_cleanup): Likewise.
11325 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11326 * ser-base.c (serial_ttystate): Likewise.
11327 * ser-mingw.c (make_pipe_state): Likewise.
11328 * ser-pipe.c (pipe_open): Likewise.
11329 * serial.c (serial_open): Likewise.
11330 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11331 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11332 (tui_alloc_win_info): Likewise.
11333 (tui_add_content_elements): Likewise.
11334 * tui/tui-file.c (tui_file_new): Likewise.
11335 * tui/tui-out.c (tui_out_new): Likewise.
11336 * ui-file.c (mem_file_new): Likewise.
11337 * ui-out.c (push_level): Likewise.
11338 (make_cleanup_ui_out_end): Likewise.
11339 (append_header_to_list): Likewise.
11340 (ui_out_new): Likewise.
11341 * user-regs.c (user_reg_add_builtin): Likewise.
11343 2014-01-13 Tom Tromey <tromey@redhat.com>
11345 * defs.h (XZALLOC): Remove.
11346 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11347 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11348 (get_ada_tasks_inferior_data): Likewise.
11349 * auto-load.c (get_auto_load_pspace_data): Likewise.
11350 * auxv.c (get_auxv_inferior_data): Likewise.
11351 * bfd-target.c (target_bfd_reopen): Likewise.
11352 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11353 (deprecated_insert_raw_breakpoint): Likewise.
11354 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11355 * corelow.c (core_open): Likewise.
11356 * darwin-nat.c (darwin_check_new_threads): Likewise.
11357 (darwin_attach_pid): Likewise.
11358 * dummy-frame.c (dummy_frame_push): Likewise.
11359 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11360 * dwarf2loc.c (allocate_piece_closure): Likewise.
11361 * elfread.c (elf_symfile_segments): Likewise.
11362 * eval.c (ptrmath_type_p): Likewise.
11363 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11364 * gdbtypes.c (alloc_type_arch): Likewise.
11365 (alloc_type_instance): Likewise.
11366 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11367 * inf-child.c (inf_child_can_use_agent): Likewise.
11368 * inflow.c (get_inflow_inferior_data): Likewise.
11369 * infrun.c (save_infcall_suspend_state): Likewise.
11370 * jit.c (jit_reader_load): Likewise.
11371 (get_jit_objfile_data): Likewise.
11372 (get_jit_program_space_data): Likewise.
11373 (jit_object_open_impl): Likewise.
11374 (jit_symtab_open_impl): Likewise.
11375 (jit_block_open_impl): Likewise.
11376 (jit_frame_sniffer): Likewise.
11377 * linux-fork.c (add_fork): Likewise.
11378 * maint.c (make_command_stats_cleanup): Likewise.
11379 * objfiles.c (get_objfile_pspace_data): Likewise.
11380 * opencl-lang.c (struct lval_closure): Likewise.
11381 * osdata.c (osdata_start_osdata): Likewise.
11382 * progspace.c (new_address_space): Likewise.
11383 (add_program_space): Likewise.
11384 * remote-sim.c (get_sim_inferior_data): Likewise.
11385 * sh-tdep.c (sh_gdbarch_init): Likewise.
11386 * skip.c (Ignore): Likewise.
11387 (skip_delete_command): Likewise.
11388 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11389 (library_list_start_library): Likewise.
11390 (solib_aix_current_sos): Likewise.
11391 * solib-darwin.c (get_darwin_info): Likewise.
11392 (darwin_current_sos): Likewise.
11393 * solib-dsbt.c (get_dsbt_info): Likewise.
11394 * solib-ia64-hpux.c (new_so_list): Likewise.
11395 (ia64_hpux_get_solib_linkage_addr): Likewise.
11396 * solib-spu.c (append_ocl_sos): Likewise.
11397 (spu_current_sos): Likewise.
11398 * solib-svr4.c (get_svr4_info): Likewise.
11399 (svr4_keep_data_in_core): Likewise.
11400 (library_list_start_library): Likewise.
11401 (svr4_default_sos): Likewise.
11402 (svr4_read_so_list): Likewise.
11403 * solib-target.c (library_list_start_library): Likewise.
11404 (solib_target_current_sos): Likewise.
11405 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11406 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11407 * symfile.c (default_symfile_segments): Likewise.
11408 * target-descriptions.c (tdesc_data_init): Likewise.
11409 (tdesc_create_reg): Likewise.
11410 (struct tdesc_type *): Likewise.
11411 (tdesc_create_vector): Likewise.
11412 (tdesc_set_struct_size): Likewise.
11413 (struct tdesc_type *): Likewise.
11414 (tdesc_free_feature): Likewise.
11415 (tdesc_create_feature): Likewise.
11416 * windows-nat.c (windows_add_thread): Likewise.
11417 (windows_make_so): Likewise.
11418 * xml-support.c (gdb_xml_body_text): Likewise.
11419 (gdb_xml_create_parser_and_cleanup): Likewise.
11420 (xml_process_xincludes): Likewise.
11421 * xml-syscall.c (allocate_syscalls_info): Likewise.
11422 (syscall_create_syscall_desc): Likewise.
11424 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11426 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11427 function, with code from i386_stap_parse_special_token.
11428 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11429 (i386_stap_parse_special_token): Move code to the two functions
11430 above; simplify it.
11432 2014-01-09 Pedro Alves <palves@redhat.com>
11433 Hui Zhu <hui@codesourcery.com>
11436 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11437 bp_err_string. Don't mark the location shlib_disabled if the
11438 error thrown wasn't a generic or memory error. Catch errors
11439 thrown while inserting breakpoints in overlayed code. Output
11440 error message of software breakpoints.
11441 * remote.c (remote_insert_breakpoint): If this breakpoint has
11442 target-side commands but this stub doesn't support Z0 packets,
11443 throw NOT_SUPPORTED_ERROR error.
11444 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11445 * target.h (target_insert_breakpoint): Extend comment.
11446 (target_insert_hw_breakpoint): Add comment.
11448 2014-01-08 Pedro Alves <palves@redhat.com>
11450 * remote.c (remote_add_thread): Add threads silently if starting
11452 (remote_notice_new_inferior): If in all-stop, and starting up,
11453 don't call notice_new_inferior.
11454 (get_current_thread): New function, factored out from ...
11455 (add_current_inferior_and_thread): ... this. Adjust.
11456 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11457 found any thread, then select the remote's current thread as GDB's
11458 current thread too.
11460 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11462 * NEWS: Create a new section for the next release branch.
11463 Rename the section of the current branch, now that it has
11466 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11468 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11469 * version.in: Bump version to 7.7.50.DATE-cvs.
11471 2014-01-08 Yao Qi <yao@codesourcery.com>
11473 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11474 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11475 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11477 2014-01-08 Yao Qi <yao@codesourcery.com>
11479 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11480 return value of bfd_get_filename to symbol_file_add_from_bfd.
11482 2014-01-08 Pierre Muller <muller@sourceware.org>
11485 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11486 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11487 to prim_record_mininal_symbol_and_info.
11488 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11489 in call to prim_record_minimal_symbol_and_info.
11490 (read_pe_exported_syms): Set index field of section_data.
11492 2014-01-07 Andrew Pinski <apinski@cavium.com>
11494 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11495 * features/aarch64.c: Regenerate.
11497 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11499 * target.c (return_null): Define.
11500 (update_current_target): Use it instead of return_zero for
11501 functions that return a pointer.
11503 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11505 * source.c (add_path): Fix check for duplicated paths in the previously
11508 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11510 * ada-lang.c: Remove duplicated include statements.
11511 * alphabsd-nat.c: Ditto.
11512 * amd64-darwin-tdep.c: Ditto.
11513 * amd64fbsd-nat.c: Ditto.
11514 * auto-load.c: Ditto.
11516 * breakpoint.c: Ditto.
11517 * dbxread.c: Ditto.
11518 * fork-child.c: Ditto.
11519 * gdb_usleep.c: Ditto.
11520 * i386-darwin-tdep.c: Ditto.
11521 * i386fbsd-nat.c: Ditto.
11523 * inferior.c: Ditto.
11524 * jv-lang.c: Ditto.
11525 * linux-nat.c: Ditto.
11526 * linux-tdep.c: Ditto.
11527 * m68kbsd-nat.c: Ditto.
11528 * m68klinux-nat.c: Ditto.
11529 * microblaze-tdep.c: Ditto.
11530 * mips-linux-tdep.c: Ditto.
11531 * mn10300-tdep.c: Ditto.
11532 * nto-tdep.c: Ditto.
11533 * opencl-lang.c: Ditto.
11535 * printcmd.c: Ditto.
11536 * regcache.c: Ditto.
11537 * remote-m32r-sdi.c: Ditto.
11539 * symfile.c: Ditto.
11541 * tilegx-linux-nat.c: Ditto.
11542 * tilegx-tdep.c: Ditto.
11543 * tracepoint.c: Ditto.
11545 * vaxbsd-nat.c: Ditto.
11546 * windows-nat.c: Ditto.
11547 * xtensa-tdep.c: Ditto.
11549 2014-01-07 Yao Qi <yao@codesourcery.com>
11551 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11553 2014-01-07 Yao Qi <yao@codesourcery.com>
11554 Joel Brobecker <brobecker@adacore.com>
11556 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11557 (pdc_write_regs): Likewise.
11558 (fetch_regs_kernel_thread): Likewise.
11559 (store_regs_kernel_thread): Likewise.
11561 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11563 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11564 tagged type objects to their actual type.
11566 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11568 * ada-valprint.c (print_field_values): Add "language" parameter.
11569 Update calls to print_field_values and print_variant_part.
11570 Pass new parameter "language" in call to val_print instead
11571 of "current_language". Replace call to ada_val_print by call
11573 (print_variant_part): Add "language" parameter.
11574 (ada_val_print_struct_union): Update call to print_field_values.
11576 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11578 * ada-valprint.c (ui_memcpy): Delete.
11579 (ada_print_floating): Update documentation. Add empty line
11580 between between function documentation and implementation.
11581 Delete variable "buffer". Use ui_file_xstrdup in place of
11582 ui_file_put. Minor adjustments following this change.
11584 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11586 * ada-valprint.c (ada_val_print_string): New function,
11587 extracted from ada_val_print_array.
11588 (ada_val_print_array): Replace extracted code by call
11589 to ada_val_print_string followed by a return. Move
11590 "else" branch to the function's top block.
11592 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11594 * ada-valprint.c (ada_val_print_array): Move implementation
11595 down. Rename parameter "offset" and "val" into "offset_aligned"
11596 and "original_value" respectively. Add parameter "offset".
11598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11600 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11601 re-organizing the code. Change the "???" message printed
11602 when target type is a TYPE_CODE_UNDEF into
11603 "<ref to undefined type>".
11605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11607 * ada-valprint.c (print_record): Delete, implementation inlined...
11608 (ada_val_print_struct_union): ... here. Remove call to
11609 ada_check_typedef in inlined implementation.
11611 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11613 * ada-valprint.c (ada_val_print_gnat_array): New function,
11614 extracted from ada_val_print_1;
11615 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11616 (ada_val_print_flt, ada_val_print_struct_union)
11617 (ada_val_print_ref): Likewise.
11618 (ada_val_print_1): Delete variables i and elttype.
11619 Replace extracted-out code by call to corresponding
11622 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11624 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11626 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11628 * ada-valprint.c (ada_val_print_1): Replace calls to
11629 ada_val_print_1 by calls to val_print.
11631 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11633 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11634 Update calls to self accordingly. Replace calls to c_val_print
11635 by calls to val_print.
11637 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11639 * ada-valprint.c (print_record): Delete declaration.
11640 (adjust_type_signedness, ada_val_print_1): Likewise.
11641 (ada_val_print): Move function implementation down.
11642 (print_variant_part, print_field_values, print_record):
11643 Move function implementation up.
11645 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11647 * python/py-type.c (typy_get_name): New function.
11648 (type_object_getset): Add entry for attribute "name".
11649 * NEWS: Add entry mentioning this new attribute.
11651 2014-01-07 Yao Qi <yao@codesourcery.com>
11653 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11656 2014-01-07 Yao Qi <yao@codesourcery.com>
11658 * gnu-nat.c (info_port_rights): Add qualifier const to
11661 2014-01-07 Yao Qi <yao@codesourcery.com>
11663 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11665 2014-01-07 Yao Qi <yao@codesourcery.com>
11667 * gnu-nat.c (make_inf) Update declaration.
11668 (make_inf): Make it static.
11669 (inf_set_traced): Likewise.
11670 (inf_port_to_thread, inf_task_died_status): Likewise.
11672 2014-01-07 Yao Qi <yao@codesourcery.com>
11674 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11676 2014-01-07 Yao Qi <yao@codesourcery.com>
11678 * gnu-nat.c (_initialize_gnu_nat): Declare.
11680 2014-01-07 Yao Qi <yao@codesourcery.com>
11682 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11684 (struct gdbarch_info) <byte_order>: Change type to
11686 <byte_order_for_code>: Likewise.
11687 * gdbarch.c, gdbarch.h: Regenerated.
11689 2014-01-06 Sasha Smundak <asmundak@google.com>
11691 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11693 2014-01-06 Tom Tromey <tromey@redhat.com>
11695 * doublest.c (convert_doublest_to_floatformat): Use const, not
11697 * somread.c (som_symtab_read): Likewise.
11699 2014-01-07 Hui Zhu <hui@codesourcery.com>
11701 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11702 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11703 (gdb_bfd_fopen): Ditto.
11704 (gdb_bfd_openr): Ditto.
11705 (gdb_bfd_openw): Ditto.
11706 (gdb_bfd_openr_iovec): Ditto.
11707 (gdb_bfd_fdopenr): Ditto.
11708 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11709 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11711 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11713 * symfile-mem.c (symbol_file_add_from_memory): Removed
11714 gdb_bfd_stash_filename.
11716 2014-01-03 Doug Evans <dje@google.com>
11718 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11721 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11723 Update year range in copyright notice of all files.
11725 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11727 * top.c (print_gdb_version): Set copyright year to 2014.
11729 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11731 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11733 For older changes see ChangeLog-2013.
11739 version-control: never