1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
5 (ppc_linux_collect_gregset ): Likewise.
6 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
7 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
8 (ppc_collect_vrregset): Likewise.
9 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
12 2014-08-07 Yao Qi <yao@codesourcery.com>
14 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
15 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
16 * remote.c (remote_read_bytes): Likewise.
18 2014-08-07 Yao Qi <yao@codesourcery.com>
20 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
22 2014-08-07 Yao Qi <yao@codesourcery.com>
25 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
26 TARGET_XFER_OK instead of 0.
28 2014-08-07 Gary Benson <gbenson@redhat.com>
30 * common/common-defs.h: Include errno.h.
31 * defs.h: Do not include errno.h.
32 * ada-typeprint.c: Likewise.
33 * c-typeprint.c: Likewise.
34 * core-regset.c: Likewise.
35 * corefile.c: Likewise.
36 * corelow.c: Likewise.
37 * event-loop.c: Likewise.
38 * f-typeprint.c: Likewise.
39 * gnu-nat.c: Likewise.
40 * go32-nat.c: Likewise.
41 * i386gnu-nat.c: Likewise.
42 * m2-typeprint.c: Likewise.
43 * nat/linux-btrace.c: Likewise.
44 * p-typeprint.c: Likewise.
46 * remote-sim.c: Likewise.
47 * rs6000-nat.c: Likewise.
49 * typeprint.c: Likewise.
50 * ui-file.c: Likewise.
52 * valprint.c: Likewise.
54 2014-08-07 Gary Benson <gbenson@redhat.com>
56 * common/common-defs.h: Include string.h.
57 * aarch64-tdep.c: Do not include string.h.
58 * ada-exp.y: Likewise.
59 * ada-lang.c: Likewise.
60 * ada-lex.l: Likewise.
61 * ada-typeprint.c: Likewise.
62 * ada-valprint.c: Likewise.
63 * aix-thread.c: Likewise.
64 * alpha-linux-tdep.c: Likewise.
65 * alpha-mdebug-tdep.c: Likewise.
66 * alpha-nat.c: Likewise.
67 * alpha-osf1-tdep.c: Likewise.
68 * alpha-tdep.c: Likewise.
69 * alphanbsd-tdep.c: Likewise.
70 * amd64-dicos-tdep.c: Likewise.
71 * amd64-linux-tdep.c: Likewise.
72 * amd64-nat.c: Likewise.
73 * amd64-sol2-tdep.c: Likewise.
74 * amd64fbsd-tdep.c: Likewise.
75 * amd64obsd-tdep.c: Likewise.
76 * arch-utils.c: Likewise.
77 * arm-linux-nat.c: Likewise.
78 * arm-linux-tdep.c: Likewise.
79 * arm-tdep.c: Likewise.
80 * arm-wince-tdep.c: Likewise.
81 * armbsd-tdep.c: Likewise.
82 * armnbsd-nat.c: Likewise.
83 * armnbsd-tdep.c: Likewise.
84 * armobsd-tdep.c: Likewise.
85 * avr-tdep.c: Likewise.
87 * ax-general.c: Likewise.
89 * bfin-tdep.c: Likewise.
90 * breakpoint.c: Likewise.
91 * build-id.c: Likewise.
92 * buildsym.c: Likewise.
95 * c-typeprint.c: Likewise.
96 * c-valprint.c: Likewise.
97 * charset.c: Likewise.
98 * cli-out.c: Likewise.
99 * cli/cli-cmds.c: Likewise.
100 * cli/cli-decode.c: Likewise.
101 * cli/cli-dump.c: Likewise.
102 * cli/cli-interp.c: Likewise.
103 * cli/cli-logging.c: Likewise.
104 * cli/cli-script.c: Likewise.
105 * cli/cli-setshow.c: Likewise.
106 * cli/cli-utils.c: Likewise.
107 * coffread.c: Likewise.
108 * common/agent.c: Likewise.
109 * common/buffer.c: Likewise.
110 * common/buffer.h: Likewise.
111 * common/common-utils.c: Likewise.
112 * common/filestuff.c: Likewise.
113 * common/filestuff.c: Likewise.
114 * common/format.c: Likewise.
115 * common/print-utils.c: Likewise.
116 * common/rsp-low.c: Likewise.
117 * common/signals.c: Likewise.
118 * common/vec.h: Likewise.
119 * common/xml-utils.c: Likewise.
120 * core-regset.c: Likewise.
121 * corefile.c: Likewise.
122 * corelow.c: Likewise.
123 * cp-abi.c: Likewise.
124 * cp-name-parser.y: Likewise.
125 * cp-support.c: Likewise.
126 * cp-valprint.c: Likewise.
127 * cris-tdep.c: Likewise.
129 * darwin-nat.c: Likewise.
130 * dbxread.c: Likewise.
131 * dcache.c: Likewise.
132 * demangle.c: Likewise.
133 * dicos-tdep.c: Likewise.
134 * disasm.c: Likewise.
135 * doublest.c: Likewise.
137 * dummy-frame.c: Likewise.
138 * dwarf2-frame.c: Likewise.
139 * dwarf2loc.c: Likewise.
140 * dwarf2read.c: Likewise.
141 * elfread.c: Likewise.
142 * environ.c: Likewise.
144 * event-loop.c: Likewise.
145 * exceptions.c: Likewise.
147 * expprint.c: Likewise.
149 * f-lang.c: Likewise.
150 * f-typeprint.c: Likewise.
151 * f-valprint.c: Likewise.
152 * fbsd-nat.c: Likewise.
153 * findcmd.c: Likewise.
154 * findvar.c: Likewise.
155 * fork-child.c: Likewise.
157 * frv-linux-tdep.c: Likewise.
158 * frv-tdep.c: Likewise.
160 * gdb_bfd.c: Likewise.
161 * gdbarch.c: Likewise.
162 * gdbarch.sh: Likewise.
163 * gdbtypes.c: Likewise.
164 * gnu-nat.c: Likewise.
165 * gnu-v2-abi.c: Likewise.
166 * gnu-v3-abi.c: Likewise.
167 * go-exp.y: Likewise.
168 * go-lang.c: Likewise.
169 * go32-nat.c: Likewise.
170 * guile/guile.c: Likewise.
171 * guile/scm-auto-load.c: Likewise.
172 * hppa-hpux-tdep.c: Likewise.
173 * hppa-linux-nat.c: Likewise.
174 * hppanbsd-tdep.c: Likewise.
175 * hppaobsd-tdep.c: Likewise.
176 * i386-cygwin-tdep.c: Likewise.
177 * i386-dicos-tdep.c: Likewise.
178 * i386-linux-tdep.c: Likewise.
179 * i386-nto-tdep.c: Likewise.
180 * i386-sol2-tdep.c: Likewise.
181 * i386-tdep.c: Likewise.
182 * i386bsd-tdep.c: Likewise.
183 * i386gnu-nat.c: Likewise.
184 * i386nbsd-tdep.c: Likewise.
185 * i386obsd-tdep.c: Likewise.
186 * i387-tdep.c: Likewise.
187 * ia64-libunwind-tdep.c: Likewise.
188 * ia64-linux-nat.c: Likewise.
189 * inf-child.c: Likewise.
190 * inf-ptrace.c: Likewise.
191 * inf-ttrace.c: Likewise.
192 * infcall.c: Likewise.
193 * infcmd.c: Likewise.
194 * inflow.c: Likewise.
195 * infrun.c: Likewise.
196 * interps.c: Likewise.
197 * iq2000-tdep.c: Likewise.
198 * irix5-nat.c: Likewise.
199 * jv-exp.y: Likewise.
200 * jv-lang.c: Likewise.
201 * jv-typeprint.c: Likewise.
202 * jv-valprint.c: Likewise.
203 * language.c: Likewise.
204 * linux-fork.c: Likewise.
205 * linux-nat.c: Likewise.
206 * lm32-tdep.c: Likewise.
207 * m2-exp.y: Likewise.
208 * m2-typeprint.c: Likewise.
209 * m32c-tdep.c: Likewise.
210 * m32r-linux-nat.c: Likewise.
211 * m32r-linux-tdep.c: Likewise.
212 * m32r-rom.c: Likewise.
213 * m32r-tdep.c: Likewise.
214 * m68hc11-tdep.c: Likewise.
215 * m68k-tdep.c: Likewise.
216 * m68kbsd-tdep.c: Likewise.
217 * m68klinux-nat.c: Likewise.
218 * m68klinux-tdep.c: Likewise.
219 * m88k-tdep.c: Likewise.
220 * machoread.c: Likewise.
221 * macrocmd.c: Likewise.
223 * mdebugread.c: Likewise.
224 * mem-break.c: Likewise.
225 * memattr.c: Likewise.
226 * memory-map.c: Likewise.
227 * mep-tdep.c: Likewise.
228 * mi/mi-cmd-break.c: Likewise.
229 * mi/mi-cmd-disas.c: Likewise.
230 * mi/mi-cmd-env.c: Likewise.
231 * mi/mi-cmd-stack.c: Likewise.
232 * mi/mi-cmd-var.c: Likewise.
233 * mi/mi-cmds.c: Likewise.
234 * mi/mi-console.c: Likewise.
235 * mi/mi-getopt.c: Likewise.
236 * mi/mi-interp.c: Likewise.
237 * mi/mi-main.c: Likewise.
238 * mi/mi-parse.c: Likewise.
239 * microblaze-rom.c: Likewise.
240 * microblaze-tdep.c: Likewise.
241 * mingw-hdep.c: Likewise.
242 * minidebug.c: Likewise.
243 * minsyms.c: Likewise.
244 * mips-irix-tdep.c: Likewise.
245 * mips-linux-tdep.c: Likewise.
246 * mips-tdep.c: Likewise.
247 * mips64obsd-tdep.c: Likewise.
248 * mipsnbsd-tdep.c: Likewise.
249 * mipsread.c: Likewise.
250 * mn10300-linux-tdep.c: Likewise.
251 * mn10300-tdep.c: Likewise.
252 * monitor.c: Likewise.
253 * moxie-tdep.c: Likewise.
254 * mt-tdep.c: Likewise.
255 * nat/linux-btrace.c: Likewise.
256 * nat/linux-osdata.c: Likewise.
257 * nat/linux-procfs.c: Likewise.
258 * nat/linux-ptrace.c: Likewise.
259 * nat/linux-waitpid.c: Likewise.
260 * nbsd-tdep.c: Likewise.
261 * nios2-linux-tdep.c: Likewise.
262 * nto-procfs.c: Likewise.
263 * nto-tdep.c: Likewise.
264 * objc-lang.c: Likewise.
265 * objfiles.c: Likewise.
266 * opencl-lang.c: Likewise.
268 * osdata.c: Likewise.
270 * p-lang.c: Likewise.
271 * p-typeprint.c: Likewise.
273 * posix-hdep.c: Likewise.
274 * ppc-linux-nat.c: Likewise.
275 * ppc-sysv-tdep.c: Likewise.
276 * ppcfbsd-tdep.c: Likewise.
277 * ppcnbsd-tdep.c: Likewise.
278 * ppcobsd-tdep.c: Likewise.
279 * printcmd.c: Likewise.
280 * procfs.c: Likewise.
281 * prologue-value.c: Likewise.
282 * python/py-auto-load.c: Likewise.
283 * python/py-gdb-readline.c: Likewise.
284 * ravenscar-thread.c: Likewise.
285 * regcache.c: Likewise.
286 * registry.c: Likewise.
287 * remote-fileio.c: Likewise.
288 * remote-m32r-sdi.c: Likewise.
289 * remote-mips.c: Likewise.
290 * remote-notif.c: Likewise.
291 * remote-sim.c: Likewise.
292 * remote.c: Likewise.
293 * reverse.c: Likewise.
294 * rs6000-aix-tdep.c: Likewise.
295 * ser-base.c: Likewise.
296 * ser-go32.c: Likewise.
297 * ser-mingw.c: Likewise.
298 * ser-pipe.c: Likewise.
299 * ser-tcp.c: Likewise.
300 * ser-unix.c: Likewise.
301 * serial.c: Likewise.
302 * sh-tdep.c: Likewise.
303 * sh64-tdep.c: Likewise.
304 * shnbsd-tdep.c: Likewise.
306 * sol-thread.c: Likewise.
307 * solib-dsbt.c: Likewise.
308 * solib-frv.c: Likewise.
309 * solib-osf.c: Likewise.
310 * solib-som.c: Likewise.
311 * solib-spu.c: Likewise.
312 * solib-target.c: Likewise.
314 * somread.c: Likewise.
315 * source.c: Likewise.
316 * sparc-nat.c: Likewise.
317 * sparc-sol2-tdep.c: Likewise.
318 * sparc-tdep.c: Likewise.
319 * sparc64-tdep.c: Likewise.
320 * sparc64fbsd-tdep.c: Likewise.
321 * sparc64nbsd-tdep.c: Likewise.
322 * sparcnbsd-tdep.c: Likewise.
323 * spu-linux-nat.c: Likewise.
324 * spu-multiarch.c: Likewise.
325 * spu-tdep.c: Likewise.
326 * stabsread.c: Likewise.
328 * std-regs.c: Likewise.
329 * symfile.c: Likewise.
330 * symmisc.c: Likewise.
331 * symtab.c: Likewise.
332 * target.c: Likewise.
333 * thread.c: Likewise.
334 * tilegx-linux-nat.c: Likewise.
335 * tilegx-tdep.c: Likewise.
337 * tracepoint.c: Likewise.
338 * tui/tui-command.c: Likewise.
339 * tui/tui-data.c: Likewise.
340 * tui/tui-disasm.c: Likewise.
341 * tui/tui-file.c: Likewise.
342 * tui/tui-layout.c: Likewise.
343 * tui/tui-out.c: Likewise.
344 * tui/tui-regs.c: Likewise.
345 * tui/tui-source.c: Likewise.
346 * tui/tui-stack.c: Likewise.
347 * tui/tui-win.c: Likewise.
348 * tui/tui-windata.c: Likewise.
349 * tui/tui-winsource.c: Likewise.
350 * typeprint.c: Likewise.
351 * ui-file.c: Likewise.
352 * ui-out.c: Likewise.
353 * user-regs.c: Likewise.
355 * v850-tdep.c: Likewise.
356 * valarith.c: Likewise.
357 * valops.c: Likewise.
358 * valprint.c: Likewise.
360 * varobj.c: Likewise.
361 * vax-tdep.c: Likewise.
362 * vaxnbsd-tdep.c: Likewise.
363 * vaxobsd-tdep.c: Likewise.
364 * windows-nat.c: Likewise.
365 * xcoffread.c: Likewise.
366 * xml-support.c: Likewise.
367 * xstormy16-tdep.c: Likewise.
368 * xtensa-linux-nat.c: Likewise.
370 2014-08-07 Gary Benson <gbenson@redhat.com>
372 * common/common-defs.h: Include gdb_assert.h.
373 * aarch64-tdep.c: Do not include gdb_assert.h.
374 * addrmap.c: Likewise.
375 * aix-thread.c: Likewise.
376 * alpha-linux-tdep.c: Likewise.
377 * alpha-mdebug-tdep.c: Likewise.
378 * alphanbsd-tdep.c: Likewise.
379 * amd64-nat.c: Likewise.
380 * amd64-tdep.c: Likewise.
381 * amd64bsd-nat.c: Likewise.
382 * amd64fbsd-nat.c: Likewise.
383 * amd64fbsd-tdep.c: Likewise.
384 * amd64nbsd-nat.c: Likewise.
385 * amd64nbsd-tdep.c: Likewise.
386 * amd64obsd-nat.c: Likewise.
387 * amd64obsd-tdep.c: Likewise.
388 * arch-utils.c: Likewise.
389 * arm-tdep.c: Likewise.
390 * armbsd-tdep.c: Likewise.
392 * bcache.c: Likewise.
393 * bfin-tdep.c: Likewise.
394 * blockframe.c: Likewise.
395 * breakpoint.c: Likewise.
396 * bsd-kvm.c: Likewise.
397 * bsd-uthread.c: Likewise.
398 * buildsym.c: Likewise.
400 * c-lang.c: Likewise.
401 * charset.c: Likewise.
402 * cleanups.c: Likewise.
403 * cli-out.c: Likewise.
404 * cli/cli-decode.c: Likewise.
405 * cli/cli-dump.c: Likewise.
406 * cli/cli-logging.c: Likewise.
407 * cli/cli-script.c: Likewise.
408 * cli/cli-utils.c: Likewise.
409 * coffread.c: Likewise.
410 * common/common-utils.c: Likewise.
411 * common/queue.h: Likewise.
412 * common/signals.c: Likewise.
413 * common/vec.h: Likewise.
414 * complaints.c: Likewise.
415 * completer.c: Likewise.
416 * corelow.c: Likewise.
417 * cp-abi.c: Likewise.
418 * cp-name-parser.y: Likewise.
419 * cp-namespace.c: Likewise.
420 * cp-support.c: Likewise.
421 * cris-tdep.c: Likewise.
422 * dbxread.c: Likewise.
423 * dictionary.c: Likewise.
424 * doublest.c: Likewise.
426 * dummy-frame.c: Likewise.
427 * dwarf2-frame-tailcall.c: Likewise.
428 * dwarf2-frame.c: Likewise.
429 * dwarf2expr.c: Likewise.
430 * dwarf2loc.c: Likewise.
431 * dwarf2read.c: Likewise.
433 * event-loop.c: Likewise.
434 * exceptions.c: Likewise.
435 * expprint.c: Likewise.
436 * f-valprint.c: Likewise.
437 * fbsd-nat.c: Likewise.
438 * findvar.c: Likewise.
439 * frame-unwind.c: Likewise.
441 * frv-tdep.c: Likewise.
443 * gdb-dlfcn.c: Likewise.
444 * gdb_bfd.c: Likewise.
445 * gdbarch.c: Likewise.
446 * gdbarch.sh: Likewise.
447 * gdbtypes.c: Likewise.
448 * gnu-nat.c: Likewise.
449 * gnu-v3-abi.c: Likewise.
450 * go-lang.c: Likewise.
451 * guile/scm-exception.c: Likewise.
452 * guile/scm-gsmob.c: Likewise.
453 * guile/scm-lazy-string.c: Likewise.
454 * guile/scm-math.c: Likewise.
455 * guile/scm-pretty-print.c: Likewise.
456 * guile/scm-safe-call.c: Likewise.
457 * guile/scm-utils.c: Likewise.
458 * guile/scm-value.c: Likewise.
459 * h8300-tdep.c: Likewise.
460 * hppa-hpux-nat.c: Likewise.
461 * hppa-tdep.c: Likewise.
462 * hppanbsd-tdep.c: Likewise.
463 * hppaobsd-tdep.c: Likewise.
464 * i386-darwin-nat.c: Likewise.
465 * i386-darwin-tdep.c: Likewise.
466 * i386-nto-tdep.c: Likewise.
467 * i386-tdep.c: Likewise.
468 * i386bsd-nat.c: Likewise.
469 * i386fbsd-tdep.c: Likewise.
470 * i386gnu-nat.c: Likewise.
471 * i386nbsd-tdep.c: Likewise.
472 * i386obsd-tdep.c: Likewise.
473 * i387-tdep.c: Likewise.
474 * ia64-libunwind-tdep.c: Likewise.
475 * ia64-tdep.c: Likewise.
476 * inf-ptrace.c: Likewise.
477 * inf-ttrace.c: Likewise.
478 * infcall.c: Likewise.
479 * infcmd.c: Likewise.
480 * infrun.c: Likewise.
481 * inline-frame.c: Likewise.
482 * interps.c: Likewise.
483 * jv-lang.c: Likewise.
484 * jv-typeprint.c: Likewise.
485 * linux-fork.c: Likewise.
486 * linux-nat.c: Likewise.
487 * linux-thread-db.c: Likewise.
488 * m32c-tdep.c: Likewise.
489 * m32r-linux-nat.c: Likewise.
490 * m32r-tdep.c: Likewise.
491 * m68k-tdep.c: Likewise.
492 * m68kbsd-nat.c: Likewise.
493 * m68kbsd-tdep.c: Likewise.
494 * m88k-tdep.c: Likewise.
495 * machoread.c: Likewise.
496 * macroexp.c: Likewise.
497 * macrotab.c: Likewise.
499 * mdebugread.c: Likewise.
500 * memory-map.c: Likewise.
501 * mep-tdep.c: Likewise.
502 * mi/mi-common.c: Likewise.
503 * microblaze-tdep.c: Likewise.
504 * mingw-hdep.c: Likewise.
505 * mips-linux-nat.c: Likewise.
506 * mips-linux-tdep.c: Likewise.
507 * mips-tdep.c: Likewise.
508 * mips64obsd-tdep.c: Likewise.
509 * mipsnbsd-tdep.c: Likewise.
510 * mn10300-linux-tdep.c: Likewise.
511 * mn10300-tdep.c: Likewise.
512 * moxie-tdep.c: Likewise.
513 * mt-tdep.c: Likewise.
514 * nat/linux-btrace.c: Likewise.
515 * nat/linux-osdata.c: Likewise.
516 * nat/linux-ptrace.c: Likewise.
517 * nat/mips-linux-watch.c: Likewise.
518 * nios2-linux-tdep.c: Likewise.
519 * nios2-tdep.c: Likewise.
520 * objc-lang.c: Likewise.
521 * objfiles.c: Likewise.
522 * obsd-nat.c: Likewise.
523 * opencl-lang.c: Likewise.
526 * ppc-linux-nat.c: Likewise.
527 * ppc-sysv-tdep.c: Likewise.
528 * ppcfbsd-nat.c: Likewise.
529 * ppcfbsd-tdep.c: Likewise.
530 * ppcnbsd-nat.c: Likewise.
531 * ppcnbsd-tdep.c: Likewise.
532 * ppcobsd-nat.c: Likewise.
533 * ppcobsd-tdep.c: Likewise.
534 * printcmd.c: Likewise.
535 * procfs.c: Likewise.
536 * prologue-value.c: Likewise.
537 * psymtab.c: Likewise.
538 * python/py-lazy-string.c: Likewise.
539 * python/py-value.c: Likewise.
540 * regcache.c: Likewise.
541 * reggroups.c: Likewise.
542 * registry.c: Likewise.
543 * remote-sim.c: Likewise.
544 * remote.c: Likewise.
545 * rs6000-aix-tdep.c: Likewise.
546 * rs6000-tdep.c: Likewise.
547 * s390-linux-tdep.c: Likewise.
548 * score-tdep.c: Likewise.
549 * ser-base.c: Likewise.
550 * ser-mingw.c: Likewise.
551 * sh-tdep.c: Likewise.
552 * sh64-tdep.c: Likewise.
553 * solib-darwin.c: Likewise.
554 * solib-spu.c: Likewise.
555 * solib-svr4.c: Likewise.
556 * source.c: Likewise.
557 * sparc-nat.c: Likewise.
558 * sparc-sol2-tdep.c: Likewise.
559 * sparc-tdep.c: Likewise.
560 * sparc64-sol2-tdep.c: Likewise.
561 * sparc64-tdep.c: Likewise.
562 * sparc64fbsd-tdep.c: Likewise.
563 * sparc64nbsd-tdep.c: Likewise.
564 * sparc64obsd-tdep.c: Likewise.
565 * sparcnbsd-tdep.c: Likewise.
566 * sparcobsd-tdep.c: Likewise.
567 * spu-multiarch.c: Likewise.
568 * spu-tdep.c: Likewise.
569 * stabsread.c: Likewise.
571 * symfile.c: Likewise.
572 * symtab.c: Likewise.
573 * target-descriptions.c: Likewise.
574 * target-memory.c: Likewise.
575 * target.c: Likewise.
576 * tic6x-linux-tdep.c: Likewise.
577 * tic6x-tdep.c: Likewise.
578 * tilegx-linux-nat.c: Likewise.
579 * tilegx-tdep.c: Likewise.
581 * tramp-frame.c: Likewise.
582 * tui/tui-out.c: Likewise.
583 * tui/tui-winsource.c: Likewise.
584 * ui-out.c: Likewise.
585 * user-regs.c: Likewise.
587 * v850-tdep.c: Likewise.
588 * valops.c: Likewise.
590 * varobj.c: Likewise.
591 * vax-nat.c: Likewise.
592 * xml-syscall.c: Likewise.
593 * xml-tdesc.c: Likewise.
594 * xstormy16-tdep.c: Likewise.
595 * xtensa-linux-nat.c: Likewise.
596 * xtensa-tdep.c: Likewise.
598 2014-08-07 Gary Benson <gbenson@redhat.com>
600 * common/common-defs.h: Include common-utils.h.
601 * defs.h: Do not include common-utils.h.
602 * common/gdb_assert.h: Likewise.
603 * darwin-nat.h: Likewise.
604 * nat/linux-btrace.c: Likewise.
605 * target/waitstatus.h: Likewise.
607 2014-08-07 Gary Benson <gbenson@redhat.com>
609 * common/common-defs.h: Include ptid.h.
610 * defs.h: Do not include ptid.h.
611 * inferior.h: Likewise.
612 * infrun.h: Likewise.
613 * nat/linux-btrace.h: Likewise.
614 * nat/linux-osdata.h: Likewise.
615 * target/waitstatus.h: Likewise.
617 2014-08-07 Gary Benson <gbenson@redhat.com>
619 * common/common-defs.h: Include gdb_locale.h.
620 * defs.h: Do not include gdb_locale.h.
622 2014-08-07 Gary Benson <gbenson@redhat.com>
624 * common/common-defs.h: Include gdb/signals.h.
625 * defs.h: Do not include gdb/signals.h.
627 2014-08-07 Gary Benson <gbenson@redhat.com>
629 * common/common-defs.h: Include pathmax.h.
630 * defs.h: Do not include pathmax.h.
632 2014-08-07 Gary Benson <gbenson@redhat.com>
634 * common/common-defs.h: Include libiberty.h.
635 * defs.h: Do not include libiberty.h.
636 * common/queue.h: Likewise.
637 * cp-name-parser.y: Likewise.
638 * mi/mi-cmd-catch.c: Likewise.
639 * python/python.c: Likewise.
641 2014-08-07 Gary Benson <gbenson@redhat.com>
643 * common/common-defs.h: Include ansidecl.h.
644 * defs.h: Do not include ansidecl.h.
645 * common/buffer.h: Likewise.
646 * common/common-utils.h: Likewise.
648 2014-08-07 Gary Benson <gbenson@redhat.com>
650 * common/common-defs.h: Include stddef.h.
651 * defs.h: Do not include stddef.h.
652 * common/common-utils.h: Likewise.
653 * amd64fbsd-nat.c: Likewise.
654 * bcache.c: Likewise.
655 * charset.c: Likewise.
656 * common/buffer.h: Likewise.
657 * common/vec.h: Likewise.
658 * i386bsd-nat.c: Likewise.
659 * nat/linux-btrace.h: Likewise.
660 * ppcfbsd-nat.c: Likewise.
661 * ppcnbsd-tdep.h: Likewise.
662 * ppcobsd-nat.c: Likewise.
663 * ppcobsd-tdep.h: Likewise.
664 * python/py-gdb-readline.c: Likewise.
666 2014-08-07 Gary Benson <gbenson@redhat.com>
668 * common/common-defs.h: Include stdarg.h.
669 * defs.h: Do not include stdarg.h.
670 * ada-lang.c: Likewise.
671 * common/common-utils.h: Likewise.
672 * guile/scm-string.c: Likewise.
673 * guile/scm-utils.c: Likewise.
674 * m32c-tdep.c: Likewise.
676 2014-08-07 Gary Benson <gbenson@redhat.com>
678 * common/common-defs.h: Include stdlib.h.
679 * defs.h: Do not include stdlib.h.
680 * addrmap.c: Likewise.
681 * bcache.c: Likewise.
682 * common/buffer.c: Likewise.
683 * common/common-utils.c: Likewise.
684 * cp-name-parser.y: Likewise.
685 * go32-nat.c: Likewise.
686 * mn10300-linux-tdep.c: Likewise.
687 * nat/linux-osdata.c: Likewise.
688 * tui/tui.c: Likewise.
689 * windows-nat.c: Likewise.
691 2014-08-07 Gary Benson <gbenson@redhat.com>
693 * common/common-defs.h: Include stdio.h.
694 * defs.h: Do not include stdio.h.
695 * ada-lang.c: Likewise.
696 * common/buffer.c: Likewise.
697 * common/common-utils.c: Likewise.
698 * cp-name-parser.y: Likewise.
699 * gnu-nat.c: Likewise.
700 * go32-nat.c: Likewise.
701 * i386gnu-nat.c: Likewise.
702 * proc-api.c: Likewise.
703 * proc-events.c: Likewise.
704 * proc-flags.c: Likewise.
705 * proc-why.c: Likewise.
706 * python/python-internal.h: Likewise.
707 * target-memory.c: Likewise.
708 * tui/tui-io.c: Likewise.
709 * tui/tui.c: Likewise.
711 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
713 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
714 (scan_dyntag_auxv): Same.
716 2014-08-06 Yao Qi <yao@codesourcery.com>
718 * amd64-linux-nat.c: Remove duplicated include
720 * i386-linux-nat.c: Likewise.
722 2014-08-06 Yao Qi <yao@codesourcery.com>
724 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
725 operand" with "Special opcode" in comments.
727 2014-08-05 Gary Benson <gbenson@redhat.com>
729 * interps.c (initialize_interps): Remove prototype.
730 (interpreter_initialized): Remove static global.
731 (interp_add): Do not call initialize_interps.
732 (initialize_interps): Remove function.
734 2014-08-05 Gary Benson <gbenson@redhat.com>
736 * utils.c (vwarning): Remove spurious va_end.
738 2014-08-05 Alan Modra <amodra@gmail.com>
740 * charset.c (convert_between_encodings): Cast result of obstack_base.
741 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
742 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
743 (read_unwind_info): Use size_t for some locals.
744 * jit.c (finalize_symtab): Likewise.
745 * utils.c (hashtab_obstack_allocate): Likewise.
746 * symmisc.c (print_objfile_statistics): Update format strings.
748 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
750 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
751 (Changes in GDB 7.8): ... here.
753 2014-08-04 Tom Tromey <tromey@redhat.com>
755 * target.c (set_targetdebug): New function.
756 (initialize_targets): Pass set_targetdebug when creating "set
759 2014-08-01 Joel Brobecker <brobecker@adacore.com>
761 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
762 if detecting a variable-sized field that is not the last field.
763 Fix struct type length computation.
765 2014-08-01 Joel Brobecker <brobecker@adacore.com>
767 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
770 2014-08-01 Joel Brobecker <brobecker@adacore.com>
772 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
773 Remove "+ 8" offset in computation of CHAIN_VMA.
775 2014-07-31 Doug Evans <dje@google.com>
777 * inflow.c (child_terminal_inferior): Add comment.
778 (child_terminal_ours_for_output): Add comment.
779 (child_terminal_ours): Add comment.
780 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
781 (linux_nat_terminal_ours): Add comment.
783 2014-07-31 Gary Benson <gbenson@redhat.com>
785 * common/btrace-common.h: Do not include defs.h or server.h.
786 * nat/mips-linux-watch.h: Likewise.
787 * gdb-dlfcn.h: Do not include defs.h.
788 * tracefile.h: Likewise.
790 2014-07-30 Roland McGrath <mcgrathr@google.com>
792 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
794 2014-07-30 Tom Tromey <tromey@redhat.com>
796 * bsd-kvm.c (bsd_kvm_open): Constify.
797 * corelow.c (core_open): Constify.
798 * ctf.c (ctf_open): Constify.
799 * dbug-rom.c (dbug_open): Constify.
800 * exec.c (exec_open): Constify.
801 * m32r-rom.c (m32r_open, mon2000_open): Constify.
802 * microblaze-rom.c (picobug_open): Constify.
803 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
805 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
806 * record-btrace.c (record_btrace_open): Constify.
807 * record-full.c (record_full_core_open_1, record_full_open_1)
808 (record_full_open): Constify.
809 * remote-m32r-sdi.c (m32r_open): Constify.
810 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
811 (rockhopper_open, lsi_open): Constify.
812 * remote-sim.c (gdbsim_open): Constify.
813 * remote.c (remote_open, extended_remote_open, remote_open_1):
815 * target.h (struct target_ops) <to_open>: Make "arg" const.
816 * tracefile-tfile.c (tfile_open): Constify.
818 2014-07-30 Tom Tromey <tromey@redhat.com>
820 * breakpoint.c (map_breakpoint_numbers): Update.
821 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
822 (get_number_const): New function.
823 (get_number): Rewrite using get_number_const.
824 (init_number_or_range): Make "string" const.
825 (number_is_in_list): Make "list" const.
826 * cli/cli-utils.h (get_number_const): Declare.
827 (struct get_number_or_range_state) <string, end_ptr>: Now const.
828 (init_number_or_range, number_is_in_list): Update.
829 * printcmd.c (map_display_numbers): Update.
830 * value.c (value_from_history_ref): Constify.
831 * value.h (value_from_history_ref): Update.
833 2014-07-30 Tom Tromey <tromey@redhat.com>
835 * corefile.c (hook_type, call_extra_exec_file_hooks)
836 (specify_exec_file_hook): Constify.
837 * exec.c (exec_file_attach): Make "filename" const.
838 * gdbcore.h (deprecated_exec_file_display_hook)
839 (specify_exec_file_hook, exec_file_attach): Constify.
840 * main.c (captured_main): Use catch_command_errors_const.
842 2014-07-30 Tom Tromey <tromey@redhat.com>
844 * target.c (open_target): New function.
845 (add_target_with_completer, add_deprecated_target_alias): Use
846 set_cmd_sfunc, set_cmd_context.
847 (debug_to_open): Remove.
848 (setup_target_debug): Update.
850 2014-07-30 Yao Qi <yao@codesourcery.com>
852 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
854 * parse.c (exp_iterate): Update comments.
856 2014-07-30 Gary Benson <gbenson@redhat.com>
858 * common/common-defs.h: New file.
859 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
860 * defs.h: Include common-defs.h.
861 Do not include config.h or build-gnulib/config.h.
863 2014-07-30 Gary Benson <gbenson@redhat.com>
865 * common/common-utils.h: Do not include config.h.
866 * nat/linux-btrace.h: Likewise.
868 2014-07-30 Gary Benson <gbenson@redhat.com>
870 * btrace.c: Include defs.h.
871 * common/ptid.c: Include defs.h or server.h as appropriate.
872 * nat/mips-linux-watch.c: Likewise.
874 2014-07-29 Tom Tromey <tromey@redhat.com>
876 * target.c (target_is_pushed): Simplify.
878 2014-07-29 Joel Brobecker <brobecker@adacore.com>
882 2014-07-29 Yao Qi <yao@codesourcery.com>
885 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
887 2014-07-28 Doug Evans <xdje42@gmail.com>
890 * guile/scm-param.c (pascm_parameter_defined_p): New function.
891 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
894 2014-07-28 Will Newton <will.newton@linaro.org>
896 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
897 (THUMB2_SET_R7_SIGRETURN2): Likewise.
898 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
899 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
900 (THUMB2_EABI_SYSCALL): Likewise.
901 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
903 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
904 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
906 2014-07-27 Doug Evans <xdje42@gmail.com>
908 * guile/scm-param.c (pascm_print_param_smob): Fix output.
910 2014-07-27 Doug Evans <xdje42@gmail.com>
912 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
914 2014-07-26 Ludovic Courtès <ludo@gnu.org>
915 Doug Evans <xdje42@gmail.com>
918 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
919 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
920 * configure.ac: Try to use guild to compile an scm file, if it fails
921 then disable guile support.
922 * configure: Regenerate.
923 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
925 (GUILE_COMPILED_FILES): New variable.
926 (GUILE_FILES) Update.
927 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
928 (stamp-guile): Compile scm files.
929 * guile/guile.c (boot_guile_support): New function.
930 (standard_throw_args_p): New function.
931 (print_standard_throw_error, print_throw_error): New functions.
932 (handle_boot_error): New function.
933 (initialize_scheme_side): Rewrite to call boot_guile_support.
934 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
935 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
937 2014-07-26 Ludovic Courtès <ludo@gnu.org>
938 Doug Evans <xdje42@gmail.com>
941 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
942 * guile/lib/gdb/support.scm: New file.
943 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
944 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
946 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
948 (%assert-type): Ditto, and renamed to assert-type.
949 (%exception-print-style): Delete.
951 2014-07-26 Doug Evans <xdje42@gmail.com>
954 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
955 * configure: Regenerate.
956 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
958 (PYTHON_FILES): New variable.
959 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
960 (GUILE_FILES): New variable.
961 (stamp-python, install-python, uninstall-python): Handle empty
963 (stamp-guile, install-guile, uninstall-guile): Ditto.
965 2014-07-26 Doug Evans <xdje42@gmail.com>
968 * guile/lib/gdb.scm (pretty-printers): Export.
969 (set-pretty-printers!): Export.
970 * guile/lib/gdb/printing.scm (gdb module): Update.
971 (prepend-pretty-printer!, append-pretty-printer!): Update.
972 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
973 (pretty_printer_list_var): Delete.
974 (pretty_printer_list): New static global.
975 (gdbscm_pretty_printers): New function.
976 (gdbscm_set_pretty_printers_x): New function.
977 (ppscm_find_pretty_printer_from_gdb): Update.
978 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
979 (gdbscm_initialize_pretty_printers): Update.
981 2014-07-26 Doug Evans <xdje42@gmail.com>
984 * configure.ac: Add check for header gc/gc.h.
985 Add check for function setenv.
986 * configure: Regenerate.
987 * config.in: Regenerate.
988 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
990 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
992 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
993 variation in gdbarch matching.
995 2014-07-25 Tom Tromey <tromey@redhat.com>
997 * exec.c (using_exec_ops): Remove.
998 (exec_close_1): Update. Remove extraneous block, reindent.
999 (add_target_sections): Use target_is_pushed.
1001 2014-07-25 Pedro Alves <palves@redhat.com>
1003 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1004 * monitor.c (monitor_create_inferior): Likewise.
1005 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1006 * remote-sim.c (gdbsim_create_inferior): Likewise.
1007 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1008 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1009 * windows-nat.c (do_initial_windows_stuff): Likewise.
1011 2014-07-25 Pedro Alves <palves@redhat.com>
1013 * NEWS: Mention signal passing and "signal" command changes.
1014 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1016 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1018 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1019 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1020 (jump_command): Adjust clear_proceed_status call.
1021 (signal_command): Warn if other thread that are resumed have
1022 signals that will be delivered. Adjust clear_proceed_status call.
1023 (until_next_command, finish_command)
1024 (proceed_after_attach_callback, attach_command_post_wait)
1025 (attach_command): Adjust clear_proceed_status call.
1026 * infrun.c (proceed_after_vfork_done): Likewise.
1027 (proceed_after_attach_callback): Adjust comment.
1028 (clear_proceed_status_thread): Clear stop_signal if not in pass
1030 (clear_proceed_status_callback): Delete.
1031 (clear_proceed_status): New 'step' parameter. Only clear the
1032 proceed status of threads the command being prepared is about to
1034 (proceed): If passed in an explicit signal, override stop_signal
1035 with it. Don't pass the last stop signal to the thread we're
1037 (init_wait_for_inferior): Adjust clear_proceed_status call.
1038 (switch_back_to_stepped_thread): Clear the signal if it should not
1040 * infrun.h (clear_proceed_status): New 'step' parameter.
1041 (user_visible_resume_ptid): Add comment.
1042 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1043 signal is in pass state.
1044 * remote.c (append_pending_thread_resumptions): Likewise.
1045 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1047 2014-07-25 Tom Tromey <tromey@redhat.com>
1049 * target.h (target_stopped_data_address)
1050 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1053 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1055 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1057 (avr_pointer_to_address): Likewise.
1059 2014-07-24 Tom Tromey <tromey@redhat.com>
1061 * monitor.c (compile_pattern): Update.
1062 * target.h (struct target_ops) <to_shortname, to_longname,
1065 2014-07-24 Tom Tromey <tromey@redhat.com>
1067 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1068 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1069 (add_info_alias, add_com): Make "doc" const.
1070 (print_doc_line): Make "str" const.
1071 (delete_cmd): Update.
1072 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1073 (print_doc_line): Update.
1074 * cli/cli-script.c (document_command): Update.
1075 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1076 (add_com, add_info, add_info_alias): Update.
1077 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1078 * python/py-cmd.c (cmdpy_destroyer): Update.
1080 2014-07-24 Tom Tromey <tromey@redhat.com>
1082 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1083 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1084 (help_cmd_list): Constify.
1085 (lookup_cmd): Update.
1086 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1088 (help_cmd_list, apropos_cmd): Update.
1089 * cli/cli-script.c (show_user): Update.
1090 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1091 * cli/cli-setshow.h (cmd_show_list): Update.
1092 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1093 (cmd_show_list): Update.
1094 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1095 * python/py-cmd.c (cmdpy_destroyer): Update.
1097 2014-07-24 Tom Tromey <tromey@redhat.com>
1099 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1100 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1102 * command.h (deprecate_cmd): Update.
1103 * maint.c (maintenance_do_deprecate): Add casts.
1105 2014-07-24 Tom Tromey <tromey@redhat.com>
1107 * cli/cli-decode.c (help_cmd): Make parameter "const".
1108 * cli/cli-decode.h (help_cmd): Update.
1110 2014-07-24 Tom Tromey <tromey@redhat.com>
1112 * stack.c (up_silently_base, down_silently_base): Make argument
1115 2014-07-24 Tom Tromey <tromey@redhat.com>
1117 * solib.c (solib_add): Make "pattern" const.
1118 * solib.h (solib_add): Update.
1120 2014-07-24 Tom Tromey <tromey@redhat.com>
1122 * remote.c (remote_serial_open, print_packet, putpkt)
1123 (putpkt_binary): Constify.
1124 * remote.h (putpkt): Update.
1126 2014-07-24 Tom Tromey <tromey@redhat.com>
1128 * monitor.c (monitor_open): Make "args" const.
1129 * monitor.h (monitor_open): Update.
1131 2014-07-24 Tom Tromey <tromey@redhat.com>
1133 * maint.c (match_bfd_flags): Make "string" const.
1134 (print_bfd_section_info): Remove casts.
1135 (print_objfile_section_info): Make "string" const.
1137 2014-07-24 Tom Tromey <tromey@redhat.com>
1139 * inf-child.c (inf_child_open_target): Make "arg" const.
1140 * inf-child.h (inf_child_open_target): Update.
1142 2014-07-24 Tom Tromey <tromey@redhat.com>
1144 * environ.c (unset_in_environ): Make "var" const.
1145 * environ.h (unset_in_environ): Update.
1147 2014-07-24 Tom Tromey <tromey@redhat.com>
1149 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1151 (scan_filename_with_cleanup): Likewise.
1152 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1153 Make arguments const.
1154 (restore_command): Update.
1156 2014-07-24 Pedro Alves <palves@redhat.com>
1158 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1160 2014-07-24 Tom Tromey <tromey@redhat.com>
1161 Gary Benson <gbenson@redhat.com>
1163 * nat/linux-ptrace.c (additional_flags): New global.
1164 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1165 additional_flags; don't check GDBSERVER.
1166 (linux_ptrace_set_additional_flags): New function.
1167 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1169 * linux-nat.c (_initialize_linux_nat): Call
1170 linux_ptrace_set_additional_flags.
1172 2014-07-24 Tom Tromey <tromey@redhat.com>
1174 * make-target-delegates (munge_type, write_debugmethod): New
1176 (debug_names): New global.
1177 ($TARGET_DEBUG_PRINTER): New global.
1178 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1180 Write debug methods. Generate init_debug_target.
1181 * target-debug.h: New file.
1182 * target-delegates.c: Rebuild.
1183 * target.c: Include target-debug.h.
1184 (debug_target): Hoist definition.
1185 (target_kill, target_get_section_table, target_memory_map)
1186 (target_flash_erase, target_flash_done, target_detach)
1187 (target_disconnect, target_wait, target_resume)
1188 (target_pass_signals, target_program_signals, target_follow_fork)
1189 (target_mourn_inferior, target_search_memory)
1190 (target_thread_address_space, target_close)
1191 (target_find_new_threads, target_core_of_thread)
1192 (target_verify_memory, target_insert_mask_watchpoint)
1193 (target_remove_mask_watchpoint): Remove targetdebug code.
1194 (debug_to_post_attach, debug_to_prepare_to_store)
1195 (debug_to_files_info, debug_to_insert_breakpoint)
1196 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1197 (debug_to_region_ok_for_hw_watchpoint)
1198 (debug_to_can_accel_watchpoint_condition)
1199 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1200 (debug_to_watchpoint_addr_within_range)
1201 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1202 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1203 (debug_to_terminal_init, debug_to_terminal_inferior)
1204 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1205 (debug_to_terminal_save_ours, debug_to_terminal_info)
1206 (debug_to_load, debug_to_post_startup_inferior)
1207 (debug_to_insert_fork_catchpoint)
1208 (debug_to_remove_fork_catchpoint)
1209 (debug_to_insert_vfork_catchpoint)
1210 (debug_to_remove_vfork_catchpoint)
1211 (debug_to_insert_exec_catchpoint)
1212 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1213 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1214 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1215 (setup_target_debug): Call init_debug_target.
1216 * target.h (TARGET_DEBUG_PRINTER): New macro.
1217 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1218 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1220 2014-07-24 Gary Benson <gbenson@redhat.com>
1222 * exceptions.h (throw_vfatal): Renamed to...
1223 (throw_vquit): New declaration.
1224 (throw_quit): Likewise.
1225 * exceptions.c (throw_vfatal): Renamed to...
1226 (throw_vquit): New function.
1227 (throw_quit): Likewise.
1228 (throw_error): Call throw_verror rather than throw_it.
1229 * utils.h (vfatal): Removed.
1231 * utils.c (vfatal): Removed.
1233 (internal_verror): Replaced call to fatal with call to throw_quit.
1234 (quit): Replaced calls to fatal with calls to throw_quit.
1236 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1238 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1241 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1243 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1244 less than zero in conditional expression.
1246 2014-07-23 Tom Tromey <tromey@redhat.com>
1248 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1249 ($INTRO_PART): Don't match whitespace.
1250 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1252 ($METHOD): Add $METHOD_TRAILER.
1254 (scan_target_h): New sub.
1255 Change main loop not to collect state.
1256 * target-delegates.c: Rebuild.
1258 2014-07-23 Gary Benson <gbenson@redhat.com>
1260 * cp-support.c (gdb_demangle): Fix build on systems without
1263 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1265 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1266 for reference entry value target data value.
1268 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1270 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1271 value_available_contents_eq.
1273 2014-07-22 Pedro Alves <palves@redhat.com>
1275 * value.c (allocate_optimized_out_value): Don't mark value as
1278 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1280 * MAINTAINERS (Write After Approval): Update my email address.
1282 2014-07-20 Doug Evans <dje@google.com>
1285 * remote.c (putpkt_binary): Add text to error message.
1287 2014-07-20 Yao Qi <yao@codesourcery.com>
1289 * eval.c: Remove "Chill" from comments.
1290 * gdbtypes.h: Likewise.
1291 * symtab.h: Likewise.
1293 2014-07-20 Yao Qi <yao@codesourcery.com>
1295 * std-operator.def: Update comments to TERNOP_SLICE.
1297 2014-07-20 Yao Qi <yao@codesourcery.com>
1299 * std-operator.def: Remove BINOP_RANGE.
1300 * breakpoint.c (watchpoint_exp_is_const): Update.
1301 * expprint.c (dump_subexp_body_standard): Likewise.
1302 * eval.c (init_array_element): Remove dead code.
1303 (evaluate_subexp_standard): Likewise.
1305 2014-07-20 Yao Qi <yao@codesourcery.com>
1307 * std-operator.def: Remove BINOP_IN.
1308 * breakpoint.c (watchpoint_exp_is_const): Update.
1309 * eval.c (evaluate_subexp_standard): Likewise.
1310 * expprint.c (dump_subexp_body_standard): Likewise.
1312 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1314 * microblaze-tdep.c (microblaze_register_names): Add
1315 the rshr and rslr register names.
1316 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1317 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1318 Use of tdesc_numbered_register. Use of
1319 microblaze_register_g_packet_guesses. Use of
1320 tdesc_use_registers. Use of set_gdbarch_register_type.
1321 (microblaze_register_g_packet_guesses): New.
1322 * microblaze-tdep.h (microblaze_reg_num): Add
1323 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1324 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1325 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1326 * features/microblaze-core.xml: New file.
1327 * features/microblaze-stack-protect.xml: New file.
1328 * features/microblaze-with-stack-protect.c: New file.
1329 * features/microblaze-with-stack-protect.xml: New file.
1330 * features/microblaze.xml: New file.
1331 * features/microblaze.c: New file.
1332 * features/Makefile (microblaze-with-stack-protect): Add
1333 microblaze-with-stack-protect microblaze and microblaze-expedite.
1334 * regformats/microblaze-with-stack-protect.dat: New file.
1335 * regformats/microblaze.dat: New file.
1336 * doc/gdb.texinfo (MicroBlaze Features): Added.
1338 2014-07-18 Tom Tromey <tromey@redhat.com>
1340 * exec.c (exec_ops): Now static.
1341 * exec.h (exec_ops): Don't declare.
1343 2014-07-18 Tom Tromey <tromey@redhat.com>
1345 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1346 to find_target_beneath.
1347 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1348 find_target_beneath.
1349 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1351 2014-07-18 Tom Tromey <tromey@redhat.com>
1354 * utils.c (quit): Use target_supports_terminal_ours.
1355 * target.h (target_supports_terminal_ours): Declare.
1356 * target.c (target_supports_delete_record): Don't check
1357 to_delete_record against NULL.
1358 (target_supports_terminal_ours): New function.
1360 2014-07-18 Tom Tromey <tromey@redhat.com>
1363 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1364 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1365 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1366 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1367 * windows-nat.c (windows_xfer_partial): Always delegate.
1368 * record-btrace.c (record_btrace_xfer_partial): Simplify
1370 (record_btrace_fetch_registers, record_btrace_store_registers)
1371 (record_btrace_prepare_to_store, record_btrace_resume)
1372 (record_btrace_wait, record_btrace_find_new_threads)
1373 (record_btrace_thread_alive): Likewise.
1374 * procfs.c (procfs_xfer_partial): Always delegate.
1375 * corelow.c (core_xfer_partial): Always delegate.
1376 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1378 2014-07-18 Tom Tromey <tromey@redhat.com>
1380 * exec.c (exec_make_note_section): Move earlier.
1382 2014-07-17 Doug Evans <dje@google.com>
1385 * maint.c (count_symtabs_and_blocks): Handle NULL
1386 current_program_space.
1387 (report_command_stats): Check global enabled flag in addition to
1388 recorded enabled flag.
1389 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1391 2014-07-16 Pedro Alves <palves@redhat.com>
1393 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1395 2014-07-16 Tom Tromey <tromey@redhat.com>
1397 * target.h (struct target_ops) <to_delete_record>: Reformat
1400 2014-07-16 Tom Tromey <tromey@redhat.com>
1402 * target-delegates.c: Rebuild.
1404 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1406 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1407 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1408 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1409 (avr_pointer_to_address): Likewise.
1410 (avr_address_class_type_flags): New function.
1411 (avr_address_class_type_flags_to_name): Likewise.
1412 (avr_address_class_name_to_type_flags): Likewise.
1413 (avr_gdbarch_init): Set address_class_type_flags,
1414 address_class_type_flags_to_name and
1415 address_class_name_to_type_flags.
1417 2014-07-15 Pedro Alves <palves@redhat.com>
1419 * linux-nat.c (kill_callback): Save errno and work with saved
1422 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1424 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1426 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1428 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1429 breakpoint support correctly.
1431 2014-07-14 Pedro Alves <palves@redhat.com>
1433 * utils.c (prompt_for_continue): Call target_terminal_ours.
1435 2014-07-14 Pedro Alves <palves@redhat.com>
1437 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1438 catch_errors. Don't re-enable stdin or notify observers where,
1440 (fetch_inferior_event_wrapper): Delete.
1442 2014-07-14 Pedro Alves <palves@redhat.com>
1445 * top.c: Include "inf-loop.h".
1446 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1448 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1450 (gdb_readline_wrapper): Store whether the target is async, and
1453 2014-07-14 Pedro Alves <palves@redhat.com>
1456 * top.c (gdb_readline_wrapper_line): Tweak comment.
1457 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1458 the input handler callback.
1460 2014-07-14 Pedro Alves <palves@redhat.com>
1463 * main.c: Include event-top.h.
1464 (handle_command_errors): New function.
1465 (catch_command_errors, catch_command_errors_const): Use it.
1467 2014-07-14 Pedro Alves <palves@redhat.com>
1469 * exceptions.c (catch_command_errors, catch_command_errors_const):
1471 * exceptions.h (catch_command_errors_ftype)
1472 (catch_command_errors_const_ftype): Moved to main.c.
1473 (catch_command_errors, catch_command_errors_const): Delete
1475 * main.c (catch_command_errors_ftype)
1476 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1477 (catch_command_errors, catch_command_errors_const)): Moved here
1478 from exceptions.c and make static.
1480 2014-07-14 Pedro Alves <palves@redhat.com>
1482 * exceptions.c (print_any_exception): Delete.
1483 (catch_exceptions_with_msg): Use exception_print instead of
1484 print_any_exception.
1485 (catch_errors): Use exception_fprintf instead of
1486 print_any_exception.
1487 (catch_command_errors, catch_command_errors_const): Use
1488 exception_print instead of print_any_exception.
1490 2014-07-14 Pedro Alves <palves@redhat.com>
1492 * infcall.c (run_inferior_call): Set 'sync_execution' while
1493 running the inferior call.
1495 2014-07-14 Pedro Alves <palves@redhat.com>
1497 * value.c (value_contents_equal): Delete function.
1498 * value.h (value_contents_equal): Delete declaration.
1500 2014-07-14 Tom Tromey <tromey@redhat.com>
1503 * gdbtypes.c (is_dynamic_type_internal): New function, from
1505 (is_dynamic_type): Rewrite.
1506 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1507 (resolve_dynamic_struct): Likewise.
1508 (resolve_dynamic_type_internal): New function, from
1509 resolve_dynamic_type.
1510 (resolve_dynamic_type): Rewrite.
1512 2014-07-14 Tom Tromey <tromey@redhat.com>
1514 * target.c (target_require_runnable): Also check record_stratum.
1517 2014-07-11 Yao Qi <yao@codesourcery.com>
1519 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1520 thumb_instruction_restores_sp return true.
1522 2014-07-11 Yao Qi <yao@codesourcery.com>
1524 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1525 (thumb_in_function_epilogue_p): Call
1526 thumb_instruction_restores_sp.
1528 2014-07-11 Yao Qi <yao@codesourcery.com>
1530 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1532 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1534 2014-07-11 Gary Benson <gbenson@redhat.com>
1536 * amd64-linux-nat.c (gdbcore.h): Remove include.
1537 (regset.h): Likewise.
1538 (nat/linux-btrace.h): Likewise.
1539 (btrace.h): Likewise.
1540 (gdb_assert.h): Likewise.
1541 (string.h): Likewise.
1542 (sys/uio.h): Likewise.
1543 (sys/debugreg.h): Likewise.
1544 (sys/syscall.h): Likewise.
1545 (sys/procfs.h): Likewise.
1546 (sys/user.h): Likewise.
1547 (asm/ptrace.h): Likewise.
1548 (i386-nat.h): Likewise.
1549 * i386-linux-nat.c (i386-nat.h): Likewise.
1550 (regset.h): Likewise.
1551 (target.h): Likewise.
1552 (linux-nat.h): Likewise.
1553 (nat/linux-btrace.h): Likewise.
1554 (btrace.h): Likewise.
1555 (gdb_assert.h): Likewise.
1556 (string.h): Likewise.
1557 (sys/uio.h): Likewise.
1558 (sys/user.h): Likewise.
1559 (sys/procfs.h): Likewise.
1560 (sys/reg.h): Likewise.
1561 (sys/debugreg.h): Likewise.
1562 (ORIG_EAX): Remove definition.
1564 2014-07-11 Gary Benson <gbenson@redhat.com>
1566 * i386-linux-nat.h: New file.
1567 * x86-linux-nat.h: Likewise.
1568 * x86-linux-nat.c: Likewise.
1569 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1570 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1571 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1572 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1573 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1574 (PTRACE_SETREGSET): Likewise.
1575 (arch_lwp_info): Now in x86-linux-nat.c.
1576 (have_ptrace_getregset): Now in x86-linux-nat.h.
1577 (x86_linux_dr_get): Now in x86-linux-nat.c.
1578 (x86_linux_dr_set): Likewise.
1579 (x86_linux_dr_get_addr): Likewise.
1580 (x86_linux_dr_get_control): Likewise.
1581 (x86_linux_dr_get_status): Likewise.
1582 (update_debug_registers_callback): Likewise.
1583 (x86_linux_dr_set_control): Likewise.
1584 (x86_linux_dr_set_addr): Likewise.
1585 (x86_linux_prepare_to_resume): Likewise.
1586 (x86_linux_new_thread): Likewise.
1587 (x86_linux_new_fork): Likewise.
1588 (x86_linux_get_thread_area): Likewise.
1589 (super_post_startup_inferior): Likewise.
1590 (x86_linux_child_post_startup_inferior): Likewise.
1591 (AMD64_LINUX_USER64_CS): Likewise.
1592 (AMD64_LINUX_X32_DS): Likewise.
1593 (x86_linux_read_description): Likewise.
1594 (x86_linux_enable_btrace): Likewise.
1595 (x86_linux_disable_btrace): Likewise.
1596 (x86_linux_teardown_btrace): Likewise.
1597 (x86_linux_read_btrace): Likewise.
1598 (x86_linux_create_target): Likewise.
1599 (x86_linux_add_target): Likewise.
1600 * i386-linux-nat.c (x86-linux-nat.h): New include.
1601 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1602 (PTRACE_SETREGSET): Likewise.
1603 (arch_lwp_info): Now in x86-linux-nat.c.
1604 (have_ptrace_getregset): Now in x86-linux-nat.h.
1605 (x86_linux_dr_get): Now in x86-linux-nat.c.
1606 (x86_linux_dr_set): Likewise.
1607 (x86_linux_dr_get_addr): Likewise.
1608 (x86_linux_dr_get_control): Likewise.
1609 (x86_linux_dr_get_status): Likewise.
1610 (update_debug_registers_callback): Likewise.
1611 (x86_linux_dr_set_control): Likewise.
1612 (x86_linux_dr_set_addr): Likewise.
1613 (x86_linux_prepare_to_resume): Likewise.
1614 (x86_linux_new_thread): Likewise.
1615 (x86_linux_new_fork): Likewise.
1616 (x86_linux_get_thread_area): Likewise.
1617 (super_post_startup_inferior): Likewise.
1618 (x86_linux_child_post_startup_inferior): Likewise.
1619 (AMD64_LINUX_USER64_CS): Likewise.
1620 (AMD64_LINUX_X32_DS): Likewise.
1621 (x86_linux_read_description): Likewise.
1622 (x86_linux_enable_btrace): Likewise.
1623 (x86_linux_disable_btrace): Likewise.
1624 (x86_linux_teardown_btrace): Likewise.
1625 (x86_linux_read_btrace): Likewise.
1626 (x86_linux_create_target): Likewise.
1627 (x86_linux_add_target): Likewise.
1629 2014-07-11 Gary Benson <gbenson@redhat.com>
1631 * amd64-linux-nat.c: Comment and whitespace changes.
1632 * i386-linux-nat.c: Comment and whitespace changes.
1634 2014-07-11 Gary Benson <gbenson@redhat.com>
1636 * amd64-linux-nat.c (x86_linux_create_target): New function.
1637 (x86_linux_add_target): Likewise.
1638 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1639 * i386-linux-nat.c (x86_linux_create_target): New function.
1640 (x86_linux_add_target): Likewise.
1641 (_initialize_i386_linux_nat): Delegate to the above new functions.
1643 2014-07-11 Gary Benson <gbenson@redhat.com>
1645 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1646 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1647 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1648 (ps_get_thread_area): Delegate to the above.
1650 2014-07-11 Gary Benson <gbenson@redhat.com>
1652 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1653 x86_linux_read_description. All uses updated. amd64-specific
1654 code conditionalized. Conditionalized i386-specific code added.
1655 Redundant cast removed.
1656 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1657 x86_linux_read_description. All uses updated. i386-specific
1658 code conditionalized. Conditionalized amd64-specific code added.
1659 One sizeof replaced with the actual type it is describing.
1661 2014-07-11 Gary Benson <gbenson@redhat.com>
1663 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1664 x86_linux_dr_get. All uses updated.
1665 (amd64_linux_dr_set): Renamed to
1666 x86_linux_dr_set. All uses updated.
1667 (amd64_linux_dr_get_addr): Renamed to
1668 x86_linux_dr_get_addr. All uses updated.
1669 (amd64_linux_dr_get_control): Renamed to
1670 x86_linux_dr_get_control. All uses updated.
1671 (amd64_linux_dr_get_status): Renamed to
1672 x86_linux_dr_get_status. All uses updated.
1673 (amd64_linux_dr_set_control): Renamed to
1674 x86_linux_dr_set_control. All uses updated.
1675 (amd64_linux_dr_set_addr): Renamed to
1676 x86_linux_dr_set_addr. All uses updated.
1677 (amd64_linux_prepare_to_resume): Renamed to
1678 x86_linux_prepare_to_resume. All uses updated.
1679 (amd64_linux_new_thread): Renamed to
1680 x86_linux_new_thread. All uses updated.
1681 (amd64_linux_new_fork): Renamed to
1682 x86_linux_new_fork. All uses updated.
1683 (amd64_linux_child_post_startup_inferior): Renamed to
1684 x86_linux_child_post_startup_inferior. All uses updated.
1685 (amd64_linux_enable_btrace): Renamed to
1686 x86_linux_enable_btrace. All uses updated.
1687 (amd64_linux_disable_btrace): Renamed to
1688 x86_linux_disable_btrace. All uses updated.
1689 (amd64_linux_teardown_btrace): Renamed to
1690 x86_linux_teardown_btrace. All uses updated.
1691 (amd64_linux_read_btrace): Renamed to
1692 x86_linux_read_btrace. All uses updated.
1693 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1694 x86_linux_dr_get. All uses updated.
1695 (i386_linux_dr_set): Renamed to
1696 x86_linux_dr_set. All uses updated.
1697 (i386_linux_dr_get_addr): Renamed to
1698 x86_linux_dr_get_addr. All uses updated.
1699 (i386_linux_dr_get_control): Renamed to
1700 x86_linux_dr_get_control. All uses updated.
1701 (i386_linux_dr_get_status): Renamed to
1702 x86_linux_dr_get_status. All uses updated.
1703 (i386_linux_dr_set_control): Renamed to
1704 x86_linux_dr_set_control. All uses updated.
1705 (i386_linux_dr_set_addr): Renamed to
1706 x86_linux_dr_set_addr. All uses updated.
1707 (i386_linux_prepare_to_resume): Renamed to
1708 x86_linux_prepare_to_resume. All uses updated.
1709 (i386_linux_new_thread): Renamed to
1710 x86_linux_new_thread. All uses updated.
1711 (i386_linux_new_fork): Renamed to
1712 x86_linux_new_fork. All uses updated.
1713 (i386_linux_child_post_startup_inferior): Renamed to
1714 x86_linux_child_post_startup_inferior. All uses updated.
1715 (i386_linux_enable_btrace): Renamed to
1716 x86_linux_enable_btrace. All uses updated.
1717 (i386_linux_disable_btrace): Renamed to
1718 x86_linux_disable_btrace. All uses updated.
1719 (i386_linux_teardown_btrace): Renamed to
1720 x86_linux_teardown_btrace. All uses updated.
1721 (i386_linux_read_btrace): Renamed to
1722 x86_linux_read_btrace. All uses updated.
1724 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1726 * remote.c (extended_remote_post_attach): New function.
1727 (init_extended_remote_ops): Install it as to_post_attach method.
1729 2014-07-09 Pedro Alves <palves@redhat.com>
1731 * infcmd.c (attach_command_post_wait): Don't call
1732 target_terminal_inferior here.
1733 (attach_command): Call it here instead.
1735 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1737 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1739 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1740 from varobj.c, with additional checks.
1741 (c_varobj_ops): Fill in is_path_expr_parent field.
1742 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1743 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1745 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1747 (varobj_default_is_path_expr_parent): New function.
1748 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1749 (varobj_default_is_path_expr_parent): Declare new function.
1751 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1753 * infcmd.c (finish_backward): Turn internal error into normal error.
1755 2014-07-07 Pedro Alves <palves@redhat.com>
1758 * remote.c (async_handle_remote_sigint)
1759 (async_handle_remote_sigint_twice): Call
1760 gdb_call_async_signal_handler instead of
1761 mark_async_signal_handler.
1763 2014-07-07 Tom Tromey <tromey@redhat.com>
1765 * target-delegates.c: Rebuild.
1766 * target.c (target_info_record): Remove.
1767 * record.c (info_record_command): Unconditionally call
1769 * target.h (struct target_ops) <to_info_record>: Use
1770 TARGET_DEFAULT_IGNORE.
1771 (target_info_record): Remove.
1773 2014-07-07 Tom Tromey <tromey@redhat.com>
1775 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1776 TARGET_DEFAULT_NORETURN.
1777 * target.c (generic_tls_error): New function.
1778 (target_translate_tls_address): Don't search target stack.
1779 * target-delegates.c: Rebuild.
1780 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1782 * linux-thread-db.c (thread_db_get_thread_local_address):
1783 Unconditionally call beneath target.
1785 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1787 * cli/cli-logging.c (pop_output_files): Assign targerr to
1790 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1792 * MAINTAINERS (Write After Approval): Update my email address.
1794 2014-07-02 Gary Benson <gbenson@redhat.com>
1796 * proc-service.c (ps_xfer_memory): Update comment.
1797 (ps_pstop): Remove unused function.
1798 (ps_pcontinue): Likewise.
1799 (ps_lstop): Likewise.
1800 (ps_lcontinue): Likewise.
1801 (ps_lgetxregsize): Likewise.
1802 (ps_lgetxregs): Likewise.
1803 (ps_lsetxregs): Likewise.
1804 (ps_plog): Likewise.
1805 (ps_ptread): Likewise.
1806 (ps_ptwrite): Likewise.
1808 2014-07-01 Mark Wielaard <mjw@redhat.com>
1810 * dwarf2read.c (add_array_cv_type): New function.
1811 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1812 (read_tag_volatile_type): Likewise.
1814 2014-07-01 Tom Tromey <tromey@redhat.com>
1816 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1817 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1818 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1819 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1820 * command.h (cmd_cfunc_ftype): Move earlier.
1821 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1822 (add_com, add_info): Use cmd_cfunc_ftype.
1824 2014-06-30 Tom Tromey <tromey@redhat.com>
1826 * symtab.c (operator_chars): Make parameters and return type
1828 (file_matches): Make "files" const.
1829 (struct search_symbols_data) <files>: Now const.
1830 (search_symbols): Make "regexp" and "files" parameters const.
1832 (symtab_symbol_info): Remove cast.
1833 (rbreak_command): Update.
1834 * symtab.h (search_symbols): Update.
1836 2014-06-27 Yao Qi <yao@codesourcery.com>
1838 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1839 Change parameter type to 'struct thread_info *'. Caller
1841 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1843 * dummy-frame.c (struct dummy_frame_id): New.
1844 (dummy_frame_id_eq): New function.
1845 (struct dummy_frame) <id>: Change its type to 'struct
1847 (dummy_frame_push): Add parameter ptid and save it in
1849 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1851 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1853 (lookup_dummy_frame): Change parameter type to 'struct
1854 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1855 instead of frame_id_eq.
1856 (dummy_frame_pop): Add parameter ptid. Callers updated.
1857 Update comments. Compose dummy_frame_id and pass it to
1859 (dummy_frame_discard): Add parameter ptid.
1860 (dummy_frame_sniffer): Compose dummy_frame_id and call
1861 dummy_frame_id_eq instead of frame_id_eq.
1862 (fprint_dummy_frames): Print ptid.
1863 * dummy-frame.h: Remove comments.
1864 (dummy_frame_push): Add ptid in declaration.
1865 (dummy_frame_pop, dummy_frame_discard): Likewise.
1867 2014-06-26 Tom Tromey <tromey@redhat.com>
1869 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1870 * command.h (error_no_arg): Update.
1872 2014-06-26 Tom Tromey <tromey@redhat.com>
1874 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1875 (do_show_command): Make "arg" const.
1876 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1878 2014-06-26 Tom Tromey <tromey@redhat.com>
1880 * record-full.c (record_full_get_bookmark): Make "args" const.
1881 (record_full_goto_bookmark): Make "raw_bookmark" const.
1882 * record.c (record_goto): New function.
1883 (cmd_record_goto): Use it. Now static.
1884 * record.h (record_goto): Declare.
1885 (cmd_record_goto): Remove declaration.
1886 * target-delegates.c: Rebuild.
1887 * target.h (struct target_ops) <to_get_bookmark,
1888 to_goto_bookmark>: Make parameter const.
1890 2014-06-26 Tom Tromey <tromey@redhat.com>
1892 * defs.h (generic_load): Update.
1893 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1894 * monitor.c (monitor_load): Make "args" const.
1895 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1896 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1898 (mips_load): Make "file" const.
1899 * remote-sim.c (gdbsim_load): Make "args" const.
1900 * remote.c (remote_load): Make "name" const.
1901 * symfile.c (generic_load): Make "args" const.
1902 * target-delegates.c: Rebuild.
1903 * target.c (target_load): Make "arg" const.
1904 (debug_to_load): Make "args" const.
1905 * target.h (struct target_ops) <to_load>: Make parameter const.
1906 (target_load): Update.
1908 2014-06-26 Tom Tromey <tromey@redhat.com>
1911 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1912 (dwarf2_physname, read_partial_die)
1913 (guess_partial_die_structure_name, fixup_partial_die)
1914 (guess_full_die_structure_name, anonymous_struct_prefix)
1915 (dwarf2_name): Use per-BFD obstack.
1917 2014-06-26 Yao Qi <yao@codesourcery.com>
1919 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1920 dummyframe and this_id into inner block below.
1922 2014-06-26 Yao Qi <yao@codesourcery.com>
1924 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1925 with "signal_pass[0]" in the initialization of signal_pass.
1927 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1929 * record-btrace.c (record_btrace_generating_corefile)
1930 (record_btrace_prepare_to_generate_core)
1931 (record_btrace_done_generating_core): New.
1932 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1933 (record_btrace_store_registers, record_btrace_prepare_to_store):
1934 Forward request when generating a core file.
1935 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1936 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1937 to_done_generating_core.
1939 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1941 * target.h (target_ops) <to_prepare_to_generate_core>
1942 <to_done_generating_core>: New.
1943 (target_prepare_to_generate_core, target_done_generating_core): New.
1944 * target.c (target_prepare_to_generate_core)
1945 (target_done_generating_core): New.
1946 * target-delegates.c: Regenerate.
1947 * gcore.c: (write_gcore_file): Rename to ...
1948 (write_gcore_file_1): ...this.
1949 (write_gcore_file): Call target_prepare_to_generate_core
1950 and target_done_generating_core.
1952 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1954 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1955 * gcore.c (write_gcore_file): Free memory returned from
1956 make_corefile_notes.
1957 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1958 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1960 2014-06-24 Yao Qi <yao@codesourcery.com>
1962 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1963 (arm_linux_init_abi): Set skip_trampoline_code with
1964 gdbarch_skip_trampoline_code instead of
1965 find_solib_trampoline_target.
1967 2014-06-24 Yao Qi <yao@codesourcery.com>
1969 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1970 arm_skip_bx_reg returns non-zero.
1972 2014-06-24 Yao Qi <yao@codesourcery.com>
1974 * arm-tdep.c (arm_skip_bx_reg): New function.
1975 (arm_skip_stub): Call arm_skip_bx_reg.
1977 2014-06-23 Don Breazeal <donb@codesourcery.com>
1979 * MAINTAINERS: Add myself as write-after-approval maintainer.
1981 2014-06-23 Pedro Alves <palves@redhat.com>
1983 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1984 DR_CONTROL before setting DR0..DR3.
1985 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1986 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1987 bits of DR_CONTROL related to the debug register slot being
1988 disabled. If all slots are vacant, clear local slowdown as well,
1989 and assert DR_CONTROL is 0.
1991 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1993 * python/lib/gdb/command/xmethods.py
1994 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1995 current progspace only if the string "progspace" matches LOCUS_RE.
1997 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 Fix --with-system-readline with readline-6.3 patch 5.
2000 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2001 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2004 2014-06-20 Tom Tromey <tromey@redhat.com>
2006 * dwarf2read.c (dw2_get_real_path): Use correct type in
2008 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2010 2014-06-20 Gary Benson <gbenson@redhat.com>
2012 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2013 * common/glibc_thread_db.h: Likewise.
2014 * common/i386-cpuid.h: Likewise.
2015 * common/i386-gcc-cpuid.h: Likewise.
2016 * common/linux-btrace.h: Likewise.
2017 * common/linux-osdata.h: Likewise.
2018 * common/linux-procfs.h: Likewise.
2019 * common/linux-ptrace.h: Likewise.
2020 * common/mips-linux-watch.h: Likewise.
2021 * common/linux-btrace.c: Moved to nat.
2022 * common/linux-osdata.c: Likewise.
2023 * common/linux-procfs.c: Likewise.
2024 * common/linux-ptrace.c: Likewise.
2025 * common/mips-linux-watch.c: Likewise.
2026 * nat/gdb_thread_db.h: Moved from common.
2027 * nat/glibc_thread_db.h: Likewise.
2028 * nat/i386-cpuid.h: Likewise.
2029 * nat/i386-gcc-cpuid.h: Likewise.
2030 * nat/linux-btrace.c: Likewise.
2031 * nat/linux-btrace.h: Likewise.
2032 * nat/linux-osdata.c: Likewise.
2033 * nat/linux-osdata.h: Likewise.
2034 * nat/linux-procfs.c: Likewise.
2035 * nat/linux-procfs.h: Likewise.
2036 * nat/linux-ptrace.c: Likewise.
2037 * nat/linux-ptrace.h: Likewise.
2038 * nat/mips-linux-watch.c: Likewise.
2039 * nat/mips-linux-watch.h: Likewise.
2040 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2041 (object file files): Reordered.
2042 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2043 of glibc_thread_db.h.
2045 2014-06-20 Gary Benson <gbenson@redhat.com>
2047 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2048 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2049 (i386_dr_low): Likewise.
2050 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2051 (i386_dr_low_set_addr): Likewise.
2052 (i386_dr_low_get_addr): Likewise.
2053 (i386_dr_low_can_set_control): Likewise.
2054 (i386_dr_low_set_control): Likewise.
2055 (i386_dr_low_get_control): Likewise.
2056 (i386_dr_low_get_status): Likewise.
2057 (i386_get_debug_register_length): Likewise.
2058 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2059 (i386_dr_low): Likewise.
2060 * nat/i386-dregs.c (i386-low.h): Remove include.
2061 (i386-nat.h): Likewise.
2062 (nat/i386-dregs.h): New include.
2063 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2064 (i386_dr_low_set_addr): Likewise.
2065 (i386_dr_low_get_addr): Likewise.
2066 (i386_dr_low_can_set_control): Likewise.
2067 (i386_dr_low_set_control): Likewise.
2068 (i386_dr_low_get_control): Likewise.
2069 (i386_dr_low_get_status): Likewise.
2070 (i386_get_debug_register_length): Likewise.
2071 (debug_hw_points): Likewise.
2073 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2075 * Makefile.in (SFILES): Add d-exp.y.
2076 (YYFILES): Add d-exp.c.
2077 (YYOBJ): Add d-exp.o.
2078 (local-maintainer-clean): Delete d-exp.c.
2079 * d-exp.y: New file.
2080 * d-lang.h (d_parse): New declaration.
2081 (d_error): New declaration.
2082 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2083 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2084 PREC_ORDER operators.
2085 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2087 2014-06-19 Yao Qi <yao@codesourcery.com>
2089 * gdbthread.h (any_running): Remove the declaration.
2090 * thread.c (any_running): Remove.
2092 2014-06-19 Yao Qi <yao@codesourcery.com>
2094 * gdbthread.h (struct thread_info) <state>: Change its type to
2095 'enum thread_state'. Update comments.
2097 2014-06-19 Pedro Alves <palves@redhat.com>
2099 * gdbthread.h (ALL_THREADS): Delete.
2100 (ALL_NON_EXITED_THREADS): New macro.
2101 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2102 instead of ALL_THREADS.
2103 * infrun.c (find_thread_needs_step_over)
2104 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2105 instead of ALL_THREADS.
2106 * record-btrace.c (record_btrace_open)
2107 (record_btrace_stop_recording, record_btrace_close)
2108 (record_btrace_is_replaying, record_btrace_resume)
2109 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2110 * remote.c (append_pending_thread_resumptions): Likewise.
2111 * thread.c (thread_apply_all_command): Likewise.
2113 2014-06-19 Gary Benson <gbenson@redhat.com>
2115 * i386-nat.c (i386_stopped_by_watchpoint):
2116 Use i386_dr_stopped_by_watchpoint.
2117 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2118 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2120 2014-06-19 Gary Benson <gbenson@redhat.com>
2122 * nat/i386-dregs.c: New file.
2123 * Makefile.in (i386-dregs.o): New rule.
2124 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2125 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2126 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2127 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2128 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2129 * config/i386/go32.mh (NATDEPFILES): Likewise.
2130 * config/i386/linux.mh (NATDEPFILES): Likewise.
2131 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2132 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2133 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2134 * i386-nat.h (debug_hw_points): New declaration.
2135 * i386-nat.c (breakpoint.h): Remove include.
2136 (command.h): Likewise.
2137 (target.h): Likewise.
2138 (gdb_assert.h): Likewise.
2139 (debug_hw_points): Made nonstatic.
2140 (debug_printf): Now in i386-dregs.c.
2141 (TARGET_HAS_DR_LEN_8): Likewise.
2142 (DR_CONTROL_SHIFT): Likewise.
2143 (DR_CONTROL_SIZE): Likewise.
2144 (DR_RW_EXECUTE): Likewise.
2145 (DR_RW_WRITE): Likewise.
2146 (DR_RW_READ): Likewise.
2147 (DR_RW_IORW): Likewise.
2148 (DR_LEN_1): Likewise.
2149 (DR_LEN_2): Likewise.
2150 (DR_LEN_4): Likewise.
2151 (DR_LEN_8): Likewise.
2152 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2153 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2154 (DR_ENABLE_SIZE): Likewise.
2155 (DR_LOCAL_SLOWDOWN): Likewise.
2156 (DR_GLOBAL_SLOWDOWN): Likewise.
2157 (DR_CONTROL_RESERVED): Likewise.
2158 (I386_DR_CONTROL_MASK): Likewise.
2159 (I386_DR_VACANT): Likewise.
2160 (I386_DR_LOCAL_ENABLE): Likewise.
2161 (I386_DR_GLOBAL_ENABLE): Likewise.
2162 (I386_DR_DISABLE): Likewise.
2163 (I386_DR_SET_RW_LEN): Likewise.
2164 (I386_DR_GET_RW_LEN): Likewise.
2165 (I386_DR_WATCH_HIT): Likewise.
2166 (i386_wp_op_t): Likewise.
2167 (i386_show_dr): Likewise.
2168 (i386_length_and_rw_bits): Likewise.
2169 (i386_insert_aligned_watchpoint): Likewise.
2170 (i386_remove_aligned_watchpoint): Likewise.
2171 (i386_handle_nonaligned_watchpoint): Likewise.
2172 (i386_update_inferior_debug_regs): Likewise.
2173 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2174 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2175 (i386_region_ok_for_watchpoint):
2176 Use i386_dr_region_ok_for_watchpoint.
2177 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2179 2014-06-19 Gary Benson <gbenson@redhat.com>
2181 * i386-nat.c (i386_insert_hw_breakpoint): Use
2182 i386_insert_watchpoint.
2183 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2185 2014-06-19 Gary Benson <gbenson@redhat.com>
2187 * i386-nat.c (i386_dr_show): Renamed to
2188 i386_show_dr and made static. All uses updated.
2189 (i386_dr_length_and_rw_bits): Renamed to
2190 i386_length_and_rw_bits and made static.
2192 (i386_dr_insert_aligned_watchpoint): Renamed to
2193 i386_insert_aligned_watchpoint and made static.
2195 (i386_dr_remove_aligned_watchpoint): Renamed to
2196 i386_remove_aligned_watchpoint and made static.
2198 (i386_dr_update_inferior_debug_regs): Renamed to
2199 i386_update_inferior_debug_regs and made static.
2201 * nat/i386-dregs.h (i386_dr_show): Removed.
2202 (i386_dr_length_and_rw_bits): Likewise.
2203 (i386_dr_insert_aligned_watchpoint): Likewise.
2204 (i386_dr_remove_aligned_watchpoint): Likewise.
2205 (i386_dr_update_inferior_debug_regs): Likewise.
2207 2014-06-19 Gary Benson <gbenson@redhat.com>
2209 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2210 * configure: Regenerate.
2211 * config.in: Likewise.
2212 * main.c (signal.h): New include.
2213 (setup_alternate_signal_stack): New function.
2214 (captured_main): Call the above.
2215 * cp-support.c (signal.h): New include.
2216 (catch_demangler_crashes): New flag.
2217 (SIGJMP_BUF): New define.
2218 (SIGSETJMP): Likewise.
2219 (SIGLONGJMP): Likewise.
2220 (gdb_demangle_jmp_buf): New static global.
2221 (gdb_demangle_attempt_core_dump): Likewise.
2222 (gdb_demangle_signal_handler): New function.
2223 (gdb_demangle): If catch_demangler_crashes is set, install the
2224 above signal handler before calling bfd_demangle, and restore
2225 the original signal handler afterwards. Display the offending
2226 symbol and call demangler_warning the first time a segmentation
2228 (_initialize_cp_support): New maint set/show command.
2230 2014-06-19 Gary Benson <gbenson@redhat.com>
2232 * utils.h (resource_limit_kind): New enum.
2233 (can_dump_core): New declaration.
2234 (warn_cant_dump_core): Likewise.
2235 (dump_core): Likewise.
2236 * utils.c (dump_core): Made nonstatic. Added new
2237 parameter "limit_kind".
2238 (can_dump_core): Made nonstatic. Moved printing code to...
2239 (warn_cant_dump_core): New function.
2240 (can_dump_core_warn): Likewise.
2241 (internal_vproblem): Replace calls to can_dump_core with
2242 calls to can_dump_core_warn. Supply new argument to each.
2244 2014-06-19 Gary Benson <gbenson@redhat.com>
2246 * utils.h (demangler_vwarning): New declaration.
2247 (demangler_warning): Likewise.
2248 * utils.c (struct internal_problem)
2249 <user_settable_should_quit>: New field.
2250 <user_settable_should_dump_core>: Likewise
2251 (internal_error_problem): Add values for above new fields.
2252 (internal_warning_problem): Likewise.
2253 (demangler_warning_problem): New static global.
2254 (demangler_vwarning): New function.
2255 (demangler_warning): Likewise.
2256 (add_internal_problem_command): Selectively add commands.
2257 (_initialize_utils): New internal problem command.
2258 * maint.c (maintenance_demangler_warning): New function.
2259 (_initialize_maint_cmds): New command.
2261 2014-06-18 Tom Tromey <tromey@redhat.com>
2263 * f-valprint.c (info_common_command_for_block): Update.
2264 * symtab.h (struct general_symbol_info) <common_block>: Now
2267 2014-06-18 Tom Tromey <tromey@redhat.com>
2269 * symtab.h (struct symtab) <blockvector>: Now const.
2270 * ada-lang.c (ada_add_global_exceptions): Update.
2271 * buildsym.c (augment_type_symtab): Update.
2272 * dwarf2read.c (dw2_lookup_symbol): Update.
2273 * jit.c (finalize_symtab): Update.
2274 * jv-lang.c (add_class_symtab_symbol): Update.
2275 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2277 * objfiles.c (objfile_relocate1): Update.
2278 * psymtab.c (lookup_symbol_aux_psymtabs)
2279 (maintenance_check_psymtabs): Update.
2280 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2282 * spu-tdep.c (spu_catch_start): Update.
2283 * symmisc.c (dump_symtab_1): Update.
2284 * symtab.c (lookup_global_symbol_from_objfile)
2285 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2286 (basic_lookup_transparent_type_quick)
2287 (basic_lookup_transparent_type, find_pc_sect_symtab)
2288 (find_pc_sect_line, search_symbols): Update.
2289 * block.c (find_block_in_blockvector): Make "bl" const.
2290 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2292 (blockvector_contains_pc): Make "bv" const.
2293 (block_for_pc_sect): Update.
2294 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2295 (blockvector_contains_pc): Update.
2296 * breakpoint.c (resolve_sal_pc): Update.
2297 * inline-frame.c (block_starting_point_at): Update.
2299 2014-06-18 Tom Tromey <tromey@redhat.com>
2301 * completer.c (complete_line): Make "line_buffer" const.
2302 * completer.h (complete_line): Update.
2304 2014-06-18 Tom Tromey <tromey@redhat.com>
2306 * symtab.c (add_macro_name): Remove unneeded cast.
2308 2014-06-18 Tom Tromey <tromey@redhat.com>
2310 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2311 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2313 2014-06-18 Tom Tromey <tromey@redhat.com>
2315 * probe.c (info_probes_for_ops): Make "arg" const.
2316 * probe.h (info_probes_for_ops): Update.
2318 2014-06-18 Tom Tromey <tromey@redhat.com>
2320 * varobj.c (varobj_create): Update.
2321 * valops.c (value_of_this): Update.
2322 * tracepoint.c (add_local_symbols, scope_info): Update.
2323 * symtab.h (struct general_symbol_info) <block>: Now const.
2324 * symtab.c (skip_prologue_sal)
2325 (default_make_symbol_completion_list_break_on)
2326 (skip_prologue_using_sal): Update.
2327 * stack.h (iterate_over_block_locals)
2328 (iterate_over_block_local_vars): Update.
2329 * stack.c (print_frame_args): Update.
2330 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2332 (get_selected_block): Make return type const.
2333 * python/py-frame.c (frapy_block): Update.
2334 * python/py-block.c (gdbpy_block_for_pc): Update.
2335 * p-exp.y (%union) <bval>: Now const.
2336 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2337 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2338 * m2-exp.y (%union) <bval>: Now const.
2339 * linespec.c (get_current_search_block): Make return type const.
2340 (create_sals_line_offset, find_label_symbols): Update.
2341 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2343 (block_starting_point_at): Make "block" const.
2344 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2345 (check_exception_resume): Update.
2346 * guile/scm-frame.c (gdbscm_frame_block): Update.
2347 * guile/scm-block.c (gdbscm_lookup_block): Update.
2348 * frame.h (get_frame_block): Update.
2349 (get_selected_block): Make return type const.
2350 * frame.c (frame_id_inner): Update.
2351 * f-valprint.c (info_common_command_for_block)
2352 (info_common_command): Update.
2353 * dwarf2loc.c (dwarf2_find_location_expression)
2354 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2355 (locexpr_describe_location_piece): Update.
2356 * c-exp.y (%union) <bval>: Now const.
2357 * breakpoint.c (resolve_sal_pc): Update.
2358 * blockframe.c (get_frame_block):Make return type const.
2359 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2360 (block_innermost_frame): Update.
2361 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2362 (block_for_pc, block_for_pc_sect): Update.
2363 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2365 (block_for_pc_sect, block_for_pc): Make return type const.
2366 * ax-gdb.c (gen_expr): Update.
2367 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2368 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2369 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2370 (ada_read_var_value): Update.
2371 * ada-exp.y (struct name_info) <block>: Now const.
2373 (block_lookup): Constify.
2375 2014-06-18 Gary Benson <gbenson@redhat.com>
2377 * nat/i386-dregs.h: New file.
2378 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2379 * i386-nat.h (i386-dregs.h): New include.
2380 (DR_FIRSTADDR): Now in i386-dregs.h.
2381 (DR_LASTADDR): Likewise.
2382 (DR_NADDR): Likewise.
2383 (DR_STATUS): Likewise.
2384 (DR_CONTROL): Likewise.
2385 (i386_debug_reg_state): Likewise.
2386 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2388 2014-06-18 Don Breazeal <donb@codesourcery.com>
2390 * breakpoint.c (set_longjmp_breakpoint): Call
2391 momentary_breakpoint_from_master with additional argument.
2392 (set_longjmp_breakpoint_for_call_dummy): Call
2393 momentary_breakpoint_from_master with additional argument.
2394 (set_std_terminate_breakpoint): Call
2395 momentary_breakpoint_from_master with additional argument.
2396 (momentary_breakpoint_from_master): Add argument to function
2397 definition and use it to initialize structure member flag.
2398 (clone_momentary_breakpoint): Call
2399 momentary_breakpoint_from_master with additional argument.
2400 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2401 member flags set in momentary_breakpoint_from_master.
2403 2014-06-18 Gary Benson <gbenson@redhat.com>
2405 * i386-nat.c (i386_show_dr): Renamed to
2406 i386_dr_show and made nonstatic. All uses updated.
2407 (i386_length_and_rw_bits): Renamed to
2408 i386_dr_length_and_rw_bits and made nonstatic.
2410 (i386_insert_aligned_watchpoint): Renamed to
2411 i386_dr_insert_aligned_watchpoint and made nonstatic.
2413 (i386_remove_aligned_watchpoint): Renamed to
2414 i386_dr_remove_aligned_watchpoint and made nonstatic.
2416 (i386_update_inferior_debug_regs): Renamed to
2417 i386_dr_update_inferior_debug_regs and made nonstatic.
2420 2014-06-18 Gary Benson <gbenson@redhat.com>
2422 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2423 (i386_dr_low_can_set_control): Likewise.
2424 (i386_dr_low_set_addr): Likewise.
2425 (i386_dr_low_set_control): Likewise.
2426 (i386_dr_low_get_addr): Likewise.
2427 (i386_dr_low_get_status): Likewise.
2428 (i386_dr_low_get_control): Likewise.
2429 (i386_insert_aligned_watchpoint): Use new macros.
2430 (i386_update_inferior_debug_regs): Likewise.
2431 (i386_stopped_data_address): Likewise.
2433 2014-06-18 Gary Benson <gbenson@redhat.com>
2435 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2436 New parameter. All uses updated.
2438 2014-06-18 Gary Benson <gbenson@redhat.com>
2440 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2443 2014-06-18 Gary Benson <gbenson@redhat.com>
2445 * i386-nat.c (debug_printf): New macro.
2446 (i386_get_debug_register_length): Likewise.
2447 (TARGET_HAS_DR_LEN_8): Use above macro.
2448 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2449 and printf_unfiltered. Use phex to format values.
2451 2014-06-18 Gary Benson <gbenson@redhat.com>
2453 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2456 2014-06-18 Gary Benson <gbenson@redhat.com>
2458 * i386-nat.c: Comment changes.
2460 2014-06-18 Gary Benson <gbenson@redhat.com>
2462 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2464 2014-06-18 Gary Benson <gbenson@redhat.com>
2466 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2467 (i386_insert_aligned_watchpoint): Likewise.
2468 (i386_remove_aligned_watchpoint): Likewise.
2469 (i386_handle_nonaligned_watchpoint): Likewise.
2471 2014-06-18 Gary Benson <gbenson@redhat.com>
2473 * i386-nat.c: Whitespace changes.
2475 2014-06-17 Samuel Bronson <naesten@gmail.com>
2477 * MAINTAINERS: Update Roland McGrath's email address.
2478 Thanks to Sergio Durigan Junior for pointing out that he left
2479 Red Hat a while ago, and giving me a current address.
2481 2014-06-17 Tom Tromey <tromey@redhat.com>
2483 * utils.h (savestring): Remove declaration.
2485 2014-06-17 Tom Tromey <tromey@redhat.com>
2487 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2489 2014-06-16 Keith Seitz <keiths@redhat.com>
2492 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2493 to update the varobj if inferior_ptid is null_ptid.
2495 2014-06-16 Tom Tromey <tromey@redhat.com>
2497 * target.h (struct target_ops) <to_info_proc>: Make parameter
2499 (target_info_proc): Update.
2500 * target.c (target_info_proc): Make "args" const.
2501 * procfs.c (procfs_info_proc): Update.
2502 * linux-tdep.c (linux_info_proc): Update.
2503 (linux_core_info_proc_mappings): Make "args" const.
2504 (linux_core_info_proc): Update.
2505 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2506 * gdbarch.c: Rebuild.
2507 * gdbarch.h: Rebuild.
2508 * corelow.c (core_info_proc): Update.
2510 2014-06-16 Tom Tromey <tromey@redhat.com>
2512 * target.h (struct target_ops) <to_disconnect>: Make parameter
2514 (target_disconnect): Update.
2515 * target.c (target_disconnect): Make "args" const.
2516 * target-delegates.c: Rebuild.
2517 * remote.c (remote_disconnect): Update.
2518 * record.h (record_disconnect): Update.
2519 * record.c (record_disconnect): Update.
2520 * inf-child.c (inf_child_disconnect): Update.
2522 2014-06-16 Tom Tromey <tromey@redhat.com>
2524 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2525 * target.c (debug_to_rcmd, default_rcmd): Update.
2526 * target-delegates.c: Rebuild.
2527 * remote.c (remote_rcmd): Update.
2528 * monitor.c (monitor_rcmd): Update.
2530 2014-06-16 Pedro Alves <palves@redhat.com>
2532 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2533 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2534 have OBJF_SHARED set.
2535 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2536 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2537 instead of OBJF_USERLOADED.
2538 * objfiles.h (OBJF_SHARED): Update comment.
2539 (userloaded_objfile_contains_address_p): Rename to ...
2540 (shared_objfile_contains_address_p): ... this, and update
2542 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2544 (remove_symbol_file_command): Skip objfiles that don't have
2547 2014-06-16 Tom Tromey <tromey@redhat.com>
2549 * minsyms.h (prim_record_minimal_symbol)
2550 (prim_record_minimal_symbol_and_info): Update comments.
2552 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2554 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2555 or --without-guile, according to how GDB was built.
2557 2014-06-13 Tom Tromey <tromey@redhat.com>
2559 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2561 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2563 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2565 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2566 help_list.Pass all_commands, not -1, to help_list.
2567 * cli/cli-dump.c (dump_command, append_command)
2568 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2569 (binary_dump_command, binary_append_command): Pass all_commands,
2570 not -1, to help_list.
2571 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2573 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2575 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2577 * top.c (set_history): Pass all_commands, not -1, to help_list.
2578 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2579 all_commands, not -1, to help_list.
2580 * symfile.c (overlay_command): Pass all_commands, not -1, to
2582 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2584 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2586 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2588 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2589 not -1, to help_list.
2590 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2591 not -1, to help_list.
2592 * maint.c (maintenance_command, maintenance_info_command)
2593 (maintenance_print_command, maintenance_set_cmd): Pass
2594 all_commands, not -1, to help_list.
2595 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2597 * language.c (set_check): Pass all_commands, not -1, to help_list.
2598 * infcmd.c (unset_command): Pass all_commands, not -1, to
2600 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2602 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2604 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2606 * breakpoint.c (save_command): Pass all_commands, not -1, to
2608 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2609 all_commands, not -1, to help_list.
2611 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2613 * regcache.c (struct register_to_invalidate): New structure.
2614 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2616 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2618 2014-06-12 Yao Qi <yao@codesourcery.com>
2620 * varobj.c (varobj_get_num_children): Call
2621 varobj_is_dynamic_p.
2622 (varobj_list_children): Likewise.
2623 (varobj_update): Likewise. Update comments.
2625 2014-06-12 Yao Qi <yao@codesourcery.com>
2627 * varobj.c (varobj_pretty_printed_p): Rename to ...
2628 (varobj_is_dynamic_p): ... this. New function.
2629 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2630 (varobj_is_dynamic_p): Declare.
2631 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2632 (mi_print_value_p, varobj_update_one): Likewise.
2634 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2635 Yao Qi <yao@codesourcery.com>
2637 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2638 (varobj_get_iterator): Wrap up code for pretty-printer by
2639 "#if HAVE_PYTHON" and "#endif".
2640 (update_dynamic_varobj_children): Likewise.
2642 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2643 Yao Qi <yao@codesourcery.com>
2645 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2646 gdb_python_initialized is false. Move some code from varobj.c.
2647 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2648 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2649 (struct varobj_item): Moved to varobj-iter.h".
2650 (varobj_clear_saved_item): New function.
2651 (update_dynamic_varobj_children): Move python-related code to
2653 (free_variable): Call varobj_clear_saved_item and
2656 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2657 Yao Qi <yao@codesourcery.com>
2659 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2660 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2661 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2662 (py-varobj.o): New rule.
2663 * python/py-varobj.c: New file.
2664 * python/python-internal.h (py_varobj_get_iterator): Declare.
2665 * varobj-iter.h: New file.
2666 * varobj.c: Include "varobj-iter.h"
2667 (struct varobj) <child_iter>: Change its type from "PyObject *"
2668 to "struct varobj_iter *".
2669 <saved_item>: Likewise.
2670 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2671 [HAVE_PYTHON] (varobj_get_iterator): New function.
2672 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2673 python-specific code to python/py-varobj.c.
2674 (install_visualizer): Call varobj_iter_delete instead of
2676 * varobj.h (varobj_ensure_python_env): Declare.
2678 2014-06-12 Yao Qi <yao@codesourcery.com>
2680 * varobj.c (struct varobj_item): New structure.
2681 (create_child_with_value): Update declaration.
2682 (varobj_add_child): Replace arguments 'name' and 'value' with
2683 'item'. All callers updated.
2684 (install_dynamic_child): Likewise.
2685 (update_dynamic_varobj_children): Likewise.
2686 (varobj_add_child): Likewise.
2687 (create_child_with_value): Likewise.
2689 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2691 * NEWS: Create a new section for the next release branch.
2692 Rename the section of the current branch, now that it has
2695 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2697 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2698 * version.in: Bump version to 7.8.50.DATE-cvs.
2700 2014-06-11 Pedro Alves <palves@redhat.com>
2703 * ser-mingw.c (net_windows_socket_check_pending): New function.
2704 (net_windows_select_thread): Ignore spurious wakeups. Use
2705 net_windows_socket_check_pending.
2706 (net_windows_wait_handle): Check for pending events with
2707 ioctlsocket, through net_windows_socket_check_pending, instead of
2708 checking the socket's event.
2710 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2712 * python/python-internal.h (gdb_PyObject_GetAttrString)
2713 (gdb_PyObject_HasAttrString): New inline function definitions.
2714 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2715 char * of the second argument to PyObject_GetAttrString.
2717 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2719 * serial.c (serial_write): Fix index of character to be printed
2720 in call to serial_logchar when serial debug traces are enabled.
2722 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2724 * gdbtypes (resolve_dynamic_range): Add function description.
2726 2014-06-09 Pedro Alves <palves@redhat.com>
2728 * linux-nat.c (linux_child_follow_fork): Initialize status with
2729 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2730 inner block. Only pass the signal to PTRACE_DETACH if in pass
2733 2014-06-09 Gary Benson <gbenson@redhat.com>
2735 * common/signals.c (gdb_signal_from_host): Reorder to separate
2736 the always-available ANSI-standard signals from the signals that
2738 (do_gdb_signal_to_host): Likewise.
2739 * proc-events.c (signal_table): Likewise.
2741 2014-06-08 Hui Zhu <hui@codesourcery.com>
2743 * common/linux-ptrace.c (linux_disable_event_reporting): New
2745 * common/linux-ptrace.h (linux_disable_event_reporting): New
2747 * linux-nat.c (linux_child_follow_fork): Do a single step before
2750 2014-06-07 Keith Seitz <keiths@redhat.com>
2754 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2755 from symbol_matches_domain in symtab.c. All local callers
2756 of symbol_matches_domain updated.
2757 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2758 search STRUCT_DOMAIN.
2759 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2760 independently. standard_lookup will do that automatically.
2761 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2762 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2763 (cp_lookup_symbol_in_namespace): Likewise.
2764 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2765 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2766 may return a STRUCT_DOMAIN match.
2767 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2768 * cp-support.c: Include language.h.
2769 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2771 * psymtab.c (match_partial_symbol): Compare the requested
2772 domain with the symbol's domain directly.
2773 (lookup_partial_symbol): Likewise.
2774 * symtab.c (lookup_symbol_in_language): Explain when/why
2775 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2776 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2777 appropriate languages.
2778 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2779 and moved to ada-lang.c
2780 (lookup_block_symbol): Explain that this function only returns
2781 symbol matching the requested DOMAIN.
2782 Compare the requested domain with the symbol's domain directly.
2783 (iterate_over_symbols): Compare the requested domain with the
2784 symbol's domain directly.
2785 * symtab.h (symbol_matches_domain): Remove.
2787 2014-06-06 Doug Evans <xdje42@gmail.com>
2789 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2790 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2791 (gdbscm_guile_version_is_at_least): Declare.
2792 (gdbscm_scm_string_to_int): Declare.
2793 * guile/guile.c (gdbscm_guile_major_version): New global.
2794 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2795 (guile_datadir): New static global.
2796 (gdbscm_guile_data_directory): New function.
2797 (initialize_scheme_side): Update.
2798 (misc_guile_functions): Add guile-data-directory.
2799 (initialize_gdb_module): Fetch guile version number.
2800 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2801 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2802 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2803 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2805 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2806 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2807 * guile/scm-value.c (gdbscm_value_to_string): Only call
2808 scm_port_conversion_strategy if Guile version >= 2.0.6.
2810 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2812 * main.c (print_gdb_help): Add -q and --silent.
2814 2014-06-06 Gary Benson <gbenson@redhat.com>
2816 * common/signals.c: Remove preprocessor conditionals for
2817 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2818 SIGSEGV and SIGTERM.
2819 * proc-events.c: Likewise.
2821 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2823 * symfile.c (symfile_free_objfile): Remove restriction to
2825 * symfile-mem.c (symbol_file_add_from_memory): Call
2826 add_target_sections_of_objfile.
2828 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2830 * guile/scm-value.c (gdbscm_history_append_x): Use
2831 'vlscm_get_value_smob_arg_unsafe' instead of
2832 'vlscm_scm_to_value'.
2834 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2837 * utils.c (printchar): Don't escape at all if quoter is NUL.
2838 Update function documentation to clarify effect of parameter
2840 * remote.c (escape_buffer): Pass '\\' as the quoter to
2841 fputstrn_unfiltered.
2842 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2843 generate the output.
2844 (mi_solib_unloaded): Same.
2846 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2848 * development.sh: Delete.
2849 * Makefile.in (config.status): Adjust dependency on development.sh.
2850 * configure.ac: Adjust development.sh source call.
2851 * configure: Regenerate.
2853 2014-06-04 Doug Evans <xdje42@gmail.com>
2855 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2856 is_scheme_bkpt, spec.
2857 (bpscm_make_breakpoint_smob): Initialize new members.
2858 (gdbscm_create_breakpoint_x): Split into two ...
2859 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2860 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2861 (scheme_function breakpoint_functions): Update.
2862 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2863 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2864 register-breakpoint!.
2866 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2869 * mem-break.c (z_type_supported): Return zero if
2870 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2872 2014-06-04 Tom Tromey <tromey@redhat.com>
2874 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2875 value_from_contents_and_address_unresolved.
2876 (ada_template_to_fixed_record_type_1): Likewise.
2877 (ada_which_variant_applies): Likewise.
2878 * value.h (value_from_contents_and_address_unresolved): Declare.
2879 * value.c (value_from_contents_and_address_unresolved): New
2881 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2882 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2883 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2885 2014-06-04 Tom Tromey <tromey@redhat.com>
2887 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2889 2014-06-04 Tom Tromey <tromey@redhat.com>
2891 * procfs.c (procfs_attach): Make "args" const.
2892 * windows-nat.c (windows_attach): Make "args" const.
2893 * nto-procfs.c (procfs_attach): Make "args" const.
2894 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2895 * go32-nat.c (go32_attach): Make "args" const.
2896 * gnu-nat.c (gnu_attach): Make "args" const.
2897 * darwin-nat.c (darwin_attach): Make "args" const.
2898 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2899 * linux-nat.c (linux_nat_attach): Make "args" const.
2900 * remote.c (extended_remote_attach_1, extended_remote_attach):
2902 * target.h (struct target_ops) <to_attach>: Make "args" const.
2903 (find_default_attach): Likewise.
2904 * utils.c (parse_pid_to_attach): Make "args" const.
2905 * utils.h (parse_pid_to_attach): Update.
2907 2014-06-04 Tom Tromey <tromey@redhat.com>
2909 * target-delegates.c: Rebuild.
2910 * target.c (default_thread_address_space): New function.
2911 (target_thread_address_space): Simplify.
2912 * target.h (struct target_ops) <to_thread_address_space>: Add
2913 TARGET_DEFAULT_FUNC.
2915 2014-06-04 Doug Evans <xdje42@gmail.com>
2917 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2919 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2921 * record-btrace.c: Include event-loop.h and inf-loop.h.
2922 (record_btrace_resume_exec_dir)
2923 (record_btrace_async_inferior_event_handler)
2924 (record_btrace_handle_async_inferior_event): New.
2925 (record_btrace_open): Create async event handler.
2926 (record_btrace_close): Delete async event handler.
2927 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2928 Mark async event handler.
2929 (record_btrace_execution_direction): New.
2930 (init_record_btrace_ops): Initialize to_execution_direction.
2932 2014-06-03 Doug Evans <xdje42@gmail.com>
2934 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2935 (gdbscm_make_parameter): Ditto.
2937 2014-06-03 Doug Evans <dje@google.com>
2939 * exec.c (exec_close_1): Call clear_section_table instead of
2940 resize_section_table.
2941 (clear_section_table): New function.
2942 (resize_section_table): Make static. Rename arg num_added to
2944 * exec.h (clear_section_table): Declare.
2945 (resize_section_table): Delete.
2946 * progspace.c (release_program_space): Call clear_section_table
2947 instead of resize_section_table.
2949 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2951 * NEWS (Python Scripting): Add entry about the new xmethods
2954 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2956 * python/py-xmethods.c: New file.
2957 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2958 (objfpy_dealloc): XDECREF on the new xmethods field.
2959 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2961 (objfpy_get_xmethods): New function.
2962 (objfile_getset): New entry 'xmethods'.
2963 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2964 (pspy_dealloc): XDECREF on the new xmethods field.
2965 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2967 (pspy_get_xmethods): New function.
2968 (pspace_getset): New entry 'xmethods'.
2969 * python/python-internal.h: Add declarations for new functions.
2970 * python/python.c (_initialize_python): Invoke
2971 gdbpy_initialize_xmethods.
2972 * python/lib/gdb/__init__.py (xmethods): New
2974 * python/lib/gdb/xmethod.py: New file.
2975 * python/lib/gdb/command/xmethods.py: New file.
2977 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2979 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2980 best match method returned by find_overload_match is an xmethod.
2981 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2982 the best matching operator returned by find_overload_match is an
2984 * valops.c: #include "extension.h".
2985 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2986 Return void. The list of matching source methods is returned in
2987 "fn_list" and a vector of matching debug method workers is
2988 returned in "xm_worker_vec". Update all callers.
2989 (value_find_oload_method_list): Likewise.
2990 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2991 non-NULL, then the index of the best matching method in this
2992 vector is returned. Update all callers.
2993 (find_overload_match): Include xmethods while performing overload
2996 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2998 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2999 * extension-priv.h (struct extension_language_ops): Add the
3001 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3002 get_matching_xmethod_workers, get_xmethod_argtypes,
3003 invoke_xmethod, free_xmethod_worker,
3004 free_xmethod_worker_vec): New functions.
3005 * extension.h: #include "common/vec.h".
3006 New function declarations.
3007 (struct xmethod_worker): New struct.
3008 (VEC (xmethod_worker_ptr)): New vector type.
3009 (xmethod_worker_ptr): New typedef.
3010 (xmethod_worker_vec): Likewise.
3011 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3013 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3014 (struct builtin_type): New field "xmethod".
3015 * valarith.c (value_ptradd): Assert that the value argument is not
3017 * valops.c (value_must_coerce_to_target): Return 0 for
3018 lval_xcallable values.
3019 * value.c (struct value): New field XM_WORKER in the field
3021 (value_address, value_raw_address): Return 0 for lval_xcallable
3023 (set_value_address): Assert that the value is not an
3025 (value_free): Free the associated xmethod worker when freeing
3026 lval_xcallable values.
3027 (set_value_component_location): Assert that the WHOLE value is not
3029 (value_of_xmethod, call_xmethod): New functions.
3030 * value.h: Declare "struct xmethod_worker".
3031 Declare new functions value_of_xmethod, call_xmethod.
3033 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3034 Pedro Alves <palves@redhat.com>
3036 PR breakpoints/17000
3037 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3038 New function, extracted from software_breakpoint_inserted_here_p.
3039 (software_breakpoint_inserted_here_p): Replace factored out code
3040 by call to find_non_raw_software_breakpoint_inserted_here.
3041 (bp_target_info_copy_insertion_state): New function.
3042 (bkpt_insert_location): Handle the case of a single-step
3043 breakpoint already inserted at the same address.
3044 (bkpt_remove_location): Handle the case of a single-step
3045 breakpoint still inserted at the same address.
3046 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3047 breakpoint already inserted at the same address.
3048 (deprecated_remove_raw_breakpoint): Handle the case of a
3049 non-raw breakpoint still inserted at the same address.
3050 (find_single_step_breakpoint): New function, extracted from
3051 single_step_breakpoint_inserted_here_p.
3052 (find_single_step_breakpoint): New function,
3053 factored out from single_step_breakpoint_inserted_here_p.
3054 (single_step_breakpoint_inserted_here_p): Reimplement.
3056 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3058 Pushed by Joel Brobecker <brobecker@adacore.com>
3059 * source.c (show_substitute_path_command): Fix display of matching
3062 2014-06-03 Gary Benson <gbenson@redhat.com>
3064 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3066 2014-06-02 Doug Evans <xdje42@gmail.com>
3068 Add parameter support for Guile.
3069 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3070 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3071 (scm-param.o): New rule.
3072 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3073 (gdbscm_misc_error): Declare.
3074 (gdbscm_canonicalize_command_name): Declare.
3075 (gdbscm_scm_to_host_string): Declare.
3076 (gdbscm_scm_from_host_string): Declare.
3077 (gdbscm_initialize_parameters): Declare.
3078 * guile/guile.c (initialize_gdb_module): Call
3079 gdbscm_initialize_parameters.
3080 * guile/lib/gdb.scm: Export parameter symbols.
3081 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3082 cmdscm_canonicalize_name and made public. All callers updated.
3083 * guile/scm-exception.c (gdbscm_misc_error): New function.
3084 * guile/scm-param.c: New file.
3085 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3086 (gdbscm_scm_to_host_string): New function.
3087 (gdbscm_scm_from_host_string): New function.
3088 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3090 2014-06-02 Doug Evans <xdje42@gmail.com>
3092 Add command support for Guile.
3093 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3094 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3095 (scm-cmd.o): New rule.
3096 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3097 (gdbscm_user_error_p): Declare.
3098 (gdbscm_parse_command_name): Declare.
3099 (gdbscm_valid_command_class_p): Declare.
3100 (gdbscm_initialize_commands): Declare.
3101 * guile/guile.c (initialize_gdb_module): Call
3102 gdbscm_initialize_commands.
3103 * guile/lib/gdb.scm: Export command symbols.
3104 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3105 (throw-user-error): New function.
3106 * guile/scm-cmd.c: New file.
3107 * guile/scm-exception.c (user_error_symbol): New static global.
3108 (gdbscm_user_error_p): New function.
3109 (gdbscm_initialize_exceptions): Set user_error_symbol.
3110 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3112 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3114 * top.c (command_loop): Handle comments here...
3115 (command_line_input): ... not here.
3117 2014-06-02 Doug Evans <xdje42@gmail.com>
3119 Add progspace support for Guile.
3120 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3121 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3122 (scm-progspace.o): New rule.
3123 * guile/guile-internal.h (pspace_smob): New typedef.
3124 (psscm_pspace_smob_pretty_printers): Declare.
3125 (psscm_pspace_smob_from_pspace): Declare.
3126 (psscm_scm_from_pspace): Declare.
3127 * guile/guile.c (initialize_gdb_module): Call
3128 gdbscm_initialize_pspaces.
3129 * guile/lib/gdb.scm: Export progspace symbols.
3130 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3132 (append-pretty-printer!): Ditto.
3133 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3135 * guile/scm-progspace.c: New file.
3137 2014-06-03 Alan Modra <amodra@gmail.com>
3139 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3140 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3142 2014-06-02 Doug Evans <dje@google.com>
3144 Add support for skeletonless type units.
3145 * dwarf2read.c (struct dwarf2_per_objfile): New member
3146 n_allocated_type_units.
3147 (struct dwarf2_per_objfile) <tu_stats>: New member
3148 nr_all_type_units_reallocs.
3149 (create_signatured_type_table_from_index): Initialize
3150 n_allocated_type_units
3151 (create_all_type_units): Ditto.
3152 (add_type_unit): Move up in file. New arg slot.
3153 All callers updated. Increase space for all_type_units more
3155 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3156 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3157 (lookup_dwp_signatured_type): Ditto.
3158 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3159 All callers updated.
3160 (build_type_psymtabs_1): Leave type_unit_groups as
3161 NULL if no TUs present.
3162 (print_tu_stats): New function.
3163 (process_skeletonless_type_unit): New function.
3164 (process_dwo_file_for_skeletonless_type_units): New
3166 (process_skeletonless_type_units): New function.
3167 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3168 Call print tu_stats if debugging enabled.
3170 2014-06-02 Pedro Alves <palves@redhat.com>
3172 * breakpoint.c (build_target_command_list): Don't build a command
3173 list if we have any duplicate location that isn't a dprintf.
3175 2014-06-02 Pedro Alves <palves@redhat.com>
3177 * breakpoint.c (dprintf_breakpoint_hit): New function.
3178 (initialize_breakpoint_ops): Install it as dprintf's
3179 breakpoint_hit method.
3181 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3183 * source.c (substitute_path_rule_matches): Simplify using
3184 filename_ncmp instead of FILENAME_CMP.
3186 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3188 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3190 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3192 * configure.ac: When Guile is available, check for the
3193 availability of 'scm_new_smob'.
3194 * configure, config.h.in: Regenerate.
3195 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3198 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3200 * frame.c (struct frame_info): Add stop_string field.
3201 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3202 (get_prev_frame_always): Old content moved into
3203 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3204 TRY_CATCH, handle MEMORY_ERROR exceptions.
3205 (frame_stop_reason_string): New function definition.
3206 * frame.h (unwind_stop_reason_to_string): Extend comment to
3207 mention frame_stop_reason_string.
3208 (frame_stop_reason_string): New function declaration.
3209 * stack.c (frame_info): Switch to frame_stop_reason_string.
3210 (backtrace_command_1): Switch to frame_stop_reason_string.
3211 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3212 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3213 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3215 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3217 * frame.c (frame_stop_reason_string): Rename to ...
3218 (unwind_stop_reason_to_string): this.
3219 * frame.h (frame_stop_reason_string): Rename to ...
3220 (unwind_stop_reason_to_string): this.
3221 * stack.c (frame_info): Update call to frame_stop_reason_string.
3222 (backtrace_command_1): Likewise.
3223 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3224 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3226 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3228 * frame.c (remove_prev_frame): New function.
3229 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3232 2014-05-29 Pedro Alves <palves@redhat.com>
3234 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3235 and make it const. When a single-step decays to a continue,
3236 clear 'step', not 'hw_step'. Pass whether the caller wanted
3237 to step to user_visible_resume_ptid, not what we ask the
3240 2014-05-29 Pedro Alves <palves@redhat.com>
3242 * infrun.c (process_event_stop_test, handle_step_into_function)
3243 (handle_step_into_function_backward): Adjust.
3244 Don't set the even thread's stop_step and call stop_waiting before
3245 calling end_stepping_range. Instead do that ...
3246 (end_stepping_range): ... here. Take an ecs pointer parameter.
3248 2014-05-29 Pedro Alves <palves@redhat.com>
3250 * infrun.c (stop_stepping): Rename to ...
3251 (stop_waiting): ... this.
3252 (proceed): Update comment.
3253 (process_event_stop_test, handle_inferior_event)
3254 (handle_signal_stop, handle_step_into_function)
3255 (handle_step_into_function_backward): Update.
3257 2014-05-29 Pedro Alves <palves@redhat.com>
3259 * infcall.c (run_inferior_call): Don't check whether the current
3260 thread is running after the proceed call.
3262 2014-05-29 Pedro Alves <palves@redhat.com>
3263 Tom Tromey <tromey@redhat.com>
3265 * NEWS: Mention "maint set target-async", "set mi-async", and that
3266 background execution commands are now always available.
3267 * target.h (target_async_permitted): Update comment.
3268 * target.c (target_async_permitted, target_async_permitted_1):
3270 (set_target_async_command): Rename to ...
3271 (maint_set_target_async_command): ... this.
3272 (show_target_async_command): Rename to ...
3273 (maint_show_target_async_command): ... this.
3274 (_initialize_target): Adjust.
3275 * infcmd.c (prepare_execution_command): Make extern.
3276 * inferior.h (prepare_execution_command): Declare.
3277 * infrun.c (set_observer_mode): Leave target async alone.
3278 * mi/mi-interp.c (mi_interpreter_init): Install
3279 mi_on_sync_execution_done as sync_execution_done observer.
3280 (mi_on_sync_execution_done): New function.
3281 (mi_execute_command_input_handler): Don't print the prompt if we
3282 just started a synchronous command with an async target.
3283 (mi_on_resume): Check sync_execution before printing prompt.
3284 * mi/mi-main.h (mi_async_p): Declare.
3285 * mi/mi-main.c: Include gdbcmd.h.
3286 (mi_async_p): New function.
3287 (mi_async, mi_async_1): New globals.
3288 (set_mi_async_command, show_mi_async_command, mi_async): New
3290 (exec_continue): Call prepare_execution_command.
3291 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3292 (mi_execute_async_cli_command): Use mi_async_p.
3293 (_initialize_mi_main): Install "set mi-async". Make
3294 "target-async" a deprecated alias.
3296 2014-05-29 Pedro Alves <palves@redhat.com>
3298 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3299 (_initialize_cli_interp): Adjust.
3300 * event-loop.c: Include "observer.h".
3301 (start_event_loop): Notify 'command_error' observers instead of
3302 calling display_gdb_prompt. Remove FIXME comment.
3303 * event-top.c (display_gdb_prompt): Remove call into the
3305 * inf-loop.c: Include "observer.h".
3306 (inferior_event_handler): Notify 'command_error' observers instead
3307 of calling display_gdb_prompt.
3308 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3309 observers instead of calling display_gdb_prompt.
3310 * interps.c (interp_set): Don't call display_gdb_prompt.
3311 (current_interp_display_prompt_p): Delete.
3312 * interps.h (interp_prompt_p): Delete declaration.
3313 (interp_prompt_p_ftype): Delete.
3314 (struct interp_procs) <prompt_proc_p>: Delete field.
3315 (current_interp_display_prompt_p): Delete declaration.
3316 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3317 (_initialize_mi_interp): Adjust.
3318 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3319 'command_error' observers.
3320 (tui_on_sync_execution_done, tui_on_command_error): New
3322 (tui_display_prompt_p): Delete.
3323 (_initialize_tui_interp): Adjust.
3325 2014-05-29 Pedro Alves <palves@redhat.com>
3328 * cli/cli-interp.c: Include infrun.h and observer.h.
3329 (cli_uiout, cli_interp): New globals.
3330 (cli_on_signal_received, cli_on_end_stepping_range)
3331 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3333 (cli_interpreter_init): Install them as 'end_stepping_range',
3334 'signal_received' 'signal_exited', 'exited' and 'no_history'
3336 (_initialize_cli_interp): Remove cli_interp local.
3337 * infrun.c (handle_inferior_event): Call the several stop reason
3338 observers instead of printing the stop reason directly.
3339 (end_stepping_range): New function.
3340 (print_end_stepping_range_reason, print_signal_exited_reason)
3341 (print_exited_reason, print_signal_received_reason)
3342 (print_no_history_reason): Make static, and add an uiout
3343 parameter. Print to that instead of to CURRENT_UIOUT.
3344 * infrun.h (print_end_stepping_range_reason)
3345 (print_signal_exited_reason, print_exited_reason)
3346 (print_signal_received_reason print_no_history_reason): New
3348 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3350 <cli_uiout>: New field.
3351 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3352 uiout for CLI output. Install 'signal_received',
3353 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3355 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3356 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3357 (mi_on_no_history): New functions.
3358 (ui_out_free_cleanup): Delete function.
3359 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3360 instead use the one already stored in the MI interpreter data.
3361 (mi_ui_out): Adjust.
3362 * tui/tui-interp.c: Include infrun.h and observer.h.
3363 (tui_interp): New global.
3364 (tui_on_signal_received, tui_on_end_stepping_range)
3365 (tui_on_signal_exited, tui_on_exited)
3366 (tui_on_no_history): New functions.
3367 (tui_init): Install them as 'end_stepping_range',
3368 'signal_received' 'signal_exited', 'exited' and 'no_history'
3370 (_initialize_tui_interp): Delete tui_interp local.
3372 2014-05-29 Pedro Alves <palves@redhat.com>
3375 * linux-nat.c (linux_nat_resume_callback): Rename the second
3376 parameter to 'except'. Skip LP if it points to EXCEPT.
3377 (linux_nat_resume): Don't mark the event lwp as not stopped
3378 before resuming sibling lwps. Instead ask
3379 linux_nat_resume_callback to skip the event lwp. Mark it as not
3380 stopped after actually resuming it.
3381 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3383 (wait_lwp): Mark the lwp as stopped here.
3384 (stop_wait_callback): Mark the lwp as not stopped right after
3385 resuming it. Don't mark lwps as stopped here.
3386 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3387 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3389 2014-05-29 Pedro Alves <palves@redhat.com>
3392 * infrun.c (resume): Determine how much to resume depending on
3393 whether the caller wanted a step, not whether we can hardware step
3394 the target. Mark all threads that we intend to run as running,
3395 unless we're calling an inferior function.
3396 (normal_stop): If the thread is running an infcall, don't finish
3398 * target.c (target_resume): Don't mark threads as running here.
3400 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3402 * serial.c (_initialize_serial): Remove support for
3403 the "set remotebaud" and "show remotebaud" commands.
3404 * NEWS: Add entry documenting the removal of that command.
3406 2014-05-28 Yao Qi <yao@codesourcery.com>
3408 * charset.c: Fix typo in comments.
3410 2014-05-27 Gary Benson <gbenson@redhat.com>
3412 * utils.c (internal_vproblem): Prompt for a bug report.
3414 2014-05-26 Andy Wingo <wingo@igalia.com>
3416 * guile/scm-arch.c (arscm_mark_arch_smob):
3417 * guile/scm-block.c (bkscm_mark_block_smob)
3418 (bkscm_mark_block_syms_progress_smob):
3419 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3420 * guile/scm-exception.c (exscm_mark_exception_smob):
3421 * guile/scm-frame.c (frscm_mark_frame_smob):
3422 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3423 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3424 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3425 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3426 (ppscm_mark_pretty_printer_worker_smob):
3427 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3428 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3429 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3430 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3432 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3435 2014-05-26 Andy Wingo <wingo@igalia.com>
3436 Doug Evans <xdje42@gmail.com>
3438 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3439 empty_base_class. All uses updated.
3440 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3441 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3443 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3444 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3445 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3446 (gdbscm_gsmob_has_property_p, add_property_name)
3447 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3448 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3449 (gdb-object-has-property?, gdb-object-properties): Remove.
3450 (gdb-object-kind): Renamed from gsmob-kind.
3452 2014-05-26 Andy Wingo <wingo@igalia.com>
3454 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3455 * configure: Regenerate.
3457 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3459 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3461 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3463 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3464 (replay_memory_access_read_only, replay_memory_access_read_write)
3465 (replay_memory_access_types, replay_memory_access)
3466 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3467 (cmd_set_record_btrace, cmd_show_record_btrace)
3468 (cmd_show_replay_memory_access): New.
3469 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3470 (record_btrace_remove_breakpoint): Replace
3471 record_btrace_allow_memory_access with replay_memory_access.
3472 (_initialize_record_btrace): Add commands.
3473 * NEWS: Announce it.
3475 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3477 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3479 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3481 * MAINTAINERS (Write After Approval): Move self back from
3484 2014-05-22 Pedro Alves <palves@redhat.com>
3486 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3487 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3488 (disable_randomization, enum exec_direction_kind)
3489 (execution_direction, stop_registers, start_remote)
3490 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3491 (wait_for_inferior, normal_stop, get_last_target_status)
3492 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3493 (insert_step_resume_breakpoint_at_sal)
3494 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3495 (set_step_info, print_stop_event, signal_stop_state)
3496 (signal_print_state, signal_pass_state, signal_stop_update)
3497 (signal_print_update, signal_pass_update)
3498 (update_signals_program_target, clear_exit_convenience_vars)
3499 (displaced_step_dump_bytes, update_observer_mode)
3500 (signal_catch_update, gdb_signal_from_command): Move
3502 * infrun.h: ... to this new file.
3503 * amd64-tdep.c: Include infrun.h.
3504 * annotate.c: Include infrun.h.
3505 * arch-utils.c: Include infrun.h.
3506 * arm-linux-tdep.c: Include infrun.h.
3507 * arm-tdep.c: Include infrun.h.
3508 * break-catch-sig.c: Include infrun.h.
3509 * breakpoint.c: Include infrun.h.
3510 * common/agent.c: Include infrun.h instead of inferior.h.
3511 * corelow.c: Include infrun.h.
3512 * event-top.c: Include infrun.h.
3513 * go32-nat.c: Include infrun.h.
3514 * i386-tdep.c: Include infrun.h.
3515 * inf-loop.c: Include infrun.h.
3516 * infcall.c: Include infrun.h.
3517 * infcmd.c: Include infrun.h.
3518 * infrun.c: Include infrun.h.
3519 * linux-fork.c: Include infrun.h.
3520 * linux-nat.c: Include infrun.h.
3521 * linux-thread-db.c: Include infrun.h.
3522 * monitor.c: Include infrun.h.
3523 * nto-tdep.c: Include infrun.h.
3524 * procfs.c: Include infrun.h.
3525 * record-btrace.c: Include infrun.h.
3526 * record-full.c: Include infrun.h.
3527 * remote-m32r-sdi.c: Include infrun.h.
3528 * remote-mips.c: Include infrun.h.
3529 * remote-notif.c: Include infrun.h.
3530 * remote-sim.c: Include infrun.h.
3531 * remote.c: Include infrun.h.
3532 * reverse.c: Include infrun.h.
3533 * rs6000-tdep.c: Include infrun.h.
3534 * s390-linux-tdep.c: Include infrun.h.
3535 * solib-irix.c: Include infrun.h.
3536 * solib-osf.c: Include infrun.h.
3537 * solib-svr4.c: Include infrun.h.
3538 * target.c: Include infrun.h.
3539 * top.c: Include infrun.h.
3540 * windows-nat.c: Include infrun.h.
3541 * mi/mi-interp.c: Include infrun.h.
3542 * mi/mi-main.c: Include infrun.h.
3543 * python/py-threadevent.c: Include infrun.h.
3545 2014-05-22 Pedro Alves <palves@redhat.com>
3547 * infrun.c (handle_inferior_event): Store the exit code for
3548 --return-child-result here, instead of ...
3549 (print_exited_reason): ... here.
3551 2014-05-21 Pedro Alves <palves@redhat.com>
3554 * gdbthread.h (struct thread_control_state): New field
3556 * infrun.c (follow_fork): Copy the new thread control field to the
3558 (clear_proceed_status_thread): Clear the new thread control field.
3559 (proceed): Set the new thread control field.
3560 * interps.h (command_interp): Declare.
3561 * interps.c (command_interpreter): New global.
3562 (command_interp): New function.
3563 (interp_exec): Set `command_interpreter' while here.
3564 * cli-out.c (cli_uiout_dtor): New function.
3565 (cli_ui_out_impl): Install it.
3566 * mi/mi-interp.c: Include cli-out.h.
3567 (mi_cmd_interpreter_exec): Add comment.
3568 (restore_current_uiout_cleanup): New function.
3569 (ui_out_free_cleanup): New function.
3570 (mi_on_normal_stop): If finishing an execution command started by
3571 a CLI command, or any kind of breakpoint-like event triggered,
3572 print the stop event to the output (CLI) stream.
3573 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3575 2014-05-21 Pedro Alves <palves@redhat.com>
3577 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3578 current source line having changed.
3579 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3580 * infrun.c (normal_stop): Adjust call to
3581 set_current_sal_from_frame.
3582 * source.c (clear_lines_listed_range): New function.
3583 (set_current_source_symtab_and_line, identify_source_line): Clear
3584 the lines listed range.
3585 (line_info): Handle the first "info line" after the current source
3586 line having changed.
3587 * stack.c (print_stack_frame): Remove center handling.
3588 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3591 2014-05-21 Pedro Alves <palves@redhat.com>
3593 * inf-child.c (inf_child_mourn_inferior): New function.
3594 * inf-child.h (inf_child_mourn_inferior): New declaration.
3595 * darwin-nat.c (darwin_mourn_inferior): Use
3596 inf_child_mourn_inferior.
3597 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3598 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3599 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3600 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3601 * windows-nat.c (windows_mourn_inferior): Likewise.
3603 2014-05-21 Doug Evans <xdje42@gmail.com>
3605 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3607 2014-05-21 Doug Evans <xdje42@gmail.com>
3609 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3610 (gdbscm_out_of_range_error): Ditto.
3611 (gdbscm_memory_error): Ditto.
3612 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3613 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3614 (gdbscm_out_of_range_error): Update.
3615 (gdbscm_memory_error): Update.
3616 (gdbscm_scm_to_target_string_unsafe): Delete.
3618 2014-05-21 Pedro Alves <palves@redhat.com>
3620 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3622 (inf_child_open_target): New function.
3623 (inf_child_open): Use inf_child_open_target to push the target
3624 instead of erroring out.
3625 (inf_child_disconnect, inf_child_close)
3626 (inf_child_maybe_unpush_target): New functions.
3627 (inf_child_target): Install inf_child_disconnect and
3628 inf_child_close. Store a pointer to the returned object.
3629 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3631 * target.c (auto_connect_native_target): New global.
3632 (show_default_run_target): New function.
3633 (find_default_run_target): Return NULL if automatically connecting
3634 to the native target is disabled.
3635 (_initialize_target): Install set/show auto-connect-native-target.
3636 * NEWS: Mention "set auto-connect-native-target", and "target
3638 * linux-nat.c (super_close): New global.
3639 (linux_nat_close): Call super_close.
3640 (linux_nat_add_target): Store a pointer to the base class's
3642 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3643 inf_child_maybe_unpush.
3644 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3646 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3647 the inferior. Use inf_child_maybe_unpush_target.
3648 (inf_ttrace_attach): Don't push the target if it is already
3650 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3651 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3652 after mourning the inferior. Use inf_child_maybe_unpush_target.
3653 (darwin_attach_pid): Don't push the target if it is already
3655 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3656 mourning the inferior. Use inf_child_maybe_unpush_target.
3657 (gnu_detach): Use inf_child_maybe_unpush_target.
3658 * go32-nat.c (go32_create_inferior): Don't push the target if it
3660 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3661 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3662 (procfs_open): Rename to ...
3663 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3664 comments. Can target_preopen before changing node. Call
3665 inf_child_open_target to push the target explicitly.
3666 (procfs_attach): Don't push the target if it is already pushed.
3667 (procfs_detach): Use inf_child_maybe_unpush_target.
3668 (procfs_create_inferior): Don't push the target if it is already
3670 (nto_native_ops): New global.
3671 (procfs_open): Reimplement.
3672 (procfs_native_open): New function.
3673 (init_procfs_targets): Install procfs_native_open as to_open of
3674 "target native". Store a pointer to the "native" target in
3676 * procfs.c (procfs_attach): Don't push the target if it is already
3678 (procfs_detach): Use inf_child_maybe_unpush_target.
3679 (procfs_mourn_inferior): Only unpush the target after mourning the
3680 inferior. Use inf_child_maybe_unpush_target.
3681 (procfs_init_inferior): Don't push the target if it is already
3683 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3684 if it is already pushed.
3686 2014-05-21 Pedro Alves <palves@redhat.com>
3688 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3689 and "procfs" targets are now called "native" instead.
3691 2014-05-21 Pedro Alves <palves@redhat.com>
3693 * go32-nat.c (go32_open): Delete.
3694 (go32_target): Don't override the to_open method.
3696 2014-05-21 Pedro Alves <palves@redhat.com>
3698 * nto-procfs.c (procfs_can_run): New function.
3699 (nto_procfs_ops): New global.
3700 (init_procfs_targets): New, based on procfs_target. Install
3701 "target native" in addition to "target procfs".
3702 (_initialize_procfs): Call init_procfs_targets instead of adding
3705 2014-05-21 Pedro Alves <palves@redhat.com>
3707 * windows-nat.c (windows_target): Don't override to_shortname,
3708 to_longname or to_doc.
3710 2014-05-21 Pedro Alves <palves@redhat.com>
3712 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3715 2014-05-21 Pedro Alves <palves@redhat.com>
3717 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3718 to_shortname, to_longname or to_doc.
3720 2014-05-21 Pedro Alves <palves@redhat.com>
3722 * go32-nat.c (go32_target): Don't override to_shortname,
3723 to_longname or to_doc.
3725 2014-05-21 Pedro Alves <palves@redhat.com>
3727 * inf-child.c (inf_child_open): Remove mention of "child".
3728 (inf_child_target): Rename target to "native" instead of "child".
3730 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3732 * Makefile.in (SFILES): Delete "regset.c".
3733 (COMMON_OBS): Delete "regset.o".
3735 * regset.h (regset_alloc): Delete prototype.
3737 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3739 * sparc-linux-tdep.c (sparc32_linux_gregset)
3740 (sparc32_linux_fpregset): New static regset structures.
3741 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3742 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3744 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3745 (sparc64_linux_fpregset): New static regset structures.
3746 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3747 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3748 New static regset structures.
3749 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3750 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3751 New static regset structures.
3752 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3753 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3754 New static regset structures.
3755 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3756 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3757 New static regset structures.
3758 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3760 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3762 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3763 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3764 register maps ("regmaps") from "*regset" to "*regmap". Do this
3765 for all regmap types and variables.
3766 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3767 (sparc32_linux_supply_core_gregset)
3768 (sparc32_linux_collect_core_gregset)
3769 (sparc32_linux_supply_core_fpregset)
3770 (sparc32_linux_collect_core_fpregset): Likewise.
3771 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3772 (sparc_gregmap, sparc_fpregmap): ... these.
3773 (sparc_supply_gregset, sparc_collect_gregset)
3774 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3775 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3776 (_initialize_sparc_nat): Rename regmaps.
3777 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3778 (sparc_gregmap, sparc_fpregmap): ... these.
3779 (sparc_supply_gregset, sparc_collect_gregset)
3780 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3781 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3783 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3784 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3786 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3788 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3789 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3790 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3792 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3793 (sparc32_bsd_fpregset): Rename to...
3794 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3795 (sparc32_bsd_fpregmap): ... these.
3796 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3797 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3798 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3799 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3800 (struct sparc_gregmap, struct sparc_fpregmap)
3801 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3802 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3803 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3804 (sparc32_supply_regset, sparc32_collect_gregset)
3805 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3807 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3808 (sparc64_linux_ptrace_gregmap): ... this.
3809 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3810 (_initialize_sparc64_linux_nat): Rename regmaps.
3811 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3812 (sparc64_linux_core_gregmap): ... this.
3813 (sparc64_linux_supply_core_gregset)
3814 (sparc64_linux_collect_core_gregset)
3815 (sparc64_linux_supply_core_fpregset)
3816 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3817 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3818 (sparc64_sol2_fpregset): Rename to...
3819 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3820 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3821 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3823 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3824 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3825 (sparc64_bsd_fpregset): Rename to...
3826 (struct sparc_gregmap, sparc64_sol2_gregmap)
3827 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3828 (sparc64_bsd_fpregmap): ... these.
3829 (sparc64_supply_gregset, sparc64_collect_gregset)
3830 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3832 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3833 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3834 (sparc64fbsd_gregmap): ... this.
3835 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3836 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3838 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3839 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3840 (sparc64nbsd_collect_fpregset): Likewise.
3841 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3842 (sparc64nbsd_gregmap): ... this.
3843 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3845 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3846 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3847 (sparc64obsd_gregmap): ... this.
3848 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3850 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3851 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3852 (sparc32nbsd_gregmap): ... this.
3853 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3856 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3858 * score-tdep.c (score7_linux_gregset): New static regset
3860 (score7_linux_regset_from_core_section): Remove dynamic regset
3862 (score_gdbarch_init): Drop allocation of tdep structure.
3863 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3865 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3867 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3869 (am33_regset_from_core_section): Remove dynamic regset
3872 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3874 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3875 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3877 (mips_linux_regset_from_core_section): Remove dynamic regset
3879 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3880 'gregset64', 'fpregset', and 'fpregset64'.
3881 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3882 deleted tdep fields.
3884 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3886 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3888 (amd64_regset_from_core_section): Remove dynamic regset
3890 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3892 (amd64obsd_regset_from_core_section): Remove dynamic regset
3894 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3896 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3897 x86-common regset supply function.
3898 * i386-tdep.c (i386_collect_gregset): Make static.
3899 (i386_gregset): New global regset structure.
3900 (i386_fpregset, i386_xstateregset): New static regset structures.
3901 (i386_regset_from_core_section): Remove dynamic regset
3903 (i386_gdbarch_init): Remove initialization of tdep fields
3904 'gregset', 'fpregset', and 'xstateregset'.
3905 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3906 'fpregset', and 'xstateregset'.
3907 (i386_collect_gregset): Remove prototype.
3908 (i386_gregset): New declaration.
3909 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3911 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3914 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3916 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3917 (arm_linux_vfpregset): New static regset structures.
3918 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3920 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3921 and 'vfpregset' fields.
3923 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3925 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3926 (aarch64_linux_fpregset): New static regset structures.
3927 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3928 of regset structures.
3929 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3932 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3934 * regset.h (struct regset): Remove gdbarch field.
3935 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3936 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3937 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3939 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3940 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3941 (ppc32_linux_vsxregset): Likewise.
3942 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3943 via the regcache instead of the regset.
3944 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3945 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3946 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3947 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3950 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3952 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3953 Constify structures.
3954 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3955 (alphanbsd_aout_gregset): Likewise.
3956 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3957 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3959 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3960 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3962 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3963 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3964 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3965 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3966 * m88k-tdep.c (m88k_gregset): Likewise.
3967 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3968 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3969 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3970 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3971 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3972 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3973 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3974 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3975 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3977 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3978 * sh-tdep.h (sh_corefile_gregset): Likewise.
3979 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3980 * vax-tdep.c (vax_gregset): Likewise.
3982 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3984 Fix TLS access for -static -pthread.
3985 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3986 (try_thread_db_load_1): Initialize it.
3987 (thread_db_get_thread_local_address): Call it if LM is zero.
3988 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3989 * target.h (struct target_ops) (to_get_thread_local_address): Add
3990 load_module_addr comment.
3992 2014-05-21 Pedro Alves <palves@redhat.com>
3994 * dcache.c (dcache_read_memory_partial): If reading the cache line
3995 fails, fallback to reading just the memory the caller wanted.
3997 2014-05-20 Doug Evans <dje@google.com>
3999 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4000 instead of get_current_arch.
4002 2014-05-20 Pedro Alves <palves@redhat.com>
4004 * NEWS: Mention that compare-sections now works with all targets.
4006 * remote.c (PACKET_qCRC): New enum value.
4007 (remote_verify_memory): Don't send qCRC if the target has no
4008 execution. Use packet_support/packet_ok. If the target doesn't
4009 support the qCRC packet, fallback to a deep memory copy.
4010 (compare_sections_command): Say "target image" instead of "remote
4012 (_initialize_remote): Add PACKET_qCRC to the list of config
4013 packets that have no associated command. Extend comment.
4014 * target.c (simple_verify_memory, default_verify_memory): New
4016 * target.h (struct target_ops) <to_verify_memory>: Default to
4017 default_verify_memory.
4018 (simple_verify_memory): New declaration.
4019 * target-delegates.c: Regenerate.
4021 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4023 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4025 2014-05-20 Hui Zhu <hui@codesourcery.com>
4026 Yao Qi <yao@codesourcery.com>
4029 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4030 and change address of sp and pc.
4032 2014-05-19 Tom Tromey <tromey@redhat.com>
4034 * gdbtypes.c (rank_function): Use XNEWVEC.
4035 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4037 2014-05-19 Doug Evans <dje@google.com>
4039 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4040 build_type_unit_groups and moved closer to only caller. Remove
4041 arguments. All references updated. Remove outdated .gdb_index
4043 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4044 build_type_psymtabs_1.
4046 2014-05-19 Doug Evans <dje@google.com>
4048 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4049 n_type_unit_groups, all_type_unit_groups. All uses removed.
4050 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4051 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4052 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4053 (add_type_unit_group_to_table): Delete.
4055 2014-05-19 Doug Evans <dje@google.com>
4057 * eval.c (evaluate_subexp_standard): Add some comments.
4059 2014-05-17 Doug Evans <xdje42@gmail.com>
4061 * progspace.c (remove_program_space): Delete, unused.
4062 * progspace.h (remove_program_space): Ditto.
4064 2014-05-17 Doug Evans <xdje42@gmail.com>
4066 * inferior.c (prune_inferiors): Fix comment.
4067 (remove_inferior_command): Call prune_program_spaces.
4069 2014-05-16 Doug Evans <dje@google.com>
4071 New command line option -D.
4073 * main.c (set_gdb_data_directory): New function.
4074 (captured_main): Recognize -D. Flag error for --data-directory "".
4075 Call set_gdb_data_directory.
4076 (print_gdb_help): Print --data-directory, -D.
4077 * main.h (set_gdb_data_directory): Declare.
4078 * top.c (staged_gdb_datadir): New static global.
4079 (set_gdb_datadir): Call set_gdb_data_directory
4080 (show_gdb_datadir): New function.
4081 (init_main): Update init of data-directory parameter.
4083 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4085 Import the "dirfd" gnulib module.
4086 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4087 * gnulib/aclocal.m4: Update.
4088 * gnulib/config.in: Update.
4089 * gnulib/configure: Update.
4090 * gnulib/import/Makefile.am: Update.
4091 * gnulib/import/Makefile.in: Update.
4092 * gnulib/import/dirfd.c: New.
4093 * gnulib/import/m4/dirfd.m4: New.
4094 * gnulib/import/m4/gnulib-cache.m4: Update.
4095 * gnulib/import/m4/gnulib-comp.m4: Update.
4097 2014-05-16 Pierre Muller <muller@sourceware.org>
4098 Yao Qi <yao@codesourcery.com>
4100 * valprint.c (print_wchar): Move the code on checking whether
4101 W is a printable wide char to the default branch of switch
4102 statement below. Call wchar_printable instead of gdb_iswprint.
4104 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4106 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4107 ldr.w and ldrd instructions.
4109 2014-05-15 Doug Evans <dje@google.com>
4111 * dwarf2read.c (read_structure_type): Delete outdated comments.
4113 2014-05-14 Tom Tromey <tromey@redhat.com>
4115 * macrocmd.c (print_macro_definition): Reindent.
4117 2014-05-13 Doug Evans <xdje42@gmail.com>
4119 * python/py-cmd.c (cmdpy_completer): Add comment.
4120 (completers): Make const.
4122 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4124 * infrun.c (resume): Remove should_resume (unused). Move up
4125 declaration of resume_ptid.
4127 2014-05-13 Tom Tromey <tromey@redhat.com>
4129 * language.h (unop_type_check): Remove.
4130 (binop_type_check): Don't declare.
4132 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4134 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4135 call to regcache_raw_collect.
4137 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4139 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4140 mi_console->quote as the quoting character.
4142 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4144 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4146 2014-04-29 Tom Tromey <tromey@redhat.com>
4148 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4149 "show debug varobj".
4151 2014-05-07 Kyle McMartin <kyle@redhat.com>
4153 Pushed by Joel Brobecker <brobecker@adacore.com>.
4154 * aarch64-tdep.c (aarch64_software_single_step): New function.
4155 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4156 with aarch64_software_single_step.
4158 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4162 2014-05-05 Keith Seitz <keiths@redhat.com>
4164 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4165 variable or history value is successfully parsed.
4167 2014-05-05 Yao Qi <yao@codesourcery.com>
4168 Pedro Alves <palves@redhat.com>
4170 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4171 address of blocks that intersects the requested range. Trim
4172 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4174 * ctf.c (ctf_xfer_partial): Likewise.
4176 2014-05-05 Yao Qi <yao@codesourcery.com>
4178 * printcmd.c (display_command): Remove the check to
4179 target_has_execution.
4181 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4183 * ppcobsd-nat.c: Include "obsd-nat.h".
4184 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4186 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4188 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4190 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4191 and 16-bit signed and unsigned arguments. Update comment.
4192 (stap_parse_probe_arguments): Extend code to handle such
4193 arguments. Use warning instead of complaint to notify about
4194 unrecognized bitness.
4196 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4198 PR breakpoints/16889
4199 * stap-probe.c (stap_parse_probe_arguments): Simplify
4200 check for non-prefixed probes (i.e., probes whose
4201 arguments do not start with "N@"). Always set the
4202 argument type to a sane value.
4204 2014-05-01 David Taylor <dtaylor@emc.com>
4206 * remote.c (compare_sections_command): Add -r option to compare
4207 all loadable read-only sections.
4209 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4211 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4212 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4214 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4215 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4216 Remove unused CORE_ADDR argument. Update all callers.
4218 2014-04-29 Pedro Alves <palves@redhat.com>
4220 * remote.c (struct packet_config) <detect>: Extend comment.
4221 (add_packet_config_cmd): Don't set the config's detect or support
4223 (init_all_packet_configs): Also initialize the config's 'detect'
4225 (reset_all_packet_configs_support): New function.
4226 (remote_open_1): Call reset_all_packet_configs_support instead of
4227 init_all_packet_configs.
4228 (_initialize_remote): Initialize all packet configs. Assert that
4229 all packets have an associated command, except a few known
4232 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4234 * dwarf2read.c (read_subrange_type): Handle dynamic
4235 DW_AT_lower_bound attributes.
4237 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4239 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4240 dynamic bounds before computing its upper bound.
4241 (ada_discrete_type_low_bound): Same as above with the lower bound.
4243 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4245 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4246 range types. Adjust the array handling implementation to
4247 take advantage of this change.
4248 (resolve_dynamic_range): New function, mostly extracted from
4249 resolve_dynamic_bounds.
4250 (resolve_dynamic_array): New function, mostly extracted from
4251 resolve_dynamic_bounds.
4252 (resolve_dynamic_bounds): Delete.
4253 (resolve_dynamic_type): Reimplement. Add handling of
4254 TYPE_CODE_RANGE types.
4256 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4258 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4259 handling of parallel ___XA types.
4261 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4263 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4264 unnecessary second call to static_unwrap_type.
4266 2014-04-27 Hui Zhu <hui@codesourcery.com>
4268 * stack.c (print_frame_info): Call do_gdb_disassembly with
4269 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4271 2014-04-26 Doug Evans <xdje42@gmail.com>
4273 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4275 2014-04-25 Pedro Alves <palves@redhat.com>
4278 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4279 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4280 and newline from built string.
4281 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4282 (linux_ptrace_attach_fail_reason): ... this.
4283 * linux-nat.c (linux_nat_attach): Adjust to use
4284 linux_ptrace_attach_fail_reason.
4286 2014-04-25 Pedro Alves <palves@redhat.com>
4288 * remote.c (struct remote_state): Remove multi_process_aware,
4289 non_stop_aware, cond_tracepoints, cond_breakpoints,
4290 breakpoint_commands, fast_tracepoints, static_tracepoints,
4291 install_in_trace, disconnected_tracing,
4292 enable_disable_tracepoints, string_tracing, and
4293 augmented_libraries_svr4_read fields.
4294 (remote_multi_process_p): Move further below in the file.
4295 (struct packet_config): Add comments.
4296 (update_packet_config): Delete function.
4297 (show_packet_config_cmd): Use packet_config_support.
4298 (add_packet_config_cmd): Use NULL as set callback.
4299 (packet_ok): "set remote foo-packet"-style commands no longer
4300 change config->supported -- adjust.
4301 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4302 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4303 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4304 (PACKET_QNonStop, PACKET_multiprocess_feature)
4305 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4306 (PACKET_DisconnectedTracing_feature)
4307 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4308 (set_remote_protocol_packet_cmd): Delete function.
4309 (packet_config_support, packet_support): New functions.
4310 (set_remote_protocol_Z_packet_cmd): Don't call
4311 update_packet_config.
4312 (remote_query_attached, remote_pass_signals)
4313 (remote_program_signals, remote_threads_info)
4314 (remote_threads_extra_info, remote_start_remote): Use
4316 (remote_start_remote): Use packet_config_support and
4318 (init_all_packet_configs): Set all packets to unknown support,
4319 instead of calling update_packet_config.
4320 (remote_check_symbols): Use packet_support.
4321 (remote_supported_packet): Unconditionally set the packet config's
4323 (remote_multi_process_feature, remote_non_stop_feature)
4324 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4325 (remote_breakpoint_commands_feature)
4326 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4327 (remote_install_in_trace_feature)
4328 (remote_disconnected_tracing_feature)
4329 (remote_enable_disable_tracepoint_feature)
4330 (remote_string_tracing_feature)
4331 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4332 (remote_protocol_features): Adjust to use remote_supported_packet
4333 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4334 "ConditionalTracepoints", "ConditionalBreakpoints",
4335 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4336 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4337 "EnableDisableTracepoints", and "tracenz".
4338 (remote_query_supported): Use packet_support.
4339 (remote_open_1): Adjust.
4340 (extended_remote_attach_1): Use packet_support. Switch on the
4341 result of packet_ok instead of checking whether the packet ended
4343 (remote_vcont_resume): Use packet_support.
4344 (remote_resume, remote_stop_ns, fetch_register_using_p)
4345 (remote_prepare_to_store, store_register_using_P)
4346 (check_binary_download, remote_write_bytes): Use packet_support.
4347 (remote_vkill): Use packet_support. Switch on the result of
4348 packet_ok instead of checking whether the packet ended up
4350 (extended_remote_supports_disable_randomization): Use
4352 (extended_remote_run): Switch on the result of packet_ok instead
4353 of checking whether the packet ended up disabled.
4354 (remote_insert_breakpoint, remote_remove_breakpoint)
4355 (remote_insert_watchpoint, remote_remove_watchpoint)
4356 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4358 (remote_search_memory): Use packet_config_support.
4359 (remote_get_thread_local_address, remote_get_tib_address)
4360 (remote_hostio_send_command, remote_can_execute_reverse): Use
4362 (remote_supports_cond_tracepoints)
4363 (remote_supports_cond_breakpoints)
4364 (remote_supports_fast_tracepoints)
4365 (remote_supports_static_tracepoints)
4366 (remote_supports_install_in_trace)
4367 (remote_supports_enable_disable_tracepoint)
4368 (remote_supports_string_tracing)
4369 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4370 the packet config says the feature is enabled or disabled.
4371 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4372 (remote_get_trace_status): Use packet_support.
4373 (remote_set_disconnected_tracing): Adjust to check whether the
4374 feature is enabled with packet_support.
4375 (remote_set_trace_buffer_size, remote_use_agent)
4376 (remote_can_use_agent, remote_supports_btrace): Use
4378 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4379 Use packet_config_support.
4380 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4381 the packet config says the feature is enabled or disabled.
4382 (set_range_stepping): Use packet_support.
4384 2014-04-25 Tom Tromey <tromey@redhat.com>
4386 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4389 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4391 * NEWS: Mention support for C99 variable length arrays.
4393 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4395 * ada-lang.c (standard_exc): Expand introductory comment.
4397 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4398 Walfred Tedeschi <walfred.tedeschi@intel.com>
4400 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4402 (amd64_linux_read_description): Add code to handle AVX512 xstate
4403 mask and return respective tdesc.
4404 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4405 and features/i386/x32-avx512-linux.c.
4406 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4407 (amd64_linux_core_read_description): Add code to handle AVX512
4408 xstate mask and return respective tdesc.
4409 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4410 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4412 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4413 (tdesc_amd64_avx512_linux): New prototype.
4414 (tdesc_x32_avx512_linux): Likewise.
4415 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4416 features/i386/x32-avx512.c.
4417 (amd64_ymm_avx512_names): New register names for pseudo
4419 (amd64_ymmh_avx512_names): New register names for raw registers
4421 (amd64_k_names): New register names for K registers.
4422 (amd64_zmmh_names): New register names for ZMM raw registers.
4423 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4424 (amd64_xmm_avx512_names): New register names for XMM16-31
4426 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4428 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4429 if feature is present.
4430 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4431 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4432 (AMD64_NUM_REGS): Adjust to new number of registers.
4433 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4434 registers supplied via XSTATE by AVX512 registers.
4435 (i386_linux_read_description): Add case for AVX512.
4436 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4437 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4438 (i386_linux_core_read_description): Add case for AVX512.
4439 (i386_linux_init_abi): Install supported register note section
4441 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4443 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4444 registers to be number of zmm7h + 1.
4445 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4446 * i386-tdep.c: Include features/i386/i386-avx512.c.
4447 (i386_zmm_names): Add ZMM pseudo register names array.
4448 (i386_zmmh_names): Add ZMM raw register names array.
4449 (i386_k_names): Add K raw register names array.
4450 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4451 registers. AVX512 has 16 more ZMM registers than there are YMM
4453 (i386_zmmh_regnum_p): Add function to look up register number of
4455 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4456 (i386_k_regnum_p): Likewise for K raw registers.
4457 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4458 registers added by AVX512.
4459 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4460 registers added by AVX512.
4461 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4463 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4464 (i386_pseudo_register_name): Add ZMM pseudo registers.
4465 (i386_zmm_type): Construct and return vector registers type for ZMM
4467 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4468 ZMM0-31 pseudo registers and K registers.
4469 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4470 and YMM16-31 registers from register cache.
4471 (i386_pseudo_register_write): Add code to write K, ZMM and
4473 (i386_register_reggroup_p): Add code to include/exclude AVX512
4474 registers in/from respective register groups.
4475 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4476 registers if feature is present in xcr0.
4477 (i386_gdbarch_init): Add code to initialize AVX512 feature
4478 variables in tdep structure, wire in pseudo registers and call
4479 initialize_tdesc_i386_avx512.
4480 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4482 (i386_regnum): Add AVX512 registers.
4483 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4484 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4485 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4486 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4488 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4489 (i386_ymm_avx512_regnum_p): Likewise.
4490 (i386_k_regnum_p): Likewise.
4491 (i386_zmm_regnum_p): Likewise.
4492 (i386_zmmh_regnum_p): Likewise.
4493 * i387-tdep.c : Update year in copyright notice.
4494 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4496 (XSAVE_YMM_AVX512_ADDR): New macro.
4497 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4499 (XSAVE_XMM_AVX512_ADDR): New macro.
4500 (xsave_avx512_k_offset): New table for K register offsets in
4502 (XSAVE_AVX512_K_ADDR): New macro.
4503 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4505 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4506 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4508 (i387_collect_xsave): Add code to collect AVX512 registers from
4510 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4511 of XMM16-31 registers.
4512 (I387_NUM_K_REGS): New define for number of K registers.
4513 (I387_K0_REGNUM): New define for K0 register number.
4514 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4515 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4516 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4518 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4519 (I387_XMM16_REGNUM): New define for XMM16 register number.
4520 (I387_YMM0_REGNUM): New define for YMM0 register number.
4521 (I387_KEND_REGNUM): New define for last K register number.
4522 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4523 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4525 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4527 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4529 * features/Makefile: Add AVX512 related files.
4530 * features/i386/32bit-avx512.xml: New file.
4531 * features/i386/64bit-avx512.xml: Likewise.
4532 * features/i386/amd64-avx512-linux.c: Likewise.
4533 * features/i386/amd64-avx512-linux.xml: Likewise.
4534 * features/i386/amd64-avx512.c: Likewise.
4535 * features/i386/amd64-avx512.xml: Likewise.
4536 * features/i386/i386-avx512-linux.c: Likewise.
4537 * features/i386/i386-avx512-linux.xml: Likewise.
4538 * features/i386/i386-avx512.c: Likewise.
4539 * features/i386/i386-avx512.xml: Likewise.
4540 * features/i386/x32-avx512-linux.c: Likewise.
4541 * features/i386/x32-avx512-linux.xml: Likewise.
4542 * features/i386/x32-avx512.c: Likewise.
4543 * features/i386/x32-avx512.xml: Likewise.
4544 * regformats/i386/amd64-avx512-linux.dat: New file.
4545 * regformats/i386/amd64-avx512.dat: Likewise.
4546 * regformats/i386/i386-avx512-linux.dat: Likewise.
4547 * regformats/i386/i386-avx512.dat: Likewise.
4548 * regformats/i386/x32-avx512-linux.dat: Likewise.
4549 * regformats/i386/x32-avx512.dat: Likewise.
4550 * NEWS: Add note about new support for AVX512.
4553 2014-04-23 Pedro Alves <palves@redhat.com>
4555 * breakpoint.c (insert_bp_location): Tolerate errors if the
4556 breakpoint is set in a user-loaded objfile.
4557 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4558 location is marked shlib_disabled. If the breakpoint is set in a
4559 user-loaded objfile is a GDB-side memory breakpoint, validate it
4560 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4561 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4563 * mem-break.c (memory_validate_breakpoint): New function.
4564 * objfiles.c (userloaded_objfile_contains_address_p): New
4566 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4567 * target.h (memory_validate_breakpoint): New declaration.
4569 2014-04-23 Pedro Alves <palves@redhat.com>
4571 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4572 the breakpoint is set in a shared library, only suppress
4573 errors for software breakpoints, not hardware breakpoints.
4575 2014-04-22 Pedro Alves <palves@redhat.com>
4577 * infrun.c (schedlock_applies): New function, factored out from
4578 find_thread_needs_step_over.
4579 (find_thread_needs_step_over): Use it.
4580 (switch_back_to_stepped_thread): Always clear trap_expected if the
4581 step over is finished. Return early if scheduler locking applies.
4582 Look for the stepping thread and a potential step-over thread with
4584 (currently_stepping_or_nexting_callback): Delete.
4586 2014-04-22 Nick Clifton <nickc@redhat.com>
4588 * NEWS: Mention that ARM sim now supports tracing.
4590 2014-04-22 Yao Qi <yao@codesourcery.com>
4592 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4594 * tracefile.c (tracefile_fetch_registers): ... it. New
4596 * tracefile.h (tracefile_fetch_registers): Declare.
4597 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4598 tracefile_fetch_registers.
4600 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4603 * windows-nat.c (thread_rec): Don't display a warning when
4604 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4605 fails for any reason, set th->suspended to -1, so that we don't
4606 try to resume such a thread. Also, don't return NULL in these
4607 cases, to avoid completely ruin the session due to "PC register is
4608 not available" error.
4609 (do_windows_fetch_inferior_registers): Check errors in
4610 GetThreadContext call.
4611 (windows_continue): Accept an additional argument KILLED; if not
4612 zero, ignore errors in the SetThreadContext call, since the
4613 inferior was killed and is shutting down.
4614 (windows_resume, get_windows_debug_event)
4615 (windows_create_inferior, windows_mourn_inferior)
4616 (windows_kill_inferior): All callers of windows_continue changed
4617 to adjust to its new calling sequence.
4619 2014-04-19 Yao Qi <yao@codesourcery.com>
4621 * ctf.c (ctf_open): Call post_create_inferior.
4623 2014-04-19 Yao Qi <yao@codesourcery.com>
4625 * ctf.c (handle_id): New static variable.
4626 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4627 value. Get the declaration of event "register" and get length
4628 of field "contents".
4630 2014-04-19 Yao Qi <yao@codesourcery.com>
4632 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4634 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4636 * valops.c (oload_method_static): Remove unnecessary argument
4637 METHOD. Update all callers.
4639 2014-04-18 Pedro alves <palves@redhat.com>
4640 Tom Tromey <tromey@redhat.com>
4643 * frame.c (get_prev_frame_1): Rename to ...
4644 (get_prev_frame_always): ... this, and make extern. Adjust.
4645 (skip_artificial_frames): Use get_prev_frame_always.
4646 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4647 (get_frame_unwind_stop_reason): Adjust to rename.
4648 * frame.h (get_prev_frame_always): Declare.
4649 * inline-frame.c: Include frame.h.
4650 (inline_frame_this_id): Use get_prev_frame_always.
4652 2014-04-18 Tristan Gingold <gingold@adacore.com>
4654 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4655 code by using bfd_mach_o_get_base_address.
4657 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4659 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4660 (spu_ax_pseudo_register_collect): New function.
4661 (spu_ax_pseudo_register_push_stack): Likewise.
4662 (spu_dwarf_reg_to_regnum): Likewise.
4663 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4665 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4667 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4668 Replace FRAME argument with FRAME_ID.
4669 * gdbarch.c, gdbarch.h: Regenerate.
4670 * findvar.c (default_value_from_register): Add GDBARCH argument;
4671 replace FRAME by FRAME_ID. No longer call get_frame_id.
4672 (value_from_register): Update call to gdbarch_value_from_register.
4673 * value.h (default_value_from_register): Update prototype.
4674 * s390-linux-tdep.c (s390_value_from_register): Update interface
4675 and call to default_value_from_register.
4676 * spu-tdep.c (spu_value_from_register): Likewise.
4678 * findvar.c (address_from_register): Remove TYPE argument.
4679 Do not call value_from_register; use gdbarch_value_from_register
4680 with null_frame_id instead.
4681 * value.h (address_from_register): Update prototype.
4682 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4683 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4684 address_from_register interface change.
4686 2014-04-17 Yao Qi <yao@codesourcery.com>
4688 * gdbtypes.h: Update comments to link to types and macros'
4691 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4693 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4695 2014-04-16 Keith Seitz <keiths@redhat.com>
4698 * dwarf2read.c (skip_one_die): Check that all relative-offset
4699 sibling DIEs fall within range of the current reader's buffer.
4700 (read_partial_die): Likewise.
4702 2014-04-16 Keith Seitz <keiths@redhat.com>
4705 * cp-namespace.c (lookup_symbol_file): If the type name of
4706 `this' is NULL, return immediately.
4708 2014-04-14 Keith Seitz <keiths@redhat.com>
4711 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4712 from symbol_matches_domain in symtab.c. All local callers
4713 of symbol_matches_domain updated.
4714 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4715 search STRUCT_DOMAIN.
4716 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4717 independently. standard_lookup will do that automatically.
4718 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4719 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4720 (cp_lookup_symbol_in_namespace): Likewise.
4721 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4722 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4723 may return a STRUCT_DOMAIN match.
4724 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4725 * cp-support.c: Include language.h.
4726 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4728 * psymtab.c (match_partial_symbol): Compare the requested
4729 domain with the symbol's domain directly.
4730 (lookup_partial_symbol): Likewise.
4731 * symtab.c (lookup_symbol_in_language): Explain when/why
4732 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4733 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4734 appropriate languages.
4735 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4736 and moved to ada-lang.c
4737 (lookup_block_symbol): Explain that this function only returns
4738 symbol matching the requested DOMAIN.
4739 Compare the requested domain with the symbol's domain directly.
4740 (iterate_over_symbols): Compare the requested domain with the
4741 symbol's domain directly.
4742 * symtab.h (symbol_matches_domain): Remove.
4744 2014-04-14 Tom Tromey <tromey@redhat.com>
4747 * c-exp.y (type_aggregate_p): New function.
4748 (qualified_name, classify_inner_name): Use it.
4749 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4750 and TYPE_TARGET_TYPE of an enum type.
4751 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4753 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4754 handle TYPE_DECLARED_CLASS.
4755 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4757 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4758 * valops.c (enum_constant_from_type): New function.
4759 (value_aggregate_elt): Use it.
4760 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4763 2014-04-14 Tom Tromey <tromey@redhat.com>
4765 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4766 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4768 * value.h (value_aggregate_elt): Update.
4770 2014-04-14 Tom Tromey <tromey@redhat.com>
4772 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4774 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4776 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4777 (evaluate_subexp_standard): Pass noside argument.
4778 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4779 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4780 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4781 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4782 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4784 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4786 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4787 points to a constant blob.
4789 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4791 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4792 property and store it as the high bound and flag the range accordingly.
4793 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4794 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4795 * gdbtypes.h (enum range_flags): New enum.
4796 (struct range_bounds): Add flags member.
4798 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4800 * c-typeprint.c (c_type_print_varspec_suffix): Added
4801 check for not yet resolved high bound. If unresolved, print
4802 "variable length" string to the console instead of random
4805 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4807 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4809 (ada_template_to_fixed_record_type_1): Likewise.
4810 (ada_to_fixed_type_1): Likewise.
4811 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4812 (cp_print_value): Likewise.
4813 * d-valprint.c (dynamic_array_type): Likewise.
4814 * findvar.c (address_of_variable): Likewise.
4815 * jv-valprint.c (java_value_print): Likewise.
4816 * valops.c (value_ind): Likewise.
4817 * value.c (coerce_ref): Likewise.
4819 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4821 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4822 value and retrieve the dynamic type size.
4824 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4826 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4827 passed to sizeof is dynamic evaluate the argument to compute the length.
4829 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4830 Joel Brobecker <brobecker@adacore.com>
4832 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4833 (dwarf2_evaluate_property): New function.
4834 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4835 * dwarf2read.c (attr_to_dynamic_prop): New function.
4836 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4838 * gdbtypes.c: Include dwarf2loc.h.
4839 (is_dynamic_type): New function.
4840 (resolve_dynamic_type): New function.
4841 (resolve_dynamic_bounds): New function.
4842 (get_type_length): New function.
4843 (check_typedef): Use get_type_length to compute type length.
4844 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4845 (TYPE_LOW_BOUND_KIND): New macro.
4846 (is_dynamic_type): New function prototype.
4847 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4848 to resolve dynamic properties of the type. Update comment.
4849 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4851 2014-04-14 Richard Henderson <rth@redhat.com>
4853 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4855 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4856 Doug Evans <xdje42@gmail.com>
4858 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4859 dereference TYPE_CODE_REF values.
4861 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4863 Revert the following changes due to regressions:
4865 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4866 (dwarf2_evaluate_property): New function.
4867 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4868 * dwarf2read.c (attr_to_dynamic_prop): New function.
4869 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4871 * gdbtypes.c: Include dwarf2loc.h.
4872 (is_dynamic_type): New function.
4873 (resolve_dynamic_type): New function.
4874 (resolve_dynamic_bounds): New function.
4875 (get_type_length): New function.
4876 (check_typedef): Use get_type_length to compute type length.
4877 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4878 (TYPE_LOW_BOUND_KIND): New macro.
4879 (is_dynamic_type): New function prototype.
4880 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4881 to resolve dynamic properties of the type. Update comment.
4882 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4884 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4885 passed to sizeof is dynamic evaluate the argument to compute the length.
4887 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4888 value and retrieve the dynamic type size.
4890 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4891 (ada_template_to_fixed_record_type_1): Likewise.
4892 (ada_to_fixed_type_1): Likewise.
4893 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4894 (cp_print_value): Likewise.
4895 * d-valprint.c (dynamic_array_type): Likewise.
4896 * eval.c (evaluate_subexp_with_coercion): Likewise.
4897 * findvar.c (address_of_variable): Likewise.
4898 * jv-valprint.c (java_value_print): Likewise.
4899 * valops.c (value_ind): Likewise.
4900 * value.c (coerce_ref): Likewise.
4902 * c-typeprint.c (c_type_print_varspec_suffix): Added
4903 check for not yet resolved high bound. If unresolved, print
4904 "variable length" string to the console instead of random
4907 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4908 property and store it as the high bound and flag the range accordingly.
4909 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4910 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4911 * gdbtypes.h (enum range_flags): New enum.
4912 (struct range_bounds): Add flags member.
4914 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4915 points to a constant blob.
4917 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4918 (evaluate_subexp_standard): Pass noside argument.
4919 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4920 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4921 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4922 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4923 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4925 2014-04-11 Keith Seitz <keiths@redhat.com>
4928 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4929 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4932 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4934 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4935 (evaluate_subexp_standard): Pass noside argument.
4936 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4937 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4938 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4939 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4940 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4942 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4944 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4945 points to a constant blob.
4947 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4949 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4950 property and store it as the high bound and flag the range accordingly.
4951 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4952 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4953 * gdbtypes.h (enum range_flags): New enum.
4954 (struct range_bounds): Add flags member.
4956 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4958 * c-typeprint.c (c_type_print_varspec_suffix): Added
4959 check for not yet resolved high bound. If unresolved, print
4960 "variable length" string to the console instead of random
4963 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4965 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4966 (ada_template_to_fixed_record_type_1): Likewise.
4967 (ada_to_fixed_type_1): Likewise.
4968 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4969 (cp_print_value): Likewise.
4970 * d-valprint.c (dynamic_array_type): Likewise.
4971 * eval.c (evaluate_subexp_with_coercion): Likewise.
4972 * findvar.c (address_of_variable): Likewise.
4973 * jv-valprint.c (java_value_print): Likewise.
4974 * valops.c (value_ind): Likewise.
4975 * value.c (coerce_ref): Likewise.
4977 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4979 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4980 value and retrieve the dynamic type size.
4982 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4984 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4985 passed to sizeof is dynamic evaluate the argument to compute the length.
4987 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4989 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4990 (dwarf2_evaluate_property): New function.
4991 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4992 * dwarf2read.c (attr_to_dynamic_prop): New function.
4993 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4995 * gdbtypes.c: Include dwarf2loc.h.
4996 (is_dynamic_type): New function.
4997 (resolve_dynamic_type): New function.
4998 (resolve_dynamic_bounds): New function.
4999 (get_type_length): New function.
5000 (check_typedef): Use get_type_length to compute type length.
5001 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5002 (TYPE_LOW_BOUND_KIND): New macro.
5003 (is_dynamic_type): New function prototype.
5004 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5005 to resolve dynamic properties of the type. Update comment.
5006 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5008 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5010 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5011 declaring high/low bounds and change uses accordingly. Call
5012 create_range_type instead of create_static_range_type.
5013 * gdbtypes.c (create_range_type): New function.
5014 (create_range_type): Convert bounds into struct bound_prop and pass
5015 them to create_range_type.
5016 * gdbtypes.h (struct bound_prop): New struct.
5017 (create_range_type): New function prototype.
5018 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5019 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5020 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5022 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5024 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5026 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5027 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5028 * ada-lang.c: All uses of create_range_type updated.
5029 * coffread.c: All uses of create_range_type updated.
5030 * dwarf2read.c: All uses of create_range_type updated.
5031 * f-exp.y: All uses of create_range_type updated.
5032 * m2-valprint.c: All uses of create_range_type updated.
5033 * mdebugread.c: All uses of create_range_type updated.
5034 * stabsread.c: All uses of create_range_type updated.
5035 * valops.c: All uses of create_range_type updated.
5036 * valprint.c: All uses of create_range_type updated.
5038 2014-04-10 Pedro Alves <palves@redhat.com>
5040 * breakpoint.c (single_step_breakpoints)
5041 (single_step_gdbarch): Move up in the file.
5042 (one_breakpoint_xfer_memory): New function, factored out from ...
5043 (breakpoint_xfer_memory): ... here. Also process single-step
5046 2014-04-09 Tristan Gingold <gingold@adacore.com>
5048 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5050 (darwin_decode_exception_message): Free port only after use.
5052 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5054 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5055 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5056 when setting the size of call_length.
5058 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5060 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5061 dereference TYPE_CODE_REF values.
5063 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5065 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5066 end of warning message.
5068 2014-04-03 Doug Evans <dje@google.com>
5070 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5071 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5073 2014-04-02 Alan Modra <amodra@gmail.com>
5075 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5076 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5077 (struct symbol_file_add_from_memory_args): Add size field.
5078 (find_vdso_size): New function.
5079 (add_vsyscall_page): Attempt to find vdso size.
5081 2014-04-01 Doug Evans <dje@google.com>
5083 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5085 2014-04-01 Tristan Gingold <gingold@adacore.com>
5087 * darwin-nat.c (darwin_encode_reply): Add prototype.
5088 (darwin_decode_exception_message): Reply to unknown inferiors.
5089 (darwin_decode_message): Handle message by id. Ignore message
5090 to unknown inferior.
5091 (darwin_wait): Discard unknown messages, add debug trace.
5093 2014-03-31 Doug Evans <dje@google.com>
5095 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5098 2014-03-31 Doug Evans <dje@google.com>
5100 New option "set print symbol-loading".
5102 * solib.c (solib_read_symbols): Only print symbol loading messages
5104 (solib_add): If symbol loading is in "brief" mode, notify user
5105 symbols are being loaded.
5106 (reload_shared_libraries_1): Ditto.
5107 * symfile.c (print_symbol_loading_off): New static global.
5108 (print_symbol_loading_brief): New static global.
5109 (print_symbol_loading_full): New static global.
5110 (print_symbol_loading_enums): New static global.
5111 (print_symbol_loading): New static global.
5112 (print_symbol_loading_p): New function.
5113 (symbol_file_add_with_addrs): Only print symbol loading messages
5115 (_initialize_symfile): Register "print symbol-loading" set/show
5117 * symfile.h (print_symbol_loading_p): Declare.
5119 2014-03-30 Doug Evans <xdje42@gmail.com>
5121 * infrun.c (set_last_target_status): New function.
5122 (handle_inferior_event): Call it.
5124 2014-03-30 Doug Evans <xdje42@gmail.com>
5126 * inferior.h (enum stop_kind): Improve comment.
5128 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5130 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5131 a reference, strip the reference layer before calling
5132 the lang_ops value_has_mutated callback.
5134 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5136 Remove some globals from our parser.
5137 * language.c (unk_lang_parser): Add "struct parser_state"
5139 * language.h (struct language_defn) <la_parser>: Likewise.
5140 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5141 (initialize_expout): Add "struct parser_state" argument.
5142 Rewrite function to use the parser state.
5143 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5144 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5145 write_exp_elt_longcst, write_exp_elt_dblcst,
5146 write_exp_elt_decfloatcst, write_exp_elt_type,
5147 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5148 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5149 write_dollar_variable): Likewise.
5150 (parse_exp_in_context_1): Use parser state.
5151 (insert_type_address_space): Add "struct parser_state" argument.
5153 (increase_expout_size): New function.
5154 * parser-defs.h: Forward declare "struct language_defn" and
5155 "struct parser_state".
5156 (expout, expout_size, expout_ptr): Remove extern declarations.
5157 (parse_gdbarch, parse_language): Rewrite macro declarations to
5158 accept the parser state.
5159 (struct parser_state): New struct.
5160 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5161 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5162 write_exp_elt_decfloatcst, write_exp_elt_type,
5163 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5164 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5165 write_exp_msymbol, write_dollar_variable,
5166 mark_struct_expression, insert_type_address_space): Add "struct
5167 parser_state" argument.
5168 (increase_expout_size): New function.
5169 * utils.c (do_clear_parser_state): New function.
5170 (make_cleanup_clear_parser_state): Likewise.
5171 * utils.h (make_cleanup_clear_parser_state): New function
5173 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5174 Update calls to write_exp* in order to pass the parser state.
5175 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5176 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5177 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5178 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5179 * stap-probe.c (stap_parse_register_operand): Likewise.
5180 (stap_parse_single_operand): Likewise.
5181 (stap_parse_argument_1): Likewise.
5182 (stap_parse_argument): Use parser state.
5183 * stap-probe.h: Include "parser-defs.h".
5184 (struct stap_parse_info) <pstate>: New field.
5185 * c-exp.y (parse_type): Rewrite to use parser state.
5186 (yyparse): Redefine to c_parse_internal.
5187 (pstate): New global variable.
5188 (parse_number): Add "struct parser_state" argument.
5189 (write_destructor_name): Likewise.
5190 (type_exp): Update calls to write_exp* and similars in order to
5192 (exp1, exp, variable, qualified_name, space_identifier,
5193 typename, typebase): Likewise.
5194 (write_destructor_name, parse_number, lex_one_token,
5195 classify_name, classify_inner_name, c_parse): Add "struct
5196 parser_state" argument. Update function to use parser state.
5197 * c-lang.h: Forward declare "struct parser_state".
5198 (c_parse): Add "struct parser_state" argument.
5199 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5200 (yyparse): Redefine macro to ada_parse_internal.
5201 (pstate): New variable.
5202 (write_int, write_object_renaming, write_var_or_type,
5203 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5204 type_int, type_long, type_long_long, type_float, type_double,
5205 type_long_double, type_char, type_boolean, type_system_address):
5206 Add "struct parser_state" argument.
5207 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5208 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5209 var_or_type, aggregate, aggregate_component_list,
5210 positional_list, others, component_group,
5211 component_associations): Update calls to write_exp* and similar
5212 functions in order to use parser state.
5213 (ada_parse, write_var_from_sym, write_int,
5214 write_exp_op_with_string, write_object_renaming,
5215 find_primitive_type, write_selectors, write_ambiguous_var,
5216 write_var_or_type, write_name_assoc, type_int, type_long,
5217 type_long_long, type_float, type_double, type_long_double,
5218 type_char, type_boolean, type_system_address): Add "struct
5219 parser_state" argument. Adjust function to use parser state.
5220 * ada-lang.c (parse): Likewise.
5221 * ada-lang.h: Forward declare "struct parser_state".
5222 (ada_parse): Add "struct parser_state" argument.
5223 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5224 calls to both functions.
5225 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5227 (yyparse): Redefine macro to f_parse_internal.
5228 (pstate): New variable.
5229 (parse_number): Add "struct parser_state" argument.
5230 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5231 and similars in order to use parser state.
5232 (parse_number): Adjust code to use parser state.
5234 (f_parse): New function.
5235 * f-lang.h: Forward declare "struct parser_state".
5236 (f_parse): Add "struct parser_state" argument.
5237 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5239 (yyparse): Redefine macro for java_parse_internal.
5240 (pstate): New variable.
5241 (push_expression_name, push_expression_name, insert_exp): Add
5242 "struct parser_state" argument.
5243 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5244 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5245 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5246 PostIncrementExpression, PostDecrementExpression,
5247 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5248 UnaryExpressionNotPlusMinus, CastExpression,
5249 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5250 RelationalExpression, EqualityExpression, AndExpression,
5251 ExclusiveOrExpression, InclusiveOrExpression,
5252 ConditionalAndExpression, ConditionalOrExpression,
5253 ConditionalExpression, Assignment, LeftHandSide): Update
5254 calls to write_exp* and similars in order to use parser state.
5255 (parse_number): Ajust code to use parser state.
5257 (java_parse): New function.
5258 (push_variable): Add "struct parser_state" argument. Adjust
5259 code to user parser state.
5260 (push_fieldnames, push_qualified_expression_name,
5261 push_expression_name, insert_exp): Likewise.
5262 * jv-lang.h: Forward declare "struct parser_state".
5263 (java_parse): Add "struct parser_state" argument.
5264 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5266 (yyparse): Redefine macro to m2_parse_internal.
5267 (pstate): New variable.
5268 (type_exp, exp, fblock, variable, type): Update calls to
5269 write_exp* and similars to use parser state.
5271 (m2_parse): New function.
5272 * m2-lang.h: Forward declare "struct parser_state".
5273 (m2_parse): Add "struct parser_state" argument.
5274 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5275 * objc-lang.h: Forward declare "struct parser_state".
5276 (end_msglist): Add "struct parser_state" argument.
5277 * p-exp.y (parse_type): Rewrite macro to use parser state.
5278 (yyparse): Redefine macro to pascal_parse_internal.
5279 (pstate): New variable.
5280 (parse_number): Add "struct parser_state" argument.
5281 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5282 write_exp* and similars in order to use parser state.
5283 (parse_number, yylex): Adjust code to use parser state.
5284 (pascal_parse): New function.
5285 * p-lang.h: Forward declare "struct parser_state".
5286 (pascal_parse): Add "struct parser_state" argument.
5287 * go-exp.y (parse_type): Rewrite macro to use parser state.
5288 (yyparse): Redefine macro to go_parse_internal.
5289 (pstate): New variable.
5290 (parse_number): Add "struct parser_state" argument.
5291 (type_exp, exp1, exp, variable, type): Update calls to
5292 write_exp* and similars in order to use parser state.
5293 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5294 to use parser state.
5295 (go_parse): Likewise.
5296 * go-lang.h: Forward declare "struct parser_state".
5297 (go_parse): Add "struct parser_state" argument.
5299 2014-03-27 Doug Evans <dje@google.com>
5301 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5303 2014-03-27 Doug Evans <dje@google.com>
5305 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5306 Remove argument abbrev_section. All callers updated.
5308 2014-03-27 Doug Evans <dje@google.com>
5310 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5311 addr_base, ranges_base.
5313 2014-03-26 Keith Seitz <keiths@redhat.com>
5315 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5316 types, not VAR_DOMAIN.
5318 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5320 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5322 * features/nios2-linux.c: Regenerated.
5323 * features/nios2.c: Regenerated.
5325 2014-03-25 Pedro Alves <palves@redhat.com>
5327 * cli/cli-script.c (script_from_file): Force the interpreter to
5330 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5332 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5333 small stack allocation.
5335 2014-03-24 Tristan Gingold <gingold@adacore.com>
5337 * darwin-nat.c (exc_server): Remove unused prototype.
5338 (darwin_dump_message): Correctly display data on x86_64.
5339 (darwin_encode_reply): Fix style.
5340 Add comments and fix indentation.
5342 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5344 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5346 2014-03-22 Doug Evans <xdje42@gmail.com>
5348 * infcmd.c: Whitespace fixes.
5349 (interrupt_command): Merge two function comments into one.
5351 2014-03-22 Doug Evans <xdje42@gmail.com>
5353 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5356 2014-03-22 Yao Qi <yao@codesourcery.com>
5358 * remote.c (target_read_live_memory): Remove.
5359 (memory_xfer_live_readonly_partial): Rename it to
5360 remote_xfer_live_readonly_partial. Remove argument 'object'.
5361 All callers updated. Call remote_read_bytes_1
5362 instead of target_read_live_memory.
5363 * tracepoint.c (set_traceframe_number): Remove.
5364 (make_cleanup_restore_traceframe_number): Likewise .
5365 * tracepoint.h (set_traceframe_number): Remove declaration.
5366 (make_cleanup_restore_traceframe_number): Likewise.
5368 2014-03-22 Yao Qi <yao@codesourcery.com>
5370 * remote.c (remote_read_bytes): Move code on reading from the
5372 (remote_read_bytes_1): ... here. New function.
5374 2014-03-22 Yao Qi <yao@codesourcery.com>
5376 * ctf.c (ctf_xfer_partial): Check the return value of
5377 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5378 return TARGET_XFER_UNAVAILABLE.
5379 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5380 * target.c (target_read_live_memory): Move it to remote.c.
5381 (memory_xfer_live_readonly_partial): Likewise.
5382 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5383 * remote.c (target_read_live_memory): Moved from target.c.
5384 (memory_xfer_live_readonly_partial): Likewise.
5385 (remote_read_bytes): Factored out from
5386 memory_xfer_partial_1.
5388 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5390 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5393 2014-03-21 Pedro Alves <palves@redhat.com>
5395 * infrun.c (normal_stop): Extend comment.
5397 2014-03-21 Hui Zhu <hui@codesourcery.com>
5398 Pedro Alves <palves@redhat.com>
5400 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5402 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5403 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5404 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5406 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5408 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5409 `z' formatted output modifier.
5411 2014-03-20 Tom Tromey <tromey@redhat.com>
5412 Sergio Durigan Junior <sergiodj@redhat.com>
5414 * probe.c (parse_probes): Turn assert into an ordinary error.
5415 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5416 exceptions when parsing probes. Rearrange the code for clarity.
5418 2014-03-20 Tom Tromey <tromey@redhat.com>
5421 * top.c (execute_command): Only dispatch events if the command
5424 2014-03-20 Tom Tromey <tromey@redhat.com>
5427 * infcall.c: Include event-top.h.
5428 (run_inferior_call): Call async_disable_stdin if needed.
5430 2014-03-20 Pedro Alves <palves@redhat.com>
5432 * infrun.c (prepare_to_proceed): Delete.
5433 (thread_still_needs_step_over): New function.
5434 (find_thread_needs_step_over): New function.
5435 (proceed): If the current thread needs a step-over, set its
5436 steping_over_breakpoint flag. Adjust to use
5437 find_thread_needs_step_over instead of prepare_to_proceed.
5438 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5439 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5441 (switch_back_to_stepped_thread): Step over breakpoints of all
5442 threads not the stepping thread, before switching back to the
5445 2014-03-20 Pedro Alves <palves@redhat.com>
5447 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5449 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5450 * infrun.c (saved_singlestep_ptid)
5451 (stepping_past_singlestep_breakpoint): Delete.
5452 (resume): Remove stepping_past_singlestep_breakpoint handling.
5453 (proceed): Store the prev_pc of the stepping thread too.
5454 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5456 (enum infwait_states): Delete infwait_thread_hop_state.
5457 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5459 (handle_inferior_event): Adjust.
5460 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5461 handling and the thread-hop code. Before removing single-step
5462 breakpoints, check whether the thread hit a single-step breakpoint
5463 of another thread. If it did, the trap is not a random signal.
5464 (switch_back_to_stepped_thread): If the event thread hit a
5465 single-step breakpoint, unblock it before switching to the
5466 stepping thread. Handle the case of the stepped thread having
5468 (keep_going): Handle the case of the current thread moving past a
5469 single-step breakpoint.
5471 2014-03-20 Pedro Alves <palves@redhat.com>
5474 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5475 are being stepped over.
5476 (breakpoint_address_match): Make extern.
5477 * breakpoint.h (breakpoint_address_match): New declaration.
5478 * inferior.h (stepping_past_instruction_at): New declaration.
5479 * infrun.c (struct step_over_info): New type.
5480 (step_over_info): New global.
5481 (set_step_over_info, clear_step_over_info)
5482 (stepping_past_instruction_at): New functions.
5483 (handle_inferior_event): Clear the step-over info when
5484 trap_expected is cleared.
5485 (resume): Remove now stale comment.
5486 (clear_proceed_status): Clear step-over info.
5487 (proceed): Adjust step-over handling to set or clear the step-over
5488 info instead of removing all breakpoints.
5489 (handle_signal_stop): When setting up a thread-hop, don't remove
5491 (stop_stepping): Clear step-over info.
5492 (keep_going): Adjust step-over handling to set or clear step-over
5493 info and then always inserting breakpoints, instead of removing
5494 all breakpoints when stepping over one.
5496 2014-03-20 Pedro Alves <palves@redhat.com>
5498 * infrun.c (previous_inferior_ptid): Adjust comment.
5499 (deferred_step_ptid): Delete.
5500 (infrun_thread_ptid_changed, prepare_to_proceed)
5501 (init_wait_for_inferior): Adjust.
5502 (handle_signal_stop): Delete deferred_step_ptid handling.
5504 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5507 * defs.h (sync_quit_force_run): New declaration.
5508 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5509 * event-top.c (async_sigterm_handler): New declaration.
5510 (async_sigterm_token): New variable.
5511 (async_init_signals): Create also async_sigterm_token.
5512 (async_sigterm_handler): New function.
5513 (sync_quit_force_run): New variable.
5514 (handle_sigterm): Replace quit_force call by other calls.
5515 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5517 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5519 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5520 offset into SPE pseudo registers.
5522 2014-03-18 Pedro Alves <palves@redhat.com>
5525 * inferior.h (print_stop_event): Declare.
5526 * infrun.c (print_stop_event): New, factored out from ...
5527 (normal_stop): ... this.
5528 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5529 of bpstat_print/print_stack_frame.
5531 2014-03-17 Tom Tromey <tromey@redhat.com>
5533 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5535 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5537 * ada-lang.c (decode_constrained_packed_array): Perform a
5538 minimal coercion for reference with coerce_ref instead of
5541 2014-03-17 Tristan Gingold <gingold@adacore.com>
5543 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5544 (darwin_solib_create_inferior_hook): Emit a warning if version
5547 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5549 * python/py-value.c (get_field_flag): Cast flag_name argument to
5550 PyObject_GetAttrString to support Python 2.4.
5552 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5554 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5555 (Global Maintainers): Remove Jan Kratochvil.
5557 2014-03-14 Pedro Alves <palves@redhat.com>
5559 * inferior.h (terminal_ours_for_output): Rename to ...
5560 (child_terminal_ours_for_output): ... this.
5561 (terminal_save_ours): Rename to ...
5562 (child_terminal_save_ours): ... this.
5563 (terminal_ours): Rename to ...
5564 (child_terminal_ours): ... this.
5565 (terminal_inferior): Rename to ...
5566 (child_terminal_inferior): ... this.
5567 (terminal_init_inferior): Rename to ...
5568 (child_terminal_init_inferior): ... this.
5569 (terminal_init_inferior_with_pgrp): Rename to ...
5570 (child_terminal_init_inferior_with_pgrp): ... this.
5571 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5572 (child_terminal_init_with_pgrp): ... this.
5573 (terminal_save_ours): Rename to ...
5574 (child_terminal_save_ours): ... this.
5575 (terminal_init_inferior): Rename to ...
5576 (child_terminal_init): ... this. Adjust.
5577 (terminal_inferior): Rename to ...
5578 (child_terminal_inferior): ... this.
5579 (terminal_ours_for_output): Rename to ...
5580 (child_terminal_ours_for_output): ... this. Adjust.
5581 (terminal_ours): Rename to ...
5582 (child_terminal_ours): ... this.
5583 (terminal_ours_1): Rename to ...
5584 (child_terminal_ours_1): ... this. Adjust.
5585 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5586 * windows-nat.c (do_initial_windows_stuff): Adjust.
5587 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5588 (gnu_terminal_init): ... this. Adjust.
5589 (gnu_target): Adjust.
5590 * inf-child.c (inf_child_target): Adjust.
5592 2014-03-13 Doug Evans <xdje42@gmail.com>
5595 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5598 2014-03-13 Doug Evans <xdje42@gmail.com>
5600 * value.c (record_latest_value): Call release_value_or_incref
5601 instead of release_value.
5603 2014-03-13 Pedro Alves <palves@redhat.com>
5605 * procfs.c (procfs_target): Don't override to_shortname,
5606 to_longname or to_doc.
5608 2014-03-13 Pedro Alves <palves@redhat.com>
5610 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5611 Unix in user visible strings.
5613 2014-03-12 Stan Shebs <stan@codesourcery.com>
5615 * gdbtypes.h: Annotate comments for Doxygen, add a page
5616 block comment with some general info.
5618 2014-03-12 Pedro Alves <palves@redhat.com>
5620 * infcmd.c (prepare_execution_command): New function, factored out
5621 from several execution commands.
5622 (run_command_1, continue_command, step_1, jump_command)
5623 (signal_command, until_command, advance_command, finish_command)
5624 (attach_command): Use prepare_execution_command.
5626 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5628 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5631 (struct arm_linux_thread_points): Removed.
5632 (struct arm_linux_process_info): New.
5633 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5634 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5635 (arm_linux_find_breakpoints_by_tid): Removed.
5636 (struct arch_lwp_info): New.
5637 (arm_linux_find_process_pid): New functions.
5638 (arm_linux_add_process): New functions.
5639 (arm_linux_process_info_get): New functions.
5640 (arm_linux_forget_process): New function.
5641 (arm_linux_get_debug_reg_state): New function.
5642 (struct update_registers_data): New.
5643 (update_registers_callback): New function.
5644 (arm_linux_insert_hw_breakpoint1): Updated.
5645 (arm_linux_remove_hw_breakpoint1): Updated.
5646 (arm_linux_insert_hw_breakpoint): Updated.
5647 (arm_linux_remove_hw_breakpoint): Updated.
5648 (arm_linux_insert_watchpoint): Updated.
5649 (arm_linux_remove_watchpoint): Updated.
5650 (arm_linux_new_thread): Updated.
5651 (arm_linux_prepare_to_resume): New function.
5652 (arm_linux_new_fork): New function.
5653 (_initialize_arm_linux_nat): Updated.
5655 2014-03-12 Pedro Alves <palves@redhat.com>
5657 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5659 2014-03-12 Tom Tromey <tromey@redhat.com>
5661 * inf-child.c (return_zero): New function.
5662 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5663 * aix-thread.c (aix_thread_inferior_created): New function.
5664 (aix_thread_attach): Remove.
5665 (init_aix_thread_ops): Don't set to_attach.
5666 (_initialize_aix_thread): Register inferior_created observer.
5667 * corelow.c (init_core_ops): Don't set to_attach or
5669 * exec.c (init_exec_ops): Don't set to_attach or
5671 * infcmd.c (run_command_1): Use find_run_target. Make direct
5673 (attach_command): Use find_attach_target. Make direct target
5675 * record-btrace.c (init_record_btrace_ops): Don't set
5677 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5679 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5680 set to_create_inferior.
5681 * target.c (complete_target_initialization): Add assertion.
5682 (target_create_inferior): Remove.
5683 (find_default_attach, find_default_create_inferior): Remove.
5684 (find_attach_target, find_run_target): New functions.
5685 (find_default_is_async_p, find_default_can_async_p)
5686 (target_supports_non_stop, target_attach): Remove.
5687 (init_dummy_target): Don't set to_create_inferior or
5688 to_supports_non_stop.
5689 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5690 TARGET_DEFAULT_FUNC.
5691 <to_create_inferior>: Add comment.
5692 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5693 TARGET_DEFAULT_RETURN.
5694 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5695 (find_attach_target, find_run_target): Declare.
5696 (target_create_inferior): Remove.
5697 (target_has_execution_1): Update comment.
5698 (target_supports_non_stop): Remove.
5699 * target-delegates.c: Rebuild.
5701 2014-03-12 Pedro Alves <palves@redhat.com>
5703 * inf-child.h: Update comment to not mention Unix.
5705 2014-03-12 Pedro Alves <palves@redhat.com>
5707 * inf-child.c: Update top comment to not mention Unix. Add
5708 generic comment describing how this target is meant to be used.
5709 (inf_child_post_attach, inf_child_post_startup_inferior)
5710 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5713 2014-03-12 Pedro Alves <palves@redhat.com>
5715 * nto-procfs.c: Include inf-child.h.
5716 (procfs_ops): Delete global.
5717 (procfs_can_run): Delete method.
5718 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5719 target pointer instead of referencing procfs_ops.
5720 (procfs_prepare_to_store): Delete.
5721 (init_procfs_ops): Delete function.
5722 (procfs_target): New function, based on init_procfs_ops, but
5723 inherit inf_child_target.
5724 (_initialize_procfs): Use procfs_target.
5726 2014-03-12 Pedro Alves <palves@redhat.com>
5728 * windows-nat.c: Include inf-child.h.
5729 (windows_ops): Delete global.
5730 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5732 (init_windows_ops): Delete function.
5733 (windows_target): New function, based on init_windows_ops, but
5734 inherit inf_child_target.
5735 (_initialize_windows_nat): Use windows_target. Install x86
5736 specific target methods here.
5738 2014-03-10 Doug Evans <xdje42@gmail.com>
5740 * guile/guile.c (call_initialize_gdb_module): New function.
5741 (initialize_guile): Replace call to scm_init_guile with call to
5744 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5746 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5747 in call to TYPE_CODE macro.
5749 2014-03-10 Jerome Guitton <guitton@adacore.com>
5751 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5752 Resolve tagged types to full view.
5754 2014-03-10 Hui Zhu <hui@codesourcery.com>
5756 * target.h (target_insert_breakpoint): Remove "hardware" from its
5759 2014-03-07 Doug Evans <dje@google.com>
5761 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5763 2014-03-07 Doug Evans <dje@google.com>
5765 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5766 Remove unused local comp_dir_attr. Assert exactly one of
5767 stub_comp_unit_die, stub_comp_dir is non-NULL.
5769 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5771 * target.h (complete_target_initialization, add_target):
5774 2014-03-07 Pedro Alves <palves@redhat.com>
5776 * go32-nat.c: Include inf-child.h.
5777 (go32_ops): Delete global.
5778 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5780 (go32_create_inferior): Push the passed in target pointer instead
5781 of referencing go32_ops.
5782 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5783 (go32_target): New function, based on init_go32_ops, but inherit
5785 (_initialize_go32_nat): Use go32_target. Move parts of
5788 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5790 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5791 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5792 SYMBOL_VALUE_ADDRESS.
5793 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5795 2014-03-06 Yao Qi <yao@codesourcery.com>
5797 * breakpoint.c (get_tracepoint_by_number): Remove argument
5798 optional_p. All callers updated. Adjust comments. Update
5800 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5802 2014-03-06 Yao Qi <yao@codesourcery.com>
5804 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5805 early if get_number returns zero. Use 'p' instead of 'args'.
5807 2014-03-06 Yao Qi <yao@codesourcery.com>
5809 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5812 2014-03-06 Yao Qi <yao@codesourcery.com>
5814 PR breakpoints/16508
5815 * tracepoint.c (check_trace_running): New function.
5816 (trace_find_command): Move code to check_trace_running and
5817 call check_trace_running.
5818 (trace_find_pc_command): Likewise.
5819 (trace_find_tracepoint_command): Likewise.
5820 (trace_find_line_command): Likewise.
5821 (trace_find_range_command): Likewise.
5822 * tracepoint.h (check_trace_running): Likewise.
5823 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5825 2014-03-06 Yao Qi <yao@codesourcery.com>
5827 * target.h (struct target_ops) <to_traceframe_info>: Use
5828 TARGET_DEFAULT_NORETURN (tcomplain ()).
5829 * target-delegates.c: Regenerated.
5831 2014-03-05 Pedro Alves <palves@redhat.com>
5834 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5835 void. Update comment.
5836 (dcache_xfer_memory): Delete.
5837 (dcache_read_memory_partial): New, based on the read bits of
5839 (dcache_update): Add status parameter. Use ULONGEST for len, and
5840 adjust. Discard cache lines if the reason for the update was
5842 * dcache.h (dcache_xfer_memory): Delete declaration.
5843 (dcache_read_memory_partial): New declaration.
5844 (dcache_update): Update prototype.
5845 * target.c (raw_memory_xfer_partial): Update the dcache here.
5846 (memory_xfer_partial_1): Don't handle dcache writes here.
5848 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5850 * remote-sim.c (gdbsim_load): Add const to prog.
5852 2014-03-03 Tom Tromey <tromey@redhat.com>
5854 * elfread.c (probe_key): Change to bfd_data.
5855 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5856 now per-BFD, not per-objfile.
5857 * stap-probe.c (stap_probe_destroy): Update comment.
5858 (handle_stap_probe): Allocate on the per-BFD obstack.
5860 2014-03-03 Tom Tromey <tromey@redhat.com>
5862 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5863 * breakpoint.c (create_longjmp_master_breakpoint): Use
5865 (add_location_to_breakpoint, bkpt_probe_insert_location)
5866 (bkpt_probe_remove_location): Update.
5867 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5868 * elfread.c (elf_symfile_relocate_probe): Remove.
5869 (elf_probe_fns): Update.
5870 (insert_exception_resume_breakpoint): Change type of "probe"
5871 parameter to bound_probe.
5872 (check_exception_resume): Update.
5873 * objfiles.c (objfile_relocate1): Don't relocate probes.
5874 * probe.c (bound_probe_s): New typedef.
5875 (parse_probes): Use get_probe_address. Set sal's objfile.
5876 (find_probe_by_pc): Return a bound_probe.
5877 (collect_probes): Return a VEC(bound_probe_s).
5878 (compare_probes): Update.
5879 (gen_ui_out_table_header_info): Change type of "probes"
5881 (info_probes_for_ops): Update.
5882 (get_probe_address): New function.
5883 (probe_safe_evaluate_at_pc): Update.
5884 * probe.h (struct probe_ops) <get_probe_address>: New field.
5885 <set_semaphore, clear_semaphore>: Add objfile parameter.
5886 (struct probe) <objfile>: Remove field.
5888 <address>: Update comment.
5889 (struct bound_probe): New.
5890 (find_probe_by_pc): Return a bound_probe.
5891 (get_probe_address): Declare.
5892 * solib-svr4.c (struct probe_and_action) <address>: New field.
5893 (hash_probe_and_action, equal_probe_and_action): Update.
5894 (register_solib_event_probe): Add address parameter.
5895 (solib_event_probe_at): Update.
5896 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5898 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5899 (stap_get_probe_address): New function.
5900 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5901 (compile_probe_arg): Update.
5902 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5904 (handle_stap_probe): Don't relocate the probe.
5905 (stap_relocate): Remove.
5906 (stap_gen_info_probes_table_values): Update.
5907 (stap_probe_ops): Remove stap_relocate.
5908 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5909 (debug_sym_probe_fns): Update.
5910 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5911 * symtab.c (init_sal): Use memset.
5912 * symtab.h (struct symtab_and_line) <objfile>: New field.
5913 * tracepoint.c (start_tracing, stop_tracing): Update.
5915 2014-03-03 Tom Tromey <tromey@redhat.com>
5917 * probe.h (parse_probes, find_probe_by_pc)
5918 (find_probes_in_objfile): Fix comments.
5920 2014-03-02 Doug Evans <xdje42@gmail.com>
5922 * infrun.c (handle_signal_stop): Replace test for
5923 TARGET_WAITKIND_STOPPED with an assert.
5925 2014-03-02 Doug Evans <xdje42@gmail.com>
5927 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5929 2014-03-02 Doug Evans <xdje42@gmail.com>
5931 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5933 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5935 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5937 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5939 * i386obsd-nat.c: Include "obsd-nat.h".
5940 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5942 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5944 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5946 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5948 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5950 * mips64obsd-nat.c: Include "obsd-nath".
5951 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5953 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5955 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5957 * amd64obsd-nat.c: Include "obsd-nat,h.
5958 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5960 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5962 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5964 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5965 (find_overload_match): Update call to find_oload_champ.
5966 (find_oload_champ_namespace_loop): Likewise
5968 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5970 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5972 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5973 * config/sparc/obsd64.mh: New file.
5974 * sparc64obsd-nat.c: New file.
5976 * obsd-nat.h: New file.
5977 * obsd-nat.c: New file.
5978 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5979 (ALLDEPFILES): Add obsd-nat.c.
5981 2014-02-28 Tom Tromey <tromey@redhat.com>
5983 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5984 * cli-out.h (cli_ui_out_impl): Now const.
5985 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5986 * ui-out.c (struct ui_out) <impl>: Now const.
5987 (default_ui_out_impl): Now const.
5988 (ui_out_new): Make 'impl' parameter const.
5989 * ui-out.h (ui_out_new): Update.
5991 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5993 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5995 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5997 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5999 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6001 Additional PR 8882 fix.
6002 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6004 2014-02-27 Pedro Alves <palves@redhat.com>
6006 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6009 2014-02-27 Pedro Alves <palves@redhat.com>
6012 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6013 * nat/linux-waitpid.c: Include string.h.
6014 (status_to_str): Moved here and made extern.
6015 * nat/linux-waitpid.h (status_to_str): New declaration.
6017 2014-02-27 Hui Zhu <hui@codesourcery.com>
6020 * infrun.c (ptid_match): Move ...
6021 * common/ptid.c (ptid_match): ... here.
6022 * inferior.h (ptid_match): Move ...
6023 * common/ptid.h (ptid_match): ... here.
6025 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6027 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6028 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6031 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6033 * obsd-tdep.c (obsd_auxv_parse): New function.
6034 (obsd_init_abi): Set auxv_parse.
6036 * gdbarch.sh (auxv_parse): New.
6037 * gdbarch.h: Regenerated.
6038 * gdbarch.c: Regenerated.
6039 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6041 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6043 * guile/scm-value.c (gdbscm_history_append_x): New function.
6044 (value_functions): Add it.
6046 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6048 * dwarf2read.c (attr_value_as_address): New function.
6049 (dwarf2_find_base_address, read_call_site_scope): Use
6050 attr_value_as_address in place of DW_ADDR.
6051 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6052 the low and high addresses. Slight rework of the handling
6053 of the high pc being a constant form, and limit it to
6054 DWARF verson 4 or higher.
6055 (dwarf2_record_block_ranges): Likewise.
6056 (read_partial_die): Likewise.
6057 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6059 2014-02-26 Tom Tromey <tromey@redhat.com>
6061 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6063 2014-02-26 Tom Tromey <tromey@redhat.com>
6065 * elfread.c (elf_read_minimal_symbols): Return early if
6066 minimal symbols have already been read. Add "ei" parameter.
6067 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6068 * minsyms.c (prim_record_minimal_symbol_full): Update.
6069 * objfiles.h (struct objstats) <n_minsyms>: Move...
6070 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6071 * symmisc.c (print_objfile_statistics): Update.
6073 2014-02-26 Tom Tromey <tromey@redhat.com>
6075 * elfread.c (elf_read_minimal_symbols): New function, from
6077 (elf_symfile_read): Call it.
6079 2014-02-26 Tom Tromey <tromey@redhat.com>
6081 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6082 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6083 (lookup_minimal_symbol_solib_trampoline)
6084 (lookup_minimal_symbol_by_pc_section_1)
6085 (lookup_minimal_symbol_and_objfile): Update.
6086 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6087 Don't allocate a minimal symbol if minsyms have already been read.
6088 (build_minimal_symbol_hash_tables): Update.
6089 (install_minimal_symbols): Do nothing if minsyms already read.
6090 Use the per-BFD obstack.
6091 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6092 * objfiles.c (allocate_objfile): Call
6093 terminate_minimal_symbol_table later.
6094 (have_minimal_symbols): Update.
6095 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6096 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6097 Move from struct objfile.
6098 <minsyms_read>: New field.
6099 (struct objfile) <msymbols, minimal_symbol_count,
6100 msymbol_hash, msymbol_demangled_hash>: Move.
6101 (ALL_OBJFILE_MSYMBOLS): Update.
6102 * symfile.c (read_symbols): Set minsyms_read.
6103 (reread_symbols): Update.
6104 * symmisc.c (dump_objfile, dump_msymbols): Update.
6106 2014-02-26 Tom Tromey <tromey@redhat.com>
6108 * minsyms.c (msymbols_sort): Remove.
6109 * minsyms.h (msymbols_sort): Remove.
6110 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6111 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6112 * elfread.c (elf_symtab_read): Don't add section offsets.
6113 * xcoffread.c (record_minimal_symbol): Don't add section offset
6114 to minimal symbol address.
6115 * somread.c (text_offset, data_offset): Remove.
6116 (som_symtab_read): Don't add section offsets to minimal symbol
6118 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6119 Don't add section offsets to minimal symbols.
6120 * coffread.c (coff_symtab_read): Don't add section offsets
6121 to minimal symbol addresses.
6122 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6123 to minimal symbol addresses.
6124 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6125 section offset to minimal symbol addresses.
6126 * mdebugread.c (parse_partial_symbols): Don't add section
6127 offset to minimal symbol addresses.
6128 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6129 offset to minimal symbol addresses.
6131 2014-02-26 Tom Tromey <tromey@redhat.com>
6133 * ada-lang.c (ada_main_name): Update.
6134 (ada_add_standard_exceptions): Update.
6135 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6136 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6137 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6138 * auxv.c (ld_so_xfer_auxv): Update.
6139 * avr-tdep.c (avr_scan_prologue): Update.
6140 * ax-gdb.c (gen_var_ref): Update.
6141 * blockframe.c (get_pc_function_start)
6142 (find_pc_partial_function_gnu_ifunc): Update.
6143 * breakpoint.c (create_overlay_event_breakpoint)
6144 (create_longjmp_master_breakpoint)
6145 (create_std_terminate_master_breakpoint)
6146 (create_exception_master_breakpoint): Update.
6147 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6148 * c-valprint.c (c_val_print): Update.
6149 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6150 * common/agent.c (agent_look_up_symbols): Update.
6151 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6152 * dwarf2loc.c (call_site_to_target_addr): Update.
6153 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6154 * elfread.c (elf_gnu_ifunc_record_cache)
6155 (elf_gnu_ifunc_resolve_by_got): Update.
6156 * findvar.c (default_read_var_value): Update.
6157 * frame.c (inside_main_func): Update.
6158 * frv-tdep.c (frv_frame_this_id): Update.
6159 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6160 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6162 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6163 (hppa_hpux_find_dummy_bpaddr): Update.
6164 * hppa-tdep.c (hppa_symbol_address): Update.
6165 * infcmd.c (until_next_command): Update.
6166 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6168 * linespec.c (minsym_found, add_minsym): Update.
6169 * linux-nat.c (get_signo): Update.
6170 * linux-thread-db.c (inferior_has_bug): Update.
6171 * m32c-tdep.c (m32c_return_value)
6172 (m32c_m16c_address_to_pointer): Update.
6173 * m32r-tdep.c (m32r_frame_this_id): Update.
6174 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6175 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6176 * maint.c (maintenance_translate_address): Update.
6177 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6178 (frob_address): New function.
6179 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6180 frob_address. Rename parameter to "pc_in".
6181 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6183 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6185 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6186 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6187 * objc-lang.c (find_objc_msgsend): Update.
6188 * objfiles.c (objfile_relocate1): Update.
6189 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6190 * p-valprint.c (pascal_val_print): Update.
6191 * parse.c (write_exp_msymbol): Update.
6192 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6193 (ppc_elfv2_skip_entrypoint): Update.
6194 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6195 * printcmd.c (build_address_symbolic, msym_info)
6196 (address_info): Update.
6197 * proc-service.c (ps_pglobal_lookup): Update.
6198 * psymtab.c (find_pc_sect_psymtab_closer)
6199 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6200 Change msymbol parameter to bound_minimal_symbol.
6201 * ravenscar-thread.c (get_running_thread_id): Update.
6202 * remote.c (remote_check_symbols): Update.
6203 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6205 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6206 * solib-dsbt.c (lm_base): Update.
6207 * solib-frv.c (lm_base, main_got): Update.
6208 * solib-irix.c (locate_base): Update.
6209 * solib-som.c (som_solib_create_inferior_hook)
6210 (link_map_start): Update.
6211 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6212 * solib-svr4.c (elf_locate_base, enable_break): Update.
6213 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6214 (flush_ea_cache): Update.
6215 * stabsread.c (define_symbol, scan_file_globals): Update.
6216 * stack.c (find_frame_funname): Update.
6217 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6218 (debug_qf_find_pc_sect_symtab): Update.
6219 * symfile.c (simple_read_overlay_table)
6220 (simple_overlay_update): Update.
6221 * symfile.h (struct quick_symbol_functions)
6222 <find_pc_sect_symtab>: Change type of msymbol to
6223 bound_minimal_symbol.
6224 * symmisc.c (dump_msymbols): Update.
6225 * symtab.c (find_pc_sect_symtab_via_partial)
6226 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6227 (search_symbols, print_msymbol_info): Update.
6228 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6229 (MSYMBOL_VALUE_ADDRESS): Redefine.
6230 (BMSYMBOL_VALUE_ADDRESS): New macro.
6231 * tracepoint.c (scope_info): Update.
6232 * tui/tui-disasm.c (tui_find_disassembly_address)
6233 (tui_get_begin_asm_address): Update.
6234 * valops.c (find_function_in_inferior): Update.
6235 * value.c (value_static_field, value_fn_field): Update.
6237 2014-02-26 Tom Tromey <tromey@redhat.com>
6239 * ada-lang.c (ada_update_initial_language): Update.
6240 (ada_main_name, ada_has_this_exception_support): Update.
6241 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6242 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6243 * arm-tdep.c (arm_skip_stub): Update.
6244 * auxv.c (ld_so_xfer_auxv): Update.
6245 * avr-tdep.c (avr_scan_prologue): Update.
6246 * ax-gdb.c (gen_var_ref): Update.
6247 * breakpoint.c (struct breakpoint_objfile_data)
6248 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6249 type to bound_minimal_symbol.
6250 (create_overlay_event_breakpoint)
6251 (create_longjmp_master_breakpoint)
6252 (create_std_terminate_master_breakpoint)
6253 (create_exception_master_breakpoint): Update.
6254 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6255 * c-exp.y (classify_name): Update.
6256 * coffread.c (coff_symfile_read): Update.
6257 * common/agent.c (agent_look_up_symbols): Update.
6258 * d-lang.c (d_main_name): Update.
6259 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6260 * dec-thread.c (enable_dec_thread): Update.
6261 * dwarf2loc.c (call_site_to_target_addr): Update.
6262 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6263 * eval.c (evaluate_subexp_standard): Update.
6264 * findvar.c (struct minsym_lookup_data) <result>: Change type
6265 to bound_minimal_symbol.
6267 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6268 * frame.c (inside_main_func): Update.
6269 * frv-tdep.c (frv_frame_this_id): Update.
6270 * gcore.c (call_target_sbrk): Update.
6271 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6272 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6274 * go-lang.c (go_main_name): Update.
6275 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6276 (hppa_hpux_find_import_stub_for_addr): Update.
6277 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6278 Update. Change return type.
6279 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6281 * jit.c (jit_breakpoint_re_set_internal): Update.
6282 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6284 * linux-nat.c (get_signo): Update.
6285 * linux-thread-db.c (inferior_has_bug): Update
6286 * m32c-tdep.c (m32c_return_value)
6287 (m32c_m16c_address_to_pointer): Update.
6288 * m32r-tdep.c (m32r_frame_this_id): Update.
6289 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6290 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6291 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6292 lookup_minimal_symbol. Change return type.
6293 (lookup_minimal_symbol): Remove.
6294 (lookup_bound_minimal_symbol): Update.
6295 (lookup_minimal_symbol_text): Change return type.
6296 (lookup_minimal_symbol_solib_trampoline): Change return type.
6297 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6298 (lookup_minimal_symbol_solib_trampoline): Change return type.
6299 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6300 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6301 (value_nsstring, find_imps): Update.
6302 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6303 * p-lang.c (pascal_main_name): Update.
6304 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6305 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6306 * proc-service.c (ps_pglobal_lookup): Update.
6307 * ravenscar-thread.c (get_running_thread_msymbol): Change
6309 (has_ravenscar_runtime, get_running_thread_id): Update.
6310 * remote.c (remote_check_symbols): Update.
6311 * sol-thread.c (ps_pglobal_lookup): Update.
6312 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6313 * solib-dsbt.c (lm_base): Update.
6314 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6316 * solib-irix.c (locate_base): Update.
6317 * solib-som.c (som_solib_create_inferior_hook)
6318 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6320 * solib-spu.c (spu_enable_break): Update.
6321 * solib-svr4.c (elf_locate_base, enable_break): Update.
6322 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6323 (flush_ea_cache): Update.
6324 * stabsread.c (define_symbol): Update.
6325 * symfile.c (simple_read_overlay_table): Update.
6326 * symtab.c (find_pc_sect_line): Update.
6327 * tracepoint.c (scope_info): Update.
6328 * tui-disasm.c (tui_get_begin_asm_address): Update.
6329 * value.c (value_static_field): Update.
6331 2014-02-26 Tom Tromey <tromey@redhat.com>
6333 * minsyms.c (prim_record_minimal_symbol_full): Use
6334 SET_MSYMBOL_VALUE_ADDRESS.
6335 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6336 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6337 SET_MSYMBOL_VALUE_ADDRESS.
6338 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6339 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6341 2014-02-26 Tom Tromey <tromey@redhat.com>
6343 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6344 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6345 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6346 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6347 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6348 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6349 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6350 * ada-lang.c (ada_main_name): Update.
6351 (ada_lookup_simple_minsym): Update.
6352 (ada_make_symbol_completion_list): Update.
6353 (ada_add_standard_exceptions): Update.
6354 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6355 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6356 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6357 * arm-tdep.c (skip_prologue_function): Update.
6358 (arm_skip_stack_protector, arm_skip_stub): Update.
6359 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6360 (arm_wince_skip_main_prologue): Update.
6361 * auxv.c (ld_so_xfer_auxv): Update.
6362 * avr-tdep.c (avr_scan_prologue): Update.
6363 * ax-gdb.c (gen_var_ref): Update.
6364 * block.c (call_site_for_pc): Update.
6365 * blockframe.c (get_pc_function_start): Update.
6366 (find_pc_partial_function_gnu_ifunc): Update.
6367 * breakpoint.c (create_overlay_event_breakpoint): Update.
6368 (create_longjmp_master_breakpoint): Update.
6369 (create_std_terminate_master_breakpoint): Update.
6370 (create_exception_master_breakpoint): Update.
6371 (resolve_sal_pc): Update.
6372 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6373 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6375 * c-valprint.c (c_val_print): Update.
6376 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6377 * coffread.c (coff_symfile_read): Update.
6378 * common/agent.c (agent_look_up_symbols): Update.
6379 * dbxread.c (find_stab_function_addr): Update.
6380 (end_psymtab): Update.
6381 * dwarf2loc.c (call_site_to_target_addr): Update.
6382 (func_verify_no_selftailcall): Update.
6383 (tailcall_dump): Update.
6384 (call_site_find_chain_1): Update.
6385 (dwarf_expr_reg_to_entry_parameter): Update.
6386 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6387 (elf_gnu_ifunc_resolve_by_got): Update.
6388 * f-valprint.c (info_common_command): Update.
6389 * findvar.c (read_var_value): Update.
6390 * frame.c (get_prev_frame_1): Update.
6391 (inside_main_func): Update.
6392 * frv-tdep.c (frv_skip_main_prologue): Update.
6393 (frv_frame_this_id): Update.
6394 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6395 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6396 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6397 (gnuv3_skip_trampoline): Update.
6398 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6399 (hppa64_hpux_in_solib_call_trampoline): Update.
6400 (hppa_hpux_skip_trampoline_code): Update.
6401 (hppa64_hpux_search_dummy_call_sequence): Update.
6402 (hppa_hpux_find_import_stub_for_addr): Update.
6403 (hppa_hpux_find_dummy_bpaddr): Update.
6404 * hppa-tdep.c (hppa_symbol_address)
6405 (hppa_lookup_stub_minimal_symbol): Update.
6406 * i386-tdep.c (i386_skip_main_prologue): Update.
6407 (i386_pe_skip_trampoline_code): Update.
6408 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6409 * infcall.c (get_function_name): Update.
6410 * infcmd.c (until_next_command): Update.
6411 * jit.c (jit_breakpoint_re_set_internal): Update.
6412 (jit_inferior_init): Update.
6413 * linespec.c (minsym_found): Update.
6414 (add_minsym): Update.
6415 * linux-fork.c (info_checkpoints_command): Update.
6416 * linux-nat.c (get_signo): Update.
6417 * linux-thread-db.c (inferior_has_bug): Update.
6418 * m32c-tdep.c (m32c_return_value): Update.
6419 (m32c_m16c_address_to_pointer): Update.
6420 (m32c_m16c_pointer_to_address): Update.
6421 * m32r-tdep.c (m32r_frame_this_id): Update.
6422 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6423 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6424 * maint.c (maintenance_translate_address): Update.
6425 * minsyms.c (add_minsym_to_hash_table): Update.
6426 (add_minsym_to_demangled_hash_table): Update.
6427 (msymbol_objfile): Update.
6428 (lookup_minimal_symbol): Update.
6429 (iterate_over_minimal_symbols): Update.
6430 (lookup_minimal_symbol_text): Update.
6431 (lookup_minimal_symbol_by_pc_name): Update.
6432 (lookup_minimal_symbol_solib_trampoline): Update.
6433 (lookup_minimal_symbol_by_pc_section_1): Update.
6434 (lookup_minimal_symbol_and_objfile): Update.
6435 (prim_record_minimal_symbol_full): Update.
6436 (compare_minimal_symbols): Update.
6437 (compact_minimal_symbols): Update.
6438 (build_minimal_symbol_hash_tables): Update.
6439 (install_minimal_symbols): Update.
6440 (terminate_minimal_symbol_table): Update.
6441 (find_solib_trampoline_target): Update.
6442 (minimal_symbol_upper_bound): Update.
6443 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6444 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6445 (mips_skip_pic_trampoline_code): Update.
6446 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6447 * objc-lang.c (selectors_info): Update.
6448 (classes_info): Update.
6449 (find_methods): Update.
6450 (find_imps): Update.
6451 (find_objc_msgsend): Update.
6452 * objfiles.c (objfile_relocate1): Update.
6453 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6454 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6455 * p-valprint.c (pascal_val_print): Update.
6456 * parse.c (write_exp_msymbol): Update.
6457 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6458 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6459 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6460 * printcmd.c (build_address_symbolic): Update.
6462 (address_info): Update.
6463 * proc-service.c (ps_pglobal_lookup): Update.
6464 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6465 (find_pc_sect_psymtab): Update.
6466 * python/py-framefilter.c (py_print_frame): Update.
6467 * ravenscar-thread.c (get_running_thread_id): Update.
6468 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6470 * remote.c (remote_check_symbols): Update.
6471 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6472 (rs6000_skip_trampoline_code): Update.
6473 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6474 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6475 * solib-dsbt.c (lm_base): Update.
6476 * solib-frv.c (lm_base): Update.
6478 * solib-irix.c (locate_base): Update.
6479 * solib-som.c (som_solib_create_inferior_hook): Update.
6480 (som_solib_desire_dynamic_linker_symbols): Update.
6481 (link_map_start): Update.
6482 * solib-spu.c (spu_enable_break): Update.
6483 (ocl_enable_break): Update.
6484 * solib-svr4.c (elf_locate_base): Update.
6485 (enable_break): Update.
6486 * spu-tdep.c (spu_get_overlay_table): Update.
6487 (spu_catch_start): Update.
6488 (flush_ea_cache): Update.
6489 * stabsread.c (define_symbol): Update.
6490 (scan_file_globals): Update.
6491 * stack.c (find_frame_funname): Update.
6492 (frame_info): Update.
6493 * symfile.c (simple_read_overlay_table): Update.
6494 (simple_overlay_update): Update.
6495 * symmisc.c (dump_msymbols): Update.
6496 * symtab.c (fixup_section): Update.
6497 (find_pc_sect_line): Update.
6498 (skip_prologue_sal): Update.
6499 (search_symbols): Update.
6500 (print_msymbol_info): Update.
6501 (rbreak_command): Update.
6502 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6503 (completion_list_objc_symbol): Update.
6504 (default_make_symbol_completion_list_break_on): Update.
6505 * tracepoint.c (scope_info): Update.
6506 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6507 (tui_get_begin_asm_address): Update.
6508 * valops.c (find_function_in_inferior): Update.
6509 * value.c (value_static_field): Update.
6510 (value_fn_field): Update.
6512 2014-02-26 Tom Tromey <tromey@redhat.com>
6514 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6515 bound minimal symbols. Move code that knows about minsym
6517 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6519 * minsyms.h (minimal_symbol_upper_bound): Declare.
6520 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6521 minimal_symbol_upper_bound.
6523 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6525 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6526 Use the type's name if its basic type does not have a tag.
6528 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6530 * dwarf2read.c (read_subrange_type): Add comment.
6532 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6534 * dwarf2read.c (update_enumeration_type_from_children): New
6535 function, mostly extracted from process_structure_scope.
6536 (read_enumeration_type): Call update_enumeration_type_from_children.
6537 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6538 and flag_flag_enum fields.
6540 2014-02-26 Pedro Alves <palves@redhat.com>
6542 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6543 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6544 to_xfer_partial method.
6546 2014-02-26 Pedro Alves <palves@redhat.com>
6548 * target.c (complete_target_initialization): Don't install
6549 default_xfer_partial as to_xfer_partial hook.
6551 (update_current_target): Don't INHERIT nor de_fault
6552 deprecated_xfer_memory. Delete de_fault macro.
6553 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6554 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6555 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6558 2014-02-26 Pedro Alves <palves@redhat.com>
6560 * go32-nat.c (my_write_child): New function.
6561 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6562 (go32_xfer_partial): New function.
6563 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6564 Instead install a to_xfer_partial hook.
6566 2014-02-26 Pedro Alves <palves@redhat.com>
6568 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6569 to_xfer_partial helper. Rewrite.
6570 (procfs_xfer_partial): New function.
6571 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6572 Install a to_xfer_partial hook.
6574 2014-02-26 Pedro Alves <palves@redhat.com>
6576 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6577 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6578 (m32r_xfer_partial): New function.
6579 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6580 Install a to_xfer_partial hook.
6582 2014-02-26 Pedro Alves <palves@redhat.com>
6584 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6586 (mips_xfer_partial): New function.
6587 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6588 hook. Install a to_xfer_partial hook.
6590 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6592 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6593 * gdbtypes.c (create_array_type_with_stride): New function,
6594 renaming create_array_type, but with an added parameter
6595 called "bit_stride".
6596 (create_array_type): Re-implement using
6597 create_array_type_with_stride.
6598 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6599 and DW_AT_bit_stride attributes.
6601 2014-02-26 Pedro Alves <palves@redhat.com>
6603 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6604 task-specific breakpoints.
6606 2014-02-25 Pedro Alves <palves@redhat.com>
6608 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6609 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6611 2014-02-25 Stan Shebs <stan@codesourcery.com>
6613 * defs.h: Annotate comments for Doxygen.
6615 2014-02-25 Tom Tromey <tromey@redhat.com>
6617 * target.h (target_ignore): Don't declare.
6618 * target.c (target_ignore): Remove.
6620 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6623 * auto-load.c (auto_load_objfile_script_1): Change filename to
6626 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6628 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6629 documentation. Adjust prototype to match the target_ops
6630 to_xfer_partial method. Adjust implementation accordingly.
6632 2014-02-25 Hui Zhu <hui@codesourcery.com>
6634 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6637 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6639 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6640 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6641 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6642 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6643 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6644 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6645 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6646 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6648 (rl78_register_type): Use a data pointer type for SP and
6649 new pseudo registers mentioned above. Use a 16 bit integer
6650 type for all other register pairs.
6651 (rl78_register_name, rl78_g10_register_name): Update for
6652 new pseudo registers.
6653 (rl78_pseudo_register_read): Likewise.
6654 (rl78_pseudo_register_write): Likewise.
6655 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6656 to the newly added pseudo registers.
6658 2014-02-24 Doug Evans <dje@google.com>
6660 * value.c (record_latest_value): Fix comment.
6661 * printcmd.c (print_command_1): Remove code to handle -1 return from
6662 record_latest_value.
6664 2014-02-24 Pedro Alves <palves@redhat.com>
6666 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6667 deprecated_xfer_memory hook.
6668 (procfs_xfer_partial): Call procfs_xfer_memory instead
6669 of the deprecated_xfer_memory target hook.
6670 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6673 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6675 * windows-nat.c (windows_xfer_shared_libraries): Return
6676 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6677 requested object is TARGET_OBJECT_LIBRARIES.
6679 2014-02-24 Yao Qi <yao@codesourcery.com>
6681 * target.h (enum target_xfer_status)
6682 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6683 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6685 * corefile.c (memory_error_message): User updated.
6686 * exec.c (section_table_read_available_memory): Likewise.
6687 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6688 * target.c (target_xfer_status_to_string): Likewise.
6689 (raw_memory_xfer_partial): Likewise.
6690 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6691 * valops.c (read_value_memory): Likewise.
6692 * exec.h: Update comments.
6694 2014-02-24 Yao Qi <yao@codesourcery.com>
6696 * target.c (target_xfer_status_to_string): Rename argument err
6698 * target.h (target_xfer_status_to_string): Update declaration.
6699 Replace target_xfer_error_to_string with
6700 target_xfer_status_to_string in comment.
6702 2014-02-24 Yao Qi <yao@codesourcery.com>
6704 * mips-linux-nat.c (super_close): Update its type.
6705 (mips_linux_close): Pass 'self' to super_close.
6707 2014-02-24 Yao Qi <yao@codesourcery.com>
6709 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6710 * corefile.c (read_memory): Adjusted.
6711 * target.c (target_write_with_progress): Adjusted.
6713 2014-02-23 Yao Qi <yao@codesourcery.com>
6717 2013-10-25 Yao Qi <yao@codesourcery.com>
6719 * remote.c (remote_traceframe_info): Return early if
6720 traceframe is not selected.
6722 2013-07-19 Yao Qi <yao@codesourcery.com>
6724 * target.c (update_current_target): Change the default action
6725 of 'to_traceframe_info' from tcomplain to return_zero.
6726 * target.h (struct target_ops) <to_traceframe_info>: Add more
6729 2014-02-23 Yao Qi <yao@codesourcery.com>
6731 * valops.c (read_value_memory): Rewrite it. Call
6732 target_xfer_partial in a loop.
6733 * exec.h (section_table_available_memory): Remove declaration.
6734 Move comments to ...
6735 * exec.c (section_table_available_memory): ... here. Make it
6738 2014-02-23 Yao Qi <yao@codesourcery.com>
6740 * exec.c (section_table_read_available_memory): New function.
6741 * exec.h (section_table_read_available_memory): Declare.
6742 * ctf.c (ctf_xfer_partial): Call
6743 section_table_read_available_memory.
6744 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6746 2014-02-23 Yao Qi <yao@codesourcery.com>
6748 * ctf.c (ctf_xfer_partial): Move code to ...
6749 * exec.c (exec_read_partial_read_only): ... it. New function.
6750 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6751 * tracefile.c: Include "exec.h".
6752 * exec.h (exec_read_partial_read_only): Declare.
6754 2014-02-23 Yao Qi <yao@codesourcery.com>
6756 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6757 (tfile_has_memory): Remove.
6758 (init_tfile_ops): Don't set fields to_has_all_memory and
6759 to_has_memory of tfile_ops.
6760 * tracefile.c (tracefile_has_all_memory): New function.
6761 (tracefile_has_memory): New function.
6762 (init_tracefile_ops): Initialize fields to_has_all_memory and
6763 to_has_memory of 'ops'.
6765 2014-02-23 Yao Qi <yao@codesourcery.com>
6767 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6768 (ctf_thread_alive, ctf_get_trace_status): Remove.
6769 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6771 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6772 (tfile_has_stack, tfile_has_registers): Remove.
6773 (tfile_thread_alive): Remove.
6774 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6776 * tracefile.c (tracefile_has_stack): New function.
6777 (tracefile_has_registers): New function.
6778 (tracefile_thread_alive): New function.
6779 (tracefile_get_trace_status): New function.
6780 (init_tracefile_ops): New function.
6781 * tracefile.h (init_tracefile_ops): Declare.
6783 2014-02-23 Yao Qi <yao@codesourcery.com>
6785 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6786 (O_LARGEFILE): Likewise.
6787 (tfile_ops): Likewise.
6788 (TRACE_HEADER_SIZE): Likewise.
6789 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6790 (cur_data_size): Likewise.
6791 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6792 (tfile_close, tfile_files_info): Likewise.
6793 (tfile_get_trace_status): Likewise.
6794 (tfile_get_tracepoint_status): Likewise.
6795 (tfile_get_traceframe_address): Likewise.
6796 (tfile_trace_find, match_blocktype): Likewise.
6797 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6798 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6799 (tfile_get_trace_state_variable_value): Likewise.
6800 (tfile_has_all_memory, tfile_has_memory): Likewise.
6801 (tfile_has_stack, tfile_has_registers): Likewise.
6802 (tfile_thread_alive, build_traceframe_info): Likewise.
6803 (tfile_traceframe_info, init_tfile_ops): Likewise.
6804 (_initialize_tracepoint): Don't call init_tfile_ops
6805 and add_target_with_completer.
6806 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6807 exec.h, completer.h and filenames.h.
6808 (_initialize_tracefile_tfile): New function.
6810 2014-02-23 Yao Qi <yao@codesourcery.com>
6812 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6814 (HFILES_NO_SRCDIR): Add tracefile.h.
6815 * ctf.c: Include "tracefile.h".
6816 * tracefile.h: New file.
6817 * tracefile.c: New file
6818 * tracefile-tfile.c: New file.
6819 * tracepoint.c: Include "tracefile.h".
6820 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6821 (stop_reason_names): Add const.
6822 (trace_file_writer_xfree): Move it to tracefile.c.
6823 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6824 (trace_save_ctf): Likewise.
6825 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6826 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6827 (tfile_write_header, tfile_write_regblock_type): Likewise.
6828 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6829 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6830 (tfile_write_raw_data, tfile_end): Likewise.
6831 (tfile_trace_file_writer_new): Likewise.
6832 (free_uploaded_tp): Make it extern.
6833 (free_uploaded_tsv): Make it extern.
6834 (_initialize_tracepoint): Move code to register command 'tsave'
6836 * tracepoint.h (stop_reason_names): Declare.
6837 (struct trace_frame_write_ops): Move it to tracefile.h.
6838 (struct trace_file_write_ops): Likewise.
6839 (struct trace_file_writer): Likewise.
6840 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6842 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6845 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6847 (get_cores_used_by_process): New parameter num_cores, use it.
6848 (linux_xfer_osdata_processes): Pass num_cores to it.
6849 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6852 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6854 * target.c (memory_xfer_partial): Fix length arg in call to
6855 breakpoint_xfer_memory.
6857 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6860 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6861 number comes after the + or - signs. Adjust length of register
6862 name to be extracted.
6864 2014-02-20 Tom Tromey <tromey@redhat.com>
6866 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6867 (ada_varobj_ops): Mark "extern".
6869 2014-02-20 Tom Tromey <tromey@redhat.com>
6871 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6873 2014-02-20 Doug Evans <xdje42@gmail.com>
6875 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6876 All callers updated.
6877 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6878 All callers updated.
6879 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6880 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6882 2014-02-20 lin zuojian <manjian2006@gmail.com>
6883 Joel Brobecker <brobecker@adacore.com>
6884 Doug Evans <xdje42@gmail.com>
6887 * dwarf2read.c (struct die_info): New member in_process.
6888 (reset_die_in_process): New function.
6889 (process_die): Set it at the start, reset when returning.
6890 (inherit_abstract_dies): Only call process_die if origin_child_die
6891 not already being processed.
6893 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6895 * windows-nat.c (handle_unload_dll): Add function documentation.
6896 (do_initial_windows_stuff): Add comment explaining why we wait
6897 until after inferior initialization has finished before
6898 processing all DLLs.
6900 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6902 * windows-nat.c (get_module_name): Delete.
6903 (windows_get_exec_module_filename): New function, mostly
6904 inspired from get_module_name.
6905 (windows_pid_to_exec_file): Replace call to get_module_name
6906 by call to windows_get_exec_module_filename.
6908 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6910 * windows-nat.c (handle_load_dll): Rewrite this function's
6911 introductory comment. Remove code using get_module_name
6912 to get the DLL's name.
6914 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6916 * windows-nat.c (get_windows_debug_event): Ignore
6917 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6918 if windows_initialization_done == 0.
6919 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6920 Adjust implementation to always load all DLLs.
6921 (do_initial_windows_stuff): Replace call to
6922 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6924 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6926 * windows-nat.c (_initialize_windows_nat): Deprecate the
6927 "dll-symbols" command. Turn the "add-shared-symbol-files"
6928 and "assf" aliases into commands, and deprecate them as well.
6929 * NEWS: Add entry explaining that "dll-symbols" and its two
6930 aliases are now deprecated.
6932 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6934 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6935 new-line in debug string. Remove trailing spaces.
6937 2014-02-19 Stan Shebs <stan@codesourcery.com>
6939 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6941 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6943 * NEWS: Add entry for the new feature
6944 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6947 2014-02-19 Stan Shebs <stan@codesourcery.com>
6949 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6951 2014-02-19 Pedro Alves <palves@redhat.com>
6953 * common/ptid.h (struct ptid): Mention that process_stratum
6954 targets should prefer ptid.lwp.
6956 2014-02-19 Pedro Alves <palves@redhat.com>
6958 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6959 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6960 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6961 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6962 store remote thread ids rather than ptid.tid.
6963 (_initialize_remote): Adjust.
6965 2014-02-19 Tom Tromey <tromey@redhat.com>
6967 * target.c (target_get_unwinder): Rewrite.
6968 (target_get_tailcall_unwinder): Rewrite.
6969 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6970 (record_btrace_to_get_tailcall_unwinder): New function.
6971 (init_record_btrace_ops): Update.
6972 * target.h (struct target_ops) <to_get_unwinder,
6973 to_get_tailcall_unwinder>: Now function pointers. Use
6974 TARGET_DEFAULT_RETURN.
6976 2014-02-19 Tom Tromey <tromey@redhat.com>
6978 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6980 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6982 2014-02-19 Tom Tromey <tromey@redhat.com>
6984 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6986 * target-delegates.c: Rebuild.
6987 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6988 TARGET_DEFAULT_FUNC.
6989 * target.c (default_target_decr_pc_after_break): Rename from
6990 forward_target_decr_pc_after_break. Simplify.
6991 (target_decr_pc_after_break): Rely on delegation.
6993 2014-02-19 Tom Tromey <tromey@redhat.com>
6995 * target.c (update_current_target): Do not INHERIT to_doc or
6996 to_magic. Do not de_fault to_open or to_close.
6998 2014-02-19 Tom Tromey <tromey@redhat.com>
7000 * gcore.h (objfile_find_memory_regions): Declare.
7001 * gcore.c (objfile_find_memory_regions): No longer static. Add
7003 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7004 * exec.c: Include gcore.h.
7005 (exec_set_find_memory_regions): Remove.
7006 (exec_find_memory_regions): Remove.
7007 (exec_do_find_memory_regions): Remove.
7008 (init_exec_ops): Update.
7009 * defs.h (exec_set_find_memory_regions): Remove.
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target-delegates.c: Rebuild.
7014 * target.h (struct target_ops) <to_extra_thread_info,
7015 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7016 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7017 not 0, in TARGET_DEFAULT_RETURN.
7019 2014-02-19 Tom Tromey <tromey@redhat.com>
7021 * target.c (complete_target_initialization): Remove casts. Use
7022 return_zero_has_execution.
7023 (return_zero): Add "ignore" argument.
7024 (return_zero_has_execution): New function.
7025 (init_dummy_target): Remove casts. Use
7026 return_zero_has_execution.
7028 2014-02-19 Tom Tromey <tromey@redhat.com>
7030 * target.c (update_current_target): Update comments. Do not
7033 2014-02-19 Tom Tromey <tromey@redhat.com>
7035 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7037 * corelow.c (core_read_description): Delegate when needed.
7038 * remote.c (remote_read_description): Delegate when needed.
7039 * target-delegates.c: Rebuild.
7040 * target.c (target_read_description): Rewrite.
7041 * target.h (struct target_ops) <to_read_description>: Update
7042 comment. Use TARGET_DEFAULT_RETURN.
7044 2014-02-19 Tom Tromey <tromey@redhat.com>
7046 * target-delegates.c: Rebuild.
7047 * target.c (update_current_target): Don't inherit or default
7049 (find_default_run_target): Check against delegate_can_run.
7050 * target.h (struct target_ops) <to_can_run>: Use
7051 TARGET_DEFAULT_RETURN.
7053 2014-02-19 Tom Tromey <tromey@redhat.com>
7055 * target-delegates.c: Rebuild.
7056 * target.c (target_disconnect): Unconditionally delegate.
7057 * target.h (struct target_ops) <to_disconnect>: Use
7058 TARGET_DEFAULT_NORETURN.
7060 2014-02-19 Tom Tromey <tromey@redhat.com>
7062 * record.c (record_stop): Unconditionally delegate.
7063 * target-delegates.c: Rebuild.
7064 * target.c (target_stop_recording): Unconditionally delegate.
7065 * target.h (struct target_ops) <to_stop_recording>: Use
7066 TARGET_DEFAULT_IGNORE.
7068 2014-02-19 Tom Tromey <tromey@redhat.com>
7070 * target-delegates.c: Rebuild.
7071 * target.c (target_enable_btrace): Unconditionally delegate.
7072 * target.h (struct target_ops) <to_enable_btrace>: Use
7073 TARGET_DEFAULT_NORETURN.
7075 2014-02-19 Tom Tromey <tromey@redhat.com>
7077 * target-delegates.c: Rebuild.
7078 * target.c (target_read_btrace): Unconditionally delegate.
7079 * target.h (struct target_ops) <to_read_btrace>: Use
7080 TARGET_DEFAULT_NORETURN.
7082 2014-02-19 Tom Tromey <tromey@redhat.com>
7084 * target-delegates.c: Rebuild.
7085 * target.c (target_teardown_btrace): Unconditionally delegate.
7086 * target.h (struct target_ops) <to_teardown_btrace>: Use
7087 TARGET_DEFAULT_NORETURN.
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7091 * target-delegates.c: Rebuild.
7092 * target.c (target_disable_btrace): Unconditionally delegate.
7093 * target.h (struct target_ops) <to_disable_btrace>: Use
7094 TARGET_DEFAULT_NORETURN.
7096 2014-02-19 Tom Tromey <tromey@redhat.com>
7098 * target-delegates.c: Rebuild.
7099 * target.c (default_search_memory): New function.
7100 (simple_search_memory): Update comment.
7101 (target_search_memory): Unconditionally delegate.
7102 * target.h (struct target_ops) <to_search_memory>: Use
7103 TARGET_DEFAULT_FUNC.
7105 2014-02-19 Tom Tromey <tromey@redhat.com>
7107 * auxv.c (default_auxv_parse): No longer static.
7108 (target_auxv_parse): Unconditionally delegate.
7109 * auxv.h (default_auxv_parse): Declare.
7110 * target-delegates.c: Rebuild.
7111 * target.c: Include auxv.h.
7112 * target.h (struct target_ops) <to_auxv_parse>: Use
7113 TARGET_DEFAULT_FUNC.
7115 2014-02-19 Tom Tromey <tromey@redhat.com>
7117 * target-delegates.c: Rebuild.
7118 * target.c (target_memory_map): Unconditionally delegate.
7119 * target.h (struct target_ops) <to_memory_map>: Use
7120 TARGET_DEFAULT_RETURN.
7122 2014-02-19 Tom Tromey <tromey@redhat.com>
7124 * target-delegates.c: Rebuild.
7125 * target.c (target_thread_alive): Unconditionally delegate.
7126 * target.h (struct target_ops) <to_thread_alive>: Use
7127 TARGET_DEFAULT_RETURN.
7129 2014-02-19 Tom Tromey <tromey@redhat.com>
7131 * target-delegates.c: Rebuild.
7132 * target.c (target_save_record): Unconditionally delegate.
7133 * target.h (struct target_ops) <to_save_record>: Use
7134 TARGET_DEFAULT_NORETURN.
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * target-delegates.c: Rebuild.
7139 * target.c (target_delete_record): Unconditionally delegate.
7140 * target.h (struct target_ops) <to_delete_record>: Use
7141 TARGET_DEFAULT_NORETURN.
7143 2014-02-19 Tom Tromey <tromey@redhat.com>
7145 * target-delegates.c: Rebuild.
7146 * target.c (target_record_is_replaying): Unconditionally
7148 * target.h (struct target_ops) <to_record_is_replaying>: Use
7149 TARGET_DEFAULT_RETURN.
7151 2014-02-19 Tom Tromey <tromey@redhat.com>
7153 * target-delegates.c: Rebuild.
7154 * target.c (target_goto_record_begin): Unconditionally delegate.
7155 * target.h (struct target_ops) <to_goto_record_begin>: Use
7156 TARGET_DEFAULT_NORETURN.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * target-delegates.c: Rebuild.
7161 * target.c (target_goto_record_end): Unconditionally delegate.
7162 * target.h (struct target_ops) <to_goto_record_end>: Use
7163 TARGET_DEFAULT_NORETURN.
7165 2014-02-19 Tom Tromey <tromey@redhat.com>
7167 * target-delegates.c: Rebuild.
7168 * target.c (target_goto_record): Unconditionally delegate.
7169 * target.h (struct target_ops) <to_goto_record>: Use
7170 TARGET_DEFAULT_NORETURN.
7172 2014-02-19 Tom Tromey <tromey@redhat.com>
7174 * target-delegates.c: Rebuild.
7175 * target.c (target_insn_history): Unconditionally delegate.
7176 * target.h (struct target_ops) <to_insn_history>: Use
7177 TARGET_DEFAULT_NORETURN.
7179 2014-02-19 Tom Tromey <tromey@redhat.com>
7181 * target-delegates.c: Rebuild.
7182 * target.c (target_insn_history_from): Unconditionally delegate.
7183 * target.h (struct target_ops) <to_insn_history_from>: Use
7184 TARGET_DEFAULT_NORETURN.
7186 2014-02-19 Tom Tromey <tromey@redhat.com>
7188 * target-delegates.c: Rebuild.
7189 * target.c (target_insn_history_range): Unconditionally delegate.
7190 * target.h (struct target_ops) <to_insn_history_range>: Use
7191 TARGET_DEFAULT_NORETURN.
7193 2014-02-19 Tom Tromey <tromey@redhat.com>
7195 * target-delegates.c: Rebuild.
7196 * target.c (target_call_history): Unconditionally delegate.
7197 * target.h (struct target_ops) <to_call_history>: Use
7198 TARGET_DEFAULT_NORETURN.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target-delegates.c: Rebuild.
7203 * target.c (target_call_history_from): Unconditionally delegate.
7204 * target.h (struct target_ops) <to_call_history_from>: Use
7205 TARGET_DEFAULT_NORETURN.
7207 2014-02-19 Tom Tromey <tromey@redhat.com>
7209 * target-delegates.c: Rebuild.
7210 * target.c (target_call_history_range): Unconditionally delegate.
7211 * target.h (struct target_ops) <to_call_history_range>: Use
7212 TARGET_DEFAULT_NORETURN.
7214 2014-02-19 Tom Tromey <tromey@redhat.com>
7216 * target-delegates.c: Rebuild.
7217 * target.c (target_verify_memory): Unconditionally delegate.
7218 * target.h (struct target_ops) <to_verify_memory>: Use
7219 TARGET_DEFAULT_NORETURN.
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7223 * target-delegates.c: Rebuild.
7224 * target.c (target_core_of_thread): Unconditionally delegate.
7225 * target.h (struct target_ops) <to_core_of_thread>: Use
7226 TARGET_DEFAULT_RETURN.
7228 2014-02-19 Tom Tromey <tromey@redhat.com>
7230 * target-delegates.c: Rebuild.
7231 * target.c (target_flash_done): Unconditionally delegate.
7232 * target.h (struct target_ops) <to_flash_done>: Use
7233 TARGET_DEFAULT_NORETURN.
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7237 * target-delegates.c: Rebuild.
7238 * target.c (target_flash_erase): Unconditionally delegate.
7239 * target.h (struct target_ops) <to_flash_erase>: Use
7240 TARGET_DEFAULT_NORETURN.
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7244 * target-delegates.c: Rebuild.
7245 * target.c (target_get_section_table): Unconditionally delegate.
7246 * target.h (struct target_ops) <to_get_section_table>: Use
7247 TARGET_DEFAULT_RETURN.
7249 2014-02-19 Tom Tromey <tromey@redhat.com>
7251 * target-delegates.c: Rebuild.
7252 * target.c (target_pid_to_str): Unconditionally delegate.
7253 (init_dummy_target): Don't initialize to_pid_to_str.
7254 (default_pid_to_str): Rename from dummy_pid_to_str.
7255 * target.h (struct target_ops) <to_pid_to_str>: Use
7256 TARGET_DEFAULT_FUNC.
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target-delegates.c: Rebuild.
7261 * target.c (target_find_new_threads): Unconditionally delegate.
7262 * target.h (struct target_ops) <to_find_new_threads>: Use
7263 TARGET_DEFAULT_RETURN.
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target-delegates.c: Rebuild.
7268 * target.c (target_program_signals): Unconditionally delegate.
7269 * target.h (struct target_ops) <to_program_signals>: Use
7270 TARGET_DEFAULT_IGNORE.
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * target-delegates.c: Rebuild.
7275 * target.c (target_pass_signals): Unconditionally delegate.
7276 * target.h (struct target_ops) <to_pass_signals>: Use
7277 TARGET_DEFAULT_IGNORE.
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target-delegates.c: Rebuild.
7282 * target.c (default_mourn_inferior): New function.
7283 (target_mourn_inferior): Unconditionally delegate.
7284 * target.h (struct target_ops) <to_mourn_inferior>: Use
7285 TARGET_DEFAULT_FUNC.
7287 2014-02-19 Tom Tromey <tromey@redhat.com>
7289 * target-delegates.c: Rebuild.
7290 * target.c (default_follow_fork): New function.
7291 (target_follow_fork): Unconditionally delegate.
7292 * target.h (struct target_ops) <to_follow_fork>: Use
7293 TARGET_DEFAULT_FUNC.
7295 2014-02-19 Tom Tromey <tromey@redhat.com>
7297 * target-delegates.c: Rebuild.
7298 * target.c (target_kill): Unconditionally delegate.
7299 * target.h (struct target_ops) <to_kill>: Use
7300 TARGET_DEFAULT_NORETURN.
7302 2014-02-19 Tom Tromey <tromey@redhat.com>
7304 * target-delegates.c: Rebuild.
7305 * target.c (target_masked_watch_num_registers): Unconditionally
7307 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7308 Use TARGET_DEFAULT_RETURN.
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target-delegates.c: Rebuild.
7313 * target.c (target_remove_mask_watchpoint): Unconditionally
7315 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7316 TARGET_DEFAULT_RETURN.
7318 2014-02-19 Tom Tromey <tromey@redhat.com>
7320 * target-delegates.c: Rebuild.
7321 * target.c (target_insert_mask_watchpoint): Unconditionally
7323 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7324 TARGET_DEFAULT_RETURN.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target-delegates.c: Rebuild.
7329 * target.c (target_ranged_break_num_registers): Unconditionally
7331 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7332 Use TARGET_DEFAULT_RETURN.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target-delegates.c: Rebuild.
7337 * target.c (target_fetch_registers): Unconditionally delegate.
7338 * target.h (struct target_ops) <to_fetch_registers>: Use
7339 TARGET_DEFAULT_NORETURN.
7341 2014-02-19 Tom Tromey <tromey@redhat.com>
7343 * target-delegates.c: Rebuild.
7344 * target.c (update_current_target): Don't inherit or default
7346 * target.h (struct target_ops) <to_stop>: Use
7347 TARGET_DEFAULT_IGNORE.
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7351 * target-delegates.c: Rebuild.
7352 * target.c (update_current_target): Don't inherit or default
7353 to_can_run_breakpoint_commands.
7354 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7355 Use TARGET_DEFAULT_RETURN.
7357 2014-02-19 Tom Tromey <tromey@redhat.com>
7359 * target-delegates.c: Rebuild.
7360 * target.c (update_current_target): Don't inherit or default
7361 to_supports_evaluation_of_breakpoint_conditions.
7362 * target.h (struct target_ops)
7363 <to_supports_evaluation_of_breakpoint_conditions>: Use
7364 TARGET_DEFAULT_RETURN.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target-delegates.c: Rebuild.
7369 * target.c (update_current_target): Don't inherit or default
7370 to_augmented_libraries_svr4_read.
7371 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7372 Use TARGET_DEFAULT_RETURN.
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7376 * target-delegates.c: Rebuild.
7377 * target.c (update_current_target): Don't inherit or default
7379 * target.h (struct target_ops) <to_can_use_agent>: Use
7380 TARGET_DEFAULT_RETURN.
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7384 * target-delegates.c: Rebuild.
7385 * target.c (update_current_target): Don't inherit or default
7387 * target.h (struct target_ops) <to_use_agent>: Use
7388 TARGET_DEFAULT_NORETURN.
7390 2014-02-19 Tom Tromey <tromey@redhat.com>
7392 * target-delegates.c: Rebuild.
7393 * target.c (update_current_target): Don't inherit or default
7395 (return_null): Remove.
7396 * target.h (struct target_ops) <to_traceframe_info>: Use
7397 TARGET_DEFAULT_RETURN.
7399 2014-02-19 Tom Tromey <tromey@redhat.com>
7401 * target-delegates.c: Rebuild.
7402 * target.c (update_current_target): Don't inherit or default
7403 to_static_tracepoint_markers_by_strid.
7404 * target.h (struct target_ops)
7405 <to_static_tracepoint_markers_by_strid>: Use
7406 TARGET_DEFAULT_NORETURN.
7408 2014-02-19 Tom Tromey <tromey@redhat.com>
7410 * target-delegates.c: Rebuild.
7411 * target.c (update_current_target): Don't inherit or default
7412 to_static_tracepoint_marker_at.
7413 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7414 Use TARGET_DEFAULT_RETURN.
7416 2014-02-19 Tom Tromey <tromey@redhat.com>
7418 * target-delegates.c: Rebuild.
7419 * target.c (update_current_target): Don't inherit or default
7421 * target.h (struct target_ops) <to_set_permissions>: Use
7422 TARGET_DEFAULT_IGNORE.
7424 2014-02-19 Tom Tromey <tromey@redhat.com>
7426 * target-delegates.c: Rebuild.
7427 * target.c (update_current_target): Don't inherit or default
7429 * target.h (struct target_ops) <to_get_tib_address>: Use
7430 TARGET_DEFAULT_NORETURN.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * target-delegates.c: Rebuild.
7435 * target.c (update_current_target): Don't inherit or default
7437 * target.h (struct target_ops) <to_set_trace_notes>: Use
7438 TARGET_DEFAULT_RETURN.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target-delegates.c: Rebuild.
7443 * target.c (update_current_target): Don't initialize
7444 to_set_trace_buffer_size.
7445 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7446 TARGET_DEFAULT_IGNORE.
7448 2014-02-19 Tom Tromey <tromey@redhat.com>
7450 * target-delegates.c: Rebuild.
7451 * target.c (update_current_target): Don't inherit or default
7452 to_set_circular_trace_buffer.
7453 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7454 TARGET_DEFAULT_IGNORE.
7456 2014-02-19 Tom Tromey <tromey@redhat.com>
7458 * target-delegates.c: Rebuild.
7459 * target.c (update_current_target): Don't inherit or default
7460 to_set_disconnected_tracing.
7461 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7462 TARGET_DEFAULT_IGNORE.
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7466 * target-delegates.c: Rebuild.
7467 * target.c (update_current_target): Don't inherit or default
7468 to_get_min_fast_tracepoint_insn_len.
7469 (return_minus_one): Remove.
7470 * target.h (struct target_ops)
7471 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7473 2014-02-19 Tom Tromey <tromey@redhat.com>
7475 * target-delegates.c: Rebuild.
7476 * target.c (update_current_target): Don't inherit or default
7477 to_get_raw_trace_data.
7478 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7479 TARGET_DEFAULT_NORETURN.
7481 2014-02-19 Tom Tromey <tromey@redhat.com>
7483 * target-delegates.c: Rebuild.
7484 * target.c (update_current_target): Don't inherit or default
7485 to_upload_trace_state_variables.
7486 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7487 Use TARGET_DEFAULT_RETURN.
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7491 * target-delegates.c: Rebuild.
7492 * target.c (update_current_target): Don't inherit or default
7493 to_upload_tracepoints.
7494 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7495 TARGET_DEFAULT_RETURN.
7497 2014-02-19 Tom Tromey <tromey@redhat.com>
7499 * target-delegates.c: Rebuild.
7500 * target.c (update_current_target): Don't inherit or default
7502 * target.h (struct target_ops) <to_save_trace_data>: Use
7503 TARGET_DEFAULT_NORETURN.
7505 2014-02-19 Tom Tromey <tromey@redhat.com>
7507 * target-delegates.c: Rebuild.
7508 * target.c (update_current_target): Don't inherit or default
7509 to_get_trace_state_variable_value.
7510 * target.h (struct target_ops)
7511 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7513 2014-02-19 Tom Tromey <tromey@redhat.com>
7515 * target-delegates.c: Rebuild.
7516 * target.c (update_current_target): Don't inherit or default
7518 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7522 * target-delegates.c: Rebuild.
7523 * target.c (update_current_target): Don't inherit or default
7525 * target.h (struct target_ops) <to_trace_stop>: Use
7526 TARGET_DEFAULT_NORETURN.
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * target-delegates.c: Rebuild.
7531 * target.c (update_current_target): Don't inherit or default
7532 to_get_tracepoint_status.
7533 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7534 TARGET_DEFAULT_NORETURN.
7536 2014-02-19 Tom Tromey <tromey@redhat.com>
7538 * target-delegates.c: Rebuild.
7539 * target.c (update_current_target): Don't inherit or default
7540 to_get_trace_status.
7541 * target.h (struct target_ops) <to_get_trace_status>: Use
7542 TARGET_DEFAULT_RETURN.
7544 2014-02-19 Tom Tromey <tromey@redhat.com>
7546 * target-delegates.c: Rebuild.
7547 * target.c (update_current_target): Don't inherit or default
7549 * target.h (struct target_ops) <to_trace_start>: Use
7550 TARGET_DEFAULT_NORETURN.
7552 2014-02-19 Tom Tromey <tromey@redhat.com>
7554 * target-delegates.c: Rebuild.
7555 * target.c (update_current_target): Don't inherit or default
7556 to_trace_set_readonly_regions.
7557 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7558 Use TARGET_DEFAULT_NORETURN.
7560 2014-02-19 Tom Tromey <tromey@redhat.com>
7562 * target-delegates.c: Rebuild.
7563 * target.c (update_current_target): Don't inherit or default
7564 to_disable_tracepoint.
7565 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7566 TARGET_DEFAULT_NORETURN.
7568 2014-02-19 Tom Tromey <tromey@redhat.com>
7570 * target-delegates.c: Rebuild.
7571 * target.c (update_current_target): Don't inherit or default
7572 to_enable_tracepoint.
7573 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7574 TARGET_DEFAULT_NORETURN.
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7578 * target-delegates.c: Rebuild.
7579 * target.c (update_current_target): Don't inherit or default
7580 to_download_trace_state_variable.
7581 * target.h (struct target_ops) <to_download_trace_state_variable>:
7582 Use TARGET_DEFAULT_NORETURN.
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7586 * target-delegates.c: Rebuild.
7587 * target.c (update_current_target): Don't inherit or default
7588 to_can_download_tracepoint.
7589 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7590 TARGET_DEFAULT_RETURN.
7592 2014-02-19 Tom Tromey <tromey@redhat.com>
7594 * target-delegates.c: Rebuild.
7595 * target.c (update_current_target): Don't inherit or default
7596 to_download_tracepoint.
7597 * target.h (struct target_ops) <to_download_tracepoint>: Use
7598 TARGET_DEFAULT_NORETURN.
7600 2014-02-19 Tom Tromey <tromey@redhat.com>
7602 * target-delegates.c: Rebuild.
7603 * target.c (update_current_target): Don't inherit or default
7605 * target.h (struct target_ops) <to_trace_init>: Use
7606 TARGET_DEFAULT_RETURN.
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7610 * target-delegates.c: Rebuild.
7611 * target.c (update_current_target): Don't inherit or default
7612 to_supports_string_tracing.
7613 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7614 TARGET_DEFAULT_RETURN.
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7618 * target-delegates.c: Rebuild.
7619 * target.c (update_current_target): Don't inherit or default
7620 to_supports_enable_disable_tracepoint.
7621 * target.h (struct target_ops)
7622 <to_supports_enable_disable_tracepoint>: Use
7623 TARGET_DEFAULT_RETURN.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * target-delegates.c: Rebuild.
7628 * target.c (update_current_target): Don't inherit or default
7629 to_supports_multi_process.
7630 * target.h (struct target_ops) <to_supports_multi_process>: Use
7631 TARGET_DEFAULT_RETURN.
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7635 * target-delegates.c: Rebuild.
7636 * target.c (update_current_target): Don't inherit or default
7637 to_get_ada_task_ptid.
7638 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7639 TARGET_DEFAULT_FUNC.
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7643 * target-delegates.c: Rebuild.
7644 * target.c (update_current_target): Don't inherit or default
7645 to_thread_architecture.
7646 * target.h (struct target_ops) <to_thread_architecture>: Use
7647 TARGET_DEFAULT_FUNC.
7649 2014-02-19 Tom Tromey <tromey@redhat.com>
7651 * target-delegates.c: Rebuild.
7652 * target.c (update_current_target): Don't inherit or default
7653 to_execution_direction.
7654 * target.h (struct target_ops) <to_execution_direction>: Use
7655 TARGET_DEFAULT_FUNC.
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7659 * target-delegates.c: Rebuild.
7660 * target.c (update_current_target): Don't inherit or default
7661 to_can_execute_reverse.
7662 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7663 TARGET_DEFAULT_RETURN.
7664 (target_can_execute_reverse): Unconditionally delegate.
7666 2014-02-19 Tom Tromey <tromey@redhat.com>
7668 * target-delegates.c: Rebuild.
7669 * target.c (update_current_target): Don't inherit or default
7671 (dummy_goto_bookmark): Remove.
7672 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7673 * target.h (struct target_ops) <to_goto_bookmark>: Use
7674 TARGET_DEFAULT_NORETURN.
7676 2014-02-19 Tom Tromey <tromey@redhat.com>
7678 * target-delegates.c: Rebuild.
7679 * target.c (update_current_target): Don't inherit or default
7681 (dummy_get_bookmark): Remove.
7682 (init_dummy_target): Don't inherit or default to_get_bookmark.
7683 * target.h (struct target_ops) <to_get_bookmark>: Use
7684 TARGET_DEFAULT_NORETURN
7686 2014-02-19 Tom Tromey <tromey@redhat.com>
7688 * target-delegates.c: Rebuild.
7689 * target.c (update_current_target): Don't inherit or default
7690 to_make_corefile_notes.
7691 (init_dummy_target): Don't initialize to_make_corefile_notes.
7692 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7693 TARGET_DEFAULT_FUNC.
7695 2014-02-19 Tom Tromey <tromey@redhat.com>
7697 * target-delegates.c: Rebuild.
7698 * target.c (update_current_target): Don't inherit or default
7699 to_find_memory_regions.
7700 (init_dummy_target): Don't initialize to_find_memory_regions.
7701 * target.h (struct target_ops) <to_find_memory_regions>: Use
7702 TARGET_DEFAULT_FUNC.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (update_current_target): Don't inherit or default
7709 * target.h (struct target_ops) <to_log_command>: Use
7710 TARGET_DEFAULT_IGNORE.
7711 (target_log_command): Unconditionally delegate.
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7715 * target-delegates.c: Rebuild.
7716 * target.c (update_current_target): Don't inherit or default
7717 to_pid_to_exec_file.
7718 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7719 TARGET_DEFAULT_RETURN.
7721 2014-02-19 Tom Tromey <tromey@redhat.com>
7723 * target-delegates.c: Rebuild.
7724 * target.c (update_current_target): Don't inherit or default
7726 (target_thread_name): Unconditionally delegate.
7727 * target.h (struct target_ops) <to_thread_name>: Use
7728 TARGET_DEFAULT_RETURN.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target-delegates.c: Rebuild.
7733 * target.c (update_current_target): Don't inherit or default
7734 to_extra_thread_info.
7735 * target.h (struct target_ops) <to_extra_thread_info>: Use
7736 TARGET_DEFAULT_RETURN.
7738 2014-02-19 Tom Tromey <tromey@redhat.com>
7740 * target-delegates.c: Rebuild.
7741 * target.c (update_current_target): Don't inherit or default
7743 * target.h (struct target_ops) <to_has_exited>: Use
7744 TARGET_DEFAULT_RETURN..
7746 2014-02-19 Tom Tromey <tromey@redhat.com>
7748 * target-delegates.c: Rebuild.
7749 * target.c (update_current_target): Don't inherit or default
7750 to_set_syscall_catchpoint.
7751 (return_one): Remove.
7752 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7753 TARGET_DEFAULT_RETURN.
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7757 * target-delegates.c: Rebuild.
7758 * target.c (update_current_target): Don't inherit or default
7759 to_insert_exec_catchpoint.
7760 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7761 TARGET_DEFAULT_RETURN.
7763 2014-01-08 Tom Tromey <tromey@redhat.com>
7765 * target-delegates.c: Rebuild.
7766 * target.c (update_current_target): Don't inherit or default
7767 to_insert_exec_catchpoint.
7768 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7769 TARGET_DEFAULT_RETURN.
7771 2014-02-19 Tom Tromey <tromey@redhat.com>
7773 * target-delegates.c: Rebuild.
7774 * target.c (update_current_target): Don't inherit or default
7775 to_remove_vfork_catchpoint.
7776 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7777 TARGET_DEFAULT_RETURN.
7779 2014-02-19 Tom Tromey <tromey@redhat.com>
7781 * target-delegates.c: Rebuild.
7782 * target.c (update_current_target): Don't inherit or default
7783 to_insert_vfork_catchpoint.
7784 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7785 TARGET_DEFAULT_RETURN.
7787 2014-02-19 Tom Tromey <tromey@redhat.com>
7789 * target-delegates.c: Rebuild.
7790 * target.c (update_current_target): Don't inherit or default
7791 to_remove_fork_catchpoint.
7792 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7793 TARGET_DEFAULT_RETURN.
7795 2014-02-19 Tom Tromey <tromey@redhat.com>
7797 * target-delegates.c: Rebuild.
7798 * target.c (update_current_target): Don't inherit or default
7799 to_insert_fork_catchpoint.
7800 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7801 TARGET_DEFAULT_RETURN.
7803 2014-02-19 Tom Tromey <tromey@redhat.com>
7805 * target-delegates.c: Rebuild.
7806 * target.c (update_current_target): Don't inherit or default
7807 to_post_startup_inferior.
7808 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7809 TARGET_DEFAULT_IGNORE.
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7813 * target-delegates.c: Rebuild.
7814 * target.c (update_current_target): Don't inherit or default
7816 * target.h (struct target_ops) <to_load>: Use
7817 TARGET_DEFAULT_NORETURN.
7819 2014-02-19 Tom Tromey <tromey@redhat.com>
7821 * target-delegates.c: Rebuild.
7822 * target.c (update_current_target): Don't inherit or default
7824 * target.h (struct target_ops) <to_terminal_info>: Use
7825 TARGET_DEFAULT_FUNC.
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7829 * target-delegates.c: Rebuild.
7830 * target.c (update_current_target): Don't inherit or default
7831 to_terminal_save_ours.
7832 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7833 TARGET_DEFAULT_IGNORE.
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7837 * target-delegates.c: Rebuild.
7838 * target.c (update_current_target): Don't inherit or default
7840 * target.h (struct target_ops) <to_terminal_ours>: Use
7841 TARGET_DEFAULT_IGNORE.
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7845 * target-delegates.c: Rebuild.
7846 * target.c (update_current_target): Don't inherit or default
7847 to_terminal_ours_for_output.
7848 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7849 TARGET_DEFAULT_IGNORE.
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7853 * target-delegates.c: Rebuild.
7854 * target.c (update_current_target): Don't inherit or default
7855 to_terminal_inferior.
7856 * target.h (struct target_ops) <to_terminal_inferior>: Use
7857 TARGET_DEFAULT_IGNORE.
7859 2014-02-19 Tom Tromey <tromey@redhat.com>
7861 * target-delegates.c: Rebuild.
7862 * target.c (update_current_target): Don't inherit or default
7864 * target.h (struct target_ops) <to_terminal_init>: Use
7865 TARGET_DEFAULT_IGNORE.
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7869 * target-delegates.c: Rebuild.
7870 * target.c (update_current_target): Don't inherit or default
7871 to_can_accel_watchpoint_condition.
7872 * target.h (struct target_ops)
7873 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7877 * target-delegates.c: Rebuild.
7878 * target.c (update_current_target): Don't inherit or default
7879 to_region_ok_for_hw_watchpoint.
7880 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7881 Use TARGET_DEFAULT_FUNC.
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_watchpoint_addr_within_range.
7888 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7889 Use TARGET_DEFAULT_FUNC.
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_remove_watchpoint.
7896 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7897 TARGET_DEFAULT_NORETURN.
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_insert_watchpoint.
7904 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7905 TARGET_DEFAULT_RETURN.
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_remove_hw_breakpoint.
7912 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7913 TARGET_DEFAULT_RETURN.
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7917 * target-delegates.c: Rebuild.
7918 * target.c (update_current_target): Don't inherit or default
7919 to_insert_hw_breakpoint.
7920 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7921 TARGET_DEFAULT_RETURN.
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7925 * target-delegates.c: Rebuild.
7926 * target.c (update_current_target): Don't inherit or default
7927 to_can_use_hw_breakpoint.
7928 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7929 TARGET_DEFAULT_RETURN.
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7933 * target-delegates.c: Rebuild.
7934 * target.c (update_current_target): Don't inherit or default
7936 * target.h (struct target_ops) <to_files_info>: Use
7937 TARGET_DEFAULT_IGNORE.
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7941 * target-delegates.c: Rebuild.
7942 * target.c (update_current_target): Don't inherit or default
7944 * target.h (struct target_ops) <to_store>: Use
7945 TARGET_DEFAULT_NORETURN.
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7952 * target.h (struct target_ops) <to_post_attach>: Use
7953 TARGET_DEFAULT_IGNORE.
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7960 (default_rcmd): New function.
7961 (do_monitor_command): Unconditionally delegate.
7962 * target.h (struct target_ops) <to_rmcd>: Use
7963 TARGET_DEFAULT_FUNC.
7965 2014-02-19 Tom Tromey <tromey@redhat.com>
7967 * target-delegates.c: Rebuild.
7968 * target.c (init_dummy_target): Don't initialize to_attach.
7969 (target_attach): Unconditionally delegate.
7970 * target.h (struct target_ops) <to_attach>: Use
7971 TARGET_DEFAULT_FUNC.
7973 2014-02-19 Tom Tromey <tromey@redhat.com>
7975 * target-delegates.c: Rebuild.
7976 * target.c (target_detach): Unconditionally delegate.
7977 (init_dummy_target): Don't initialize to_detach.
7978 * target.h (struct target_ops) <to_detach>: Use
7979 TARGET_DEFAULT_IGNORE.
7981 2014-02-19 Tom Tromey <tromey@redhat.com>
7983 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7985 (target_augmented_libraries_svr4_read): Add argument.
7986 * target.c (update_current_target): Update.
7987 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target.h (struct target_ops) <to_call_history_range>: Add
7994 * target.c (target_call_history_range): Add argument.
7995 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7997 (record_btrace_call_history_from): Update.
7999 2014-02-19 Tom Tromey <tromey@redhat.com>
8001 * target.h (struct target_ops) <to_call_history_from>: Add
8003 * target.c (target_call_history_from): Add argument.
8004 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8009 * target.h (struct target_ops) <to_call_history>: Add argument.
8010 * target.c (target_call_history): Add argument.
8011 * record-btrace.c (record_btrace_call_history): Add 'self'
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8016 * target.h (struct target_ops) <to_insn_history_range>: Add
8018 * target.c (target_insn_history_range): Add argument.
8019 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8021 (record_btrace_insn_history_from): Update.
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8025 * target.h (struct target_ops) <to_insn_history_from>: Add
8027 * target.c (target_insn_history_from): Add argument.
8028 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target.h (struct target_ops) <to_insn_history>: Add argument.
8034 * target.c (target_insn_history): Add argument.
8035 * record-btrace.c (record_btrace_insn_history): Add 'self'
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8040 * target.h (struct target_ops) <to_goto_record>: Add argument.
8041 * target.c (target_goto_record): Add argument.
8042 * record-full.c (record_full_goto): Add 'self' argument.
8043 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8047 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8048 * target.c (target_goto_record_end): Add argument.
8049 * record-full.c (record_full_goto_end): Add 'self' argument.
8050 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8054 * target.h (struct target_ops) <to_goto_record_begin>: Add
8056 * target.c (target_goto_record_begin): Add argument.
8057 * record-full.c (record_full_goto_begin): Add 'self' argument.
8058 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target.h (struct target_ops) <to_record_is_replaying>: Add
8065 * target.c (target_record_is_replaying): Add argument.
8066 * record-full.c (record_full_is_replaying): Add 'self' argument.
8067 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8069 (record_btrace_xfer_partial, record_btrace_store_registers)
8070 (record_btrace_prepare_to_store, record_btrace_resume)
8071 (record_btrace_wait, record_btrace_decr_pc_after_break)
8072 (record_btrace_find_new_threads, record_btrace_thread_alive):
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target.h (struct target_ops) <to_delete_record>: Add argument.
8078 * target.c (target_delete_record): Add argument.
8079 * record-full.c (record_full_delete): Add 'self' argument.
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * target.h (struct target_ops) <to_save_record>: Add argument.
8084 * target.c (target_save_record): Add argument.
8085 * record-full.c (record_full_save): Add 'self' argument.
8086 (record_full_save): Add 'self' argument.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target.h (struct target_ops) <to_info_record>: Add argument.
8091 * target.c (target_info_record): Add argument.
8092 * record.c (info_record_command): Add argument.
8093 * record-full.c (record_full_info): Add 'self' argument.
8094 * record-btrace.c (record_btrace_info): Add 'self' argument.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8099 * target.c (target_stop_recording): Add argument.
8100 * record.c (record_stop): Add argument.
8101 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8107 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8108 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8110 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8111 (_initialize_amd64_linux_nat): Use it.
8112 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8113 (_initialize_i386_linux_nat): Use it.
8115 2014-02-19 Tom Tromey <tromey@redhat.com>
8117 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8118 * target.c (target_teardown_btrace): Add argument.
8119 * remote.c (remote_teardown_btrace): Add 'self' argument.
8120 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8122 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8127 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8128 * target.c (target_disable_btrace): Add argument.
8129 * remote.c (remote_disable_btrace): Add 'self' argument.
8130 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8132 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8138 * target.c (target_enable_btrace): Add argument.
8139 * remote.c (remote_enable_btrace): Add 'self' argument.
8140 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8142 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8148 (target_can_use_agent): Add argument.
8149 * target.c (update_current_target): Update.
8150 * remote.c (remote_can_use_agent): Add 'self' argument.
8151 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8153 2014-02-19 Tom Tromey <tromey@redhat.com>
8155 * target.h (struct target_ops) <to_use_agent>: Add argument.
8156 (target_use_agent): Add argument.
8157 * target.c (update_current_target): Update.
8158 * remote.c (remote_use_agent): Add 'self' argument.
8159 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8161 2014-02-19 Tom Tromey <tromey@redhat.com>
8163 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8164 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8165 (target_traceframe_info): Add argument.
8166 * target.c (update_current_target): Update.
8167 * remote.c (remote_traceframe_info): Add 'self' argument.
8168 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target.h (target_static_tracepoint_markers_by_strid): Add
8174 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8176 * target.c (update_current_target): Update.
8177 * remote.c (struct target_ops)
8178 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8179 * linux-nat.c (struct target_ops)
8180 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8186 (target_static_tracepoint_marker_at): Add argument.
8187 * target.c (update_current_target): Update.
8188 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8194 (target_set_permissions): Add argument.
8195 * target.c (update_current_target): Update.
8196 * remote.c (remote_set_permissions): Add 'self' argument.
8197 (remote_start_remote): Update.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8202 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8203 (target_get_tib_address): Add argument.
8204 * target.c (update_current_target): Update.
8205 * remote.c (remote_get_tib_address): Add 'self' argument.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8210 (target_set_trace_notes): Add argument.
8211 * target.c (update_current_target): Update.
8212 * remote.c (remote_set_trace_notes): Add 'self' argument.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8218 (target_set_trace_buffer_size): Add argument.
8219 * target.c (update_current_target): Update.
8220 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8226 (target_set_circular_trace_buffer): Add argument.
8227 * target.c (update_current_target): Update.
8228 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8235 (target_set_disconnected_tracing): Add argument.
8236 * target.c (update_current_target): Update.
8237 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8239 2014-02-19 Tom Tromey <tromey@redhat.com>
8241 * target.h (struct target_ops)
8242 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8243 (target_get_min_fast_tracepoint_insn_len): Add argument.
8244 * target.c (update_current_target): Update.
8245 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8252 (target_get_raw_trace_data): Add argument.
8253 * target.c (update_current_target): Update.
8254 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8258 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8260 (target_upload_trace_state_variables): Add argument.
8261 * target.c (update_current_target): Update.
8262 * remote.c (remote_upload_trace_state_variables): Add 'self'
8264 (remote_start_remote): Update.
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8270 (target_upload_tracepoints): Add argument.
8271 * target.c (update_current_target): Update.
8272 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8273 (remote_start_remote): Update.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8278 (target_save_trace_data): Add argument.
8279 * target.c (update_current_target): Update.
8280 * remote.c (remote_save_trace_data): Add 'self' argument.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8286 * target.h (struct target_ops)
8287 <to_get_trace_state_variable_value>: Add argument.
8288 (target_get_trace_state_variable_value): Add argument.
8289 * target.c (update_current_target): Update.
8290 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8292 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8297 * target.h (struct target_ops) <to_trace_find>: Add argument.
8298 (target_trace_find): Add argument.
8299 * target.c (update_current_target): Update.
8300 * remote.c (remote_trace_find): Add 'self' argument.
8301 * ctf.c (ctf_trace_find): Add 'self' argument.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8306 (target_trace_stop): Add argument.
8307 * target.c (update_current_target): Update.
8308 * remote.c (remote_trace_stop): Add 'self' argument.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8313 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8315 (target_get_tracepoint_status): Add argument.
8316 * target.c (update_current_target): Update.
8317 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8322 * target.h (struct target_ops) <to_get_trace_status>: Add
8324 (target_get_trace_status): Add argument.
8325 * target.c (update_current_target): Update.
8326 * remote.c (remote_get_trace_status): Add 'self' argument.
8327 (remote_start_remote, remote_can_download_tracepoint): Update.
8328 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target.h (struct target_ops) <to_trace_start>: Add argument.
8333 (target_trace_start): Add argument.
8334 * target.c (update_current_target): Update.
8335 * remote.c (remote_trace_start): Add 'self' argument.
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8341 (target_trace_set_readonly_regions): Add argument.
8342 * target.c (update_current_target): Update.
8343 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8350 (target_disable_tracepoint): Add argument.
8351 * target.c (update_current_target): Update.
8352 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8358 (target_enable_tracepoint): Add argument.
8359 * target.c (update_current_target): Update.
8360 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target.h (struct target_ops) <to_download_trace_state_variable>:
8366 (target_download_trace_state_variable): Add argument.
8367 * target.c (update_current_target): Update.
8368 * remote.c (remote_download_trace_state_variable): Add 'self'
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8375 (target_can_download_tracepoint): Add argument.
8376 * target.c (update_current_target): Update.
8377 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target.h (struct target_ops) <to_download_tracepoint>: Add
8383 (target_download_tracepoint): Add argument.
8384 * target.c (update_current_target): Update.
8385 * remote.c (remote_download_tracepoint): Add 'self' argument.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target.h (struct target_ops) <to_trace_init>: Add argument.
8390 (target_trace_init): Add argument.
8391 * target.c (update_current_target): Update.
8392 * remote.c (remote_trace_init): Add 'self' argument.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8397 * target.c (target_fileio_readlink): Add argument.
8398 * remote.c (remote_hostio_readlink): Add 'self' argument.
8399 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8404 * target.c (target_fileio_unlink): Add argument.
8405 * remote.c (remote_hostio_unlink): Add 'self' argument.
8406 (remote_file_delete): Update.
8407 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8409 2014-02-19 Tom Tromey <tromey@redhat.com>
8411 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8412 * target.c (target_fileio_close): Add argument.
8413 * remote.c (remote_hostio_close): Add 'self' argument.
8414 (remote_hostio_close_cleanup): Update.
8415 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8417 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8422 * target.c (target_fileio_pread): Add argument.
8423 * remote.c (remote_hostio_pread): Add 'self' argument.
8424 (remote_bfd_iovec_pread, remote_file_get): Update.
8425 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8430 * target.c (target_fileio_pwrite): Add argument.
8431 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8432 (remote_file_put): Update.
8433 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8438 * target.c (target_fileio_open): Add argument.
8439 * remote.c (remote_hostio_open): Add 'self' argument.
8440 (remote_bfd_iovec_open): Add 'self' argument.
8441 (remote_file_put): Add 'self' argument.
8442 (remote_file_get): Add 'self' argument.
8443 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8449 (target_can_run_breakpoint_commands): Add argument.
8450 * target.c (update_current_target): Update.
8451 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8453 (remote_insert_breakpoint): Add 'self' argument.
8454 (remote_insert_hw_breakpoint): Add 'self' argument.
8455 (remote_can_run_breakpoint_commands): Add 'self' argument.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target.h (struct target_ops)
8460 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8461 (target_supports_evaluation_of_breakpoint_conditions): Add
8463 * target.c (update_current_target): Update.
8464 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8466 (remote_insert_breakpoint): Add 'self' argument.
8467 (remote_insert_hw_breakpoint): Add 'self' argument.
8468 (remote_supports_cond_breakpoints): Add 'self' argument.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8474 (target_supports_string_tracing): Add argument.
8475 * target.c (update_current_target): Update.
8476 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target.h (struct target_ops)
8481 <to_supports_disable_randomization>: Add argument.
8482 * target.c (find_default_supports_disable_randomization): Add
8484 (target_supports_disable_randomization): Add argument.
8485 (find_default_supports_disable_randomization): Add 'self'
8487 * remote.c (extended_remote_supports_disable_randomization): Add
8489 (remote_supports_disable_randomization): Add 'self' argument.
8490 (extended_remote_create_inferior): Update.
8491 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target.h (struct target_ops)
8497 <to_supports_enable_disable_tracepoint>: Add argument.
8498 (target_supports_enable_disable_tracepoint): Add argument.
8499 * target.c (update_current_target): Update.
8500 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target.h (struct target_ops) <to_supports_multi_process>: Add
8507 (target_supports_multi_process): Add argument.
8508 * target.c (update_current_target): Update.
8509 * remote.c (remote_supports_multi_process): Add 'self' argument.
8510 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8512 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target.h (struct target_ops) <to_execution_direction>: Add
8519 (target_execution_direction): Add argument.
8520 * target.c (default_execution_direction): Add 'self' argument.
8521 * record-full.c (record_full_execution_direction): Add 'self'
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8528 (target_can_execute_reverse): Add argument.
8529 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8530 * record-full.c (record_full_can_execute_reverse): Add 'self'
8532 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8535 2014-02-19 Tom Tromey <tromey@redhat.com>
8537 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8538 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8540 (target_get_ada_task_ptid): Add argument.
8541 * target.c (update_current_target): Update.
8542 (default_get_ada_task_ptid): Add 'self' argument.
8543 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8544 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8545 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8547 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8549 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8551 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8553 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8554 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8559 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8560 (target_goto_bookmark): Add argument.
8561 * target.c (dummy_goto_bookmark): Add 'self' argument.
8562 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8567 (target_get_bookmark): Add argument.
8568 * target.c (dummy_get_bookmark): Add 'self' argument.
8569 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8575 (target_make_corefile_notes): Add argument.
8576 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8577 * procfs.c (procfs_make_note_section): Add 'self' argument.
8578 (procfs_make_note_section): Add 'self' argument.
8579 (procfs_make_note_section): Add 'self' argument.
8580 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8582 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8583 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8584 * exec.c (exec_make_note_section): Add 'self' argument.
8585 (exec_make_note_section): Add 'self' argument.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target.h (struct target_ops) <to_find_memory_regions>: Add
8591 (target_find_memory_regions): Add argument.
8592 * target.c (dummy_find_memory_regions): Add 'self' argument.
8593 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8594 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8595 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8596 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8597 * exec. (exec_do_find_memory_regions): New global.
8598 (exec_set_find_memory_regions): Rewrite.
8599 (exec_find_memory_regions): New function.
8600 (init_exec_ops): Use exec_find_memory_regions.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target.h (struct target_ops) <to_supports_non_stop>: Add
8606 * target.c (find_default_supports_non_stop): Add argument.
8607 (target_supports_non_stop): Add argument.
8608 (find_default_supports_non_stop): Add 'self' argument.
8609 * remote.c (remote_supports_non_stop): Add 'self' argument.
8610 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target.h (struct target_ops) <to_log_command>: Add argument.
8615 (target_log_command): Add argument.
8616 * serial.h (serial_log_command): Add 'self' argument.
8617 * serial.c (serial_log_command): Add 'self' argument.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8622 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8624 (target_pid_to_exec_file): Add argument.
8625 * target.c (debug_to_pid_to_exec_file): Add argument.
8626 (update_current_target): Update.
8627 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8628 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8629 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8630 (linux_handle_extended_wait): Update.
8631 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8632 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8633 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8634 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target.h (struct target_ops) <to_rcmd>: Add argument.
8639 (target_rcmd): Add argument.
8640 * target.c (debug_to_rcmd): Add argument.
8641 (update_current_target, do_monitor_command): Update.
8642 * remote.c (remote_rcmd): Add 'self' argument.
8643 * monitor.c (monitor_rcmd): Add 'self' argument.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * windows-nat.c (windows_stop): Add 'self' argument.
8648 * target.h (struct target_ops) <to_stop>: Add argument.
8649 * target.c (target_stop): Add argument.
8650 (debug_to_stop): Add argument.
8651 (update_current_target): Update.
8652 * remote.c (remote_stop): Add 'self' argument.
8653 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8654 (gdbsim_cntrl_c): Update.
8655 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8656 * procfs.c (procfs_stop): Add 'self' argument.
8657 * nto-procfs.c (procfs_stop): Add 'self' argument.
8658 * monitor.c (monitor_stop): Add 'self' argument.
8659 (monitor_open): Update.
8660 * linux-nat.c (linux_nat_stop): Add argument.
8661 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8662 * gnu-nat.c (gnu_stop): Add 'self' argument.
8663 * darwin-nat.c (darwin_stop): Add 'self' argument.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target.h (struct target_ops) <to_thread_name>: Add argument.
8668 * target.c (target_thread_name): Add argument.
8669 (update_current_target): Update.
8670 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target.h (struct target_ops) <to_extra_thread_info>: Add
8676 (target_extra_thread_info): Add argument.
8677 * target.c (update_current_target): Update.
8678 * remote.c (remote_threads_extra_info): Add 'self' argument.
8679 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8681 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8682 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8683 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8685 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8687 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8689 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * target.h (struct target_ops) <to_program_signals>: Add argument.
8695 * target.c (target_program_signals): Add argument.
8696 * remote.c (remote_program_signals): Add 'self' argument.
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8701 * target.c (target_pass_signals): Add argument.
8702 * remote.c (remote_pass_signals): Add 'self' argument.
8703 (remote_start_remote): Update.
8704 * procfs.c (procfs_pass_signals): Add 'self' argument.
8705 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8706 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8707 (linux_nat_create_inferior, linux_nat_attach): Update.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * windows-nat.c (windows_can_run): Add 'self' argument.
8712 * target.h (struct target_ops) <to_can_run>: Add argument.
8713 (target_can_run): Add argument.
8714 * target.c (debug_to_can_run): Add argument.
8715 (update_current_target): Update.
8716 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8717 * inf-child.c (inf_child_can_run): Add 'self' argument.
8718 * go32-nat.c (go32_can_run): Add 'self' argument.
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8722 * target.h (struct target_ops) <to_has_exited>: Add argument.
8723 (target_has_exited): Add argument.
8724 * target.c (debug_to_has_exited): Add argument.
8725 (update_current_target): Update.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8731 (target_set_syscall_catchpoint): Add argument.
8732 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8734 * target.c (update_current_target): Update.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8740 (target_remove_exec_catchpoint): Add argument.
8741 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8742 (update_current_target): Update.
8743 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8748 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8750 (target_insert_exec_catchpoint): Add argument.
8751 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8752 (update_current_target): Update.
8753 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8760 (target_remove_vfork_catchpoint): Add argument.
8761 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8762 (update_current_target): Update.
8763 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8770 (target_insert_vfork_catchpoint): Add argument.
8771 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8772 (update_current_target): Update.
8773 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8780 (target_remove_fork_catchpoint): Add argument.
8781 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8782 (update_current_target): Update.
8783 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8790 (target_insert_fork_catchpoint): Add argument.
8791 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8792 (update_current_target): Update.
8793 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8800 (target_post_startup_inferior): Add argument.
8801 * target.c (debug_to_post_startup_inferior): Add argument.
8802 (update_current_target): Update.
8803 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8805 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8807 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8809 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8811 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8813 (super_post_startup_inferior): Likewise.
8814 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8816 (super_post_startup_inferior): Likewise.
8817 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8818 Add 'self' argument.
8819 (super_post_startup_inferior): Likewise.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target.h (struct target_ops) <to_load>: Add argument.
8824 * target.c (target_load): Add argument.
8825 (debug_to_load): Add argument.
8826 (update_current_target): Update.
8827 * remote.c (remote_load): Add 'self' argument.
8828 * remote-sim.c (gdbsim_load): Add 'self' argument.
8829 * remote-mips.c (mips_load): Add 'self' argument.
8830 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8831 * monitor.c (monitor_load): Add 'self' argument.
8832 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8834 2014-02-19 Tom Tromey <tromey@redhat.com>
8836 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8837 (target_terminal_info): Add argument.
8838 * target.c (debug_to_terminal_info): Add argument.
8839 (default_terminal_info): Likewise.
8840 * inflow.c (child_terminal_info): Add 'self' argument.
8841 * inferior.h (child_terminal_info): Add 'self' argument.
8842 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8846 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8848 (target_terminal_save_ours): Add argument.
8849 * target.c (debug_to_terminal_save_ours): Add argument.
8850 (update_current_target): Update.
8851 * inflow.c (terminal_save_ours): Add 'self' argument.
8852 * inferior.h (terminal_save_ours): Add 'self' argument.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8857 (target_terminal_ours): Add argument.
8858 * target.c (debug_to_terminal_ours): Add argument.
8859 (update_current_target): Update.
8860 * remote.c (remote_terminal_ours): Add 'self' argument.
8861 (remote_close): Update.
8862 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8863 * inflow.c (terminal_ours): Add 'self' argument.
8864 * inferior.h (terminal_ours): Add 'self' argument.
8865 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8867 2014-02-19 Pedro Alves <palves@redhat.com>
8868 Tom Tromey <tromey@redhat.com>
8870 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8872 (target_terminal_ours_for_output): Add argument.
8873 * target.c (debug_to_terminal_ours_for_output): Add argument.
8874 (update_current_target): Update.
8875 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8876 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8877 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * target.h (struct target_ops) <to_terminal_inferior>: Add
8883 * target.c (target_terminal_inferior): Add argument.
8884 (update_current_target): Update.
8885 * remote.c (remote_terminal_inferior): Add 'self' argument.
8886 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8887 * inflow.c (terminal_inferior): Add 'self' argument.
8888 * inferior.h (terminal_inferior): Add 'self' argument.
8889 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8890 (go32_terminal_inferior): Add 'self' argument.
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8895 (target_terminal_init): Add argument.
8896 * target.c (debug_to_terminal_init): Add argument.
8897 (update_current_target): Update.
8898 * inflow.c (terminal_init_inferior): Add 'self' argument.
8899 * inferior.h (terminal_init_inferior): Add 'self' argument.
8900 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8901 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target.h (struct target_ops)
8906 <to_can_accel_watchpoint_condition>: Add argument.
8907 (target_can_accel_watchpoint_condition): Add argument.
8908 * target.c (debug_to_can_accel_watchpoint_condition): Add
8910 (update_current_target): Update.
8911 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8918 (target_region_ok_for_hw_watchpoint): Add argument.
8919 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8920 (default_region_ok_for_hw_watchpoint): Add argument.
8921 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8922 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8924 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8926 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8928 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8930 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8932 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8934 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8935 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8937 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8938 Add 'self' argument.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8944 (target_insert_watchpoint): Add argument.
8945 * target.c (debug_to_insert_watchpoint): Add argument.
8946 (update_current_target): Update.
8947 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8948 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8949 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8950 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8951 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8952 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8954 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8955 (procfs_insert_hw_watchpoint): Add 'self' argument.
8956 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8958 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8960 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8962 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8963 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8965 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8972 (target_remove_watchpoint): Add argument.
8973 * target.c (debug_to_remove_watchpoint): Add argument.
8974 (update_current_target): Update.
8975 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8976 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8977 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8978 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8979 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8980 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8982 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8983 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8985 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8987 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8989 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8990 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8992 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8999 (target_remove_hw_breakpoint): Add argument.
9000 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9001 (update_current_target): Update.
9002 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9003 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9005 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9006 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9008 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9015 (target_insert_hw_breakpoint): Add argument.
9016 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9017 (update_current_target): Update.
9018 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9019 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9021 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9022 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9023 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9025 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9032 (target_can_use_hardware_watchpoint): Add argument.
9033 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9034 (update_current_target): Update.
9035 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9037 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9039 * remote.c (remote_check_watch_resources): Add 'self' argument.
9040 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9041 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9043 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9044 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9046 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9048 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9050 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9052 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9054 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9056 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9057 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9059 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9062 2014-02-19 Tom Tromey <tromey@redhat.com>
9064 * target.h (struct target_ops) <to_post_attach>: Add argument.
9065 (target_post_attach): Add argument.
9066 * target.c (debug_to_post_attach): Add argument.
9067 (update_current_target): Update.
9068 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9069 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9070 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9071 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9072 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9076 * windows-nat.c (windows_close): Add 'self' argument.
9077 * tracepoint.c (tfile_close): Add 'self' argument.
9078 * target.h (struct target_ops) <to_close>: Add argument.
9079 * target.c (target_close): Add argument.
9080 (update_current_target): Update.
9081 * remote.c (remote_close): Add 'self' argument.
9082 * remote-sim.c (gdbsim_close): Add 'self' argument.
9083 * remote-mips.c (mips_close): Add 'self' argument.
9084 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9085 * record-full.c (record_full_close): Add 'self' argument.
9086 * record-btrace.c (record_btrace_close): Add 'self' argument.
9087 * monitor.h (monitor_close): Add 'self' argument.
9088 * monitor.c (monitor_close): Add 'self' argument.
9089 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9090 * linux-nat.c (linux_nat_close): Add argument.
9091 * go32-nat.c (go32_close): Add 'self' argument.
9092 * exec.c (exec_close_1): Add 'self' argument.
9093 * ctf.c (ctf_close): Add 'self' argument.
9094 * corelow.c (core_close): Add 'self' argument.
9095 (core_close_cleanup): Update.
9096 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9097 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9101 * remote.c (remote_load): New function.
9102 (init_remote_ops): Use it.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9108 * common/linux-btrace.h (linux_supports_btrace): Update.
9109 * remote.c (remote_supports_btrace): Add "self" argument.
9110 * target-delegates.c: Rebuild.
9111 * target.c (target_supports_btrace): Remove.
9112 * target.h (struct target_ops) <to_supports_btrace>: Add
9113 target_ops argument.
9114 (target_supports_btrace): New define.
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9118 * record-full.c (record_full_beneath_to_resume_ops)
9119 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9120 (record_full_beneath_to_wait)
9121 (record_full_beneath_to_store_registers_ops)
9122 (record_full_beneath_to_store_registers)
9123 (record_full_beneath_to_xfer_partial_ops)
9124 (record_full_beneath_to_xfer_partial)
9125 (record_full_beneath_to_insert_breakpoint_ops)
9126 (record_full_beneath_to_insert_breakpoint)
9127 (record_full_beneath_to_remove_breakpoint_ops)
9128 (record_full_beneath_to_remove_breakpoint)
9129 (record_full_beneath_to_stopped_by_watchpoint)
9130 (record_full_beneath_to_stopped_data_address)
9131 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9132 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9133 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9134 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9135 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9136 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9137 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9138 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9139 (record_full_resume, record_full_wait_1)
9140 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9141 (record_full_store_registers, record_full_xfer_partial)
9142 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9143 (record_full_async, record_full_core_xfer_partial): Use target
9145 * target-delegates.c: Rebuild.
9146 * target.c (current_xfer_partial): Remove.
9147 (update_current_target): Do not INHERIT or de_fault
9148 to_insert_breakpoint, to_remove_breakpoint,
9149 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9150 to_is_async_p, to_async. Do not set to_xfer_partial field.
9151 (default_xfer_partial): Simplify.
9152 (current_xfer_partial): Remove.
9153 (target_wait, target_resume): Simplify.
9154 (find_default_can_async_p, find_default_is_async_p): Update.
9155 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9156 to_xfer_partial, to_stopped_by_watchpoint,
9157 to_stopped_data_address.
9158 (target_store_registers): Simplify.
9159 (forward_target_remove_breakpoint)
9160 (forward_target_insert_breakpoint): Remove.
9161 (target_remove_breakpoint, target_insert_breakpoint)
9162 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9163 * target.h (struct target_ops) <to_resume, to_wait,
9164 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9165 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9166 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9168 (forward_target_remove_breakpoint)
9169 (forward_target_insert_breakpoint): Remove.
9170 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9172 (record_btrace_insert_breakpoint): Delegate directly.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target-delegates.c: New file.
9178 * target.c: Include target-delegates.c.
9179 (init_dummy_target): Call install_dummy_methods.
9180 (complete_target_initialization): Call install_delegators.
9181 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9182 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9183 * make-target-delegates: New file.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * record.c (find_record_target): Use find_target_at.
9188 * target.c (find_target_at): New function.
9189 * target.h (find_target_at): Declare.
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9193 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9195 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9197 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9198 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9200 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9202 * linux-nat.c (save_sigtrap): Update.
9203 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9204 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9205 (linux_nat_close): Update.
9206 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9208 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9210 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9211 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9212 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9213 (tmp_to_async): Add 'ops' argument.
9214 (record_full_stopped_by_watchpoint, record_full_async)
9215 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9217 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9218 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9219 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9220 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9221 (remote_is_async_p, remote_async): Add 'ops' argument.
9222 (remote_stopped_data_address): Update.
9223 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9224 * target.c (update_current_target)
9225 (find_default_can_async_p, find_default_is_async_p): Update.
9226 (init_dummy_target): Update.
9227 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9228 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9229 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9230 (target_can_async_p, target_is_async_p, target_async)
9231 (target_stopped_by_watchpoint): Update.
9233 2014-02-19 Yao Qi <yao@codesourcery.com>
9236 * gdbarch.sh: Remove startup_gdbarch.
9237 * gdbarch.c: Regenerated.
9238 * gdbarch.h: Likewise.
9240 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9242 * rl78-tdep.c (rl78_g10_register_name): New function.
9243 (rl78_return_value): Add g10 support.
9244 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9247 2014-02-17 Doug Evans <xdje42@gmail.com>
9249 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9250 (SUBDIR_GUILE_SRCS): Ditto.
9251 (scm-gsmob.o): Ditto.
9253 2014-02-17 Yao Qi <yao@codesourcery.com>
9255 * gnu-nat.c (ILL_RPC): Declare defined function.
9257 2014-02-17 Yao Qi <yao@codesourcery.com>
9259 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9260 mach_msg_type_number_t.
9261 (gnu_write_inferior): Likewise.
9263 2014-02-17 Yao Qi <yao@codesourcery.com>
9265 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9267 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9268 (inf_validate_procs, inf_signal): Likewise.
9269 (S_exception_raise_request): Likewise.
9270 (do_mach_notify_dead_name): Likewise.
9271 (steal_exc_port): Likewise.
9272 (gnu_read_inferior): Change 'copy_count''s type to
9273 mach_msg_type_number_t.
9274 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9277 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9279 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9280 flag. Adjust all users; in particular...
9281 (gnu_wait): ..., don't decrement its value in here...
9282 (gnu_create_inferior): ..., and instead set the flag in here,
9283 around the startup_inferior call, and call that one with
9284 START_INFERIOR_TRAPS_EXPECTED.
9286 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9287 (ILL_RPC): ... new macro.
9288 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9289 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9290 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9291 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9292 functions with ILL_RPC macro.
9293 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9294 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9295 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9296 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9297 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9298 (S_proc_getlogin_reply, S_proc_getsid_reply)
9299 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9300 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9301 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9302 (S_proc_getnports_reply, S_proc_is_important_reply)
9303 (S_proc_get_code_reply): New stub functions, generated with
9306 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9307 collected the type check structures.
9309 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9311 2014-02-14 Doug Evans <dje@google.com>
9313 * target.c (target_write_partial): Fix result type.
9315 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9317 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9318 the proper offsets to access fpregset_t.
9320 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9322 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9323 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9324 * h8300-tdep.c (setmachinelist): Remove global.
9325 * hppa-tdep.c (hppa_sigtramp): Remove global.
9326 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9327 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9328 * ravenscar-thread.c (update_target_observer): Remove global.
9329 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9331 2014-02-12 Tom Tromey <tromey@redhat.com>
9333 * common/rsp-low.c: Update comments.
9334 * common/rsp-low.h: Update comments.
9336 2014-02-12 Tom Tromey <tromey@redhat.com>
9338 * common/rsp-low.c (convert_ascii_to_int): Remove.
9339 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9341 2014-02-12 Tom Tromey <tromey@redhat.com>
9343 * common/rsp-low.h (unhexify): Don't declare.
9344 * common/rsp-low.c (unhexify): Remove.
9346 2014-02-12 Tom Tromey <tromey@redhat.com>
9348 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9349 * common/rsp-low.c (convert_int_to_ascii): Remove.
9351 2014-02-12 Tom Tromey <tromey@redhat.com>
9353 * common/rsp-low.h (hexify): Don't declare.
9354 * common/rsp-low.c (hexify): Remove.
9356 2014-02-12 Tom Tromey <tromey@redhat.com>
9358 * common/rsp-low.c (hexify): Never take strlen of argument.
9360 2014-02-12 Tom Tromey <tromey@redhat.com>
9362 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9363 * remote.c (extended_remote_run, remote_rcmd)
9364 (remote_download_trace_state_variable, remote_save_trace_data)
9365 (remote_set_trace_notes): Update.
9366 * tracepoint.c (encode_source_string, tfile_write_status)
9367 (tfile_write_uploaded_tsv): Update.
9369 2014-02-12 Tom Tromey <tromey@redhat.com>
9371 * tracepoint.c: Include rsp-low.h.
9372 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9373 * remote.c: Include rsp-low.h.
9374 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9375 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9376 (remote_unescape_input): Move to common/rsp-low.c.
9377 * common/rsp-low.h: New file.
9378 * common/rsp-low.c: New file.
9379 * Makefile.in (SFILES): Add common/rsp-low.c.
9380 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9381 (COMMON_OBS): Add rsp-low.o.
9382 (rsp-low.o): New target.
9384 2014-02-12 Tom Tromey <tromey@redhat.com>
9386 * utils.h: Include print-utils.h.
9387 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9388 (int_string, core_addr_to_string, core_addr_to_string_nz)
9389 (hex_string, hex_string_custom): Don't declare.
9390 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9391 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9392 (hex_string_custom, int_string, core_addr_to_string)
9393 (core_addr_to_string_nz, host_address_to_string): Move to
9394 common/print-utils.c.
9395 * common/print-utils.h: New file.
9396 * common/print-utils.c: New file
9397 * Makefile.in (SFILES): Add common/print-utils.c.
9398 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9399 (COMMON_OBS): Add print-utils.o.
9400 (print-utils.o): New target.
9402 2014-02-12 Tom Tromey <tromey@redhat.com>
9404 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9406 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9408 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9410 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9412 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9413 if a PT_IO ptrace request returns sucessfully but indicates that 0
9414 bytes were transferred.
9416 2014-02-12 Pedro Alves <palves@redhat.com>
9417 Kevin Buettner <kevinb@redhat.com>
9419 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9420 TYPE_INSTANCE_FLAG_CODE_SPACE.
9422 2014-02-12 Pedro Alves <palves@redhat.com>
9424 * h8300-tdep.c (pseudo_from_raw_register)
9425 (raw_from_pseudo_register): New functions.
9426 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9429 2014-02-12 Pedro Alves <palves@redhat.com>
9431 * h8300-tdep.c (h8300_register_sim_regno): New function.
9432 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9433 gdbarch_register_sim_regno hook.
9435 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9437 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9439 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9441 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9443 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9445 * obsd-tdep.h (obsd_init_abi): New prototype.
9446 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9447 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9448 (obsd_init_abi): New functions.
9449 * i386obsd-tdep.c: Include "obsd-tdep.h".
9450 (i386obsd_init_abi): Call obsd_init_abi.
9451 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9452 (amd64obsd_init_abi): Call obsd_init_abi.
9453 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9454 obsd-tdep.c to gdb_target_obs.
9456 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9458 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9459 double float arguments to 16-byte in the argument slots.
9461 2014-02-11 Doug Evans <xdje42@gmail.com>
9463 * configure.ac: Don't crash if pkg-config is not found and guile
9464 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9466 * configure: Regenerate.
9468 2014-02-11 Yao Qi <yao@codesourcery.com>
9470 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9471 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9472 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9473 * gnu-nat.c (gnu_xfer_memory): Likewise.
9474 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9475 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9476 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9477 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9479 2014-02-11 Yao Qi <yao@codesourcery.com>
9481 * target.h (enum target_xfer_error): Rename to ...
9482 (enum target_xfer_status): ... it. New. All users updated.
9483 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9485 (TARGET_XFER_STATUS_ERROR_P): New macro.
9486 (target_xfer_error_to_string): Remove declaration.
9487 (target_xfer_status_to_string): Declare.
9488 (target_xfer_partial_ftype): Adjust it.
9489 (struct target_ops) <to_xfer_partial>: Return
9490 target_xfer_status. Add argument xfered_len. Update
9492 * target.c (target_xfer_error_to_string): Rename to ...
9493 (target_xfer_status_to_string): ... it. New. All callers
9495 (target_read_live_memory): Likewise. Call target_xfer_partial
9496 instead of target_read.
9497 (memory_xfer_live_readonly_partial): Return
9498 target_xfer_status. Add argument xfered_len.
9499 (raw_memory_xfer_partial): Likewise.
9500 (memory_xfer_partial_1): Likewise.
9501 (memory_xfer_partial): Likewise.
9502 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9503 properly. Update debug message.
9504 (default_xfer_partial, current_xfer_partial): Likewise.
9505 (target_write_partial): Likewise.
9506 (target_read_partial): Likewise. All callers updated.
9507 (read_whatever_is_readable): Likewise.
9508 (target_write_with_progress): Likewise.
9509 (target_read_alloc_1): Likewise.
9511 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9512 * auxv.c (procfs_xfer_auxv): Likewise.
9513 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9514 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9515 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9516 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9517 * corefile.c (read_memory): Adjust.
9518 * corelow.c (core_xfer_partial): Likewise.
9519 * ctf.c (ctf_xfer_partial): Likewise.
9520 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9522 (darwin_xfer_partial): Likewise.
9523 * exec.c (section_table_xfer_memory_partial): Likewise. All
9525 (exec_xfer_partial): Likewise.
9526 * exec.h (section_table_xfer_memory_partial): Update
9528 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9530 (gnu_xfer_partial): Likewise.
9531 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9532 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9533 (ia64_hpux_xfer_solib_got): Likewise.
9534 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9535 type of 'partial_len' to ULONGEST.
9536 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9537 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9538 (linux_nat_xfer_partial): Likewise.
9539 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9540 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9541 * monitor.c (monitor_xfer_memory): Likewise.
9542 (monitor_xfer_partial): Likewise.
9543 * procfs.c (procfs_xfer_partial): Likewise.
9544 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9545 * record-full.c (record_full_xfer_partial): Likewise.
9546 (record_full_core_xfer_partial): Likewise.
9547 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9548 (gdbsim_xfer_partial): Likewise.
9549 * remote.c (remote_write_bytes_aux): Likewise. All callers
9551 (remote_write_bytes, remote_read_bytes): Likewise. All
9553 (remote_flash_erase): Likewise. All callers updated.
9554 (remote_write_qxfer): Likewise. All callers updated.
9555 (remote_read_qxfer): Likewise. All callers updated.
9556 (remote_xfer_partial): Likewise.
9557 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9558 (rs6000_xfer_shared_libraries): Likewise.
9559 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9560 (sol_thread_xfer_partial): Likewise.
9561 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9562 (sparc_xfer_partial): Likewise.
9563 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9565 (spu_xfer_partial): Likewise.
9566 * spu-multiarch.c (spu_xfer_partial): Likewise.
9567 * tracepoint.c (tfile_xfer_partial): Likewise.
9568 * windows-nat.c (windows_xfer_memory): Likewise.
9569 (windows_xfer_shared_libraries): Likewise.
9570 (windows_xfer_partial): Likewise.
9571 * valprint.c: Replace 'target_xfer_error' with
9572 'target_xfer_status' in comments.
9574 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9576 Checked in by Joel Brobecker <brobecker@adacore.com>.
9577 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9579 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9581 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9582 function parameters.
9584 2014-02-10 Will Newton <will.newton@linaro.org>
9586 * elfread.c (elf_rel_plt_read): Look for a .got section if
9587 looking up .got.plt fails.
9588 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9589 on address passed to elf_gnu_ifunc_record_cache.
9590 (elf_gnu_ifunc_resolve_addr): Likewise.
9591 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9593 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9595 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9596 (X_RETTURN): New macro.
9597 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9599 * sparc64-tdep.c (sparc64_init_abi): Hook
9600 sparc_in_function_epilogue_p.
9602 2014-02-10 Gary Benson <gbenson@redhat.com>
9604 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9605 Rename name_matcher to symbol_matcher.
9607 2014-02-10 Gary Benson <gbenson@redhat.com>
9609 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9610 Use expand_symtabs_file_matcher_ftype and
9611 expand_symtabs_symbol_matcher_ftype.
9613 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9615 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9616 (struct ada_symbol_cache): New.
9617 (ada_free_symbol_cache): Forward declare.
9618 (struct ada_pspace_data): New.
9619 (ada_pspace_data_handle): New static global.
9620 (get_ada_pspace_data, ada_pspace_data_cleanup)
9621 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9622 (cache_space, cache): Delete, now folded inside struct
9624 (ada_get_symbol_cache): New function.
9625 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9627 (_initialize_ada_language): Remove initialization of cache_space.
9628 Move call to observer_attach_inferior_exit up, grouping it
9629 with the other observer registrations inside this function.
9630 Rename command to be more general. Add call to
9631 register_program_space_data_with_cleanup.
9633 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9635 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9636 ada_new_objfile_observer.
9637 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9638 (_initialize_tasks): Update uses of ada_new_objfile_observer
9639 and ada_tasks_normal_stop_observer.
9641 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9643 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9644 returned by the 'Length attribute to integer.
9646 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9648 * ada-lang.c (_initialize_ada_language): Initialize
9649 cache_space obstack.
9651 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9653 * ada-lang.c (HASH_SIZE): New macro.
9654 (struct cache_entry): New type.
9655 (cache_space, cache): New static globals.
9656 (ada_clear_symbol_cache, find_entry): New functions.
9657 (lookup_cached_symbol, cache_symbol): Implement.
9658 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9659 (_initialize_ada_language): Attach ada_new_objfile_observer
9660 and ada_free_objfile_observer.
9662 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9664 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9665 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9666 struct block * parameter.
9667 (ada_lookup_symbol_list_worker): Constify local variable "block".
9668 Remove cast which is no longer necessary.
9670 2014-02-10 Doug Evans <xdje42@gmail.com>
9672 Add Guile as an extension language.
9673 * NEWS: Mention Guile scripting.
9674 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9675 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9676 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9677 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9678 (CLIBS): Add GUILE_LIBS.
9679 (install-guile): New rule.
9680 (guile.o): New rule.
9681 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9682 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9683 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9684 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9685 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9686 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9687 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9688 * configure.ac: New option --with-guile.
9689 * configure: Regenerate.
9690 * config.in: Regenerate.
9691 * auto-load.c: Remove #include "python/python.h". Add #include
9692 "gdb/section-scripts.h".
9693 (source_section_scripts): Handle Guile scripts.
9694 (_initialize_auto_load): Add name of Guile objfile script to
9695 scripts-directory help text.
9696 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9697 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9698 (struct breakpoint): New member scm_bp_object.
9699 * defs.h (enum command_control_type): New value guile_control.
9700 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9702 (show_user): Update comment.
9703 (_initialize_cli_cmds): Update help text for "show user". Update help
9704 text for max-user-call-depth.
9705 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9707 (multi_line_command_p): Add guile_control.
9708 (print_command_lines): Handle guile_control.
9709 (execute_control_command, recurse_read_control_structure): Ditto.
9710 (process_next_line): Recognize "guile" commands.
9711 * disasm.c (gdb_disassemble_info): Make non-static.
9712 * disasm.h: #include "dis-asm.h".
9713 (struct gdbarch): Add forward decl.
9714 (gdb_disassemble_info): Declare.
9715 * extension.c: #include "guile/guile.h".
9716 (extension_languages): Add guile.
9717 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9718 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9719 * gdbtypes.c (get_unsigned_type_max): New function.
9720 (get_signed_type_minmax): New function.
9721 * gdbtypes.h (get_unsigned_type_max): Declare.
9722 (get_signed_type_minmax): Declare.
9723 * guile/README: New file.
9724 * guile/guile-internal.h: New file.
9725 * guile/guile.c: New file.
9726 * guile/guile.h: New file.
9727 * guile/scm-arch.c: New file.
9728 * guile/scm-auto-load.c: New file.
9729 * guile/scm-block.c: New file.
9730 * guile/scm-breakpoint.c: New file.
9731 * guile/scm-disasm.c: New file.
9732 * guile/scm-exception.c: New file.
9733 * guile/scm-frame.c: New file.
9734 * guile/scm-gsmob.c: New file.
9735 * guile/scm-iterator.c: New file.
9736 * guile/scm-lazy-string.c: New file.
9737 * guile/scm-math.c: New file.
9738 * guile/scm-objfile.c: New file.
9739 * guile/scm-ports.c: New file.
9740 * guile/scm-pretty-print.c: New file.
9741 * guile/scm-safe-call.c: New file.
9742 * guile/scm-string.c: New file.
9743 * guile/scm-symbol.c: New file.
9744 * guile/scm-symtab.c: New file.
9745 * guile/scm-type.c: New file.
9746 * guile/scm-utils.c: New file.
9747 * guile/scm-value.c: New file.
9748 * guile/lib/gdb.scm: New file.
9749 * guile/lib/gdb/boot.scm: New file.
9750 * guile/lib/gdb/experimental.scm: New file.
9751 * guile/lib/gdb/init.scm: New file.
9752 * guile/lib/gdb/iterator.scm: New file.
9753 * guile/lib/gdb/printing.scm: New file.
9754 * guile/lib/gdb/types.scm: New file.
9755 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9756 (VPATH): Add $(GUILE_SRCDIR).
9757 (GUILE_DIR): New variable.
9758 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9759 (all): Add stamp-guile dependency.
9760 (stamp-guile): New rule.
9761 (clean-guile, install-guile, uninstall-guile): New rules.
9762 (install-only): Add install-guile dependency.
9763 (uninstall): Add uninstall-guile dependency.
9764 (clean): Add clean-guile dependency.
9766 2014-02-09 Doug Evans <xdje42@gmail.com>
9768 Revert this patch (which I approved, mea culpa).
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-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9777 Fix Python stack corruption.
9778 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9781 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9783 * Makefile.in (all-lib): Remove.
9784 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9786 2014-02-07 Doug Evans <dje@google.com>
9788 * extension-priv.h (extension_language_script_ops): Add comment.
9789 (extension_language_ops): Add comment.
9790 (active_ext_lang_state): Fix typo in comment.
9792 2014-02-07 Pedro Alves <palves@redhat.com>
9794 PR breakpoints/16292
9795 * infrun.c (handle_signal_stop) <signal arrives while stepping
9796 over a breakpoint>: Switch back to the stepping thread.
9798 2014-02-07 Yao Qi <yao@codesourcery.com>
9800 * target.c (target_xfer_partial): Return zero if LEN is zero.
9802 2014-02-07 Yao Qi <yao@codesourcery.com>
9804 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9805 (ld_so_xfer_auxv): Likewise.
9806 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9807 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9808 * corelow.c (core_xfer_partial): Likewise.
9809 * ctf.c (ctf_xfer_partial): Likewise.
9810 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9811 (darwin_xfer_partial): Likewise.
9812 * exec.c (exec_xfer_partial): Likewise.
9813 * gnu-nat.c (gnu_xfer_partial): Likewise.
9814 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9815 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9816 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9817 * linux-nat.c (linux_xfer_siginfo): Likewise.
9818 (linux_proc_xfer_spu): Likewise.
9819 * procfs.c (procfs_xfer_partial): Likewise.
9820 * record-full.c (record_full_xfer_partial): Likewise.
9821 (record_full_core_xfer_partial): Likewise.
9822 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9823 * remote.c (remote_write_qxfer): Likewise.
9824 (remote_write_qxfer, remote_read_qxfer): Likewise.
9825 (remote_xfer_partial): Likewise.
9826 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9827 (rs6000_xfer_shared_libraries): Likewise.
9828 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9829 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9830 (spu_xfer_partial): Likewise.
9831 * target.c (memory_xfer_partial_1): Likewise.
9832 * tracepoint.c (tfile_xfer_partial): Likewise.
9833 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9834 (windows_xfer_partial): Likewise.
9836 2014-02-07 Yao Qi <yao@codesourcery.com>
9838 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9840 (core_xfer_shared_libraries_aix): Likewise.
9841 * gdbarch.c, gdbarch.h: Regenerated.
9842 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9843 ULONGEST. Change 'len_avail' type to ULONGEST.
9844 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9845 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9847 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9849 2014-02-07 Yao Qi <yao@codesourcery.com>
9851 * corefile.c (memory_error): Get 'exception' from ERR and pass
9852 'exception' to throw_error.
9854 2014-02-06 Doug Evans <xdje42@gmail.com>
9856 * configure.ac (libpython checking): Remove all but python.o from
9857 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9858 * configure: Regenerate.
9860 * Makefile.in (SFILES): Add extension.c.
9861 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9862 (COMMON_OBS): Add extension.o.
9863 * extension.h: New file.
9864 * extension-priv.h: New file.
9865 * extension.c: New file.
9867 * python/python-internal.h: #include "extension.h".
9868 (gdbpy_auto_load_enabled): Declare.
9869 (gdbpy_apply_val_pretty_printer): Declare.
9870 (gdbpy_apply_frame_filter): Declare.
9871 (gdbpy_preserve_values): Declare.
9872 (gdbpy_breakpoint_cond_says_stop): Declare.
9873 (gdbpy_breakpoint_has_cond): Declare.
9874 (void source_python_script_for_objfile): Delete.
9875 * python/python.c: #include "extension-priv.h".
9876 Delete inclusion of "observer.h".
9877 (extension_language_python): Moved here and renamed from
9878 script_language_python in py-auto-load.c.
9879 Redefined to be of type extension_language_defn.
9880 (python_extension_script_ops): New global.
9881 (python_extension_ops): New global.
9882 (struct python_env): New member previous_active.
9883 (restore_python_env): Call restore_active_ext_lang.
9884 (ensure_python_env): Call set_active_ext_lang.
9885 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9887 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9889 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9891 (gdbpy_eval_from_control_command): Renamed from
9892 eval_python_from_control_command, made static. New arg extlang.
9893 (gdbpy_source_script) Renamed from source_python_script, made static.
9895 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9896 result to int. New arg extlang.
9897 (gdbpy_source_objfile_script): Renamed from
9898 source_python_script_for_objfile, made static. New arg extlang.
9899 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9900 static. New args extlang, extlang_printers. Change result type to
9902 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9903 static. New arg extlang. Rename arg printers to extlang_printers
9904 and change type to ext_lang_type_printers *.
9905 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9906 static. Replace argument arg with extlang, extlang_printers.
9907 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9908 (!HAVE_PYTHON, source_python_script): Delete.
9909 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9910 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9911 (!HAVE_PYTHON, start_type_printers): Delete.
9912 (!HAVE_PYTHON, apply_type_printers): Delete.
9913 (!HAVE_PYTHON, free_type_printers): Delete.
9914 (_initialize_python): Delete call to observer_attach_before_prompt.
9915 (finalize_python): Set/restore active extension language.
9916 (gdbpy_finish_initialization) Renamed from
9917 finish_python_initialization, made static. New arg extlang.
9918 (gdbpy_initialized): New function.
9919 * python/python.h: #include "extension.h". Delete #include
9920 "value.h", "mi/mi-cmds.h".
9921 (extension_language_python): Declare.
9922 (GDBPY_AUTO_FILE_NAME): Delete.
9923 (enum py_bt_status): Moved to extension.h and renamed to
9925 (enum frame_filter_flags): Moved to extension.h.
9926 (enum py_frame_args): Moved to extension.h and renamed to
9927 ext_lang_frame_args.
9928 (finish_python_initialization): Delete.
9929 (eval_python_from_control_command): Delete.
9930 (source_python_script): Delete.
9931 (apply_val_pretty_printer): Delete.
9932 (apply_frame_filter): Delete.
9933 (preserve_python_values): Delete.
9934 (gdbpy_script_language_defn): Delete.
9935 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9936 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9938 * auto-load.c: #include "extension.h".
9939 (GDB_AUTO_FILE_NAME): Delete.
9940 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9941 (script_language_gdb): Delete, moved to extension.c and renamed to
9942 extension_language_gdb.
9943 (source_gdb_script_for_objfile): Delete.
9944 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9945 (loaded_script): Change type of language member to
9946 struct extension_language_defn *.
9947 (init_loaded_scripts_info): Initialize
9948 unsupported_script_warning_printed.
9949 (maybe_add_script): Make static. Change type of language arg to
9950 struct extension_language_defn *.
9951 (clear_section_scripts): Reset unsupported_script_warning_printed.
9952 (auto_load_objfile_script_1): Rewrite to use extension language API.
9953 (auto_load_objfile_script): Make public. Remove support-compiled-in
9954 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9955 (source_section_scripts): Rewrite to use extension language API.
9956 (load_auto_scripts_for_objfile): Rewrite to use
9957 auto_load_scripts_for_objfile.
9958 (collect_matching_scripts_data): Change type of language member to
9959 struct extension_language_defn *.
9960 (auto_load_info_scripts): Change type of language arg to
9961 struct extension_language_defn *.
9962 (unsupported_script_warning_print): New function.
9963 (script_not_found_warning_print): Make static.
9964 (_initialize_auto_load): Rewrite construction of scripts-directory
9966 * auto-load.h (struct objfile): Add forward decl.
9967 (struct script_language): Delete.
9968 (struct auto_load_pspace_info): Add forward decl.
9969 (struct extension_language_defn): Add forward decl.
9970 (maybe_add_script): Delete.
9971 (auto_load_objfile_script): Declare.
9972 (script_not_found_warning_print): Delete.
9973 (auto_load_info_scripts): Update prototype.
9974 (auto_load_gdb_scripts_enabled): Declare.
9975 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9976 auto_load_python_scripts_enabled and made public.
9977 (script_language_python): Delete, moved to python.c.
9978 (gdbpy_script_language_defn): Delete.
9979 (info_auto_load_python_scripts): Update to use
9980 extension_language_python.
9982 * breakpoint.c (condition_command): Replace call to
9983 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9984 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9985 with call to breakpoint_ext_lang_cond_says_stop.
9986 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9987 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9988 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9989 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9991 (local_setattro): Print name of extension language with existing
9994 * valprint.c (val_print, value_print): Update to call
9995 apply_ext_lang_val_pretty_printer.
9996 * cp-valprint.c (cp_print_value): Update call to
9997 apply_ext_lang_val_pretty_printer.
9998 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9999 (gdbpy_apply_val_pretty_printer): Renamed from
10000 apply_val_pretty_printer. New arg extlang.
10001 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10003 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10004 extension language API.
10005 * cli/cli-script.c (execute_control_command): Update to call
10006 eval_ext_lang_from_control_command.
10008 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10009 enum ext_lang_bt_status values. Update call to
10010 apply_ext_lang_frame_filter.
10011 (mi_cmd_stack_list_locals): Ditto.
10012 (mi_cmd_stack_list_args): Ditto.
10013 (mi_cmd_stack_list_variables): Ditto.
10014 * mi/mi-main.c: Delete #include "python/python-internal.h".
10015 Add #include "extension.h".
10016 (mi_cmd_list_features): Replace reference to python internal variable
10017 gdb_python_initialized with call to ext_lang_initialized_p.
10019 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10020 Update to use enum ext_lang_frame_args. Update to call
10021 apply_ext_lang_frame_filter.
10022 * python/py-framefilter.c (extract_sym): Update to use enum
10023 ext_lang_bt_status.
10024 (extract_value, py_print_type, py_print_value): Ditto.
10025 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10026 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10027 (py_print_frame): Ditto.
10028 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10029 New arg extlang. Update to use enum ext_lang_bt_status.
10031 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10032 finish_python_initialization. Replace with call to
10033 finish_ext_lang_initialization.
10035 * typeprint.c (do_free_global_table): Update to call
10036 free_ext_lang_type_printers.
10037 (create_global_typedef_table): Update to call
10038 start_ext_lang_type_printers.
10039 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10040 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10041 (type_print_options): Change type of global_printers from "void *"
10042 to "struct ext_lang_type_printers *".
10044 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10045 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10046 (gdbpy_preserve_values): Renamed from preserve_python_values.
10048 (!HAVE_PYTHON, preserve_python_values): Delete.
10050 * utils.c (quit_flag): Delete, moved to extension.c.
10051 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10054 * eval.c: Delete #include "python/python.h".
10055 * main.c: Delete #include "python/python.h".
10057 * defs.h: Update comment.
10059 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10063 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10065 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10068 2014-02-05 Yao Qi <yao@codesourcery.com>
10070 * remote.c (remote_pass_signals): Remove local 'buf' and use
10072 (remote_program_signals): Likewise.
10074 2014-02-05 Yao Qi <yao@codesourcery.com>
10076 * ctf.c: Include "inferior.h" and "gdbthread.h".
10077 (CTF_PID): A new macro.
10078 (ctf_open): Call inferior_appeared and add_thread_silent.
10079 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10080 (ctf_thread_alive): New function.
10081 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10083 2014-02-05 Yao Qi <yao@codesourcery.com>
10087 2013-05-24 Yao Qi <yao@codesourcery.com>
10089 * tracepoint.c (TFILE_PID): Remove.
10090 (tfile_open): Don't add thread and inferior.
10091 (tfile_close): Don't set 'inferior_ptid'. Don't call
10092 exit_inferior_silent.
10093 (tfile_thread_alive): Remove.
10094 (init_tfile_ops): Don't set field 'to_thread_alive' of
10097 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10099 * remote.c (remote_start_remote): Call remote_check_symbols even
10100 if only symbol-file (not file) has been given.
10102 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10104 * gdbarch.sh (skip_entrypoint): New callback.
10105 * gdbarch.c, gdbarch.h: Regenerate.
10106 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10107 * infrun.c (fill_in_stop_func): Likewise.
10108 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10109 (ppc_elfv2_elf_make_msymbol_special): New function.
10110 (ppc_elfv2_skip_entrypoint): Likewise.
10111 (ppc_linux_init_abi): Install them for ELFv2.
10113 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10115 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10116 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10117 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10118 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10119 structures returned in GPRs.
10121 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10123 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10124 offset to the stack parameter list for the ELFv2 ABI.
10126 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10128 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10129 set_gdbarch_convert_from_func_ptr_addr and
10130 set_gdbarch_elf_make_msymbol_special for ELFv1.
10131 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10132 function descriptors on ELFv1.
10133 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10134 set up r12 at function entry.
10136 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10138 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10139 (struct gdbarch_tdep): New member elf_abi.
10141 * rs6000-tdep.c: Include "elf/ppc64.h".
10142 (rs6000_gdbarch_init): Detect ELF ABI version.
10144 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10146 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10147 within a register pair holding a DFP 128-bit value on little-endian.
10148 (ppc64_sysv_abi_return_value_base): Likewise.
10149 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10150 (dfp_pseudo_register_write): Likewise.
10152 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10154 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10155 offset on little-endian when passing _Decimal32.
10156 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10158 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10160 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10161 of the overlapped FP register within the VSX register on little-
10163 (efpr_pseudo_register_write): Likewise.
10165 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10167 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10168 offset on little-endian when passing small structures.
10170 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10172 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10173 (struct ppc64_sysv_argpos): New data structure.
10174 (ppc64_sysv_abi_push_float): Remove.
10175 (ppc64_sysv_abi_push_val): New function.
10176 (ppc64_sysv_abi_push_integer): Likewise.
10177 (ppc64_sysv_abi_push_freg): Likewise.
10178 (ppc64_sysv_abi_push_vreg): Likewise.
10179 (ppc64_sysv_abi_push_param): Likewise.
10180 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10181 (ppc64_sysv_abi_return_value_base): New function.
10182 (ppc64_sysv_abi_return_value): Refactor to use it.
10184 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10186 * NEWS: Document new target powerpc64le-*-linux*.
10188 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10190 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10191 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10193 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10194 register set used in ELF core dumps. Add floating-point register set.
10196 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10198 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10199 dwarf2_to_gdb[] table using symbolic constants. Adjust
10200 penultimate entry from number representing the PC register
10201 to symbolic constant representing the MDR register. Add
10202 constant for the PC register to the end of the table.
10204 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10206 * bsd-kvm.c: Include <sys/param.h>
10208 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10210 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10212 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10214 * ada-lang.h (clear_ada_sym_cache): Delete.
10216 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10218 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10220 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10222 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10223 the sigreturn register save area only if the syscall is
10226 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10228 * valops.c (value_slice): Minor reformatting.
10230 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10232 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10234 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10236 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10237 New static globals.
10238 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10239 (ada_ignore_descriptive_types_p): New static global.
10240 (find_parallel_type_by_descriptive_type): Return immediately
10241 if ada_ignore_descriptive_types_p is set.
10242 (_initialize_ada_language): Register new commands "maintenance
10243 set ada", "maintenance show ada", "maintenance set ada
10244 ignore-descriptive-types" and "maintenance show ada
10245 ignore-descriptive-types".
10246 * NEWS: Add entry for new "maint ada set/show
10247 ignore-descriptive-types" commands.
10249 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10251 * record-btrace.c (record_btrace_close): Call btrace_teardown
10254 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10256 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10259 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10261 * ada-typeprint (type_is_full_subrange_of_target_type):
10263 (print_range): Add parameter bounds_prefered_p. If not set,
10264 try printing range types using the name of their base type.
10265 (print_range_type): Add parameter bounds_prefered_p.
10266 Use it in call to print_range.
10267 (print_array_type, ada_print_type): Update calls to print_range
10268 and print_range_type.
10270 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10272 * ada-typeprint.c (print_array_type, print_choices, print_range)
10273 (print_range_bound, print_dynamic_range_bound, print_range_type):
10274 Remove declaration.
10276 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10278 * ada-typeprint.c (print_range): Add missing empty line
10279 after local declaration.
10281 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10283 * ada-valprint.c (print_optional_low_bound): Get index_type's
10284 target type for as long as it is a TYPE_CODE_RANGE.
10286 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10288 * procfs.c (procfs_make_note_section): Remove assertion and
10289 associated comment.
10291 2014-01-24 Yao Qi <yao@codesourcery.com>
10293 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10294 * corelow.c (get_core_siginfo): Likewise.
10296 2014-01-24 Yao Qi <yao@codesourcery.com>
10298 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10299 ULONGEST. Don't check 'len' is negative.
10300 (remote_write_bytes): Change type of 'len' to ULONGEST.
10302 2014-01-23 Tom Tromey <tromey@redhat.com>
10305 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10306 Handle exception from frame.block.
10307 (FrameVars.fetch_frame_locals): Likewise.
10309 2014-01-23 Tom Tromey <tromey@redhat.com>
10312 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10313 on a NULL pointer. Move "goto error" to correct place.
10315 2014-01-23 Tom Tromey <tromey@redhat.com>
10318 * python/py-framefilter.c (apply_frame_filter): Call
10319 ensure_python_env after computing gdbarch.
10321 2014-01-23 Yao Qi <yao@codesourcery.com>
10323 * target.c (raw_memory_xfer_partial): Change argument type
10324 from void * to gdb_byte *.
10325 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10327 2014-01-22 Doug Evans <dje@google.com>
10329 New gdbserver option --debug-format=timestamp.
10330 * NEWS: Mention it.
10332 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10334 * syscalls/s390x-linux.xml: New file.
10335 * syscalls/s390-linux.xml: New file.
10336 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10337 (XML_SYSCALL_FILENAME_S390X): Likewise.
10338 (op_svc): New enum value for SVC opcode.
10339 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10340 (s390_linux_get_syscall_number): New function.
10341 (s390_gdbarch_init): Register '*get_syscall_number' and the
10342 syscall xml file name.
10343 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10344 "s390-linux.xml" and "s390x-linux.xml".
10345 * NEWS: Announce new feature.
10347 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10349 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10351 2014-01-22 Pedro Alves <palves@redhat.com>
10353 * xtensa-config.c: Include defs.h.
10355 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10357 * common/common-utils.h: Add "ARI:" comment beside __func__
10360 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10362 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10363 documentation a bit.
10365 2014-01-21 Roland McGrath <mcgrathr@google.com>
10367 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10368 * configure: Regenerate.
10369 * aclocal.m4: Regenerate.
10370 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10371 New substituted variables.
10372 (install-strip): New target.
10373 (INSTALL_SCRIPT): New substituted variable.
10374 (FLAGS_TO_PASS): Add it.
10375 (install-only): Use $(INSTALL_SCRIPT) rather than
10376 $(INSTALL_PROGRAM) for gcore.
10378 2014-01-20 Tom Tromey <tromey@redhat.com>
10380 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10383 2014-01-20 Tom Tromey <tromey@redhat.com>
10385 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10386 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10387 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10388 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10389 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10390 (struct cmd_list_element) <flags>: Remove.
10391 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10392 doc_allocated>: New fields.
10393 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10395 * maint.c (maintenance_do_deprecate): Update.
10396 * top.c (execute_command): Update.
10398 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10400 * xtensa-linux-nat.c: Include asm/ptrace.h.
10402 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10404 * Makefile.in (SFILES): Add d-support.c.
10405 (COMMON_OBS): Add d-support.o.
10406 * d-lang.h (d_parse_symbol): Add comment, now defined in
10408 * d-lang.c (parse_call_convention)
10409 (parse_attributes, parse_function_types)
10410 (parse_function_args, parse_type, parse_identifier)
10411 (call_convention_p, d_parse_symbol): Move functions to ...
10412 * d-support.c: ... New file.
10414 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10416 * d-lang.h (d_parse_symbol): Add declaration.
10417 * d-lang.c (extract_identifiers)
10418 (extract_type_info): Remove functions.
10419 (parse_call_convention, parse_attributes)
10420 (parse_function_types, parse_function_args)
10421 (parse_type, parse_identifier, call_convention_p)
10422 (d_parse_symbol): New functions.
10423 (d_demangle): Use d_parse_symbol to demangle D symbols.
10425 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10427 * d-lang.h (struct builtin_d_type): New data type.
10428 (builtin_d_type): Add declaration.
10429 * d-lang.c (d_language_arch_info, build_d_types)
10430 (builtin_d_type): New functions.
10431 (enum d_primitive_types): New data type.
10432 (d_language_defn): Change c_language_arch_info to
10433 d_language_arch_info.
10434 (d_type_data): New static variable.
10435 (_initialize_d_language): Initialize d_type_data.
10437 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10439 * d-lang.h (d_main_name): Add declaration.
10440 * d-lang.c (d_main_name): New function.
10441 * symtab.c (find_main_name): Add call to d_main_name.
10443 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10445 * d-lang.c (d_language_defn): Change macro_expansion_c to
10446 macro_expansion_no.
10448 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10450 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10452 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10454 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10455 gdb_exception" declaration.
10456 * remote.c (getpkt_or_notif_sane): Likewise.
10458 2014-01-17 Doug Evans <dje@google.com>
10460 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10461 function, contents of dirnames_to_char_ptr_vec_append moved here.
10462 (delim_string_to_char_ptr_vec): New function.
10463 (dirnames_to_char_ptr_vec_append): Rewrite.
10464 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10466 2014-01-17 Doug Evans <dje@google.com>
10468 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10470 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10471 #include "common-utils.h".
10472 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10473 * common/vec.h (VEC_ASSERT_PASS): Update.
10474 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10475 (MACH_CHECK_ERROR): Update.
10477 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10479 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10481 * gdbarch.h: Regenerate.
10483 2014-01-16 Tom Tromey <tromey@redhat.com>
10485 * value.c (struct value) <regnum>: Move earlier.
10487 2014-01-16 Tom Tromey <tromey@redhat.com>
10489 * remote.c (extended_remote_create_inferior): Rename from
10490 extended_remote_create_inferior_1. Add "ops" argument. Remove
10491 old implementation.
10493 2014-01-16 Pedro Alves <palves@redhat.com>
10495 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10496 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10499 2014-01-16 Doug Evans <dje@google.com>
10501 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10503 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10505 * btrace.h (btrace_thread_flag): New.
10506 (struct btrace_thread_info) <flags>: New.
10507 * record-btrace.c (record_btrace_resume_thread)
10508 (record_btrace_find_thread_to_move, btrace_step_no_history)
10509 (btrace_step_stopped, record_btrace_start_replaying)
10510 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10511 (record_btrace_find_resume_thread): New.
10512 (record_btrace_resume, record_btrace_wait): Extend.
10513 (record_btrace_can_execute_reverse): New.
10514 (record_btrace_open): Fail in non-stop mode.
10515 (record_btrace_set_replay): Split into this, ...
10516 (record_btrace_stop_replaying): ... this, ...
10517 (record_btrace_clear_histories): ... and this.
10518 (init_record_btrace_ops): Init to_can_execute_reverse.
10519 * NEWS: Announce it.
10521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10523 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10524 (forward_target_decr_pc_after_break)
10525 (target_decr_pc_after_break): New.
10526 * target.c (forward_target_decr_pc_after_break)
10527 (target_decr_pc_after_break): New.
10528 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10529 instead of gdbarch_decr_pc_after_break.
10530 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10531 instead of gdbarch_decr_pc_after_break.
10532 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10533 instead of gdbarch_decr_pc_after_break.
10534 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10535 instead of gdbarch_decr_pc_after_break.
10536 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10537 instead of gdbarch_decr_pc_after_break.
10538 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10539 instead of gdbarch_decr_pc_after_break.
10541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10543 * btrace.c: Include regcache.h.
10544 (btrace_add_pc): New.
10545 (btrace_enable): Call btrace_add_pc.
10546 (btrace_is_empty): New.
10547 * btrace.h (btrace_is_empty): New.
10548 * record-btrace.c (require_btrace, record_btrace_info): Call
10551 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10553 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10554 Support delta reads.
10555 (linux_disable_btrace): Change return type.
10556 * common/linux-btrace.h (linux_read_btrace): Change parameters
10557 and return type to allow error reporting. Update users.
10558 (linux_disable_btrace): Change return type. Update users.
10559 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10561 (btrace_error): New.
10562 (btrace_block) <begin>: Comment on BEGIN == 0.
10563 * btrace.c (btrace_compute_ftrace): Start from the end of
10565 (btrace_stitch_trace, btrace_clear_history): New.
10566 (btrace_fetch): Read delta trace, return if replaying.
10567 (btrace_clear): Move clear history code to btrace_clear_history.
10568 (parse_xml_btrace): Throw an error if parsing failed.
10569 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10570 and return type to allow error reporting.
10571 (target_read_btrace): Change parameters and return type to allow
10573 * target.c (target_read_btrace): Update.
10574 * remote.c (remote_read_btrace): Support delta reads. Pass
10576 * NEWS: Announce it.
10578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10580 * record.h (record_btrace_frame_unwind)
10581 (record_btrace_tailcall_frame_unwind): New declarations.
10582 * dwarf2-frame: Include record.h
10583 (dwarf2_frame_cfa): Throw an error for btrace frames.
10584 * record-btrace.c: Include hashtab.h.
10585 (btrace_get_bfun_name): New.
10586 (btrace_call_history): Call btrace_get_bfun_name.
10587 (struct btrace_frame_cache): New.
10589 (bfcache_hash, bfcache_eq, bfcache_new): New.
10590 (btrace_get_frame_function): New.
10591 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10592 (record_btrace_frame_this_id): Compute own id.
10593 (record_btrace_frame_prev_register): Provide PC, throw_error
10594 for all other registers.
10595 (record_btrace_frame_sniffer): Detect btrace frames.
10596 (record_btrace_tailcall_frame_sniffer): New.
10597 (record_btrace_frame_dealloc_cache): New.
10598 (record_btrace_frame_unwind): Add new functions.
10599 (record_btrace_tailcall_frame_unwind): New.
10600 (_initialize_record_btrace): Allocate cache.
10601 * btrace.c (btrace_clear): Call reinit_frame_cache.
10602 * NEWS: Announce it.
10604 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10606 * record-btrace.c (record_btrace_set_replay)
10607 (record_btrace_goto_begin, record_btrace_goto_end)
10608 (record_btrace_goto): New.
10609 (init_record_btrace_ops): Initialize them.
10610 * NEWS: Announce it.
10612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10614 * record-btrace.c (record_btrace_find_new_threads)
10615 (record_btrace_thread_alive): New.
10616 (init_record_btrace_ops): Initialize to_find_new_threads and
10619 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10621 * record-btrace.c (record_btrace_resume): New.
10622 (record_btrace_wait): New.
10623 (init_record_btrace_ops): Initialize to_wait and to_resume.
10625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10627 * record-btrace.c (record_btrace_xfer_partial)
10628 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10629 (record_btrace_allow_memory_access): New.
10630 (init_record_btrace_ops): Initialize new methods.
10631 * target.c (raw_memory_xfer_partial): Bail out if target reports
10632 that this memory is not available.
10634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10636 * target.h (target_ops) <to_insert_breakpoint>
10637 <to_remove_breakpoint>: Add target_ops parameter.
10638 (forward_target_insert_breakpoint): New.
10639 (forward_target_remove_breakpoint): New.
10640 (memory_remove_breakpoint, memory_insert_breakpoint):
10641 Add target_ops parameter.
10642 * target.c (target_insert_breakpoint): Split into this and ...
10643 (forward_target_insert_breakpoint): ... this.
10644 (target_remove_breakpoint): Split into this and ...
10645 (forward_target_remove_breakpoint): ... this.
10646 (debug_to_insert_breakpoint): Add target_ops parameter.
10647 Call forward_target_insert_breakpoint.
10648 (debug_to_remove_breakpoint): Add target_ops parameter.
10649 Call forward_target_remove_breakpoint.
10650 (update_current_target): Do not inherit or default to_insert_breakpoint
10651 and to_remove_breakpoint.
10652 * corelow.c (ignore): Add target_ops parameter.
10653 * exec.c (ignore): Add target_ops parameter.
10654 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10655 Add target_ops parameter.
10656 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10657 Add target_ops parameter.
10658 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10659 Add target_ops parameter.
10660 * record-full.c (record_full_beneath_to_insert_breakpoint)
10661 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10662 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10663 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10664 (record_full_core_remove_breakpoint): Add target_ops parameter.
10666 (record_full_beneath_to_insert_breakpoint_ops)
10667 (record_full_beneath_to_remove_breakpoint_ops)
10668 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10669 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10670 tmp_to_remove_breakpoint_ops,
10671 record_full_beneath_to_insert_breakpoint_ops, and
10672 record_full_beneath_to_remove_breakpoint_ops.
10673 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10674 (m32r_remove_breakpoint): Add target_ops parameter.
10675 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10676 Add target_ops parameter.
10677 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10678 Add target_ops parameter.
10680 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10681 Markus Metzger <markus.t.metzger@intel.com>
10683 * record-btrace.c: Include frame-unwind.h.
10684 (record_btrace_frame_unwind_stop_reason)
10685 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10686 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10688 (init_record_btrace_ops): Install it.
10690 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10692 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10695 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10697 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10700 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10702 * frame-unwind.c: Include target.h.
10703 (frame_unwind_try_unwinder): New function with code from ...
10704 (frame_unwind_find_by_frame): ... here. New variable
10705 unwinder_from_target, call also target_get_unwinder)
10706 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10707 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10708 * target.h (struct target_ops): New fields to_get_unwinder and
10709 to_get_tailcall_unwinder.
10710 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10714 * record-btrace.c (record_btrace_fetch_registers)
10715 (record_btrace_store_registers)
10716 (record_btrace_to_prepare_to_store): New.
10717 (init_record_btrace_ops): Add the above.
10719 2014-01-16 Tom Tromey <tromey@redhat.com>
10721 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10722 * target.h (struct target_ops) <to_prepare_to_store>: Add
10724 (target_prepare_to_store): Add argument.
10725 * target.c (debug_to_prepare_to_store): Add argument.
10726 (update_current_target): Update.
10727 * remote.c (remote_prepare_to_store): Add 'self' argument.
10728 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10729 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10730 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10731 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10733 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10734 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10735 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10736 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10737 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10741 * btrace.h (replay) <replay>: New.
10742 (btrace_is_replaying): New.
10743 * btrace.c (btrace_clear): Free replay iterator.
10744 (btrace_is_replaying): New.
10745 * record-btrace.c (record_btrace_is_replaying): New.
10746 (record_btrace_info): Print insn number if replaying.
10747 (record_btrace_insn_history): Start at replay position.
10748 (record_btrace_call_history): Start at replay position.
10749 (init_record_btrace_ops): Init to_record_is_replaying.
10751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10753 * record-btrace.c (record_btrace_insn_history_range): Include
10755 (record_btrace_insn_history_from): Adjust range.
10756 (record_btrace_call_history_range): Include
10758 (record_btrace_call_history_from): Adjust range.
10759 * NEWS: Announce changes.
10761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10763 * record.h (enum record_print_flag)
10764 <record_print_indent_calls>: New.
10765 * record.c (get_call_history_modifiers): Recognize /c modifier.
10766 (_initialize_record): Document /c modifier.
10767 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10768 Reorder fields. Optionally indent the function name. Update
10770 * NEWS: Announce changes.
10772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10774 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10778 * btrace.c (ftrace_new_function): Start counting at one.
10779 * record-btrace.c (record_btrace_info): Adjust number of calls
10781 * NEWS: Announce it.
10783 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10785 * record-btrace.c (btrace_call_history_insn_range): Print
10786 insn range as [begin, end].
10788 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10790 * btrace.h (struct btrace_func_link): New.
10791 (enum btrace_function_flag): New.
10792 (struct btrace_inst): Rename to ...
10793 (struct btrace_insn): ...this. Update all users.
10794 (struct btrace_func) <ibegin, iend>: Remove.
10795 (struct btrace_func_link): New.
10796 (struct btrace_func): Rename to ...
10797 (struct btrace_function): ...this. Update all users.
10798 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10799 (number, level, flags>: New.
10800 (struct btrace_insn_iterator): Rename to ...
10801 (struct btrace_insn_history): ...this.
10803 (struct btrace_insn_iterator, btrace_call_iterator): New.
10804 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10805 (struct btrace_target_info) <begin, end, level>
10806 <insn_history, call_history>: New.
10807 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10808 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10809 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10810 (btrace_call_number, btrace_call_begin, btrace_call_end)
10811 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10812 (btrace_find_function_by_number, btrace_set_insn_history)
10813 (btrace_set_call_history): New.
10814 * btrace.c (btrace_init_insn_iterator)
10815 (btrace_init_func_iterator, compute_itrace): Remove.
10816 (ftrace_print_function_name, ftrace_print_filename)
10817 (ftrace_skip_file): Change
10818 parameter to const.
10819 (ftrace_init_func): Remove.
10820 (ftrace_debug): Use new btrace_function fields.
10821 (ftrace_function_switched): Also consider gaining and
10822 losing symbol information).
10823 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10824 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10825 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10827 (ftrace_new_function): Move. Remove debug print.
10828 (ftrace_update_lines, ftrace_update_insns): New.
10829 (ftrace_update_function): Check for call, ret, and jump.
10830 (compute_ftrace): Renamed to ...
10831 (btrace_compute_ftrace): ...this. Rewritten to compute call
10833 (btrace_fetch, btrace_clear): Updated.
10834 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10835 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10836 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10837 (btrace_call_number, btrace_call_begin, btrace_call_end)
10838 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10839 (btrace_find_function_by_number, btrace_set_insn_history)
10840 (btrace_set_call_history): New.
10841 * record-btrace.c (require_btrace): Use new btrace thread
10843 (record_btrace_info, btrace_insn_history)
10844 (record_btrace_insn_history, record_btrace_insn_history_range):
10845 Use new btrace thread info fields and new iterator.
10846 (btrace_func_history_src_line): Rename to ...
10847 (btrace_call_history_src_line): ...this. Use new btrace
10848 thread info fields.
10849 (btrace_func_history): Rename to ...
10850 (btrace_call_history): ...this. Use new btrace thread info
10851 fields and new iterator.
10852 (record_btrace_call_history, record_btrace_call_history_range):
10853 Use new btrace thread info fields and new iterator.
10855 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10857 * frame.h (frame_id_build_unavailable_stack_special): New.
10858 * frame.c (frame_id_build_unavailable_stack_special): New.
10860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10862 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10863 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10864 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10866 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10867 (i386_insn_is_jump, i386_jmp_p): New.
10868 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10869 insn_is_jump to gdbarch.
10870 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10871 * gdbarch.h: Regenerated.
10872 * gdbarch.c: Regenerated.
10873 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10874 (default_insn_is_jump): New.
10875 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10876 (default_insn_is_jump): New.
10878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10880 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10882 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10883 (btrace_read_type) <btrace_read_new>: Change to ...
10884 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10888 * common/linux-btrace.c (linux_read_btrace): Free trace from
10889 previous iteration.
10891 2014-01-15 Doug Evans <dje@google.com>
10893 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10896 2014-01-15 Tom Tromey <tromey@redhat.com>
10898 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10899 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10900 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10901 (set_objfile_main_name): New function.
10902 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10903 language_of_main>: New fields.
10904 (set_objfile_main_name): Declare.
10905 * symtab.c (find_main_name): Loop over objfiles to find the main
10907 (set_main_name): Now static.
10908 (get_main_info): Add comment.
10909 * symtab.h (set_main_name): Don't declare.
10911 2014-01-15 Tom Tromey <tromey@redhat.com>
10913 * symtab.c (main_progspace_key): New global.
10914 (struct main_info): New.
10915 (name_of_main, language_of_main): Remove.
10916 (get_main_info, main_info_cleanup): New function.
10917 (set_main_name, main_name, main_language): Use get_main_info.
10918 (_initialize_symtab): Initialize main_progspace_key.
10920 2014-01-15 Tom Tromey <tromey@redhat.com>
10922 * dbxread.c (process_one_symbol): Update.
10923 * dwarf2read.c (read_partial_die): Update.
10924 * symfile.c (set_initial_language): Call main_language.
10925 * symtab.c (language_of_main): Now static.
10926 (set_main_name): Add 'lang' parameter.
10927 (find_main_name): Update.
10928 (main_language): New function.
10929 (symtab_observer_executable_changed): Update.
10930 * symtab.h (set_main_name): Update.
10931 (language_of_main): Remove.
10932 (main_language): Declare.
10934 2014-01-15 Tom Tromey <tromey@redhat.com>
10936 * symfile.c (init_entry_point_info): Use new "initialized" field.
10938 * objfiles.h (struct entry_point) <initialized>: New field.
10939 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10940 (struct objfile) <ei>: ...here. Remove.
10941 * objfiles.c (entry_point_address_query): Update.
10943 2014-01-15 Tom Tromey <tromey@redhat.com>
10945 * objfiles.c (entry_point_address_query): Relocate entry point
10947 (objfile_relocate1): Do not relocate entry point address.
10948 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10949 <the_bfd_section_index>: New field.
10950 * symfile.c (init_entry_point_info): Find the entry point's
10953 2014-01-15 Tom Tromey <tromey@redhat.com>
10955 * solib-frv.c (enable_break): Use entry_point_address_query.
10957 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10959 * NEWS: Add note on improved process record-replay on
10960 arm*-linux* targets.
10962 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10964 * arm-tdep.c (enum arm_record_result): New enum.
10965 (arm_record_unsupported_insn): New function.
10966 (arm_record_coproc_data_proc): Removed.
10967 (thumb2_record_ld_st_multiple): New function.
10968 (thumb2_record_ld_st_dual_ex_tbb): New function.
10969 (thumb2_record_data_proc_sreg_mimm): New function.
10970 (thumb2_record_ps_dest_generic): New function.
10971 (thumb2_record_branch_misc_cntrl): New function.
10972 (thumb2_record_str_single_data): New function.
10973 (thumb2_record_ld_mem_hints): New function.
10974 (thumb2_record_ld_word): New function.
10975 (thumb2_record_lmul_lmla_div): New function.
10976 (thumb2_record_decode_insn_handler): New function.
10977 (decode_insn): Add thumb32 instruction handlers.
10979 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10981 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10982 (struct arm_linux_record_tdep): Declare.
10983 (arm_canonicalize_syscall): New function.
10984 (arm_all_but_pc_registers_record): New function.
10985 (arm_linux_syscall_record): New function.
10986 (arm_linux_init_abi): Add syscall recording constructs.
10987 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10988 decoding. (arm_record_coproc_data_proc): Update arm syscall
10990 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10991 <arm_syscall_record>: New field.
10992 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10995 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10997 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10998 register for push instruction recording.
11000 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11002 * arm-tdep.c (thumb_record_misc): Update to correct logical
11003 error while recording ldm, ldmia and pop instructions.
11005 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11007 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11009 2014-01-15 Pedro Alves <palves@redhat.com>
11011 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11012 (go32_resume, go32_fetch_registers, store_register)
11013 (go32_store_registers, go32_prepare_to_store)
11014 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11015 (go32_create_inferior, go32_can_run, go32_terminal_init)
11016 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11019 2014-01-15 Tom Tromey <tromey@redhat.com>
11021 * target.h (async_callback_ftype): New typedef.
11022 (struct target_ops) <to_async>: Use it.
11024 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11026 * python/py-value.c (get_field_type): Remove unnecessary curly
11027 braces for single-statement if block.
11029 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11031 * python/py-type.c (convert_field): Add missing empty line
11032 after declarations.
11034 2014-01-14 Doug Evans <dje@google.com>
11036 * symfile.h (expand_symtabs_matching): Renamed from
11037 expand_partial_symbol_names. Update prototype.
11038 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11039 * symfile.c (expand_symtabs_matching): Renamed from
11040 expand_partial_symbol_names. New args file_matcher, kind.
11041 Rename arg fun to symbol_matcher.
11042 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11043 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11044 ada_expand_partial_symbol_name.
11045 (ada_make_symbol_completion_list): Update to call
11046 expand_symtabs_matching.
11047 (ada_add_global_exceptions): Call expand_symtabs_matching.
11048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11049 call map_symbol_filenames.
11050 * symtab.c (sources_info): Update to call map_symbol_filenames.
11051 (search_symbols): Call expand_symtabs_matching.
11052 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11053 (default_make_symbol_completion_list_break_on): Update to call
11054 expand_symtabs_matching.
11055 (make_source_files_completion_list): Update to call
11056 map_symbol_filenames.
11058 2014-01-14 Doug Evans <dje@google.com>
11060 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11061 (expand_symtabs_symbol_matcher_ftype): New typedef.
11062 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11063 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11064 * symfile.c (expand_partial_symbol_names): Update to use
11065 expand_symtabs_symbol_matcher_ftype.
11066 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11067 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11068 Arg name_matcher renamed to symbol_matcher.
11069 * psymtab.c (recursively_search_psymtabs): Update to use
11070 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11072 (expand_symtabs_matching_via_partial): Update to use
11073 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11074 Arg name_matcher renamed to symbol_matcher.
11076 2014-01-14 Doug Evans <dje@google.com>
11078 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11079 (map_partial_symbol_filenames): Ditto.
11080 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11081 (map_partial_symbol_filenames): Ditto.
11082 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11083 (map_partial_symbol_filenames): Ditto.
11084 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11085 (map_partial_symbol_filenames): Ditto.
11086 * symtab.c: Delete #include "psymtab.h".
11088 2014-01-14 Pedro Alves <palves@redhat.com>
11089 Tom Tromey <tromey@redhat.com>
11091 * infrun.c (use_displaced_stepping): Use find_record_target
11092 instead of RECORD_IS_USED.
11093 (adjust_pc_after_break): Use record_full_is_used instead of
11095 * record-btrace.c (record_btrace_open): Call record_preopen
11096 instead of checking RECORD_IS_USED.
11097 * record-full.c (record_full_shortname)
11098 (record_full_core_shortname): New globals.
11099 (record_full_is_used): New function.
11100 (find_full_open): Call record_preopen instead of checking
11102 (init_record_full_ops): Set the target's shortname to
11103 record_full_shortname.
11104 (init_record_full_core_ops): Set the target's shortname to
11105 record_full_core_shortname.
11106 * record-full.h (record_full_is_used): Declare.
11107 * record.c (find_record_target): Make extern.
11108 (record_preopen): New function.
11109 * record.h (RECORD_IS_USED): Delete macro.
11110 (find_record_target, record_preopen): Declare functions.
11112 2014-01-14 Yao Qi <yao@codesourcery.com>
11114 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11115 'len''s type to ULONGEST.
11116 (core_xfer_shared_libraries_aix): Likewise.
11117 * gdbarch.c, gdbarch.h: Regenerated.
11118 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11119 Change type of 'len' to ULONGEST.
11120 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11121 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11123 2014-01-14 Yao Qi <yao@codesourcery.com>
11125 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11126 type of 'len' to ULONGEST.
11127 (linux_xfer_osdata_processgroups): Likewise.
11128 (linux_xfer_osdata_threads): Likewise.
11129 (linux_xfer_osdata_fds): Likewise.
11130 (linux_xfer_osdata_isockets): Likewise.
11131 (linux_xfer_osdata_shm): Likewise.
11132 (linux_xfer_osdata_sem): Likewise.
11133 (linux_xfer_osdata_msg): Likewise.
11134 (linux_common_xfer_osdata): Likewise.
11135 (struct osdata_type) <getter>: Likewise.
11136 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11139 2014-01-14 Yao Qi <yao@codesourcery.com>
11141 * target.h (target_xfer_partial_ftype): Update.
11142 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11144 * aix-thread.c (aix_thread_xfer_partial): Change type of
11145 argument 'len' to ULONGEST.
11146 * auxv.c (procfs_xfer_auxv): Likewise.
11147 (ld_so_xfer_auxv): Likewise.
11148 (memory_xfer_auxv): Likewise.
11149 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11150 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11151 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11152 * corelow.c (core_xfer_partial): Likewise.
11153 * ctf.c (ctf_xfer_partial): Likewise.
11154 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11156 (darwin_read_dyld_info): Likewise.
11157 (darwin_xfer_partial): Likewise.
11158 * exec.c (section_table_xfer_memory_partial): Likewise.
11159 (exec_xfer_partial): Likewise.
11160 * exec.h (section_table_xfer_memory_partial): Update
11162 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11163 instead of plongest.
11164 (gnu_xfer_partial): Likewise.
11165 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11166 (ia64_hpux_xfer_solib_got): Likewise.
11167 (ia64_hpux_xfer_partial): Likewise.
11168 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11169 * inf-ptrace.c (inf_ptrace_xfer_partial):
11170 * inf-ttrace.c (inf_ttrace_xfer_partial):
11171 * linux-nat.c (linux_xfer_siginfo): Likewise.
11172 (linux_nat_xfer_partial): Likewise.
11173 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11174 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11175 * monitor.c (monitor_xfer_memory): Likewise.
11176 (monitor_xfer_partial): Likewise.
11177 * procfs.c (procfs_xfer_partial): Likewise.
11178 * record-full.c (record_full_xfer_partial): Likewise.
11179 (record_full_core_xfer_partial): Likewise.
11180 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11181 instead of plongest.
11182 (gdbsim_xfer_partial): Likewise.
11183 * remote.c (remote_xfer_partial): Likewise.
11184 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11185 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11187 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11188 (rs6000_xfer_shared_libraries): Likewise.
11189 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11190 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11191 (sparc_xfer_partial): Likewise.
11192 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11193 (spu_xfer_partial): Likewise.
11194 * spu-multiarch.c (spu_xfer_partial): Likewise.
11195 * target.c (target_read_live_memory): Likewise.
11196 (memory_xfer_live_readonly_partial): Likewise.
11197 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11198 (target_xfer_partial, default_xfer_partial): Likewise.
11199 (current_xfer_partial): Likewise.
11200 * tracepoint.c (tfile_xfer_partial): Likewise.
11201 * windows-nat.c (windows_xfer_memory): Likewise. Call
11202 pulongest instead of plongest.
11203 (windows_xfer_partial): Likewise.
11204 (windows_xfer_shared_libraries): Likewise.
11206 2014-01-14 Yao Qi <yao@codesourcery.com>
11208 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11209 target_xfer_partial_ftype.
11211 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11215 * valops.c (value_struct_elt_bitpos): New function
11216 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11217 object to 'None' if the field name is an empty string ("").
11218 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11219 attribute to look for a field when 'name' is 'None'.
11220 (get_field_type): New function
11222 2014-01-13 Doug Evans <dje@google.com>
11225 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11226 (try_open_dwop_file): Ditto.
11227 * gdb_bfd.c: #include "vec.h".
11228 (bfdp): New typedef.
11229 (struct gdb_bfd_data): New member included_bfds.
11230 (gdb_bfd_unref): Unref all included bfds.
11231 (gdb_bfd_record_inclusion): New function.
11232 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11234 2014-01-13 Tom Tromey <tromey@redhat.com>
11236 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11238 2014-01-13 Tom Tromey <tromey@redhat.com>
11240 * defs.h (use_windows): Remove.
11241 * gdb.c (main): Update.
11242 * main.c (captured_main, gdb_main): Update.
11243 * main.h (struct captured_main_args) <use_windows>: Remove.
11244 * top.c (use_windows): Remove.
11246 2014-01-13 Tom Tromey <tromey@redhat.com>
11248 * defs.h (deprecated_flush_hook): Remove.
11250 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11253 * linux-thread-db.c (try_thread_db_load): Add parameter
11254 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11255 (try_thread_db_load_from_pdir_1): Move it there from here.
11256 (try_thread_db_load_from_sdir): Update caller.
11257 (try_thread_db_load_from_dir): Move it there from here.
11259 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11261 * regformats/regdat.sh: Always rewrite the register file.
11263 2014-01-13 Pedro Alves <palves@redhat.com>
11265 * Makefile.in (CHECK_HEADERS): New variable.
11266 (check-headers:): New rule.
11268 2014-01-13 Tom Tromey <tromey@redhat.com>
11270 * cli/cli-setshow.c (do_set_command): Update.
11271 * defs.h (deprecated_set_hook): Remove.
11272 * top.c (deprecated_set_hook): Remove.
11274 2014-01-13 Pedro Alves <palves@redhat.com>
11276 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11277 the tracepoint if the PC is a pseudo-register.
11279 2014-01-13 Tom Tromey <tromey@redhat.com>
11281 * defs.h (XCALLOC): Remove.
11282 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11283 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11284 * dwarf2loc.c (allocate_piece_closure): Likewise.
11285 * elfread.c (elf_symfile_segments): Likewise.
11286 (elf_symfile_segments): Likewise.
11287 * gdbtypes.c (copy_type_recursive): Likewise.
11288 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11289 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11290 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11292 * mt-tdep.c (mt_gdbarch_init): Likewise.
11293 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11295 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11296 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11297 * registry.c (registry_alloc_data): Likewise.
11298 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11299 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11300 * serial.c (serial_fdopen_ops): Likewise.
11301 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11303 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11304 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11307 2014-01-13 Tom Tromey <tromey@redhat.com>
11309 * defs.h (XMALLOC): Remove.
11310 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11311 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11312 * cli-out.c (struct ui_out *): Likewise.
11313 * cli/cli-dump.c (add_dump_command): Likewise.
11314 (add_dump_command): Likewise.
11315 * complaints.c (get_complaints): Likewise.
11316 (find_complaint): Likewise.
11317 * dwarf2-frame.c (execute_cfa_program): Likewise.
11318 * dwarf2read.c (abbrev_table_read_table): Likewise.
11319 * gdbarch.sh: Likewise.
11320 * gdbarch.c: Rebuild.
11321 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11322 * interps.c (interp_new): Likewise.
11323 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11324 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11325 * mi/mi-console.c (mi_console_file_new): Likewise.
11326 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11327 * mi/mi-out.c (mi_out_new): Likewise.
11328 * mi/mi-parse.c (mi_parse): Likewise.
11329 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11330 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11331 * observer.c (xalloc_observer_list_node): Likewise.
11332 * regcache.c (regcache_xmalloc_1): Likewise.
11333 * reggroups.c (reggroup_new): Likewise.
11334 (_initialize_reggroup): Likewise.
11335 * registry.c (register_data_with_cleanup): Likewise.
11336 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11337 * ser-base.c (serial_ttystate): Likewise.
11338 * ser-mingw.c (make_pipe_state): Likewise.
11339 * ser-pipe.c (pipe_open): Likewise.
11340 * serial.c (serial_open): Likewise.
11341 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11342 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11343 (tui_alloc_win_info): Likewise.
11344 (tui_add_content_elements): Likewise.
11345 * tui/tui-file.c (tui_file_new): Likewise.
11346 * tui/tui-out.c (tui_out_new): Likewise.
11347 * ui-file.c (mem_file_new): Likewise.
11348 * ui-out.c (push_level): Likewise.
11349 (make_cleanup_ui_out_end): Likewise.
11350 (append_header_to_list): Likewise.
11351 (ui_out_new): Likewise.
11352 * user-regs.c (user_reg_add_builtin): Likewise.
11354 2014-01-13 Tom Tromey <tromey@redhat.com>
11356 * defs.h (XZALLOC): Remove.
11357 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11358 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11359 (get_ada_tasks_inferior_data): Likewise.
11360 * auto-load.c (get_auto_load_pspace_data): Likewise.
11361 * auxv.c (get_auxv_inferior_data): Likewise.
11362 * bfd-target.c (target_bfd_reopen): Likewise.
11363 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11364 (deprecated_insert_raw_breakpoint): Likewise.
11365 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11366 * corelow.c (core_open): Likewise.
11367 * darwin-nat.c (darwin_check_new_threads): Likewise.
11368 (darwin_attach_pid): Likewise.
11369 * dummy-frame.c (dummy_frame_push): Likewise.
11370 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11371 * dwarf2loc.c (allocate_piece_closure): Likewise.
11372 * elfread.c (elf_symfile_segments): Likewise.
11373 * eval.c (ptrmath_type_p): Likewise.
11374 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11375 * gdbtypes.c (alloc_type_arch): Likewise.
11376 (alloc_type_instance): Likewise.
11377 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11378 * inf-child.c (inf_child_can_use_agent): Likewise.
11379 * inflow.c (get_inflow_inferior_data): Likewise.
11380 * infrun.c (save_infcall_suspend_state): Likewise.
11381 * jit.c (jit_reader_load): Likewise.
11382 (get_jit_objfile_data): Likewise.
11383 (get_jit_program_space_data): Likewise.
11384 (jit_object_open_impl): Likewise.
11385 (jit_symtab_open_impl): Likewise.
11386 (jit_block_open_impl): Likewise.
11387 (jit_frame_sniffer): Likewise.
11388 * linux-fork.c (add_fork): Likewise.
11389 * maint.c (make_command_stats_cleanup): Likewise.
11390 * objfiles.c (get_objfile_pspace_data): Likewise.
11391 * opencl-lang.c (struct lval_closure): Likewise.
11392 * osdata.c (osdata_start_osdata): Likewise.
11393 * progspace.c (new_address_space): Likewise.
11394 (add_program_space): Likewise.
11395 * remote-sim.c (get_sim_inferior_data): Likewise.
11396 * sh-tdep.c (sh_gdbarch_init): Likewise.
11397 * skip.c (Ignore): Likewise.
11398 (skip_delete_command): Likewise.
11399 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11400 (library_list_start_library): Likewise.
11401 (solib_aix_current_sos): Likewise.
11402 * solib-darwin.c (get_darwin_info): Likewise.
11403 (darwin_current_sos): Likewise.
11404 * solib-dsbt.c (get_dsbt_info): Likewise.
11405 * solib-ia64-hpux.c (new_so_list): Likewise.
11406 (ia64_hpux_get_solib_linkage_addr): Likewise.
11407 * solib-spu.c (append_ocl_sos): Likewise.
11408 (spu_current_sos): Likewise.
11409 * solib-svr4.c (get_svr4_info): Likewise.
11410 (svr4_keep_data_in_core): Likewise.
11411 (library_list_start_library): Likewise.
11412 (svr4_default_sos): Likewise.
11413 (svr4_read_so_list): Likewise.
11414 * solib-target.c (library_list_start_library): Likewise.
11415 (solib_target_current_sos): Likewise.
11416 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11417 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11418 * symfile.c (default_symfile_segments): Likewise.
11419 * target-descriptions.c (tdesc_data_init): Likewise.
11420 (tdesc_create_reg): Likewise.
11421 (struct tdesc_type *): Likewise.
11422 (tdesc_create_vector): Likewise.
11423 (tdesc_set_struct_size): Likewise.
11424 (struct tdesc_type *): Likewise.
11425 (tdesc_free_feature): Likewise.
11426 (tdesc_create_feature): Likewise.
11427 * windows-nat.c (windows_add_thread): Likewise.
11428 (windows_make_so): Likewise.
11429 * xml-support.c (gdb_xml_body_text): Likewise.
11430 (gdb_xml_create_parser_and_cleanup): Likewise.
11431 (xml_process_xincludes): Likewise.
11432 * xml-syscall.c (allocate_syscalls_info): Likewise.
11433 (syscall_create_syscall_desc): Likewise.
11435 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11437 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11438 function, with code from i386_stap_parse_special_token.
11439 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11440 (i386_stap_parse_special_token): Move code to the two functions
11441 above; simplify it.
11443 2014-01-09 Pedro Alves <palves@redhat.com>
11444 Hui Zhu <hui@codesourcery.com>
11447 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11448 bp_err_string. Don't mark the location shlib_disabled if the
11449 error thrown wasn't a generic or memory error. Catch errors
11450 thrown while inserting breakpoints in overlayed code. Output
11451 error message of software breakpoints.
11452 * remote.c (remote_insert_breakpoint): If this breakpoint has
11453 target-side commands but this stub doesn't support Z0 packets,
11454 throw NOT_SUPPORTED_ERROR error.
11455 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11456 * target.h (target_insert_breakpoint): Extend comment.
11457 (target_insert_hw_breakpoint): Add comment.
11459 2014-01-08 Pedro Alves <palves@redhat.com>
11461 * remote.c (remote_add_thread): Add threads silently if starting
11463 (remote_notice_new_inferior): If in all-stop, and starting up,
11464 don't call notice_new_inferior.
11465 (get_current_thread): New function, factored out from ...
11466 (add_current_inferior_and_thread): ... this. Adjust.
11467 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11468 found any thread, then select the remote's current thread as GDB's
11469 current thread too.
11471 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11473 * NEWS: Create a new section for the next release branch.
11474 Rename the section of the current branch, now that it has
11477 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11479 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11480 * version.in: Bump version to 7.7.50.DATE-cvs.
11482 2014-01-08 Yao Qi <yao@codesourcery.com>
11484 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11485 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11486 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11488 2014-01-08 Yao Qi <yao@codesourcery.com>
11490 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11491 return value of bfd_get_filename to symbol_file_add_from_bfd.
11493 2014-01-08 Pierre Muller <muller@sourceware.org>
11496 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11497 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11498 to prim_record_mininal_symbol_and_info.
11499 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11500 in call to prim_record_minimal_symbol_and_info.
11501 (read_pe_exported_syms): Set index field of section_data.
11503 2014-01-07 Andrew Pinski <apinski@cavium.com>
11505 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11506 * features/aarch64.c: Regenerate.
11508 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11510 * target.c (return_null): Define.
11511 (update_current_target): Use it instead of return_zero for
11512 functions that return a pointer.
11514 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11516 * source.c (add_path): Fix check for duplicated paths in the previously
11519 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11521 * ada-lang.c: Remove duplicated include statements.
11522 * alphabsd-nat.c: Ditto.
11523 * amd64-darwin-tdep.c: Ditto.
11524 * amd64fbsd-nat.c: Ditto.
11525 * auto-load.c: Ditto.
11527 * breakpoint.c: Ditto.
11528 * dbxread.c: Ditto.
11529 * fork-child.c: Ditto.
11530 * gdb_usleep.c: Ditto.
11531 * i386-darwin-tdep.c: Ditto.
11532 * i386fbsd-nat.c: Ditto.
11534 * inferior.c: Ditto.
11535 * jv-lang.c: Ditto.
11536 * linux-nat.c: Ditto.
11537 * linux-tdep.c: Ditto.
11538 * m68kbsd-nat.c: Ditto.
11539 * m68klinux-nat.c: Ditto.
11540 * microblaze-tdep.c: Ditto.
11541 * mips-linux-tdep.c: Ditto.
11542 * mn10300-tdep.c: Ditto.
11543 * nto-tdep.c: Ditto.
11544 * opencl-lang.c: Ditto.
11546 * printcmd.c: Ditto.
11547 * regcache.c: Ditto.
11548 * remote-m32r-sdi.c: Ditto.
11550 * symfile.c: Ditto.
11552 * tilegx-linux-nat.c: Ditto.
11553 * tilegx-tdep.c: Ditto.
11554 * tracepoint.c: Ditto.
11556 * vaxbsd-nat.c: Ditto.
11557 * windows-nat.c: Ditto.
11558 * xtensa-tdep.c: Ditto.
11560 2014-01-07 Yao Qi <yao@codesourcery.com>
11562 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11564 2014-01-07 Yao Qi <yao@codesourcery.com>
11565 Joel Brobecker <brobecker@adacore.com>
11567 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11568 (pdc_write_regs): Likewise.
11569 (fetch_regs_kernel_thread): Likewise.
11570 (store_regs_kernel_thread): Likewise.
11572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11574 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11575 tagged type objects to their actual type.
11577 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11579 * ada-valprint.c (print_field_values): Add "language" parameter.
11580 Update calls to print_field_values and print_variant_part.
11581 Pass new parameter "language" in call to val_print instead
11582 of "current_language". Replace call to ada_val_print by call
11584 (print_variant_part): Add "language" parameter.
11585 (ada_val_print_struct_union): Update call to print_field_values.
11587 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11589 * ada-valprint.c (ui_memcpy): Delete.
11590 (ada_print_floating): Update documentation. Add empty line
11591 between between function documentation and implementation.
11592 Delete variable "buffer". Use ui_file_xstrdup in place of
11593 ui_file_put. Minor adjustments following this change.
11595 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11597 * ada-valprint.c (ada_val_print_string): New function,
11598 extracted from ada_val_print_array.
11599 (ada_val_print_array): Replace extracted code by call
11600 to ada_val_print_string followed by a return. Move
11601 "else" branch to the function's top block.
11603 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11605 * ada-valprint.c (ada_val_print_array): Move implementation
11606 down. Rename parameter "offset" and "val" into "offset_aligned"
11607 and "original_value" respectively. Add parameter "offset".
11609 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11611 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11612 re-organizing the code. Change the "???" message printed
11613 when target type is a TYPE_CODE_UNDEF into
11614 "<ref to undefined type>".
11616 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11618 * ada-valprint.c (print_record): Delete, implementation inlined...
11619 (ada_val_print_struct_union): ... here. Remove call to
11620 ada_check_typedef in inlined implementation.
11622 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11624 * ada-valprint.c (ada_val_print_gnat_array): New function,
11625 extracted from ada_val_print_1;
11626 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11627 (ada_val_print_flt, ada_val_print_struct_union)
11628 (ada_val_print_ref): Likewise.
11629 (ada_val_print_1): Delete variables i and elttype.
11630 Replace extracted-out code by call to corresponding
11633 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11635 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11637 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11639 * ada-valprint.c (ada_val_print_1): Replace calls to
11640 ada_val_print_1 by calls to val_print.
11642 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11644 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11645 Update calls to self accordingly. Replace calls to c_val_print
11646 by calls to val_print.
11648 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11650 * ada-valprint.c (print_record): Delete declaration.
11651 (adjust_type_signedness, ada_val_print_1): Likewise.
11652 (ada_val_print): Move function implementation down.
11653 (print_variant_part, print_field_values, print_record):
11654 Move function implementation up.
11656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11658 * python/py-type.c (typy_get_name): New function.
11659 (type_object_getset): Add entry for attribute "name".
11660 * NEWS: Add entry mentioning this new attribute.
11662 2014-01-07 Yao Qi <yao@codesourcery.com>
11664 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11667 2014-01-07 Yao Qi <yao@codesourcery.com>
11669 * gnu-nat.c (info_port_rights): Add qualifier const to
11672 2014-01-07 Yao Qi <yao@codesourcery.com>
11674 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11676 2014-01-07 Yao Qi <yao@codesourcery.com>
11678 * gnu-nat.c (make_inf) Update declaration.
11679 (make_inf): Make it static.
11680 (inf_set_traced): Likewise.
11681 (inf_port_to_thread, inf_task_died_status): Likewise.
11683 2014-01-07 Yao Qi <yao@codesourcery.com>
11685 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11687 2014-01-07 Yao Qi <yao@codesourcery.com>
11689 * gnu-nat.c (_initialize_gnu_nat): Declare.
11691 2014-01-07 Yao Qi <yao@codesourcery.com>
11693 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11695 (struct gdbarch_info) <byte_order>: Change type to
11697 <byte_order_for_code>: Likewise.
11698 * gdbarch.c, gdbarch.h: Regenerated.
11700 2014-01-06 Sasha Smundak <asmundak@google.com>
11702 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11704 2014-01-06 Tom Tromey <tromey@redhat.com>
11706 * doublest.c (convert_doublest_to_floatformat): Use const, not
11708 * somread.c (som_symtab_read): Likewise.
11710 2014-01-07 Hui Zhu <hui@codesourcery.com>
11712 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11713 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11714 (gdb_bfd_fopen): Ditto.
11715 (gdb_bfd_openr): Ditto.
11716 (gdb_bfd_openw): Ditto.
11717 (gdb_bfd_openr_iovec): Ditto.
11718 (gdb_bfd_fdopenr): Ditto.
11719 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11720 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11722 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11724 * symfile-mem.c (symbol_file_add_from_memory): Removed
11725 gdb_bfd_stash_filename.
11727 2014-01-03 Doug Evans <dje@google.com>
11729 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11732 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11734 Update year range in copyright notice of all files.
11736 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11738 * top.c (print_gdb_version): Set copyright year to 2014.
11740 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11742 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11744 For older changes see ChangeLog-2013.
11750 version-control: never