S390: Migrate to regcache_supply/collect_regset.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * s390-linux-nat.c: Include "regset.h".
4 (regmap_gregset): Delete macro.
5 (s390_64_regmap_gregset): New register map for
6 regcache_supply/_collect_regset.
7 (s390_64_gregset): New regset.
8 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
9 (regmap_fpregset): Delete macro.
10 (s390_native_supply, s390_native_collect): Delete functions.
11 (supply_gregset, fill_gregset): Replace s390-specific regmap
12 handling by a call to regcache_supply/_collect_regset.
13 (supply_fpregset, fill_fpregset): Call regcache_supply/
14 _collect_regset instead of s390_native_supply/_collect.
15 (fetch_regset, store_regset): Likewise. Also change the last
16 parameter to a regset instead of a regmap.
17 (s390_linux_fetch_inferior_registers)
18 (390_linux_store_inferior_registers): Adjust last parameter in
19 calls to fetch_regset and store_regset.
20 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
21 (s390_gregmap): ... this. Also make static const and convert to
22 regcache_map_entry format.
23 (s390x_regmap_gregset): Delete.
24 (s390_regmap_fpregset): Rename to...
25 (s390_fpregmap): ... this. Make static const and convert to
26 regcache_map_entry format.
27 (s390_regmap_upper, s390_regmap_last_break)
28 (s390x_regmap_last_break, s390_regmap_system_call)
29 (s390_regmap_tdb): Likewise.
30 (s390_supply_regset, s390_collect_regset): Remove functions.
31 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
32 s390_supply_regset.
33 (s390_gregset, s390_fpregset, s390_upper_regset)
34 (s390_last_break_regset, s390x_last_break_regset)
35 (s390_system_call_regset, s390_tdb_regset): Make global and
36 replace s390_supply/_collect_regset by regcache_supply/
37 _collect_regset.
38 (s390x_gregset): Delete.
39 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
40 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
41 (s390_regmap_fpregset, s390_regmap_last_break)
42 (s390x_regmap_last_break, s390_regmap_system_call)
43 (s390_regmap_tdb): Delete global variable declarations.
44 (s390_gregset, s390_fpregset, s390_last_break_regset)
45 (s390x_last_break_regset, s390_system_call_regset)
46 (s390_tdb_regset): New global variable declarations.
47
48 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
49
50 * regcache.c: Include "regset.h".
51 (regcache_transfer_regset): New local function.
52 (regcache_supply_regset, regcache_collect_regset): New functions.
53 * regcache.h (struct regcache_map_entry): New structure.
54 (REGCACHE_MAP_SKIP): New enum value.
55 (regcache_supply_regset, regcache_collect_regset): New prototypes.
56
57 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
58
59 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
60 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
61 (ppc_linux_collect_gregset ): Likewise.
62 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
63 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
64 (ppc_collect_vrregset): Likewise.
65 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
66 Likewise.
67
68 2014-08-07 Yao Qi <yao@codesourcery.com>
69
70 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
71 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
72 * remote.c (remote_read_bytes): Likewise.
73
74 2014-08-07 Yao Qi <yao@codesourcery.com>
75
76 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
77
78 2014-08-07 Yao Qi <yao@codesourcery.com>
79
80 PR remote/17230
81 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
82 TARGET_XFER_OK instead of 0.
83
84 2014-08-07 Gary Benson <gbenson@redhat.com>
85
86 * common/common-defs.h: Include errno.h.
87 * defs.h: Do not include errno.h.
88 * ada-typeprint.c: Likewise.
89 * c-typeprint.c: Likewise.
90 * core-regset.c: Likewise.
91 * corefile.c: Likewise.
92 * corelow.c: Likewise.
93 * event-loop.c: Likewise.
94 * f-typeprint.c: Likewise.
95 * gnu-nat.c: Likewise.
96 * go32-nat.c: Likewise.
97 * i386gnu-nat.c: Likewise.
98 * m2-typeprint.c: Likewise.
99 * nat/linux-btrace.c: Likewise.
100 * p-typeprint.c: Likewise.
101 * procfs.c: Likewise.
102 * remote-sim.c: Likewise.
103 * rs6000-nat.c: Likewise.
104 * target.c: Likewise.
105 * typeprint.c: Likewise.
106 * ui-file.c: Likewise.
107 * valops.c: Likewise.
108 * valprint.c: Likewise.
109
110 2014-08-07 Gary Benson <gbenson@redhat.com>
111
112 * common/common-defs.h: Include string.h.
113 * aarch64-tdep.c: Do not include string.h.
114 * ada-exp.y: Likewise.
115 * ada-lang.c: Likewise.
116 * ada-lex.l: Likewise.
117 * ada-typeprint.c: Likewise.
118 * ada-valprint.c: Likewise.
119 * aix-thread.c: Likewise.
120 * alpha-linux-tdep.c: Likewise.
121 * alpha-mdebug-tdep.c: Likewise.
122 * alpha-nat.c: Likewise.
123 * alpha-osf1-tdep.c: Likewise.
124 * alpha-tdep.c: Likewise.
125 * alphanbsd-tdep.c: Likewise.
126 * amd64-dicos-tdep.c: Likewise.
127 * amd64-linux-tdep.c: Likewise.
128 * amd64-nat.c: Likewise.
129 * amd64-sol2-tdep.c: Likewise.
130 * amd64fbsd-tdep.c: Likewise.
131 * amd64obsd-tdep.c: Likewise.
132 * arch-utils.c: Likewise.
133 * arm-linux-nat.c: Likewise.
134 * arm-linux-tdep.c: Likewise.
135 * arm-tdep.c: Likewise.
136 * arm-wince-tdep.c: Likewise.
137 * armbsd-tdep.c: Likewise.
138 * armnbsd-nat.c: Likewise.
139 * armnbsd-tdep.c: Likewise.
140 * armobsd-tdep.c: Likewise.
141 * avr-tdep.c: Likewise.
142 * ax-gdb.c: Likewise.
143 * ax-general.c: Likewise.
144 * bcache.c: Likewise.
145 * bfin-tdep.c: Likewise.
146 * breakpoint.c: Likewise.
147 * build-id.c: Likewise.
148 * buildsym.c: Likewise.
149 * c-exp.y: Likewise.
150 * c-lang.c: Likewise.
151 * c-typeprint.c: Likewise.
152 * c-valprint.c: Likewise.
153 * charset.c: Likewise.
154 * cli-out.c: Likewise.
155 * cli/cli-cmds.c: Likewise.
156 * cli/cli-decode.c: Likewise.
157 * cli/cli-dump.c: Likewise.
158 * cli/cli-interp.c: Likewise.
159 * cli/cli-logging.c: Likewise.
160 * cli/cli-script.c: Likewise.
161 * cli/cli-setshow.c: Likewise.
162 * cli/cli-utils.c: Likewise.
163 * coffread.c: Likewise.
164 * common/agent.c: Likewise.
165 * common/buffer.c: Likewise.
166 * common/buffer.h: Likewise.
167 * common/common-utils.c: Likewise.
168 * common/filestuff.c: Likewise.
169 * common/filestuff.c: Likewise.
170 * common/format.c: Likewise.
171 * common/print-utils.c: Likewise.
172 * common/rsp-low.c: Likewise.
173 * common/signals.c: Likewise.
174 * common/vec.h: Likewise.
175 * common/xml-utils.c: Likewise.
176 * core-regset.c: Likewise.
177 * corefile.c: Likewise.
178 * corelow.c: Likewise.
179 * cp-abi.c: Likewise.
180 * cp-name-parser.y: Likewise.
181 * cp-support.c: Likewise.
182 * cp-valprint.c: Likewise.
183 * cris-tdep.c: Likewise.
184 * d-exp.y: Likewise.
185 * darwin-nat.c: Likewise.
186 * dbxread.c: Likewise.
187 * dcache.c: Likewise.
188 * demangle.c: Likewise.
189 * dicos-tdep.c: Likewise.
190 * disasm.c: Likewise.
191 * doublest.c: Likewise.
192 * dsrec.c: Likewise.
193 * dummy-frame.c: Likewise.
194 * dwarf2-frame.c: Likewise.
195 * dwarf2loc.c: Likewise.
196 * dwarf2read.c: Likewise.
197 * elfread.c: Likewise.
198 * environ.c: Likewise.
199 * eval.c: Likewise.
200 * event-loop.c: Likewise.
201 * exceptions.c: Likewise.
202 * exec.c: Likewise.
203 * expprint.c: Likewise.
204 * f-exp.y: Likewise.
205 * f-lang.c: Likewise.
206 * f-typeprint.c: Likewise.
207 * f-valprint.c: Likewise.
208 * fbsd-nat.c: Likewise.
209 * findcmd.c: Likewise.
210 * findvar.c: Likewise.
211 * fork-child.c: Likewise.
212 * frame.c: Likewise.
213 * frv-linux-tdep.c: Likewise.
214 * frv-tdep.c: Likewise.
215 * gdb.c: Likewise.
216 * gdb_bfd.c: Likewise.
217 * gdbarch.c: Likewise.
218 * gdbarch.sh: Likewise.
219 * gdbtypes.c: Likewise.
220 * gnu-nat.c: Likewise.
221 * gnu-v2-abi.c: Likewise.
222 * gnu-v3-abi.c: Likewise.
223 * go-exp.y: Likewise.
224 * go-lang.c: Likewise.
225 * go32-nat.c: Likewise.
226 * guile/guile.c: Likewise.
227 * guile/scm-auto-load.c: Likewise.
228 * hppa-hpux-tdep.c: Likewise.
229 * hppa-linux-nat.c: Likewise.
230 * hppanbsd-tdep.c: Likewise.
231 * hppaobsd-tdep.c: Likewise.
232 * i386-cygwin-tdep.c: Likewise.
233 * i386-dicos-tdep.c: Likewise.
234 * i386-linux-tdep.c: Likewise.
235 * i386-nto-tdep.c: Likewise.
236 * i386-sol2-tdep.c: Likewise.
237 * i386-tdep.c: Likewise.
238 * i386bsd-tdep.c: Likewise.
239 * i386gnu-nat.c: Likewise.
240 * i386nbsd-tdep.c: Likewise.
241 * i386obsd-tdep.c: Likewise.
242 * i387-tdep.c: Likewise.
243 * ia64-libunwind-tdep.c: Likewise.
244 * ia64-linux-nat.c: Likewise.
245 * inf-child.c: Likewise.
246 * inf-ptrace.c: Likewise.
247 * inf-ttrace.c: Likewise.
248 * infcall.c: Likewise.
249 * infcmd.c: Likewise.
250 * inflow.c: Likewise.
251 * infrun.c: Likewise.
252 * interps.c: Likewise.
253 * iq2000-tdep.c: Likewise.
254 * irix5-nat.c: Likewise.
255 * jv-exp.y: Likewise.
256 * jv-lang.c: Likewise.
257 * jv-typeprint.c: Likewise.
258 * jv-valprint.c: Likewise.
259 * language.c: Likewise.
260 * linux-fork.c: Likewise.
261 * linux-nat.c: Likewise.
262 * lm32-tdep.c: Likewise.
263 * m2-exp.y: Likewise.
264 * m2-typeprint.c: Likewise.
265 * m32c-tdep.c: Likewise.
266 * m32r-linux-nat.c: Likewise.
267 * m32r-linux-tdep.c: Likewise.
268 * m32r-rom.c: Likewise.
269 * m32r-tdep.c: Likewise.
270 * m68hc11-tdep.c: Likewise.
271 * m68k-tdep.c: Likewise.
272 * m68kbsd-tdep.c: Likewise.
273 * m68klinux-nat.c: Likewise.
274 * m68klinux-tdep.c: Likewise.
275 * m88k-tdep.c: Likewise.
276 * machoread.c: Likewise.
277 * macrocmd.c: Likewise.
278 * main.c: Likewise.
279 * mdebugread.c: Likewise.
280 * mem-break.c: Likewise.
281 * memattr.c: Likewise.
282 * memory-map.c: Likewise.
283 * mep-tdep.c: Likewise.
284 * mi/mi-cmd-break.c: Likewise.
285 * mi/mi-cmd-disas.c: Likewise.
286 * mi/mi-cmd-env.c: Likewise.
287 * mi/mi-cmd-stack.c: Likewise.
288 * mi/mi-cmd-var.c: Likewise.
289 * mi/mi-cmds.c: Likewise.
290 * mi/mi-console.c: Likewise.
291 * mi/mi-getopt.c: Likewise.
292 * mi/mi-interp.c: Likewise.
293 * mi/mi-main.c: Likewise.
294 * mi/mi-parse.c: Likewise.
295 * microblaze-rom.c: Likewise.
296 * microblaze-tdep.c: Likewise.
297 * mingw-hdep.c: Likewise.
298 * minidebug.c: Likewise.
299 * minsyms.c: Likewise.
300 * mips-irix-tdep.c: Likewise.
301 * mips-linux-tdep.c: Likewise.
302 * mips-tdep.c: Likewise.
303 * mips64obsd-tdep.c: Likewise.
304 * mipsnbsd-tdep.c: Likewise.
305 * mipsread.c: Likewise.
306 * mn10300-linux-tdep.c: Likewise.
307 * mn10300-tdep.c: Likewise.
308 * monitor.c: Likewise.
309 * moxie-tdep.c: Likewise.
310 * mt-tdep.c: Likewise.
311 * nat/linux-btrace.c: Likewise.
312 * nat/linux-osdata.c: Likewise.
313 * nat/linux-procfs.c: Likewise.
314 * nat/linux-ptrace.c: Likewise.
315 * nat/linux-waitpid.c: Likewise.
316 * nbsd-tdep.c: Likewise.
317 * nios2-linux-tdep.c: Likewise.
318 * nto-procfs.c: Likewise.
319 * nto-tdep.c: Likewise.
320 * objc-lang.c: Likewise.
321 * objfiles.c: Likewise.
322 * opencl-lang.c: Likewise.
323 * osabi.c: Likewise.
324 * osdata.c: Likewise.
325 * p-exp.y: Likewise.
326 * p-lang.c: Likewise.
327 * p-typeprint.c: Likewise.
328 * parse.c: Likewise.
329 * posix-hdep.c: Likewise.
330 * ppc-linux-nat.c: Likewise.
331 * ppc-sysv-tdep.c: Likewise.
332 * ppcfbsd-tdep.c: Likewise.
333 * ppcnbsd-tdep.c: Likewise.
334 * ppcobsd-tdep.c: Likewise.
335 * printcmd.c: Likewise.
336 * procfs.c: Likewise.
337 * prologue-value.c: Likewise.
338 * python/py-auto-load.c: Likewise.
339 * python/py-gdb-readline.c: Likewise.
340 * ravenscar-thread.c: Likewise.
341 * regcache.c: Likewise.
342 * registry.c: Likewise.
343 * remote-fileio.c: Likewise.
344 * remote-m32r-sdi.c: Likewise.
345 * remote-mips.c: Likewise.
346 * remote-notif.c: Likewise.
347 * remote-sim.c: Likewise.
348 * remote.c: Likewise.
349 * reverse.c: Likewise.
350 * rs6000-aix-tdep.c: Likewise.
351 * ser-base.c: Likewise.
352 * ser-go32.c: Likewise.
353 * ser-mingw.c: Likewise.
354 * ser-pipe.c: Likewise.
355 * ser-tcp.c: Likewise.
356 * ser-unix.c: Likewise.
357 * serial.c: Likewise.
358 * sh-tdep.c: Likewise.
359 * sh64-tdep.c: Likewise.
360 * shnbsd-tdep.c: Likewise.
361 * skip.c: Likewise.
362 * sol-thread.c: Likewise.
363 * solib-dsbt.c: Likewise.
364 * solib-frv.c: Likewise.
365 * solib-osf.c: Likewise.
366 * solib-som.c: Likewise.
367 * solib-spu.c: Likewise.
368 * solib-target.c: Likewise.
369 * solib.c: Likewise.
370 * somread.c: Likewise.
371 * source.c: Likewise.
372 * sparc-nat.c: Likewise.
373 * sparc-sol2-tdep.c: Likewise.
374 * sparc-tdep.c: Likewise.
375 * sparc64-tdep.c: Likewise.
376 * sparc64fbsd-tdep.c: Likewise.
377 * sparc64nbsd-tdep.c: Likewise.
378 * sparcnbsd-tdep.c: Likewise.
379 * spu-linux-nat.c: Likewise.
380 * spu-multiarch.c: Likewise.
381 * spu-tdep.c: Likewise.
382 * stabsread.c: Likewise.
383 * stack.c: Likewise.
384 * std-regs.c: Likewise.
385 * symfile.c: Likewise.
386 * symmisc.c: Likewise.
387 * symtab.c: Likewise.
388 * target.c: Likewise.
389 * thread.c: Likewise.
390 * tilegx-linux-nat.c: Likewise.
391 * tilegx-tdep.c: Likewise.
392 * top.c: Likewise.
393 * tracepoint.c: Likewise.
394 * tui/tui-command.c: Likewise.
395 * tui/tui-data.c: Likewise.
396 * tui/tui-disasm.c: Likewise.
397 * tui/tui-file.c: Likewise.
398 * tui/tui-layout.c: Likewise.
399 * tui/tui-out.c: Likewise.
400 * tui/tui-regs.c: Likewise.
401 * tui/tui-source.c: Likewise.
402 * tui/tui-stack.c: Likewise.
403 * tui/tui-win.c: Likewise.
404 * tui/tui-windata.c: Likewise.
405 * tui/tui-winsource.c: Likewise.
406 * typeprint.c: Likewise.
407 * ui-file.c: Likewise.
408 * ui-out.c: Likewise.
409 * user-regs.c: Likewise.
410 * utils.c: Likewise.
411 * v850-tdep.c: Likewise.
412 * valarith.c: Likewise.
413 * valops.c: Likewise.
414 * valprint.c: Likewise.
415 * value.c: Likewise.
416 * varobj.c: Likewise.
417 * vax-tdep.c: Likewise.
418 * vaxnbsd-tdep.c: Likewise.
419 * vaxobsd-tdep.c: Likewise.
420 * windows-nat.c: Likewise.
421 * xcoffread.c: Likewise.
422 * xml-support.c: Likewise.
423 * xstormy16-tdep.c: Likewise.
424 * xtensa-linux-nat.c: Likewise.
425
426 2014-08-07 Gary Benson <gbenson@redhat.com>
427
428 * common/common-defs.h: Include gdb_assert.h.
429 * aarch64-tdep.c: Do not include gdb_assert.h.
430 * addrmap.c: Likewise.
431 * aix-thread.c: Likewise.
432 * alpha-linux-tdep.c: Likewise.
433 * alpha-mdebug-tdep.c: Likewise.
434 * alphanbsd-tdep.c: Likewise.
435 * amd64-nat.c: Likewise.
436 * amd64-tdep.c: Likewise.
437 * amd64bsd-nat.c: Likewise.
438 * amd64fbsd-nat.c: Likewise.
439 * amd64fbsd-tdep.c: Likewise.
440 * amd64nbsd-nat.c: Likewise.
441 * amd64nbsd-tdep.c: Likewise.
442 * amd64obsd-nat.c: Likewise.
443 * amd64obsd-tdep.c: Likewise.
444 * arch-utils.c: Likewise.
445 * arm-tdep.c: Likewise.
446 * armbsd-tdep.c: Likewise.
447 * auxv.c: Likewise.
448 * bcache.c: Likewise.
449 * bfin-tdep.c: Likewise.
450 * blockframe.c: Likewise.
451 * breakpoint.c: Likewise.
452 * bsd-kvm.c: Likewise.
453 * bsd-uthread.c: Likewise.
454 * buildsym.c: Likewise.
455 * c-exp.y: Likewise.
456 * c-lang.c: Likewise.
457 * charset.c: Likewise.
458 * cleanups.c: Likewise.
459 * cli-out.c: Likewise.
460 * cli/cli-decode.c: Likewise.
461 * cli/cli-dump.c: Likewise.
462 * cli/cli-logging.c: Likewise.
463 * cli/cli-script.c: Likewise.
464 * cli/cli-utils.c: Likewise.
465 * coffread.c: Likewise.
466 * common/common-utils.c: Likewise.
467 * common/queue.h: Likewise.
468 * common/signals.c: Likewise.
469 * common/vec.h: Likewise.
470 * complaints.c: Likewise.
471 * completer.c: Likewise.
472 * corelow.c: Likewise.
473 * cp-abi.c: Likewise.
474 * cp-name-parser.y: Likewise.
475 * cp-namespace.c: Likewise.
476 * cp-support.c: Likewise.
477 * cris-tdep.c: Likewise.
478 * dbxread.c: Likewise.
479 * dictionary.c: Likewise.
480 * doublest.c: Likewise.
481 * dsrec.c: Likewise.
482 * dummy-frame.c: Likewise.
483 * dwarf2-frame-tailcall.c: Likewise.
484 * dwarf2-frame.c: Likewise.
485 * dwarf2expr.c: Likewise.
486 * dwarf2loc.c: Likewise.
487 * dwarf2read.c: Likewise.
488 * eval.c: Likewise.
489 * event-loop.c: Likewise.
490 * exceptions.c: Likewise.
491 * expprint.c: Likewise.
492 * f-valprint.c: Likewise.
493 * fbsd-nat.c: Likewise.
494 * findvar.c: Likewise.
495 * frame-unwind.c: Likewise.
496 * frame.c: Likewise.
497 * frv-tdep.c: Likewise.
498 * gcore.c: Likewise.
499 * gdb-dlfcn.c: Likewise.
500 * gdb_bfd.c: Likewise.
501 * gdbarch.c: Likewise.
502 * gdbarch.sh: Likewise.
503 * gdbtypes.c: Likewise.
504 * gnu-nat.c: Likewise.
505 * gnu-v3-abi.c: Likewise.
506 * go-lang.c: Likewise.
507 * guile/scm-exception.c: Likewise.
508 * guile/scm-gsmob.c: Likewise.
509 * guile/scm-lazy-string.c: Likewise.
510 * guile/scm-math.c: Likewise.
511 * guile/scm-pretty-print.c: Likewise.
512 * guile/scm-safe-call.c: Likewise.
513 * guile/scm-utils.c: Likewise.
514 * guile/scm-value.c: Likewise.
515 * h8300-tdep.c: Likewise.
516 * hppa-hpux-nat.c: Likewise.
517 * hppa-tdep.c: Likewise.
518 * hppanbsd-tdep.c: Likewise.
519 * hppaobsd-tdep.c: Likewise.
520 * i386-darwin-nat.c: Likewise.
521 * i386-darwin-tdep.c: Likewise.
522 * i386-nto-tdep.c: Likewise.
523 * i386-tdep.c: Likewise.
524 * i386bsd-nat.c: Likewise.
525 * i386fbsd-tdep.c: Likewise.
526 * i386gnu-nat.c: Likewise.
527 * i386nbsd-tdep.c: Likewise.
528 * i386obsd-tdep.c: Likewise.
529 * i387-tdep.c: Likewise.
530 * ia64-libunwind-tdep.c: Likewise.
531 * ia64-tdep.c: Likewise.
532 * inf-ptrace.c: Likewise.
533 * inf-ttrace.c: Likewise.
534 * infcall.c: Likewise.
535 * infcmd.c: Likewise.
536 * infrun.c: Likewise.
537 * inline-frame.c: Likewise.
538 * interps.c: Likewise.
539 * jv-lang.c: Likewise.
540 * jv-typeprint.c: Likewise.
541 * linux-fork.c: Likewise.
542 * linux-nat.c: Likewise.
543 * linux-thread-db.c: Likewise.
544 * m32c-tdep.c: Likewise.
545 * m32r-linux-nat.c: Likewise.
546 * m32r-tdep.c: Likewise.
547 * m68k-tdep.c: Likewise.
548 * m68kbsd-nat.c: Likewise.
549 * m68kbsd-tdep.c: Likewise.
550 * m88k-tdep.c: Likewise.
551 * machoread.c: Likewise.
552 * macroexp.c: Likewise.
553 * macrotab.c: Likewise.
554 * maint.c: Likewise.
555 * mdebugread.c: Likewise.
556 * memory-map.c: Likewise.
557 * mep-tdep.c: Likewise.
558 * mi/mi-common.c: Likewise.
559 * microblaze-tdep.c: Likewise.
560 * mingw-hdep.c: Likewise.
561 * mips-linux-nat.c: Likewise.
562 * mips-linux-tdep.c: Likewise.
563 * mips-tdep.c: Likewise.
564 * mips64obsd-tdep.c: Likewise.
565 * mipsnbsd-tdep.c: Likewise.
566 * mn10300-linux-tdep.c: Likewise.
567 * mn10300-tdep.c: Likewise.
568 * moxie-tdep.c: Likewise.
569 * mt-tdep.c: Likewise.
570 * nat/linux-btrace.c: Likewise.
571 * nat/linux-osdata.c: Likewise.
572 * nat/linux-ptrace.c: Likewise.
573 * nat/mips-linux-watch.c: Likewise.
574 * nios2-linux-tdep.c: Likewise.
575 * nios2-tdep.c: Likewise.
576 * objc-lang.c: Likewise.
577 * objfiles.c: Likewise.
578 * obsd-nat.c: Likewise.
579 * opencl-lang.c: Likewise.
580 * osabi.c: Likewise.
581 * parse.c: Likewise.
582 * ppc-linux-nat.c: Likewise.
583 * ppc-sysv-tdep.c: Likewise.
584 * ppcfbsd-nat.c: Likewise.
585 * ppcfbsd-tdep.c: Likewise.
586 * ppcnbsd-nat.c: Likewise.
587 * ppcnbsd-tdep.c: Likewise.
588 * ppcobsd-nat.c: Likewise.
589 * ppcobsd-tdep.c: Likewise.
590 * printcmd.c: Likewise.
591 * procfs.c: Likewise.
592 * prologue-value.c: Likewise.
593 * psymtab.c: Likewise.
594 * python/py-lazy-string.c: Likewise.
595 * python/py-value.c: Likewise.
596 * regcache.c: Likewise.
597 * reggroups.c: Likewise.
598 * registry.c: Likewise.
599 * remote-sim.c: Likewise.
600 * remote.c: Likewise.
601 * rs6000-aix-tdep.c: Likewise.
602 * rs6000-tdep.c: Likewise.
603 * s390-linux-tdep.c: Likewise.
604 * score-tdep.c: Likewise.
605 * ser-base.c: Likewise.
606 * ser-mingw.c: Likewise.
607 * sh-tdep.c: Likewise.
608 * sh64-tdep.c: Likewise.
609 * solib-darwin.c: Likewise.
610 * solib-spu.c: Likewise.
611 * solib-svr4.c: Likewise.
612 * source.c: Likewise.
613 * sparc-nat.c: Likewise.
614 * sparc-sol2-tdep.c: Likewise.
615 * sparc-tdep.c: Likewise.
616 * sparc64-sol2-tdep.c: Likewise.
617 * sparc64-tdep.c: Likewise.
618 * sparc64fbsd-tdep.c: Likewise.
619 * sparc64nbsd-tdep.c: Likewise.
620 * sparc64obsd-tdep.c: Likewise.
621 * sparcnbsd-tdep.c: Likewise.
622 * sparcobsd-tdep.c: Likewise.
623 * spu-multiarch.c: Likewise.
624 * spu-tdep.c: Likewise.
625 * stabsread.c: Likewise.
626 * stack.c: Likewise.
627 * symfile.c: Likewise.
628 * symtab.c: Likewise.
629 * target-descriptions.c: Likewise.
630 * target-memory.c: Likewise.
631 * target.c: Likewise.
632 * tic6x-linux-tdep.c: Likewise.
633 * tic6x-tdep.c: Likewise.
634 * tilegx-linux-nat.c: Likewise.
635 * tilegx-tdep.c: Likewise.
636 * top.c: Likewise.
637 * tramp-frame.c: Likewise.
638 * tui/tui-out.c: Likewise.
639 * tui/tui-winsource.c: Likewise.
640 * ui-out.c: Likewise.
641 * user-regs.c: Likewise.
642 * utils.c: Likewise.
643 * v850-tdep.c: Likewise.
644 * valops.c: Likewise.
645 * value.c: Likewise.
646 * varobj.c: Likewise.
647 * vax-nat.c: Likewise.
648 * xml-syscall.c: Likewise.
649 * xml-tdesc.c: Likewise.
650 * xstormy16-tdep.c: Likewise.
651 * xtensa-linux-nat.c: Likewise.
652 * xtensa-tdep.c: Likewise.
653
654 2014-08-07 Gary Benson <gbenson@redhat.com>
655
656 * common/common-defs.h: Include common-utils.h.
657 * defs.h: Do not include common-utils.h.
658 * common/gdb_assert.h: Likewise.
659 * darwin-nat.h: Likewise.
660 * nat/linux-btrace.c: Likewise.
661 * target/waitstatus.h: Likewise.
662
663 2014-08-07 Gary Benson <gbenson@redhat.com>
664
665 * common/common-defs.h: Include ptid.h.
666 * defs.h: Do not include ptid.h.
667 * inferior.h: Likewise.
668 * infrun.h: Likewise.
669 * nat/linux-btrace.h: Likewise.
670 * nat/linux-osdata.h: Likewise.
671 * target/waitstatus.h: Likewise.
672
673 2014-08-07 Gary Benson <gbenson@redhat.com>
674
675 * common/common-defs.h: Include gdb_locale.h.
676 * defs.h: Do not include gdb_locale.h.
677
678 2014-08-07 Gary Benson <gbenson@redhat.com>
679
680 * common/common-defs.h: Include gdb/signals.h.
681 * defs.h: Do not include gdb/signals.h.
682
683 2014-08-07 Gary Benson <gbenson@redhat.com>
684
685 * common/common-defs.h: Include pathmax.h.
686 * defs.h: Do not include pathmax.h.
687
688 2014-08-07 Gary Benson <gbenson@redhat.com>
689
690 * common/common-defs.h: Include libiberty.h.
691 * defs.h: Do not include libiberty.h.
692 * common/queue.h: Likewise.
693 * cp-name-parser.y: Likewise.
694 * mi/mi-cmd-catch.c: Likewise.
695 * python/python.c: Likewise.
696
697 2014-08-07 Gary Benson <gbenson@redhat.com>
698
699 * common/common-defs.h: Include ansidecl.h.
700 * defs.h: Do not include ansidecl.h.
701 * common/buffer.h: Likewise.
702 * common/common-utils.h: Likewise.
703
704 2014-08-07 Gary Benson <gbenson@redhat.com>
705
706 * common/common-defs.h: Include stddef.h.
707 * defs.h: Do not include stddef.h.
708 * common/common-utils.h: Likewise.
709 * amd64fbsd-nat.c: Likewise.
710 * bcache.c: Likewise.
711 * charset.c: Likewise.
712 * common/buffer.h: Likewise.
713 * common/vec.h: Likewise.
714 * i386bsd-nat.c: Likewise.
715 * nat/linux-btrace.h: Likewise.
716 * ppcfbsd-nat.c: Likewise.
717 * ppcnbsd-tdep.h: Likewise.
718 * ppcobsd-nat.c: Likewise.
719 * ppcobsd-tdep.h: Likewise.
720 * python/py-gdb-readline.c: Likewise.
721
722 2014-08-07 Gary Benson <gbenson@redhat.com>
723
724 * common/common-defs.h: Include stdarg.h.
725 * defs.h: Do not include stdarg.h.
726 * ada-lang.c: Likewise.
727 * common/common-utils.h: Likewise.
728 * guile/scm-string.c: Likewise.
729 * guile/scm-utils.c: Likewise.
730 * m32c-tdep.c: Likewise.
731
732 2014-08-07 Gary Benson <gbenson@redhat.com>
733
734 * common/common-defs.h: Include stdlib.h.
735 * defs.h: Do not include stdlib.h.
736 * addrmap.c: Likewise.
737 * bcache.c: Likewise.
738 * common/buffer.c: Likewise.
739 * common/common-utils.c: Likewise.
740 * cp-name-parser.y: Likewise.
741 * go32-nat.c: Likewise.
742 * mn10300-linux-tdep.c: Likewise.
743 * nat/linux-osdata.c: Likewise.
744 * tui/tui.c: Likewise.
745 * windows-nat.c: Likewise.
746
747 2014-08-07 Gary Benson <gbenson@redhat.com>
748
749 * common/common-defs.h: Include stdio.h.
750 * defs.h: Do not include stdio.h.
751 * ada-lang.c: Likewise.
752 * common/buffer.c: Likewise.
753 * common/common-utils.c: Likewise.
754 * cp-name-parser.y: Likewise.
755 * gnu-nat.c: Likewise.
756 * go32-nat.c: Likewise.
757 * i386gnu-nat.c: Likewise.
758 * proc-api.c: Likewise.
759 * proc-events.c: Likewise.
760 * proc-flags.c: Likewise.
761 * proc-why.c: Likewise.
762 * python/python-internal.h: Likewise.
763 * target-memory.c: Likewise.
764 * tui/tui-io.c: Likewise.
765 * tui/tui.c: Likewise.
766
767 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
768
769 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
770 (scan_dyntag_auxv): Same.
771
772 2014-08-06 Yao Qi <yao@codesourcery.com>
773
774 * amd64-linux-nat.c: Remove duplicated include
775 "x86-linux-nat.h".
776 * i386-linux-nat.c: Likewise.
777
778 2014-08-06 Yao Qi <yao@codesourcery.com>
779
780 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
781 operand" with "Special opcode" in comments.
782
783 2014-08-05 Gary Benson <gbenson@redhat.com>
784
785 * interps.c (initialize_interps): Remove prototype.
786 (interpreter_initialized): Remove static global.
787 (interp_add): Do not call initialize_interps.
788 (initialize_interps): Remove function.
789
790 2014-08-05 Gary Benson <gbenson@redhat.com>
791
792 * utils.c (vwarning): Remove spurious va_end.
793
794 2014-08-05 Alan Modra <amodra@gmail.com>
795
796 * charset.c (convert_between_encodings): Cast result of obstack_base.
797 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
798 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
799 (read_unwind_info): Use size_t for some locals.
800 * jit.c (finalize_symtab): Likewise.
801 * utils.c (hashtab_obstack_allocate): Likewise.
802 * symmisc.c (print_objfile_statistics): Update format strings.
803
804 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
805
806 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
807 (Changes in GDB 7.8): ... here.
808
809 2014-08-04 Tom Tromey <tromey@redhat.com>
810
811 * target.c (set_targetdebug): New function.
812 (initialize_targets): Pass set_targetdebug when creating "set
813 debug target".
814
815 2014-08-01 Joel Brobecker <brobecker@adacore.com>
816
817 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
818 if detecting a variable-sized field that is not the last field.
819 Fix struct type length computation.
820
821 2014-08-01 Joel Brobecker <brobecker@adacore.com>
822
823 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
824 Add debug trace.
825
826 2014-08-01 Joel Brobecker <brobecker@adacore.com>
827
828 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
829 Remove "+ 8" offset in computation of CHAIN_VMA.
830
831 2014-07-31 Doug Evans <dje@google.com>
832
833 * inflow.c (child_terminal_inferior): Add comment.
834 (child_terminal_ours_for_output): Add comment.
835 (child_terminal_ours): Add comment.
836 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
837 (linux_nat_terminal_ours): Add comment.
838
839 2014-07-31 Gary Benson <gbenson@redhat.com>
840
841 * common/btrace-common.h: Do not include defs.h or server.h.
842 * nat/mips-linux-watch.h: Likewise.
843 * gdb-dlfcn.h: Do not include defs.h.
844 * tracefile.h: Likewise.
845
846 2014-07-30 Roland McGrath <mcgrathr@google.com>
847
848 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
849
850 2014-07-30 Tom Tromey <tromey@redhat.com>
851
852 * bsd-kvm.c (bsd_kvm_open): Constify.
853 * corelow.c (core_open): Constify.
854 * ctf.c (ctf_open): Constify.
855 * dbug-rom.c (dbug_open): Constify.
856 * exec.c (exec_open): Constify.
857 * m32r-rom.c (m32r_open, mon2000_open): Constify.
858 * microblaze-rom.c (picobug_open): Constify.
859 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
860 Constify.
861 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
862 * record-btrace.c (record_btrace_open): Constify.
863 * record-full.c (record_full_core_open_1, record_full_open_1)
864 (record_full_open): Constify.
865 * remote-m32r-sdi.c (m32r_open): Constify.
866 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
867 (rockhopper_open, lsi_open): Constify.
868 * remote-sim.c (gdbsim_open): Constify.
869 * remote.c (remote_open, extended_remote_open, remote_open_1):
870 Constify.
871 * target.h (struct target_ops) <to_open>: Make "arg" const.
872 * tracefile-tfile.c (tfile_open): Constify.
873
874 2014-07-30 Tom Tromey <tromey@redhat.com>
875
876 * breakpoint.c (map_breakpoint_numbers): Update.
877 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
878 (get_number_const): New function.
879 (get_number): Rewrite using get_number_const.
880 (init_number_or_range): Make "string" const.
881 (number_is_in_list): Make "list" const.
882 * cli/cli-utils.h (get_number_const): Declare.
883 (struct get_number_or_range_state) <string, end_ptr>: Now const.
884 (init_number_or_range, number_is_in_list): Update.
885 * printcmd.c (map_display_numbers): Update.
886 * value.c (value_from_history_ref): Constify.
887 * value.h (value_from_history_ref): Update.
888
889 2014-07-30 Tom Tromey <tromey@redhat.com>
890
891 * corefile.c (hook_type, call_extra_exec_file_hooks)
892 (specify_exec_file_hook): Constify.
893 * exec.c (exec_file_attach): Make "filename" const.
894 * gdbcore.h (deprecated_exec_file_display_hook)
895 (specify_exec_file_hook, exec_file_attach): Constify.
896 * main.c (captured_main): Use catch_command_errors_const.
897
898 2014-07-30 Tom Tromey <tromey@redhat.com>
899
900 * target.c (open_target): New function.
901 (add_target_with_completer, add_deprecated_target_alias): Use
902 set_cmd_sfunc, set_cmd_context.
903 (debug_to_open): Remove.
904 (setup_target_debug): Update.
905
906 2014-07-30 Yao Qi <yao@codesourcery.com>
907
908 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
909 comments.
910 * parse.c (exp_iterate): Update comments.
911
912 2014-07-30 Gary Benson <gbenson@redhat.com>
913
914 * common/common-defs.h: New file.
915 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
916 * defs.h: Include common-defs.h.
917 Do not include config.h or build-gnulib/config.h.
918
919 2014-07-30 Gary Benson <gbenson@redhat.com>
920
921 * common/common-utils.h: Do not include config.h.
922 * nat/linux-btrace.h: Likewise.
923
924 2014-07-30 Gary Benson <gbenson@redhat.com>
925
926 * btrace.c: Include defs.h.
927 * common/ptid.c: Include defs.h or server.h as appropriate.
928 * nat/mips-linux-watch.c: Likewise.
929
930 2014-07-29 Tom Tromey <tromey@redhat.com>
931
932 * target.c (target_is_pushed): Simplify.
933
934 2014-07-29 Joel Brobecker <brobecker@adacore.com>
935
936 GDB 7.8 released.
937
938 2014-07-29 Yao Qi <yao@codesourcery.com>
939
940 PR gdb/17206
941 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
942
943 2014-07-28 Doug Evans <xdje42@gmail.com>
944
945 PR guile/17203
946 * guile/scm-param.c (pascm_parameter_defined_p): New function.
947 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
948 parameters.
949
950 2014-07-28 Will Newton <will.newton@linaro.org>
951
952 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
953 (THUMB2_SET_R7_SIGRETURN2): Likewise.
954 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
955 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
956 (THUMB2_EABI_SYSCALL): Likewise.
957 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
958 struct tramp_frame.
959 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
960 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
961
962 2014-07-27 Doug Evans <xdje42@gmail.com>
963
964 * guile/scm-param.c (pascm_print_param_smob): Fix output.
965
966 2014-07-27 Doug Evans <xdje42@gmail.com>
967
968 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
969
970 2014-07-26 Ludovic Courtès <ludo@gnu.org>
971 Doug Evans <xdje42@gmail.com>
972
973 PR guile/17146
974 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
975 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
976 * configure.ac: Try to use guild to compile an scm file, if it fails
977 then disable guile support.
978 * configure: Regenerate.
979 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
980 GUILE_FILE_LIST.
981 (GUILE_COMPILED_FILES): New variable.
982 (GUILE_FILES) Update.
983 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
984 (stamp-guile): Compile scm files.
985 * guile/guile.c (boot_guile_support): New function.
986 (standard_throw_args_p): New function.
987 (print_standard_throw_error, print_throw_error): New functions.
988 (handle_boot_error): New function.
989 (initialize_scheme_side): Rewrite to call boot_guile_support.
990 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
991 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
992
993 2014-07-26 Ludovic Courtès <ludo@gnu.org>
994 Doug Evans <xdje42@gmail.com>
995
996 PR guile/17146
997 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
998 * guile/lib/gdb/support.scm: New file.
999 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1000 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1001 All uses updated.
1002 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1003 All uses updated.
1004 (%assert-type): Ditto, and renamed to assert-type.
1005 (%exception-print-style): Delete.
1006
1007 2014-07-26 Doug Evans <xdje42@gmail.com>
1008
1009 PR build/17105
1010 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1011 * configure: Regenerate.
1012 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1013 PYTHON_FILES.
1014 (PYTHON_FILES): New variable.
1015 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1016 (GUILE_FILES): New variable.
1017 (stamp-python, install-python, uninstall-python): Handle empty
1018 file list.
1019 (stamp-guile, install-guile, uninstall-guile): Ditto.
1020
1021 2014-07-26 Doug Evans <xdje42@gmail.com>
1022
1023 PR guile/17177
1024 * guile/lib/gdb.scm (pretty-printers): Export.
1025 (set-pretty-printers!): Export.
1026 * guile/lib/gdb/printing.scm (gdb module): Update.
1027 (prepend-pretty-printer!, append-pretty-printer!): Update.
1028 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1029 (pretty_printer_list_var): Delete.
1030 (pretty_printer_list): New static global.
1031 (gdbscm_pretty_printers): New function.
1032 (gdbscm_set_pretty_printers_x): New function.
1033 (ppscm_find_pretty_printer_from_gdb): Update.
1034 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1035 (gdbscm_initialize_pretty_printers): Update.
1036
1037 2014-07-26 Doug Evans <xdje42@gmail.com>
1038
1039 PR 17185
1040 * configure.ac: Add check for header gc/gc.h.
1041 Add check for function setenv.
1042 * configure: Regenerate.
1043 * config.in: Regenerate.
1044 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1045
1046 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1047
1048 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1049 variation in gdbarch matching.
1050
1051 2014-07-25 Tom Tromey <tromey@redhat.com>
1052
1053 * exec.c (using_exec_ops): Remove.
1054 (exec_close_1): Update. Remove extraneous block, reindent.
1055 (add_target_sections): Use target_is_pushed.
1056
1057 2014-07-25 Pedro Alves <palves@redhat.com>
1058
1059 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1060 * monitor.c (monitor_create_inferior): Likewise.
1061 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1062 * remote-sim.c (gdbsim_create_inferior): Likewise.
1063 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1064 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1065 * windows-nat.c (do_initial_windows_stuff): Likewise.
1066
1067 2014-07-25 Pedro Alves <palves@redhat.com>
1068
1069 * NEWS: Mention signal passing and "signal" command changes.
1070 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1071 comment.
1072 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1073 call.
1074 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1075 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1076 (jump_command): Adjust clear_proceed_status call.
1077 (signal_command): Warn if other thread that are resumed have
1078 signals that will be delivered. Adjust clear_proceed_status call.
1079 (until_next_command, finish_command)
1080 (proceed_after_attach_callback, attach_command_post_wait)
1081 (attach_command): Adjust clear_proceed_status call.
1082 * infrun.c (proceed_after_vfork_done): Likewise.
1083 (proceed_after_attach_callback): Adjust comment.
1084 (clear_proceed_status_thread): Clear stop_signal if not in pass
1085 state.
1086 (clear_proceed_status_callback): Delete.
1087 (clear_proceed_status): New 'step' parameter. Only clear the
1088 proceed status of threads the command being prepared is about to
1089 resume.
1090 (proceed): If passed in an explicit signal, override stop_signal
1091 with it. Don't pass the last stop signal to the thread we're
1092 resuming.
1093 (init_wait_for_inferior): Adjust clear_proceed_status call.
1094 (switch_back_to_stepped_thread): Clear the signal if it should not
1095 be passed.
1096 * infrun.h (clear_proceed_status): New 'step' parameter.
1097 (user_visible_resume_ptid): Add comment.
1098 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1099 signal is in pass state.
1100 * remote.c (append_pending_thread_resumptions): Likewise.
1101 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1102
1103 2014-07-25 Tom Tromey <tromey@redhat.com>
1104
1105 * target.h (target_stopped_data_address)
1106 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1107 parentheses.
1108
1109 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1110
1111 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1112 comments.
1113 (avr_pointer_to_address): Likewise.
1114
1115 2014-07-24 Tom Tromey <tromey@redhat.com>
1116
1117 * monitor.c (compile_pattern): Update.
1118 * target.h (struct target_ops) <to_shortname, to_longname,
1119 to_doc>: Now const.
1120
1121 2014-07-24 Tom Tromey <tromey@redhat.com>
1122
1123 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1124 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1125 (add_info_alias, add_com): Make "doc" const.
1126 (print_doc_line): Make "str" const.
1127 (delete_cmd): Update.
1128 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1129 (print_doc_line): Update.
1130 * cli/cli-script.c (document_command): Update.
1131 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1132 (add_com, add_info, add_info_alias): Update.
1133 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1134 * python/py-cmd.c (cmdpy_destroyer): Update.
1135
1136 2014-07-24 Tom Tromey <tromey@redhat.com>
1137
1138 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1139 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1140 (help_cmd_list): Constify.
1141 (lookup_cmd): Update.
1142 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1143 const.
1144 (help_cmd_list, apropos_cmd): Update.
1145 * cli/cli-script.c (show_user): Update.
1146 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1147 * cli/cli-setshow.h (cmd_show_list): Update.
1148 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1149 (cmd_show_list): Update.
1150 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1151 * python/py-cmd.c (cmdpy_destroyer): Update.
1152
1153 2014-07-24 Tom Tromey <tromey@redhat.com>
1154
1155 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1156 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1157 const.
1158 * command.h (deprecate_cmd): Update.
1159 * maint.c (maintenance_do_deprecate): Add casts.
1160
1161 2014-07-24 Tom Tromey <tromey@redhat.com>
1162
1163 * cli/cli-decode.c (help_cmd): Make parameter "const".
1164 * cli/cli-decode.h (help_cmd): Update.
1165
1166 2014-07-24 Tom Tromey <tromey@redhat.com>
1167
1168 * stack.c (up_silently_base, down_silently_base): Make argument
1169 const.
1170
1171 2014-07-24 Tom Tromey <tromey@redhat.com>
1172
1173 * solib.c (solib_add): Make "pattern" const.
1174 * solib.h (solib_add): Update.
1175
1176 2014-07-24 Tom Tromey <tromey@redhat.com>
1177
1178 * remote.c (remote_serial_open, print_packet, putpkt)
1179 (putpkt_binary): Constify.
1180 * remote.h (putpkt): Update.
1181
1182 2014-07-24 Tom Tromey <tromey@redhat.com>
1183
1184 * monitor.c (monitor_open): Make "args" const.
1185 * monitor.h (monitor_open): Update.
1186
1187 2014-07-24 Tom Tromey <tromey@redhat.com>
1188
1189 * maint.c (match_bfd_flags): Make "string" const.
1190 (print_bfd_section_info): Remove casts.
1191 (print_objfile_section_info): Make "string" const.
1192
1193 2014-07-24 Tom Tromey <tromey@redhat.com>
1194
1195 * inf-child.c (inf_child_open_target): Make "arg" const.
1196 * inf-child.h (inf_child_open_target): Update.
1197
1198 2014-07-24 Tom Tromey <tromey@redhat.com>
1199
1200 * environ.c (unset_in_environ): Make "var" const.
1201 * environ.h (unset_in_environ): Update.
1202
1203 2014-07-24 Tom Tromey <tromey@redhat.com>
1204
1205 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1206 Make "cmd" const.
1207 (scan_filename_with_cleanup): Likewise.
1208 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1209 Make arguments const.
1210 (restore_command): Update.
1211
1212 2014-07-24 Pedro Alves <palves@redhat.com>
1213
1214 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1215
1216 2014-07-24 Tom Tromey <tromey@redhat.com>
1217 Gary Benson <gbenson@redhat.com>
1218
1219 * nat/linux-ptrace.c (additional_flags): New global.
1220 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1221 additional_flags; don't check GDBSERVER.
1222 (linux_ptrace_set_additional_flags): New function.
1223 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1224 Declare.
1225 * linux-nat.c (_initialize_linux_nat): Call
1226 linux_ptrace_set_additional_flags.
1227
1228 2014-07-24 Tom Tromey <tromey@redhat.com>
1229
1230 * make-target-delegates (munge_type, write_debugmethod): New
1231 functions.
1232 (debug_names): New global.
1233 ($TARGET_DEBUG_PRINTER): New global.
1234 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1235 name.
1236 Write debug methods. Generate init_debug_target.
1237 * target-debug.h: New file.
1238 * target-delegates.c: Rebuild.
1239 * target.c: Include target-debug.h.
1240 (debug_target): Hoist definition.
1241 (target_kill, target_get_section_table, target_memory_map)
1242 (target_flash_erase, target_flash_done, target_detach)
1243 (target_disconnect, target_wait, target_resume)
1244 (target_pass_signals, target_program_signals, target_follow_fork)
1245 (target_mourn_inferior, target_search_memory)
1246 (target_thread_address_space, target_close)
1247 (target_find_new_threads, target_core_of_thread)
1248 (target_verify_memory, target_insert_mask_watchpoint)
1249 (target_remove_mask_watchpoint): Remove targetdebug code.
1250 (debug_to_post_attach, debug_to_prepare_to_store)
1251 (debug_to_files_info, debug_to_insert_breakpoint)
1252 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1253 (debug_to_region_ok_for_hw_watchpoint)
1254 (debug_to_can_accel_watchpoint_condition)
1255 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1256 (debug_to_watchpoint_addr_within_range)
1257 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1258 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1259 (debug_to_terminal_init, debug_to_terminal_inferior)
1260 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1261 (debug_to_terminal_save_ours, debug_to_terminal_info)
1262 (debug_to_load, debug_to_post_startup_inferior)
1263 (debug_to_insert_fork_catchpoint)
1264 (debug_to_remove_fork_catchpoint)
1265 (debug_to_insert_vfork_catchpoint)
1266 (debug_to_remove_vfork_catchpoint)
1267 (debug_to_insert_exec_catchpoint)
1268 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1269 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1270 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1271 (setup_target_debug): Call init_debug_target.
1272 * target.h (TARGET_DEBUG_PRINTER): New macro.
1273 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1274 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1275
1276 2014-07-24 Gary Benson <gbenson@redhat.com>
1277
1278 * exceptions.h (throw_vfatal): Renamed to...
1279 (throw_vquit): New declaration.
1280 (throw_quit): Likewise.
1281 * exceptions.c (throw_vfatal): Renamed to...
1282 (throw_vquit): New function.
1283 (throw_quit): Likewise.
1284 (throw_error): Call throw_verror rather than throw_it.
1285 * utils.h (vfatal): Removed.
1286 (fatal): Likewise.
1287 * utils.c (vfatal): Removed.
1288 (fatal): Likewise.
1289 (internal_verror): Replaced call to fatal with call to throw_quit.
1290 (quit): Replaced calls to fatal with calls to throw_quit.
1291
1292 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1293
1294 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1295 target_read_code.
1296
1297 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1298
1299 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1300 less than zero in conditional expression.
1301
1302 2014-07-23 Tom Tromey <tromey@redhat.com>
1303
1304 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1305 ($INTRO_PART): Don't match whitespace.
1306 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1307 argument matching.
1308 ($METHOD): Add $METHOD_TRAILER.
1309 (trim): Rewrite.
1310 (scan_target_h): New sub.
1311 Change main loop not to collect state.
1312 * target-delegates.c: Rebuild.
1313
1314 2014-07-23 Gary Benson <gbenson@redhat.com>
1315
1316 * cp-support.c (gdb_demangle): Fix build on systems without
1317 sigaltstack.
1318
1319 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1320
1321 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1322 for reference entry value target data value.
1323
1324 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1327 value_available_contents_eq.
1328
1329 2014-07-22 Pedro Alves <palves@redhat.com>
1330
1331 * value.c (allocate_optimized_out_value): Don't mark value as
1332 non-lazy.
1333
1334 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1335
1336 * MAINTAINERS (Write After Approval): Update my email address.
1337
1338 2014-07-20 Doug Evans <dje@google.com>
1339
1340 PR server/17147
1341 * remote.c (putpkt_binary): Add text to error message.
1342
1343 2014-07-20 Yao Qi <yao@codesourcery.com>
1344
1345 * eval.c: Remove "Chill" from comments.
1346 * gdbtypes.h: Likewise.
1347 * symtab.h: Likewise.
1348
1349 2014-07-20 Yao Qi <yao@codesourcery.com>
1350
1351 * std-operator.def: Update comments to TERNOP_SLICE.
1352
1353 2014-07-20 Yao Qi <yao@codesourcery.com>
1354
1355 * std-operator.def: Remove BINOP_RANGE.
1356 * breakpoint.c (watchpoint_exp_is_const): Update.
1357 * expprint.c (dump_subexp_body_standard): Likewise.
1358 * eval.c (init_array_element): Remove dead code.
1359 (evaluate_subexp_standard): Likewise.
1360
1361 2014-07-20 Yao Qi <yao@codesourcery.com>
1362
1363 * std-operator.def: Remove BINOP_IN.
1364 * breakpoint.c (watchpoint_exp_is_const): Update.
1365 * eval.c (evaluate_subexp_standard): Likewise.
1366 * expprint.c (dump_subexp_body_standard): Likewise.
1367
1368 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1369
1370 * microblaze-tdep.c (microblaze_register_names): Add
1371 the rshr and rslr register names.
1372 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1373 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1374 Use of tdesc_numbered_register. Use of
1375 microblaze_register_g_packet_guesses. Use of
1376 tdesc_use_registers. Use of set_gdbarch_register_type.
1377 (microblaze_register_g_packet_guesses): New.
1378 * microblaze-tdep.h (microblaze_reg_num): Add
1379 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1380 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1381 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1382 * features/microblaze-core.xml: New file.
1383 * features/microblaze-stack-protect.xml: New file.
1384 * features/microblaze-with-stack-protect.c: New file.
1385 * features/microblaze-with-stack-protect.xml: New file.
1386 * features/microblaze.xml: New file.
1387 * features/microblaze.c: New file.
1388 * features/Makefile (microblaze-with-stack-protect): Add
1389 microblaze-with-stack-protect microblaze and microblaze-expedite.
1390 * regformats/microblaze-with-stack-protect.dat: New file.
1391 * regformats/microblaze.dat: New file.
1392 * doc/gdb.texinfo (MicroBlaze Features): Added.
1393
1394 2014-07-18 Tom Tromey <tromey@redhat.com>
1395
1396 * exec.c (exec_ops): Now static.
1397 * exec.h (exec_ops): Don't declare.
1398
1399 2014-07-18 Tom Tromey <tromey@redhat.com>
1400
1401 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1402 to find_target_beneath.
1403 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1404 find_target_beneath.
1405 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1406
1407 2014-07-18 Tom Tromey <tromey@redhat.com>
1408
1409 PR gdb/17130:
1410 * utils.c (quit): Use target_supports_terminal_ours.
1411 * target.h (target_supports_terminal_ours): Declare.
1412 * target.c (target_supports_delete_record): Don't check
1413 to_delete_record against NULL.
1414 (target_supports_terminal_ours): New function.
1415
1416 2014-07-18 Tom Tromey <tromey@redhat.com>
1417
1418 PR gdb/17130:
1419 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1420 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1421 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1422 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1423 * windows-nat.c (windows_xfer_partial): Always delegate.
1424 * record-btrace.c (record_btrace_xfer_partial): Simplify
1425 delegation.
1426 (record_btrace_fetch_registers, record_btrace_store_registers)
1427 (record_btrace_prepare_to_store, record_btrace_resume)
1428 (record_btrace_wait, record_btrace_find_new_threads)
1429 (record_btrace_thread_alive): Likewise.
1430 * procfs.c (procfs_xfer_partial): Always delegate.
1431 * corelow.c (core_xfer_partial): Always delegate.
1432 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1433
1434 2014-07-18 Tom Tromey <tromey@redhat.com>
1435
1436 * exec.c (exec_make_note_section): Move earlier.
1437
1438 2014-07-17 Doug Evans <dje@google.com>
1439
1440 PR gdb/17170
1441 * maint.c (count_symtabs_and_blocks): Handle NULL
1442 current_program_space.
1443 (report_command_stats): Check global enabled flag in addition to
1444 recorded enabled flag.
1445 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1446
1447 2014-07-16 Pedro Alves <palves@redhat.com>
1448
1449 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1450
1451 2014-07-16 Tom Tromey <tromey@redhat.com>
1452
1453 * target.h (struct target_ops) <to_delete_record>: Reformat
1454 comment.
1455
1456 2014-07-16 Tom Tromey <tromey@redhat.com>
1457
1458 * target-delegates.c: Rebuild.
1459
1460 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1461
1462 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1463 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1464 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1465 (avr_pointer_to_address): Likewise.
1466 (avr_address_class_type_flags): New function.
1467 (avr_address_class_type_flags_to_name): Likewise.
1468 (avr_address_class_name_to_type_flags): Likewise.
1469 (avr_gdbarch_init): Set address_class_type_flags,
1470 address_class_type_flags_to_name and
1471 address_class_name_to_type_flags.
1472
1473 2014-07-15 Pedro Alves <palves@redhat.com>
1474
1475 * linux-nat.c (kill_callback): Save errno and work with saved
1476 copy.
1477
1478 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1479
1480 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1481
1482 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1483
1484 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1485 breakpoint support correctly.
1486
1487 2014-07-14 Pedro Alves <palves@redhat.com>
1488
1489 * utils.c (prompt_for_continue): Call target_terminal_ours.
1490
1491 2014-07-14 Pedro Alves <palves@redhat.com>
1492
1493 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1494 catch_errors. Don't re-enable stdin or notify observers where,
1495 and rethrow error.
1496 (fetch_inferior_event_wrapper): Delete.
1497
1498 2014-07-14 Pedro Alves <palves@redhat.com>
1499
1500 PR gdb/17072
1501 * top.c: Include "inf-loop.h".
1502 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1503 field.
1504 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1505 was async before.
1506 (gdb_readline_wrapper): Store whether the target is async, and
1507 make it sync.
1508
1509 2014-07-14 Pedro Alves <palves@redhat.com>
1510
1511 PR gdb/17072
1512 * top.c (gdb_readline_wrapper_line): Tweak comment.
1513 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1514 the input handler callback.
1515
1516 2014-07-14 Pedro Alves <palves@redhat.com>
1517
1518 PR gdb/17072
1519 * main.c: Include event-top.h.
1520 (handle_command_errors): New function.
1521 (catch_command_errors, catch_command_errors_const): Use it.
1522
1523 2014-07-14 Pedro Alves <palves@redhat.com>
1524
1525 * exceptions.c (catch_command_errors, catch_command_errors_const):
1526 Moved to main.c.
1527 * exceptions.h (catch_command_errors_ftype)
1528 (catch_command_errors_const_ftype): Moved to main.c.
1529 (catch_command_errors, catch_command_errors_const): Delete
1530 declarations.
1531 * main.c (catch_command_errors_ftype)
1532 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1533 (catch_command_errors, catch_command_errors_const)): Moved here
1534 from exceptions.c and make static.
1535
1536 2014-07-14 Pedro Alves <palves@redhat.com>
1537
1538 * exceptions.c (print_any_exception): Delete.
1539 (catch_exceptions_with_msg): Use exception_print instead of
1540 print_any_exception.
1541 (catch_errors): Use exception_fprintf instead of
1542 print_any_exception.
1543 (catch_command_errors, catch_command_errors_const): Use
1544 exception_print instead of print_any_exception.
1545
1546 2014-07-14 Pedro Alves <palves@redhat.com>
1547
1548 * infcall.c (run_inferior_call): Set 'sync_execution' while
1549 running the inferior call.
1550
1551 2014-07-14 Pedro Alves <palves@redhat.com>
1552
1553 * value.c (value_contents_equal): Delete function.
1554 * value.h (value_contents_equal): Delete declaration.
1555
1556 2014-07-14 Tom Tromey <tromey@redhat.com>
1557
1558 PR exp/17106:
1559 * gdbtypes.c (is_dynamic_type_internal): New function, from
1560 is_dynamic_type.
1561 (is_dynamic_type): Rewrite.
1562 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1563 (resolve_dynamic_struct): Likewise.
1564 (resolve_dynamic_type_internal): New function, from
1565 resolve_dynamic_type.
1566 (resolve_dynamic_type): Rewrite.
1567
1568 2014-07-14 Tom Tromey <tromey@redhat.com>
1569
1570 * target.c (target_require_runnable): Also check record_stratum.
1571 Update comment.
1572
1573 2014-07-11 Yao Qi <yao@codesourcery.com>
1574
1575 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1576 thumb_instruction_restores_sp return true.
1577
1578 2014-07-11 Yao Qi <yao@codesourcery.com>
1579
1580 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1581 (thumb_in_function_epilogue_p): Call
1582 thumb_instruction_restores_sp.
1583
1584 2014-07-11 Yao Qi <yao@codesourcery.com>
1585
1586 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1587 'add sp, #imm'.
1588 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1589
1590 2014-07-11 Gary Benson <gbenson@redhat.com>
1591
1592 * amd64-linux-nat.c (gdbcore.h): Remove include.
1593 (regset.h): Likewise.
1594 (nat/linux-btrace.h): Likewise.
1595 (btrace.h): Likewise.
1596 (gdb_assert.h): Likewise.
1597 (string.h): Likewise.
1598 (sys/uio.h): Likewise.
1599 (sys/debugreg.h): Likewise.
1600 (sys/syscall.h): Likewise.
1601 (sys/procfs.h): Likewise.
1602 (sys/user.h): Likewise.
1603 (asm/ptrace.h): Likewise.
1604 (i386-nat.h): Likewise.
1605 * i386-linux-nat.c (i386-nat.h): Likewise.
1606 (regset.h): Likewise.
1607 (target.h): Likewise.
1608 (linux-nat.h): Likewise.
1609 (nat/linux-btrace.h): Likewise.
1610 (btrace.h): Likewise.
1611 (gdb_assert.h): Likewise.
1612 (string.h): Likewise.
1613 (sys/uio.h): Likewise.
1614 (sys/user.h): Likewise.
1615 (sys/procfs.h): Likewise.
1616 (sys/reg.h): Likewise.
1617 (sys/debugreg.h): Likewise.
1618 (ORIG_EAX): Remove definition.
1619
1620 2014-07-11 Gary Benson <gbenson@redhat.com>
1621
1622 * i386-linux-nat.h: New file.
1623 * x86-linux-nat.h: Likewise.
1624 * x86-linux-nat.c: Likewise.
1625 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1626 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1627 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1628 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1629 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1630 (PTRACE_SETREGSET): Likewise.
1631 (arch_lwp_info): Now in x86-linux-nat.c.
1632 (have_ptrace_getregset): Now in x86-linux-nat.h.
1633 (x86_linux_dr_get): Now in x86-linux-nat.c.
1634 (x86_linux_dr_set): Likewise.
1635 (x86_linux_dr_get_addr): Likewise.
1636 (x86_linux_dr_get_control): Likewise.
1637 (x86_linux_dr_get_status): Likewise.
1638 (update_debug_registers_callback): Likewise.
1639 (x86_linux_dr_set_control): Likewise.
1640 (x86_linux_dr_set_addr): Likewise.
1641 (x86_linux_prepare_to_resume): Likewise.
1642 (x86_linux_new_thread): Likewise.
1643 (x86_linux_new_fork): Likewise.
1644 (x86_linux_get_thread_area): Likewise.
1645 (super_post_startup_inferior): Likewise.
1646 (x86_linux_child_post_startup_inferior): Likewise.
1647 (AMD64_LINUX_USER64_CS): Likewise.
1648 (AMD64_LINUX_X32_DS): Likewise.
1649 (x86_linux_read_description): Likewise.
1650 (x86_linux_enable_btrace): Likewise.
1651 (x86_linux_disable_btrace): Likewise.
1652 (x86_linux_teardown_btrace): Likewise.
1653 (x86_linux_read_btrace): Likewise.
1654 (x86_linux_create_target): Likewise.
1655 (x86_linux_add_target): Likewise.
1656 * i386-linux-nat.c (x86-linux-nat.h): New include.
1657 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1658 (PTRACE_SETREGSET): Likewise.
1659 (arch_lwp_info): Now in x86-linux-nat.c.
1660 (have_ptrace_getregset): Now in x86-linux-nat.h.
1661 (x86_linux_dr_get): Now in x86-linux-nat.c.
1662 (x86_linux_dr_set): Likewise.
1663 (x86_linux_dr_get_addr): Likewise.
1664 (x86_linux_dr_get_control): Likewise.
1665 (x86_linux_dr_get_status): Likewise.
1666 (update_debug_registers_callback): Likewise.
1667 (x86_linux_dr_set_control): Likewise.
1668 (x86_linux_dr_set_addr): Likewise.
1669 (x86_linux_prepare_to_resume): Likewise.
1670 (x86_linux_new_thread): Likewise.
1671 (x86_linux_new_fork): Likewise.
1672 (x86_linux_get_thread_area): Likewise.
1673 (super_post_startup_inferior): Likewise.
1674 (x86_linux_child_post_startup_inferior): Likewise.
1675 (AMD64_LINUX_USER64_CS): Likewise.
1676 (AMD64_LINUX_X32_DS): Likewise.
1677 (x86_linux_read_description): Likewise.
1678 (x86_linux_enable_btrace): Likewise.
1679 (x86_linux_disable_btrace): Likewise.
1680 (x86_linux_teardown_btrace): Likewise.
1681 (x86_linux_read_btrace): Likewise.
1682 (x86_linux_create_target): Likewise.
1683 (x86_linux_add_target): Likewise.
1684
1685 2014-07-11 Gary Benson <gbenson@redhat.com>
1686
1687 * amd64-linux-nat.c: Comment and whitespace changes.
1688 * i386-linux-nat.c: Comment and whitespace changes.
1689
1690 2014-07-11 Gary Benson <gbenson@redhat.com>
1691
1692 * amd64-linux-nat.c (x86_linux_create_target): New function.
1693 (x86_linux_add_target): Likewise.
1694 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1695 * i386-linux-nat.c (x86_linux_create_target): New function.
1696 (x86_linux_add_target): Likewise.
1697 (_initialize_i386_linux_nat): Delegate to the above new functions.
1698
1699 2014-07-11 Gary Benson <gbenson@redhat.com>
1700
1701 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1702 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1703 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1704 (ps_get_thread_area): Delegate to the above.
1705
1706 2014-07-11 Gary Benson <gbenson@redhat.com>
1707
1708 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1709 x86_linux_read_description. All uses updated. amd64-specific
1710 code conditionalized. Conditionalized i386-specific code added.
1711 Redundant cast removed.
1712 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1713 x86_linux_read_description. All uses updated. i386-specific
1714 code conditionalized. Conditionalized amd64-specific code added.
1715 One sizeof replaced with the actual type it is describing.
1716
1717 2014-07-11 Gary Benson <gbenson@redhat.com>
1718
1719 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1720 x86_linux_dr_get. All uses updated.
1721 (amd64_linux_dr_set): Renamed to
1722 x86_linux_dr_set. All uses updated.
1723 (amd64_linux_dr_get_addr): Renamed to
1724 x86_linux_dr_get_addr. All uses updated.
1725 (amd64_linux_dr_get_control): Renamed to
1726 x86_linux_dr_get_control. All uses updated.
1727 (amd64_linux_dr_get_status): Renamed to
1728 x86_linux_dr_get_status. All uses updated.
1729 (amd64_linux_dr_set_control): Renamed to
1730 x86_linux_dr_set_control. All uses updated.
1731 (amd64_linux_dr_set_addr): Renamed to
1732 x86_linux_dr_set_addr. All uses updated.
1733 (amd64_linux_prepare_to_resume): Renamed to
1734 x86_linux_prepare_to_resume. All uses updated.
1735 (amd64_linux_new_thread): Renamed to
1736 x86_linux_new_thread. All uses updated.
1737 (amd64_linux_new_fork): Renamed to
1738 x86_linux_new_fork. All uses updated.
1739 (amd64_linux_child_post_startup_inferior): Renamed to
1740 x86_linux_child_post_startup_inferior. All uses updated.
1741 (amd64_linux_enable_btrace): Renamed to
1742 x86_linux_enable_btrace. All uses updated.
1743 (amd64_linux_disable_btrace): Renamed to
1744 x86_linux_disable_btrace. All uses updated.
1745 (amd64_linux_teardown_btrace): Renamed to
1746 x86_linux_teardown_btrace. All uses updated.
1747 (amd64_linux_read_btrace): Renamed to
1748 x86_linux_read_btrace. All uses updated.
1749 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1750 x86_linux_dr_get. All uses updated.
1751 (i386_linux_dr_set): Renamed to
1752 x86_linux_dr_set. All uses updated.
1753 (i386_linux_dr_get_addr): Renamed to
1754 x86_linux_dr_get_addr. All uses updated.
1755 (i386_linux_dr_get_control): Renamed to
1756 x86_linux_dr_get_control. All uses updated.
1757 (i386_linux_dr_get_status): Renamed to
1758 x86_linux_dr_get_status. All uses updated.
1759 (i386_linux_dr_set_control): Renamed to
1760 x86_linux_dr_set_control. All uses updated.
1761 (i386_linux_dr_set_addr): Renamed to
1762 x86_linux_dr_set_addr. All uses updated.
1763 (i386_linux_prepare_to_resume): Renamed to
1764 x86_linux_prepare_to_resume. All uses updated.
1765 (i386_linux_new_thread): Renamed to
1766 x86_linux_new_thread. All uses updated.
1767 (i386_linux_new_fork): Renamed to
1768 x86_linux_new_fork. All uses updated.
1769 (i386_linux_child_post_startup_inferior): Renamed to
1770 x86_linux_child_post_startup_inferior. All uses updated.
1771 (i386_linux_enable_btrace): Renamed to
1772 x86_linux_enable_btrace. All uses updated.
1773 (i386_linux_disable_btrace): Renamed to
1774 x86_linux_disable_btrace. All uses updated.
1775 (i386_linux_teardown_btrace): Renamed to
1776 x86_linux_teardown_btrace. All uses updated.
1777 (i386_linux_read_btrace): Renamed to
1778 x86_linux_read_btrace. All uses updated.
1779
1780 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1781
1782 * remote.c (extended_remote_post_attach): New function.
1783 (init_extended_remote_ops): Install it as to_post_attach method.
1784
1785 2014-07-09 Pedro Alves <palves@redhat.com>
1786
1787 * infcmd.c (attach_command_post_wait): Don't call
1788 target_terminal_inferior here.
1789 (attach_command): Call it here instead.
1790
1791 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1794 field.
1795 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1796 from varobj.c, with additional checks.
1797 (c_varobj_ops): Fill in is_path_expr_parent field.
1798 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1799 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1800 field.
1801 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1802 ops method.
1803 (varobj_default_is_path_expr_parent): New function.
1804 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1805 (varobj_default_is_path_expr_parent): Declare new function.
1806
1807 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1808
1809 * infcmd.c (finish_backward): Turn internal error into normal error.
1810
1811 2014-07-07 Pedro Alves <palves@redhat.com>
1812
1813 PR gdb/17096
1814 * remote.c (async_handle_remote_sigint)
1815 (async_handle_remote_sigint_twice): Call
1816 gdb_call_async_signal_handler instead of
1817 mark_async_signal_handler.
1818
1819 2014-07-07 Tom Tromey <tromey@redhat.com>
1820
1821 * target-delegates.c: Rebuild.
1822 * target.c (target_info_record): Remove.
1823 * record.c (info_record_command): Unconditionally call
1824 to_info_record.
1825 * target.h (struct target_ops) <to_info_record>: Use
1826 TARGET_DEFAULT_IGNORE.
1827 (target_info_record): Remove.
1828
1829 2014-07-07 Tom Tromey <tromey@redhat.com>
1830
1831 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1832 TARGET_DEFAULT_NORETURN.
1833 * target.c (generic_tls_error): New function.
1834 (target_translate_tls_address): Don't search target stack.
1835 * target-delegates.c: Rebuild.
1836 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1837 stack.
1838 * linux-thread-db.c (thread_db_get_thread_local_address):
1839 Unconditionally call beneath target.
1840
1841 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1842
1843 * cli/cli-logging.c (pop_output_files): Assign targerr to
1844 gdb_stdtargerr.
1845
1846 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1847
1848 * MAINTAINERS (Write After Approval): Update my email address.
1849
1850 2014-07-02 Gary Benson <gbenson@redhat.com>
1851
1852 * proc-service.c (ps_xfer_memory): Update comment.
1853 (ps_pstop): Remove unused function.
1854 (ps_pcontinue): Likewise.
1855 (ps_lstop): Likewise.
1856 (ps_lcontinue): Likewise.
1857 (ps_lgetxregsize): Likewise.
1858 (ps_lgetxregs): Likewise.
1859 (ps_lsetxregs): Likewise.
1860 (ps_plog): Likewise.
1861 (ps_ptread): Likewise.
1862 (ps_ptwrite): Likewise.
1863
1864 2014-07-01 Mark Wielaard <mjw@redhat.com>
1865
1866 * dwarf2read.c (add_array_cv_type): New function.
1867 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1868 (read_tag_volatile_type): Likewise.
1869
1870 2014-07-01 Tom Tromey <tromey@redhat.com>
1871
1872 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1873 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1874 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1875 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1876 * command.h (cmd_cfunc_ftype): Move earlier.
1877 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1878 (add_com, add_info): Use cmd_cfunc_ftype.
1879
1880 2014-06-30 Tom Tromey <tromey@redhat.com>
1881
1882 * symtab.c (operator_chars): Make parameters and return type
1883 const.
1884 (file_matches): Make "files" const.
1885 (struct search_symbols_data) <files>: Now const.
1886 (search_symbols): Make "regexp" and "files" parameters const.
1887 Update.
1888 (symtab_symbol_info): Remove cast.
1889 (rbreak_command): Update.
1890 * symtab.h (search_symbols): Update.
1891
1892 2014-06-27 Yao Qi <yao@codesourcery.com>
1893
1894 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1895 Change parameter type to 'struct thread_info *'. Caller
1896 updated.
1897 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1898 Update declaration.
1899 * dummy-frame.c (struct dummy_frame_id): New.
1900 (dummy_frame_id_eq): New function.
1901 (struct dummy_frame) <id>: Change its type to 'struct
1902 dummy_frame_id'.
1903 (dummy_frame_push): Add parameter ptid and save it in
1904 dummy_frame_id.
1905 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1906 inferior_ptid.
1907 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1908 to inferior_ptid.
1909 (lookup_dummy_frame): Change parameter type to 'struct
1910 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1911 instead of frame_id_eq.
1912 (dummy_frame_pop): Add parameter ptid. Callers updated.
1913 Update comments. Compose dummy_frame_id and pass it to
1914 lookup_dummy_frame.
1915 (dummy_frame_discard): Add parameter ptid.
1916 (dummy_frame_sniffer): Compose dummy_frame_id and call
1917 dummy_frame_id_eq instead of frame_id_eq.
1918 (fprint_dummy_frames): Print ptid.
1919 * dummy-frame.h: Remove comments.
1920 (dummy_frame_push): Add ptid in declaration.
1921 (dummy_frame_pop, dummy_frame_discard): Likewise.
1922
1923 2014-06-26 Tom Tromey <tromey@redhat.com>
1924
1925 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1926 * command.h (error_no_arg): Update.
1927
1928 2014-06-26 Tom Tromey <tromey@redhat.com>
1929
1930 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1931 (do_show_command): Make "arg" const.
1932 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1933
1934 2014-06-26 Tom Tromey <tromey@redhat.com>
1935
1936 * record-full.c (record_full_get_bookmark): Make "args" const.
1937 (record_full_goto_bookmark): Make "raw_bookmark" const.
1938 * record.c (record_goto): New function.
1939 (cmd_record_goto): Use it. Now static.
1940 * record.h (record_goto): Declare.
1941 (cmd_record_goto): Remove declaration.
1942 * target-delegates.c: Rebuild.
1943 * target.h (struct target_ops) <to_get_bookmark,
1944 to_goto_bookmark>: Make parameter const.
1945
1946 2014-06-26 Tom Tromey <tromey@redhat.com>
1947
1948 * defs.h (generic_load): Update.
1949 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1950 * monitor.c (monitor_load): Make "args" const.
1951 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1952 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1953 const.
1954 (mips_load): Make "file" const.
1955 * remote-sim.c (gdbsim_load): Make "args" const.
1956 * remote.c (remote_load): Make "name" const.
1957 * symfile.c (generic_load): Make "args" const.
1958 * target-delegates.c: Rebuild.
1959 * target.c (target_load): Make "arg" const.
1960 (debug_to_load): Make "args" const.
1961 * target.h (struct target_ops) <to_load>: Make parameter const.
1962 (target_load): Update.
1963
1964 2014-06-26 Tom Tromey <tromey@redhat.com>
1965
1966 PR symtab/16902:
1967 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1968 (dwarf2_physname, read_partial_die)
1969 (guess_partial_die_structure_name, fixup_partial_die)
1970 (guess_full_die_structure_name, anonymous_struct_prefix)
1971 (dwarf2_name): Use per-BFD obstack.
1972
1973 2014-06-26 Yao Qi <yao@codesourcery.com>
1974
1975 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1976 dummyframe and this_id into inner block below.
1977
1978 2014-06-26 Yao Qi <yao@codesourcery.com>
1979
1980 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1981 with "signal_pass[0]" in the initialization of signal_pass.
1982
1983 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1984
1985 * record-btrace.c (record_btrace_generating_corefile)
1986 (record_btrace_prepare_to_generate_core)
1987 (record_btrace_done_generating_core): New.
1988 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1989 (record_btrace_store_registers, record_btrace_prepare_to_store):
1990 Forward request when generating a core file.
1991 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1992 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1993 to_done_generating_core.
1994
1995 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1996
1997 * target.h (target_ops) <to_prepare_to_generate_core>
1998 <to_done_generating_core>: New.
1999 (target_prepare_to_generate_core, target_done_generating_core): New.
2000 * target.c (target_prepare_to_generate_core)
2001 (target_done_generating_core): New.
2002 * target-delegates.c: Regenerate.
2003 * gcore.c: (write_gcore_file): Rename to ...
2004 (write_gcore_file_1): ...this.
2005 (write_gcore_file): Call target_prepare_to_generate_core
2006 and target_done_generating_core.
2007
2008 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2009
2010 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2011 * gcore.c (write_gcore_file): Free memory returned from
2012 make_corefile_notes.
2013 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2014 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2015
2016 2014-06-24 Yao Qi <yao@codesourcery.com>
2017
2018 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2019 (arm_linux_init_abi): Set skip_trampoline_code with
2020 gdbarch_skip_trampoline_code instead of
2021 find_solib_trampoline_target.
2022
2023 2014-06-24 Yao Qi <yao@codesourcery.com>
2024
2025 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2026 arm_skip_bx_reg returns non-zero.
2027
2028 2014-06-24 Yao Qi <yao@codesourcery.com>
2029
2030 * arm-tdep.c (arm_skip_bx_reg): New function.
2031 (arm_skip_stub): Call arm_skip_bx_reg.
2032
2033 2014-06-23 Don Breazeal <donb@codesourcery.com>
2034
2035 * MAINTAINERS: Add myself as write-after-approval maintainer.
2036
2037 2014-06-23 Pedro Alves <palves@redhat.com>
2038
2039 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2040 DR_CONTROL before setting DR0..DR3.
2041 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2042 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2043 bits of DR_CONTROL related to the debug register slot being
2044 disabled. If all slots are vacant, clear local slowdown as well,
2045 and assert DR_CONTROL is 0.
2046
2047 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2048
2049 * python/lib/gdb/command/xmethods.py
2050 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2051 current progspace only if the string "progspace" matches LOCUS_RE.
2052
2053 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2054
2055 Fix --with-system-readline with readline-6.3 patch 5.
2056 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2057 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2058 types.
2059
2060 2014-06-20 Tom Tromey <tromey@redhat.com>
2061
2062 * dwarf2read.c (dw2_get_real_path): Use correct type in
2063 OBSTACK_CALLOC.
2064 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2065
2066 2014-06-20 Gary Benson <gbenson@redhat.com>
2067
2068 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2069 * common/glibc_thread_db.h: Likewise.
2070 * common/i386-cpuid.h: Likewise.
2071 * common/i386-gcc-cpuid.h: Likewise.
2072 * common/linux-btrace.h: Likewise.
2073 * common/linux-osdata.h: Likewise.
2074 * common/linux-procfs.h: Likewise.
2075 * common/linux-ptrace.h: Likewise.
2076 * common/mips-linux-watch.h: Likewise.
2077 * common/linux-btrace.c: Moved to nat.
2078 * common/linux-osdata.c: Likewise.
2079 * common/linux-procfs.c: Likewise.
2080 * common/linux-ptrace.c: Likewise.
2081 * common/mips-linux-watch.c: Likewise.
2082 * nat/gdb_thread_db.h: Moved from common.
2083 * nat/glibc_thread_db.h: Likewise.
2084 * nat/i386-cpuid.h: Likewise.
2085 * nat/i386-gcc-cpuid.h: Likewise.
2086 * nat/linux-btrace.c: Likewise.
2087 * nat/linux-btrace.h: Likewise.
2088 * nat/linux-osdata.c: Likewise.
2089 * nat/linux-osdata.h: Likewise.
2090 * nat/linux-procfs.c: Likewise.
2091 * nat/linux-procfs.h: Likewise.
2092 * nat/linux-ptrace.c: Likewise.
2093 * nat/linux-ptrace.h: Likewise.
2094 * nat/mips-linux-watch.c: Likewise.
2095 * nat/mips-linux-watch.h: Likewise.
2096 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2097 (object file files): Reordered.
2098 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2099 of glibc_thread_db.h.
2100
2101 2014-06-20 Gary Benson <gbenson@redhat.com>
2102
2103 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2104 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2105 (i386_dr_low): Likewise.
2106 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2107 (i386_dr_low_set_addr): Likewise.
2108 (i386_dr_low_get_addr): Likewise.
2109 (i386_dr_low_can_set_control): Likewise.
2110 (i386_dr_low_set_control): Likewise.
2111 (i386_dr_low_get_control): Likewise.
2112 (i386_dr_low_get_status): Likewise.
2113 (i386_get_debug_register_length): Likewise.
2114 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2115 (i386_dr_low): Likewise.
2116 * nat/i386-dregs.c (i386-low.h): Remove include.
2117 (i386-nat.h): Likewise.
2118 (nat/i386-dregs.h): New include.
2119 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2120 (i386_dr_low_set_addr): Likewise.
2121 (i386_dr_low_get_addr): Likewise.
2122 (i386_dr_low_can_set_control): Likewise.
2123 (i386_dr_low_set_control): Likewise.
2124 (i386_dr_low_get_control): Likewise.
2125 (i386_dr_low_get_status): Likewise.
2126 (i386_get_debug_register_length): Likewise.
2127 (debug_hw_points): Likewise.
2128
2129 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2130
2131 * Makefile.in (SFILES): Add d-exp.y.
2132 (YYFILES): Add d-exp.c.
2133 (YYOBJ): Add d-exp.o.
2134 (local-maintainer-clean): Delete d-exp.c.
2135 * d-exp.y: New file.
2136 * d-lang.h (d_parse): New declaration.
2137 (d_error): New declaration.
2138 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2139 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2140 PREC_ORDER operators.
2141 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2142
2143 2014-06-19 Yao Qi <yao@codesourcery.com>
2144
2145 * gdbthread.h (any_running): Remove the declaration.
2146 * thread.c (any_running): Remove.
2147
2148 2014-06-19 Yao Qi <yao@codesourcery.com>
2149
2150 * gdbthread.h (struct thread_info) <state>: Change its type to
2151 'enum thread_state'. Update comments.
2152
2153 2014-06-19 Pedro Alves <palves@redhat.com>
2154
2155 * gdbthread.h (ALL_THREADS): Delete.
2156 (ALL_NON_EXITED_THREADS): New macro.
2157 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2158 instead of ALL_THREADS.
2159 * infrun.c (find_thread_needs_step_over)
2160 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2161 instead of ALL_THREADS.
2162 * record-btrace.c (record_btrace_open)
2163 (record_btrace_stop_recording, record_btrace_close)
2164 (record_btrace_is_replaying, record_btrace_resume)
2165 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2166 * remote.c (append_pending_thread_resumptions): Likewise.
2167 * thread.c (thread_apply_all_command): Likewise.
2168
2169 2014-06-19 Gary Benson <gbenson@redhat.com>
2170
2171 * i386-nat.c (i386_stopped_by_watchpoint):
2172 Use i386_dr_stopped_by_watchpoint.
2173 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2174 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2175
2176 2014-06-19 Gary Benson <gbenson@redhat.com>
2177
2178 * nat/i386-dregs.c: New file.
2179 * Makefile.in (i386-dregs.o): New rule.
2180 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2181 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2182 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2183 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2184 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2185 * config/i386/go32.mh (NATDEPFILES): Likewise.
2186 * config/i386/linux.mh (NATDEPFILES): Likewise.
2187 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2188 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2189 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2190 * i386-nat.h (debug_hw_points): New declaration.
2191 * i386-nat.c (breakpoint.h): Remove include.
2192 (command.h): Likewise.
2193 (target.h): Likewise.
2194 (gdb_assert.h): Likewise.
2195 (debug_hw_points): Made nonstatic.
2196 (debug_printf): Now in i386-dregs.c.
2197 (TARGET_HAS_DR_LEN_8): Likewise.
2198 (DR_CONTROL_SHIFT): Likewise.
2199 (DR_CONTROL_SIZE): Likewise.
2200 (DR_RW_EXECUTE): Likewise.
2201 (DR_RW_WRITE): Likewise.
2202 (DR_RW_READ): Likewise.
2203 (DR_RW_IORW): Likewise.
2204 (DR_LEN_1): Likewise.
2205 (DR_LEN_2): Likewise.
2206 (DR_LEN_4): Likewise.
2207 (DR_LEN_8): Likewise.
2208 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2209 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2210 (DR_ENABLE_SIZE): Likewise.
2211 (DR_LOCAL_SLOWDOWN): Likewise.
2212 (DR_GLOBAL_SLOWDOWN): Likewise.
2213 (DR_CONTROL_RESERVED): Likewise.
2214 (I386_DR_CONTROL_MASK): Likewise.
2215 (I386_DR_VACANT): Likewise.
2216 (I386_DR_LOCAL_ENABLE): Likewise.
2217 (I386_DR_GLOBAL_ENABLE): Likewise.
2218 (I386_DR_DISABLE): Likewise.
2219 (I386_DR_SET_RW_LEN): Likewise.
2220 (I386_DR_GET_RW_LEN): Likewise.
2221 (I386_DR_WATCH_HIT): Likewise.
2222 (i386_wp_op_t): Likewise.
2223 (i386_show_dr): Likewise.
2224 (i386_length_and_rw_bits): Likewise.
2225 (i386_insert_aligned_watchpoint): Likewise.
2226 (i386_remove_aligned_watchpoint): Likewise.
2227 (i386_handle_nonaligned_watchpoint): Likewise.
2228 (i386_update_inferior_debug_regs): Likewise.
2229 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2230 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2231 (i386_region_ok_for_watchpoint):
2232 Use i386_dr_region_ok_for_watchpoint.
2233 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2234
2235 2014-06-19 Gary Benson <gbenson@redhat.com>
2236
2237 * i386-nat.c (i386_insert_hw_breakpoint): Use
2238 i386_insert_watchpoint.
2239 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2240
2241 2014-06-19 Gary Benson <gbenson@redhat.com>
2242
2243 * i386-nat.c (i386_dr_show): Renamed to
2244 i386_show_dr and made static. All uses updated.
2245 (i386_dr_length_and_rw_bits): Renamed to
2246 i386_length_and_rw_bits and made static.
2247 All uses updated.
2248 (i386_dr_insert_aligned_watchpoint): Renamed to
2249 i386_insert_aligned_watchpoint and made static.
2250 All uses updated.
2251 (i386_dr_remove_aligned_watchpoint): Renamed to
2252 i386_remove_aligned_watchpoint and made static.
2253 All uses updated.
2254 (i386_dr_update_inferior_debug_regs): Renamed to
2255 i386_update_inferior_debug_regs and made static.
2256 All uses updated.
2257 * nat/i386-dregs.h (i386_dr_show): Removed.
2258 (i386_dr_length_and_rw_bits): Likewise.
2259 (i386_dr_insert_aligned_watchpoint): Likewise.
2260 (i386_dr_remove_aligned_watchpoint): Likewise.
2261 (i386_dr_update_inferior_debug_regs): Likewise.
2262
2263 2014-06-19 Gary Benson <gbenson@redhat.com>
2264
2265 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2266 * configure: Regenerate.
2267 * config.in: Likewise.
2268 * main.c (signal.h): New include.
2269 (setup_alternate_signal_stack): New function.
2270 (captured_main): Call the above.
2271 * cp-support.c (signal.h): New include.
2272 (catch_demangler_crashes): New flag.
2273 (SIGJMP_BUF): New define.
2274 (SIGSETJMP): Likewise.
2275 (SIGLONGJMP): Likewise.
2276 (gdb_demangle_jmp_buf): New static global.
2277 (gdb_demangle_attempt_core_dump): Likewise.
2278 (gdb_demangle_signal_handler): New function.
2279 (gdb_demangle): If catch_demangler_crashes is set, install the
2280 above signal handler before calling bfd_demangle, and restore
2281 the original signal handler afterwards. Display the offending
2282 symbol and call demangler_warning the first time a segmentation
2283 fault is caught.
2284 (_initialize_cp_support): New maint set/show command.
2285
2286 2014-06-19 Gary Benson <gbenson@redhat.com>
2287
2288 * utils.h (resource_limit_kind): New enum.
2289 (can_dump_core): New declaration.
2290 (warn_cant_dump_core): Likewise.
2291 (dump_core): Likewise.
2292 * utils.c (dump_core): Made nonstatic. Added new
2293 parameter "limit_kind".
2294 (can_dump_core): Made nonstatic. Moved printing code to...
2295 (warn_cant_dump_core): New function.
2296 (can_dump_core_warn): Likewise.
2297 (internal_vproblem): Replace calls to can_dump_core with
2298 calls to can_dump_core_warn. Supply new argument to each.
2299
2300 2014-06-19 Gary Benson <gbenson@redhat.com>
2301
2302 * utils.h (demangler_vwarning): New declaration.
2303 (demangler_warning): Likewise.
2304 * utils.c (struct internal_problem)
2305 <user_settable_should_quit>: New field.
2306 <user_settable_should_dump_core>: Likewise
2307 (internal_error_problem): Add values for above new fields.
2308 (internal_warning_problem): Likewise.
2309 (demangler_warning_problem): New static global.
2310 (demangler_vwarning): New function.
2311 (demangler_warning): Likewise.
2312 (add_internal_problem_command): Selectively add commands.
2313 (_initialize_utils): New internal problem command.
2314 * maint.c (maintenance_demangler_warning): New function.
2315 (_initialize_maint_cmds): New command.
2316
2317 2014-06-18 Tom Tromey <tromey@redhat.com>
2318
2319 * f-valprint.c (info_common_command_for_block): Update.
2320 * symtab.h (struct general_symbol_info) <common_block>: Now
2321 const.
2322
2323 2014-06-18 Tom Tromey <tromey@redhat.com>
2324
2325 * symtab.h (struct symtab) <blockvector>: Now const.
2326 * ada-lang.c (ada_add_global_exceptions): Update.
2327 * buildsym.c (augment_type_symtab): Update.
2328 * dwarf2read.c (dw2_lookup_symbol): Update.
2329 * jit.c (finalize_symtab): Update.
2330 * jv-lang.c (add_class_symtab_symbol): Update.
2331 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2332 Update.
2333 * objfiles.c (objfile_relocate1): Update.
2334 * psymtab.c (lookup_symbol_aux_psymtabs)
2335 (maintenance_check_psymtabs): Update.
2336 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2337 Update.
2338 * spu-tdep.c (spu_catch_start): Update.
2339 * symmisc.c (dump_symtab_1): Update.
2340 * symtab.c (lookup_global_symbol_from_objfile)
2341 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2342 (basic_lookup_transparent_type_quick)
2343 (basic_lookup_transparent_type, find_pc_sect_symtab)
2344 (find_pc_sect_line, search_symbols): Update.
2345 * block.c (find_block_in_blockvector): Make "bl" const.
2346 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2347 const.
2348 (blockvector_contains_pc): Make "bv" const.
2349 (block_for_pc_sect): Update.
2350 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2351 (blockvector_contains_pc): Update.
2352 * breakpoint.c (resolve_sal_pc): Update.
2353 * inline-frame.c (block_starting_point_at): Update.
2354
2355 2014-06-18 Tom Tromey <tromey@redhat.com>
2356
2357 * completer.c (complete_line): Make "line_buffer" const.
2358 * completer.h (complete_line): Update.
2359
2360 2014-06-18 Tom Tromey <tromey@redhat.com>
2361
2362 * symtab.c (add_macro_name): Remove unneeded cast.
2363
2364 2014-06-18 Tom Tromey <tromey@redhat.com>
2365
2366 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2367 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2368
2369 2014-06-18 Tom Tromey <tromey@redhat.com>
2370
2371 * probe.c (info_probes_for_ops): Make "arg" const.
2372 * probe.h (info_probes_for_ops): Update.
2373
2374 2014-06-18 Tom Tromey <tromey@redhat.com>
2375
2376 * varobj.c (varobj_create): Update.
2377 * valops.c (value_of_this): Update.
2378 * tracepoint.c (add_local_symbols, scope_info): Update.
2379 * symtab.h (struct general_symbol_info) <block>: Now const.
2380 * symtab.c (skip_prologue_sal)
2381 (default_make_symbol_completion_list_break_on)
2382 (skip_prologue_using_sal): Update.
2383 * stack.h (iterate_over_block_locals)
2384 (iterate_over_block_local_vars): Update.
2385 * stack.c (print_frame_args): Update.
2386 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2387 parameter const.
2388 (get_selected_block): Make return type const.
2389 * python/py-frame.c (frapy_block): Update.
2390 * python/py-block.c (gdbpy_block_for_pc): Update.
2391 * p-exp.y (%union) <bval>: Now const.
2392 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2393 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2394 * m2-exp.y (%union) <bval>: Now const.
2395 * linespec.c (get_current_search_block): Make return type const.
2396 (create_sals_line_offset, find_label_symbols): Update.
2397 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2398 Update.
2399 (block_starting_point_at): Make "block" const.
2400 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2401 (check_exception_resume): Update.
2402 * guile/scm-frame.c (gdbscm_frame_block): Update.
2403 * guile/scm-block.c (gdbscm_lookup_block): Update.
2404 * frame.h (get_frame_block): Update.
2405 (get_selected_block): Make return type const.
2406 * frame.c (frame_id_inner): Update.
2407 * f-valprint.c (info_common_command_for_block)
2408 (info_common_command): Update.
2409 * dwarf2loc.c (dwarf2_find_location_expression)
2410 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2411 (locexpr_describe_location_piece): Update.
2412 * c-exp.y (%union) <bval>: Now const.
2413 * breakpoint.c (resolve_sal_pc): Update.
2414 * blockframe.c (get_frame_block):Make return type const.
2415 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2416 (block_innermost_frame): Update.
2417 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2418 (block_for_pc, block_for_pc_sect): Update.
2419 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2420 'pblock' const.
2421 (block_for_pc_sect, block_for_pc): Make return type const.
2422 * ax-gdb.c (gen_expr): Update.
2423 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2424 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2425 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2426 (ada_read_var_value): Update.
2427 * ada-exp.y (struct name_info) <block>: Now const.
2428 (%union): Likewise.
2429 (block_lookup): Constify.
2430
2431 2014-06-18 Gary Benson <gbenson@redhat.com>
2432
2433 * nat/i386-dregs.h: New file.
2434 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2435 * i386-nat.h (i386-dregs.h): New include.
2436 (DR_FIRSTADDR): Now in i386-dregs.h.
2437 (DR_LASTADDR): Likewise.
2438 (DR_NADDR): Likewise.
2439 (DR_STATUS): Likewise.
2440 (DR_CONTROL): Likewise.
2441 (i386_debug_reg_state): Likewise.
2442 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2443
2444 2014-06-18 Don Breazeal <donb@codesourcery.com>
2445
2446 * breakpoint.c (set_longjmp_breakpoint): Call
2447 momentary_breakpoint_from_master with additional argument.
2448 (set_longjmp_breakpoint_for_call_dummy): Call
2449 momentary_breakpoint_from_master with additional argument.
2450 (set_std_terminate_breakpoint): Call
2451 momentary_breakpoint_from_master with additional argument.
2452 (momentary_breakpoint_from_master): Add argument to function
2453 definition and use it to initialize structure member flag.
2454 (clone_momentary_breakpoint): Call
2455 momentary_breakpoint_from_master with additional argument.
2456 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2457 member flags set in momentary_breakpoint_from_master.
2458
2459 2014-06-18 Gary Benson <gbenson@redhat.com>
2460
2461 * i386-nat.c (i386_show_dr): Renamed to
2462 i386_dr_show and made nonstatic. All uses updated.
2463 (i386_length_and_rw_bits): Renamed to
2464 i386_dr_length_and_rw_bits and made nonstatic.
2465 All uses updated.
2466 (i386_insert_aligned_watchpoint): Renamed to
2467 i386_dr_insert_aligned_watchpoint and made nonstatic.
2468 All uses updated.
2469 (i386_remove_aligned_watchpoint): Renamed to
2470 i386_dr_remove_aligned_watchpoint and made nonstatic.
2471 All uses updated.
2472 (i386_update_inferior_debug_regs): Renamed to
2473 i386_dr_update_inferior_debug_regs and made nonstatic.
2474 All uses updated.
2475
2476 2014-06-18 Gary Benson <gbenson@redhat.com>
2477
2478 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2479 (i386_dr_low_can_set_control): Likewise.
2480 (i386_dr_low_set_addr): Likewise.
2481 (i386_dr_low_set_control): Likewise.
2482 (i386_dr_low_get_addr): Likewise.
2483 (i386_dr_low_get_status): Likewise.
2484 (i386_dr_low_get_control): Likewise.
2485 (i386_insert_aligned_watchpoint): Use new macros.
2486 (i386_update_inferior_debug_regs): Likewise.
2487 (i386_stopped_data_address): Likewise.
2488
2489 2014-06-18 Gary Benson <gbenson@redhat.com>
2490
2491 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2492 New parameter. All uses updated.
2493
2494 2014-06-18 Gary Benson <gbenson@redhat.com>
2495
2496 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2497 All uses updated.
2498
2499 2014-06-18 Gary Benson <gbenson@redhat.com>
2500
2501 * i386-nat.c (debug_printf): New macro.
2502 (i386_get_debug_register_length): Likewise.
2503 (TARGET_HAS_DR_LEN_8): Use above macro.
2504 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2505 and printf_unfiltered. Use phex to format values.
2506
2507 2014-06-18 Gary Benson <gbenson@redhat.com>
2508
2509 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2510 Make const.
2511
2512 2014-06-18 Gary Benson <gbenson@redhat.com>
2513
2514 * i386-nat.c: Comment changes.
2515
2516 2014-06-18 Gary Benson <gbenson@redhat.com>
2517
2518 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2519
2520 2014-06-18 Gary Benson <gbenson@redhat.com>
2521
2522 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2523 (i386_insert_aligned_watchpoint): Likewise.
2524 (i386_remove_aligned_watchpoint): Likewise.
2525 (i386_handle_nonaligned_watchpoint): Likewise.
2526
2527 2014-06-18 Gary Benson <gbenson@redhat.com>
2528
2529 * i386-nat.c: Whitespace changes.
2530
2531 2014-06-17 Samuel Bronson <naesten@gmail.com>
2532
2533 * MAINTAINERS: Update Roland McGrath's email address.
2534 Thanks to Sergio Durigan Junior for pointing out that he left
2535 Red Hat a while ago, and giving me a current address.
2536
2537 2014-06-17 Tom Tromey <tromey@redhat.com>
2538
2539 * utils.h (savestring): Remove declaration.
2540
2541 2014-06-17 Tom Tromey <tromey@redhat.com>
2542
2543 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2544
2545 2014-06-16 Keith Seitz <keiths@redhat.com>
2546
2547 PR mi/15863
2548 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2549 to update the varobj if inferior_ptid is null_ptid.
2550
2551 2014-06-16 Tom Tromey <tromey@redhat.com>
2552
2553 * target.h (struct target_ops) <to_info_proc>: Make parameter
2554 const.
2555 (target_info_proc): Update.
2556 * target.c (target_info_proc): Make "args" const.
2557 * procfs.c (procfs_info_proc): Update.
2558 * linux-tdep.c (linux_info_proc): Update.
2559 (linux_core_info_proc_mappings): Make "args" const.
2560 (linux_core_info_proc): Update.
2561 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2562 * gdbarch.c: Rebuild.
2563 * gdbarch.h: Rebuild.
2564 * corelow.c (core_info_proc): Update.
2565
2566 2014-06-16 Tom Tromey <tromey@redhat.com>
2567
2568 * target.h (struct target_ops) <to_disconnect>: Make parameter
2569 const.
2570 (target_disconnect): Update.
2571 * target.c (target_disconnect): Make "args" const.
2572 * target-delegates.c: Rebuild.
2573 * remote.c (remote_disconnect): Update.
2574 * record.h (record_disconnect): Update.
2575 * record.c (record_disconnect): Update.
2576 * inf-child.c (inf_child_disconnect): Update.
2577
2578 2014-06-16 Tom Tromey <tromey@redhat.com>
2579
2580 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2581 * target.c (debug_to_rcmd, default_rcmd): Update.
2582 * target-delegates.c: Rebuild.
2583 * remote.c (remote_rcmd): Update.
2584 * monitor.c (monitor_rcmd): Update.
2585
2586 2014-06-16 Pedro Alves <palves@redhat.com>
2587
2588 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2589 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2590 have OBJF_SHARED set.
2591 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2592 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2593 instead of OBJF_USERLOADED.
2594 * objfiles.h (OBJF_SHARED): Update comment.
2595 (userloaded_objfile_contains_address_p): Rename to ...
2596 (shared_objfile_contains_address_p): ... this, and update
2597 comments.
2598 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2599 new objfile.
2600 (remove_symbol_file_command): Skip objfiles that don't have
2601 OBJF_SHARED set.
2602
2603 2014-06-16 Tom Tromey <tromey@redhat.com>
2604
2605 * minsyms.h (prim_record_minimal_symbol)
2606 (prim_record_minimal_symbol_and_info): Update comments.
2607
2608 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2609
2610 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2611 or --without-guile, according to how GDB was built.
2612
2613 2014-06-13 Tom Tromey <tromey@redhat.com>
2614
2615 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2616 to help_list.
2617 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2618 to help_list.
2619 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2620 help_list.
2621 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2622 help_list.Pass all_commands, not -1, to help_list.
2623 * cli/cli-dump.c (dump_command, append_command)
2624 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2625 (binary_dump_command, binary_append_command): Pass all_commands,
2626 not -1, to help_list.
2627 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2628 -1, to help_list.
2629 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2630 -1, to help_list.
2631 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2632 help_list.
2633 * top.c (set_history): Pass all_commands, not -1, to help_list.
2634 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2635 all_commands, not -1, to help_list.
2636 * symfile.c (overlay_command): Pass all_commands, not -1, to
2637 help_list.
2638 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2639 help_list.
2640 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2641 help_list.
2642 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2643 -1, to help_list.
2644 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2645 not -1, to help_list.
2646 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2647 not -1, to help_list.
2648 * maint.c (maintenance_command, maintenance_info_command)
2649 (maintenance_print_command, maintenance_set_cmd): Pass
2650 all_commands, not -1, to help_list.
2651 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2652 help_list.
2653 * language.c (set_check): Pass all_commands, not -1, to help_list.
2654 * infcmd.c (unset_command): Pass all_commands, not -1, to
2655 help_list.
2656 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2657 help_list.
2658 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2659 help_list.
2660 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2661 help_list.
2662 * breakpoint.c (save_command): Pass all_commands, not -1, to
2663 help_list.
2664 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2665 all_commands, not -1, to help_list.
2666
2667 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2668
2669 * regcache.c (struct register_to_invalidate): New structure.
2670 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2671 functions.
2672 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2673
2674 2014-06-12 Yao Qi <yao@codesourcery.com>
2675
2676 * varobj.c (varobj_get_num_children): Call
2677 varobj_is_dynamic_p.
2678 (varobj_list_children): Likewise.
2679 (varobj_update): Likewise. Update comments.
2680
2681 2014-06-12 Yao Qi <yao@codesourcery.com>
2682
2683 * varobj.c (varobj_pretty_printed_p): Rename to ...
2684 (varobj_is_dynamic_p): ... this. New function.
2685 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2686 (varobj_is_dynamic_p): Declare.
2687 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2688 (mi_print_value_p, varobj_update_one): Likewise.
2689
2690 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2691 Yao Qi <yao@codesourcery.com>
2692
2693 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2694 (varobj_get_iterator): Wrap up code for pretty-printer by
2695 "#if HAVE_PYTHON" and "#endif".
2696 (update_dynamic_varobj_children): Likewise.
2697
2698 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2699 Yao Qi <yao@codesourcery.com>
2700
2701 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2702 gdb_python_initialized is false. Move some code from varobj.c.
2703 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2704 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2705 (struct varobj_item): Moved to varobj-iter.h".
2706 (varobj_clear_saved_item): New function.
2707 (update_dynamic_varobj_children): Move python-related code to
2708 py-varobj.c.
2709 (free_variable): Call varobj_clear_saved_item and
2710 varobj_iter_delete.
2711
2712 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2713 Yao Qi <yao@codesourcery.com>
2714
2715 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2716 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2717 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2718 (py-varobj.o): New rule.
2719 * python/py-varobj.c: New file.
2720 * python/python-internal.h (py_varobj_get_iterator): Declare.
2721 * varobj-iter.h: New file.
2722 * varobj.c: Include "varobj-iter.h"
2723 (struct varobj) <child_iter>: Change its type from "PyObject *"
2724 to "struct varobj_iter *".
2725 <saved_item>: Likewise.
2726 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2727 [HAVE_PYTHON] (varobj_get_iterator): New function.
2728 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2729 python-specific code to python/py-varobj.c.
2730 (install_visualizer): Call varobj_iter_delete instead of
2731 Py_XDECREF.
2732 * varobj.h (varobj_ensure_python_env): Declare.
2733
2734 2014-06-12 Yao Qi <yao@codesourcery.com>
2735
2736 * varobj.c (struct varobj_item): New structure.
2737 (create_child_with_value): Update declaration.
2738 (varobj_add_child): Replace arguments 'name' and 'value' with
2739 'item'. All callers updated.
2740 (install_dynamic_child): Likewise.
2741 (update_dynamic_varobj_children): Likewise.
2742 (varobj_add_child): Likewise.
2743 (create_child_with_value): Likewise.
2744
2745 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2746
2747 * NEWS: Create a new section for the next release branch.
2748 Rename the section of the current branch, now that it has
2749 been cut.
2750
2751 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2752
2753 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2754 * version.in: Bump version to 7.8.50.DATE-cvs.
2755
2756 2014-06-11 Pedro Alves <palves@redhat.com>
2757
2758 PR remote/17028
2759 * ser-mingw.c (net_windows_socket_check_pending): New function.
2760 (net_windows_select_thread): Ignore spurious wakeups. Use
2761 net_windows_socket_check_pending.
2762 (net_windows_wait_handle): Check for pending events with
2763 ioctlsocket, through net_windows_socket_check_pending, instead of
2764 checking the socket's event.
2765
2766 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2767
2768 * python/python-internal.h (gdb_PyObject_GetAttrString)
2769 (gdb_PyObject_HasAttrString): New inline function definitions.
2770 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2771 char * of the second argument to PyObject_GetAttrString.
2772
2773 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2774
2775 * serial.c (serial_write): Fix index of character to be printed
2776 in call to serial_logchar when serial debug traces are enabled.
2777
2778 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2779
2780 * gdbtypes (resolve_dynamic_range): Add function description.
2781
2782 2014-06-09 Pedro Alves <palves@redhat.com>
2783
2784 * linux-nat.c (linux_child_follow_fork): Initialize status with
2785 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2786 inner block. Only pass the signal to PTRACE_DETACH if in pass
2787 state.
2788
2789 2014-06-09 Gary Benson <gbenson@redhat.com>
2790
2791 * common/signals.c (gdb_signal_from_host): Reorder to separate
2792 the always-available ANSI-standard signals from the signals that
2793 require checking.
2794 (do_gdb_signal_to_host): Likewise.
2795 * proc-events.c (signal_table): Likewise.
2796
2797 2014-06-08 Hui Zhu <hui@codesourcery.com>
2798
2799 * common/linux-ptrace.c (linux_disable_event_reporting): New
2800 function.
2801 * common/linux-ptrace.h (linux_disable_event_reporting): New
2802 declaration.
2803 * linux-nat.c (linux_child_follow_fork): Do a single step before
2804 detach.
2805
2806 2014-06-07 Keith Seitz <keiths@redhat.com>
2807
2808 Revert:
2809 PR c++/16253
2810 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2811 from symbol_matches_domain in symtab.c. All local callers
2812 of symbol_matches_domain updated.
2813 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2814 search STRUCT_DOMAIN.
2815 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2816 independently. standard_lookup will do that automatically.
2817 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2818 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2819 (cp_lookup_symbol_in_namespace): Likewise.
2820 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2821 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2822 may return a STRUCT_DOMAIN match.
2823 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2824 * cp-support.c: Include language.h.
2825 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2826 VAR_DOMAIN.
2827 * psymtab.c (match_partial_symbol): Compare the requested
2828 domain with the symbol's domain directly.
2829 (lookup_partial_symbol): Likewise.
2830 * symtab.c (lookup_symbol_in_language): Explain when/why
2831 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2832 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2833 appropriate languages.
2834 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2835 and moved to ada-lang.c
2836 (lookup_block_symbol): Explain that this function only returns
2837 symbol matching the requested DOMAIN.
2838 Compare the requested domain with the symbol's domain directly.
2839 (iterate_over_symbols): Compare the requested domain with the
2840 symbol's domain directly.
2841 * symtab.h (symbol_matches_domain): Remove.
2842
2843 2014-06-06 Doug Evans <xdje42@gmail.com>
2844
2845 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2846 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2847 (gdbscm_guile_version_is_at_least): Declare.
2848 (gdbscm_scm_string_to_int): Declare.
2849 * guile/guile.c (gdbscm_guile_major_version): New global.
2850 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2851 (guile_datadir): New static global.
2852 (gdbscm_guile_data_directory): New function.
2853 (initialize_scheme_side): Update.
2854 (misc_guile_functions): Add guile-data-directory.
2855 (initialize_gdb_module): Fetch guile version number.
2856 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2857 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2858 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2859 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2860 comments.
2861 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2862 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2863 * guile/scm-value.c (gdbscm_value_to_string): Only call
2864 scm_port_conversion_strategy if Guile version >= 2.0.6.
2865
2866 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2867
2868 * main.c (print_gdb_help): Add -q and --silent.
2869
2870 2014-06-06 Gary Benson <gbenson@redhat.com>
2871
2872 * common/signals.c: Remove preprocessor conditionals for
2873 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2874 SIGSEGV and SIGTERM.
2875 * proc-events.c: Likewise.
2876
2877 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2878
2879 * symfile.c (symfile_free_objfile): Remove restriction to
2880 OBJF_USERLOADED.
2881 * symfile-mem.c (symbol_file_add_from_memory): Call
2882 add_target_sections_of_objfile.
2883
2884 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2885
2886 * guile/scm-value.c (gdbscm_history_append_x): Use
2887 'vlscm_get_value_smob_arg_unsafe' instead of
2888 'vlscm_scm_to_value'.
2889
2890 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2891
2892 PR mi/15806
2893 * utils.c (printchar): Don't escape at all if quoter is NUL.
2894 Update function documentation to clarify effect of parameter
2895 QUOTER.
2896 * remote.c (escape_buffer): Pass '\\' as the quoter to
2897 fputstrn_unfiltered.
2898 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2899 generate the output.
2900 (mi_solib_unloaded): Same.
2901
2902 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2903
2904 * development.sh: Delete.
2905 * Makefile.in (config.status): Adjust dependency on development.sh.
2906 * configure.ac: Adjust development.sh source call.
2907 * configure: Regenerate.
2908
2909 2014-06-04 Doug Evans <xdje42@gmail.com>
2910
2911 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2912 is_scheme_bkpt, spec.
2913 (bpscm_make_breakpoint_smob): Initialize new members.
2914 (gdbscm_create_breakpoint_x): Split into two ...
2915 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2916 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2917 (scheme_function breakpoint_functions): Update.
2918 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2919 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2920 register-breakpoint!.
2921
2922 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2923
2924 PR server/17023
2925 * mem-break.c (z_type_supported): Return zero if
2926 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2927
2928 2014-06-04 Tom Tromey <tromey@redhat.com>
2929
2930 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2931 value_from_contents_and_address_unresolved.
2932 (ada_template_to_fixed_record_type_1): Likewise.
2933 (ada_which_variant_applies): Likewise.
2934 * value.h (value_from_contents_and_address_unresolved): Declare.
2935 * value.c (value_from_contents_and_address_unresolved): New
2936 function.
2937 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2938 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2939 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2940
2941 2014-06-04 Tom Tromey <tromey@redhat.com>
2942
2943 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2944
2945 2014-06-04 Tom Tromey <tromey@redhat.com>
2946
2947 * procfs.c (procfs_attach): Make "args" const.
2948 * windows-nat.c (windows_attach): Make "args" const.
2949 * nto-procfs.c (procfs_attach): Make "args" const.
2950 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2951 * go32-nat.c (go32_attach): Make "args" const.
2952 * gnu-nat.c (gnu_attach): Make "args" const.
2953 * darwin-nat.c (darwin_attach): Make "args" const.
2954 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2955 * linux-nat.c (linux_nat_attach): Make "args" const.
2956 * remote.c (extended_remote_attach_1, extended_remote_attach):
2957 Make "args" const.
2958 * target.h (struct target_ops) <to_attach>: Make "args" const.
2959 (find_default_attach): Likewise.
2960 * utils.c (parse_pid_to_attach): Make "args" const.
2961 * utils.h (parse_pid_to_attach): Update.
2962
2963 2014-06-04 Tom Tromey <tromey@redhat.com>
2964
2965 * target-delegates.c: Rebuild.
2966 * target.c (default_thread_address_space): New function.
2967 (target_thread_address_space): Simplify.
2968 * target.h (struct target_ops) <to_thread_address_space>: Add
2969 TARGET_DEFAULT_FUNC.
2970
2971 2014-06-04 Doug Evans <xdje42@gmail.com>
2972
2973 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2974
2975 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2976
2977 * record-btrace.c: Include event-loop.h and inf-loop.h.
2978 (record_btrace_resume_exec_dir)
2979 (record_btrace_async_inferior_event_handler)
2980 (record_btrace_handle_async_inferior_event): New.
2981 (record_btrace_open): Create async event handler.
2982 (record_btrace_close): Delete async event handler.
2983 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2984 Mark async event handler.
2985 (record_btrace_execution_direction): New.
2986 (init_record_btrace_ops): Initialize to_execution_direction.
2987
2988 2014-06-03 Doug Evans <xdje42@gmail.com>
2989
2990 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2991 (gdbscm_make_parameter): Ditto.
2992
2993 2014-06-03 Doug Evans <dje@google.com>
2994
2995 * exec.c (exec_close_1): Call clear_section_table instead of
2996 resize_section_table.
2997 (clear_section_table): New function.
2998 (resize_section_table): Make static. Rename arg num_added to
2999 adjustment.
3000 * exec.h (clear_section_table): Declare.
3001 (resize_section_table): Delete.
3002 * progspace.c (release_program_space): Call clear_section_table
3003 instead of resize_section_table.
3004
3005 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3006
3007 * NEWS (Python Scripting): Add entry about the new xmethods
3008 feature.
3009
3010 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3011
3012 * python/py-xmethods.c: New file.
3013 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3014 (objfpy_dealloc): XDECREF on the new xmethods field.
3015 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3016 field.
3017 (objfpy_get_xmethods): New function.
3018 (objfile_getset): New entry 'xmethods'.
3019 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3020 (pspy_dealloc): XDECREF on the new xmethods field.
3021 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3022 field.
3023 (pspy_get_xmethods): New function.
3024 (pspace_getset): New entry 'xmethods'.
3025 * python/python-internal.h: Add declarations for new functions.
3026 * python/python.c (_initialize_python): Invoke
3027 gdbpy_initialize_xmethods.
3028 * python/lib/gdb/__init__.py (xmethods): New
3029 attribute.
3030 * python/lib/gdb/xmethod.py: New file.
3031 * python/lib/gdb/command/xmethods.py: New file.
3032
3033 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3034
3035 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3036 best match method returned by find_overload_match is an xmethod.
3037 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3038 the best matching operator returned by find_overload_match is an
3039 xmethod.
3040 * valops.c: #include "extension.h".
3041 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3042 Return void. The list of matching source methods is returned in
3043 "fn_list" and a vector of matching debug method workers is
3044 returned in "xm_worker_vec". Update all callers.
3045 (value_find_oload_method_list): Likewise.
3046 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3047 non-NULL, then the index of the best matching method in this
3048 vector is returned. Update all callers.
3049 (find_overload_match): Include xmethods while performing overload
3050 resolution.
3051
3052 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3053
3054 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3055 * extension-priv.h (struct extension_language_ops): Add the
3056 xmethod interface.
3057 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3058 get_matching_xmethod_workers, get_xmethod_argtypes,
3059 invoke_xmethod, free_xmethod_worker,
3060 free_xmethod_worker_vec): New functions.
3061 * extension.h: #include "common/vec.h".
3062 New function declarations.
3063 (struct xmethod_worker): New struct.
3064 (VEC (xmethod_worker_ptr)): New vector type.
3065 (xmethod_worker_ptr): New typedef.
3066 (xmethod_worker_vec): Likewise.
3067 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3068 builtin_type.
3069 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3070 (struct builtin_type): New field "xmethod".
3071 * valarith.c (value_ptradd): Assert that the value argument is not
3072 lval_xcallable.
3073 * valops.c (value_must_coerce_to_target): Return 0 for
3074 lval_xcallable values.
3075 * value.c (struct value): New field XM_WORKER in the field
3076 LOCATION.
3077 (value_address, value_raw_address): Return 0 for lval_xcallable
3078 values.
3079 (set_value_address): Assert that the value is not an
3080 lval_xcallable.
3081 (value_free): Free the associated xmethod worker when freeing
3082 lval_xcallable values.
3083 (set_value_component_location): Assert that the WHOLE value is not
3084 lval_xcallable.
3085 (value_of_xmethod, call_xmethod): New functions.
3086 * value.h: Declare "struct xmethod_worker".
3087 Declare new functions value_of_xmethod, call_xmethod.
3088
3089 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3090 Pedro Alves <palves@redhat.com>
3091
3092 PR breakpoints/17000
3093 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3094 New function, extracted from software_breakpoint_inserted_here_p.
3095 (software_breakpoint_inserted_here_p): Replace factored out code
3096 by call to find_non_raw_software_breakpoint_inserted_here.
3097 (bp_target_info_copy_insertion_state): New function.
3098 (bkpt_insert_location): Handle the case of a single-step
3099 breakpoint already inserted at the same address.
3100 (bkpt_remove_location): Handle the case of a single-step
3101 breakpoint still inserted at the same address.
3102 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3103 breakpoint already inserted at the same address.
3104 (deprecated_remove_raw_breakpoint): Handle the case of a
3105 non-raw breakpoint still inserted at the same address.
3106 (find_single_step_breakpoint): New function, extracted from
3107 single_step_breakpoint_inserted_here_p.
3108 (find_single_step_breakpoint): New function,
3109 factored out from single_step_breakpoint_inserted_here_p.
3110 (single_step_breakpoint_inserted_here_p): Reimplement.
3111
3112 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3113
3114 Pushed by Joel Brobecker <brobecker@adacore.com>
3115 * source.c (show_substitute_path_command): Fix display of matching
3116 substitution rules.
3117
3118 2014-06-03 Gary Benson <gbenson@redhat.com>
3119
3120 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3121
3122 2014-06-02 Doug Evans <xdje42@gmail.com>
3123
3124 Add parameter support for Guile.
3125 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3126 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3127 (scm-param.o): New rule.
3128 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3129 (gdbscm_misc_error): Declare.
3130 (gdbscm_canonicalize_command_name): Declare.
3131 (gdbscm_scm_to_host_string): Declare.
3132 (gdbscm_scm_from_host_string): Declare.
3133 (gdbscm_initialize_parameters): Declare.
3134 * guile/guile.c (initialize_gdb_module): Call
3135 gdbscm_initialize_parameters.
3136 * guile/lib/gdb.scm: Export parameter symbols.
3137 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3138 cmdscm_canonicalize_name and made public. All callers updated.
3139 * guile/scm-exception.c (gdbscm_misc_error): New function.
3140 * guile/scm-param.c: New file.
3141 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3142 (gdbscm_scm_to_host_string): New function.
3143 (gdbscm_scm_from_host_string): New function.
3144 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3145
3146 2014-06-02 Doug Evans <xdje42@gmail.com>
3147
3148 Add command support for Guile.
3149 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3150 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3151 (scm-cmd.o): New rule.
3152 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3153 (gdbscm_user_error_p): Declare.
3154 (gdbscm_parse_command_name): Declare.
3155 (gdbscm_valid_command_class_p): Declare.
3156 (gdbscm_initialize_commands): Declare.
3157 * guile/guile.c (initialize_gdb_module): Call
3158 gdbscm_initialize_commands.
3159 * guile/lib/gdb.scm: Export command symbols.
3160 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3161 (throw-user-error): New function.
3162 * guile/scm-cmd.c: New file.
3163 * guile/scm-exception.c (user_error_symbol): New static global.
3164 (gdbscm_user_error_p): New function.
3165 (gdbscm_initialize_exceptions): Set user_error_symbol.
3166 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3167
3168 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3169
3170 * top.c (command_loop): Handle comments here...
3171 (command_line_input): ... not here.
3172
3173 2014-06-02 Doug Evans <xdje42@gmail.com>
3174
3175 Add progspace support for Guile.
3176 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3177 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3178 (scm-progspace.o): New rule.
3179 * guile/guile-internal.h (pspace_smob): New typedef.
3180 (psscm_pspace_smob_pretty_printers): Declare.
3181 (psscm_pspace_smob_from_pspace): Declare.
3182 (psscm_scm_from_pspace): Declare.
3183 * guile/guile.c (initialize_gdb_module): Call
3184 gdbscm_initialize_pspaces.
3185 * guile/lib/gdb.scm: Export progspace symbols.
3186 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3187 support.
3188 (append-pretty-printer!): Ditto.
3189 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3190 Implement.
3191 * guile/scm-progspace.c: New file.
3192
3193 2014-06-03 Alan Modra <amodra@gmail.com>
3194
3195 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3196 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3197
3198 2014-06-02 Doug Evans <dje@google.com>
3199
3200 Add support for skeletonless type units.
3201 * dwarf2read.c (struct dwarf2_per_objfile): New member
3202 n_allocated_type_units.
3203 (struct dwarf2_per_objfile) <tu_stats>: New member
3204 nr_all_type_units_reallocs.
3205 (create_signatured_type_table_from_index): Initialize
3206 n_allocated_type_units
3207 (create_all_type_units): Ditto.
3208 (add_type_unit): Move up in file. New arg slot.
3209 All callers updated. Increase space for all_type_units more
3210 efficiently.
3211 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3212 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3213 (lookup_dwp_signatured_type): Ditto.
3214 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3215 All callers updated.
3216 (build_type_psymtabs_1): Leave type_unit_groups as
3217 NULL if no TUs present.
3218 (print_tu_stats): New function.
3219 (process_skeletonless_type_unit): New function.
3220 (process_dwo_file_for_skeletonless_type_units): New
3221 function.
3222 (process_skeletonless_type_units): New function.
3223 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3224 Call print tu_stats if debugging enabled.
3225
3226 2014-06-02 Pedro Alves <palves@redhat.com>
3227
3228 * breakpoint.c (build_target_command_list): Don't build a command
3229 list if we have any duplicate location that isn't a dprintf.
3230
3231 2014-06-02 Pedro Alves <palves@redhat.com>
3232
3233 * breakpoint.c (dprintf_breakpoint_hit): New function.
3234 (initialize_breakpoint_ops): Install it as dprintf's
3235 breakpoint_hit method.
3236
3237 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3238
3239 * source.c (substitute_path_rule_matches): Simplify using
3240 filename_ncmp instead of FILENAME_CMP.
3241
3242 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3243
3244 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3245
3246 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3247
3248 * configure.ac: When Guile is available, check for the
3249 availability of 'scm_new_smob'.
3250 * configure, config.h.in: Regenerate.
3251 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3252 function.
3253
3254 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3255
3256 * frame.c (struct frame_info): Add stop_string field.
3257 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3258 (get_prev_frame_always): Old content moved into
3259 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3260 TRY_CATCH, handle MEMORY_ERROR exceptions.
3261 (frame_stop_reason_string): New function definition.
3262 * frame.h (unwind_stop_reason_to_string): Extend comment to
3263 mention frame_stop_reason_string.
3264 (frame_stop_reason_string): New function declaration.
3265 * stack.c (frame_info): Switch to frame_stop_reason_string.
3266 (backtrace_command_1): Switch to frame_stop_reason_string.
3267 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3268 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3269 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3270
3271 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3272
3273 * frame.c (frame_stop_reason_string): Rename to ...
3274 (unwind_stop_reason_to_string): this.
3275 * frame.h (frame_stop_reason_string): Rename to ...
3276 (unwind_stop_reason_to_string): this.
3277 * stack.c (frame_info): Update call to frame_stop_reason_string.
3278 (backtrace_command_1): Likewise.
3279 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3280 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3281
3282 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3283
3284 * frame.c (remove_prev_frame): New function.
3285 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3286 remove_prev_frame.
3287
3288 2014-05-29 Pedro Alves <palves@redhat.com>
3289
3290 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3291 and make it const. When a single-step decays to a continue,
3292 clear 'step', not 'hw_step'. Pass whether the caller wanted
3293 to step to user_visible_resume_ptid, not what we ask the
3294 target to do.
3295
3296 2014-05-29 Pedro Alves <palves@redhat.com>
3297
3298 * infrun.c (process_event_stop_test, handle_step_into_function)
3299 (handle_step_into_function_backward): Adjust.
3300 Don't set the even thread's stop_step and call stop_waiting before
3301 calling end_stepping_range. Instead do that ...
3302 (end_stepping_range): ... here. Take an ecs pointer parameter.
3303
3304 2014-05-29 Pedro Alves <palves@redhat.com>
3305
3306 * infrun.c (stop_stepping): Rename to ...
3307 (stop_waiting): ... this.
3308 (proceed): Update comment.
3309 (process_event_stop_test, handle_inferior_event)
3310 (handle_signal_stop, handle_step_into_function)
3311 (handle_step_into_function_backward): Update.
3312
3313 2014-05-29 Pedro Alves <palves@redhat.com>
3314
3315 * infcall.c (run_inferior_call): Don't check whether the current
3316 thread is running after the proceed call.
3317
3318 2014-05-29 Pedro Alves <palves@redhat.com>
3319 Tom Tromey <tromey@redhat.com>
3320
3321 * NEWS: Mention "maint set target-async", "set mi-async", and that
3322 background execution commands are now always available.
3323 * target.h (target_async_permitted): Update comment.
3324 * target.c (target_async_permitted, target_async_permitted_1):
3325 Default to 1.
3326 (set_target_async_command): Rename to ...
3327 (maint_set_target_async_command): ... this.
3328 (show_target_async_command): Rename to ...
3329 (maint_show_target_async_command): ... this.
3330 (_initialize_target): Adjust.
3331 * infcmd.c (prepare_execution_command): Make extern.
3332 * inferior.h (prepare_execution_command): Declare.
3333 * infrun.c (set_observer_mode): Leave target async alone.
3334 * mi/mi-interp.c (mi_interpreter_init): Install
3335 mi_on_sync_execution_done as sync_execution_done observer.
3336 (mi_on_sync_execution_done): New function.
3337 (mi_execute_command_input_handler): Don't print the prompt if we
3338 just started a synchronous command with an async target.
3339 (mi_on_resume): Check sync_execution before printing prompt.
3340 * mi/mi-main.h (mi_async_p): Declare.
3341 * mi/mi-main.c: Include gdbcmd.h.
3342 (mi_async_p): New function.
3343 (mi_async, mi_async_1): New globals.
3344 (set_mi_async_command, show_mi_async_command, mi_async): New
3345 functions.
3346 (exec_continue): Call prepare_execution_command.
3347 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3348 (mi_execute_async_cli_command): Use mi_async_p.
3349 (_initialize_mi_main): Install "set mi-async". Make
3350 "target-async" a deprecated alias.
3351
3352 2014-05-29 Pedro Alves <palves@redhat.com>
3353
3354 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3355 (_initialize_cli_interp): Adjust.
3356 * event-loop.c: Include "observer.h".
3357 (start_event_loop): Notify 'command_error' observers instead of
3358 calling display_gdb_prompt. Remove FIXME comment.
3359 * event-top.c (display_gdb_prompt): Remove call into the
3360 interpreters.
3361 * inf-loop.c: Include "observer.h".
3362 (inferior_event_handler): Notify 'command_error' observers instead
3363 of calling display_gdb_prompt.
3364 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3365 observers instead of calling display_gdb_prompt.
3366 * interps.c (interp_set): Don't call display_gdb_prompt.
3367 (current_interp_display_prompt_p): Delete.
3368 * interps.h (interp_prompt_p): Delete declaration.
3369 (interp_prompt_p_ftype): Delete.
3370 (struct interp_procs) <prompt_proc_p>: Delete field.
3371 (current_interp_display_prompt_p): Delete declaration.
3372 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3373 (_initialize_mi_interp): Adjust.
3374 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3375 'command_error' observers.
3376 (tui_on_sync_execution_done, tui_on_command_error): New
3377 functions.
3378 (tui_display_prompt_p): Delete.
3379 (_initialize_tui_interp): Adjust.
3380
3381 2014-05-29 Pedro Alves <palves@redhat.com>
3382
3383 PR gdb/13860
3384 * cli/cli-interp.c: Include infrun.h and observer.h.
3385 (cli_uiout, cli_interp): New globals.
3386 (cli_on_signal_received, cli_on_end_stepping_range)
3387 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3388 functions.
3389 (cli_interpreter_init): Install them as 'end_stepping_range',
3390 'signal_received' 'signal_exited', 'exited' and 'no_history'
3391 observers.
3392 (_initialize_cli_interp): Remove cli_interp local.
3393 * infrun.c (handle_inferior_event): Call the several stop reason
3394 observers instead of printing the stop reason directly.
3395 (end_stepping_range): New function.
3396 (print_end_stepping_range_reason, print_signal_exited_reason)
3397 (print_exited_reason, print_signal_received_reason)
3398 (print_no_history_reason): Make static, and add an uiout
3399 parameter. Print to that instead of to CURRENT_UIOUT.
3400 * infrun.h (print_end_stepping_range_reason)
3401 (print_signal_exited_reason, print_exited_reason)
3402 (print_signal_received_reason print_no_history_reason): New
3403 declarations.
3404 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3405 'mi_uiout'.
3406 <cli_uiout>: New field.
3407 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3408 uiout for CLI output. Install 'signal_received',
3409 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3410 observers.
3411 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3412 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3413 (mi_on_no_history): New functions.
3414 (ui_out_free_cleanup): Delete function.
3415 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3416 instead use the one already stored in the MI interpreter data.
3417 (mi_ui_out): Adjust.
3418 * tui/tui-interp.c: Include infrun.h and observer.h.
3419 (tui_interp): New global.
3420 (tui_on_signal_received, tui_on_end_stepping_range)
3421 (tui_on_signal_exited, tui_on_exited)
3422 (tui_on_no_history): New functions.
3423 (tui_init): Install them as 'end_stepping_range',
3424 'signal_received' 'signal_exited', 'exited' and 'no_history'
3425 observers.
3426 (_initialize_tui_interp): Delete tui_interp local.
3427
3428 2014-05-29 Pedro Alves <palves@redhat.com>
3429
3430 PR gdb/15713
3431 * linux-nat.c (linux_nat_resume_callback): Rename the second
3432 parameter to 'except'. Skip LP if it points to EXCEPT.
3433 (linux_nat_resume): Don't mark the event lwp as not stopped
3434 before resuming sibling lwps. Instead ask
3435 linux_nat_resume_callback to skip the event lwp. Mark it as not
3436 stopped after actually resuming it.
3437 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3438 resuming it.
3439 (wait_lwp): Mark the lwp as stopped here.
3440 (stop_wait_callback): Mark the lwp as not stopped right after
3441 resuming it. Don't mark lwps as stopped here.
3442 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3443 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3444
3445 2014-05-29 Pedro Alves <palves@redhat.com>
3446
3447 PR PR15693
3448 * infrun.c (resume): Determine how much to resume depending on
3449 whether the caller wanted a step, not whether we can hardware step
3450 the target. Mark all threads that we intend to run as running,
3451 unless we're calling an inferior function.
3452 (normal_stop): If the thread is running an infcall, don't finish
3453 thread state.
3454 * target.c (target_resume): Don't mark threads as running here.
3455
3456 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3457
3458 * serial.c (_initialize_serial): Remove support for
3459 the "set remotebaud" and "show remotebaud" commands.
3460 * NEWS: Add entry documenting the removal of that command.
3461
3462 2014-05-28 Yao Qi <yao@codesourcery.com>
3463
3464 * charset.c: Fix typo in comments.
3465
3466 2014-05-27 Gary Benson <gbenson@redhat.com>
3467
3468 * utils.c (internal_vproblem): Prompt for a bug report.
3469
3470 2014-05-26 Andy Wingo <wingo@igalia.com>
3471
3472 * guile/scm-arch.c (arscm_mark_arch_smob):
3473 * guile/scm-block.c (bkscm_mark_block_smob)
3474 (bkscm_mark_block_syms_progress_smob):
3475 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3476 * guile/scm-exception.c (exscm_mark_exception_smob):
3477 * guile/scm-frame.c (frscm_mark_frame_smob):
3478 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3479 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3480 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3481 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3482 (ppscm_mark_pretty_printer_worker_smob):
3483 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3484 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3485 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3486 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3487 mark functions.
3488 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3489 function.
3490
3491 2014-05-26 Andy Wingo <wingo@igalia.com>
3492 Doug Evans <xdje42@gmail.com>
3493
3494 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3495 empty_base_class. All uses updated.
3496 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3497 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3498 Adapt all callers.
3499 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3500 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3501 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3502 (gdbscm_gsmob_has_property_p, add_property_name)
3503 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3504 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3505 (gdb-object-has-property?, gdb-object-properties): Remove.
3506 (gdb-object-kind): Renamed from gsmob-kind.
3507
3508 2014-05-26 Andy Wingo <wingo@igalia.com>
3509
3510 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3511 * configure: Regenerate.
3512
3513 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3514
3515 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3516
3517 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3518
3519 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3520 (replay_memory_access_read_only, replay_memory_access_read_write)
3521 (replay_memory_access_types, replay_memory_access)
3522 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3523 (cmd_set_record_btrace, cmd_show_record_btrace)
3524 (cmd_show_replay_memory_access): New.
3525 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3526 (record_btrace_remove_breakpoint): Replace
3527 record_btrace_allow_memory_access with replay_memory_access.
3528 (_initialize_record_btrace): Add commands.
3529 * NEWS: Announce it.
3530
3531 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3532
3533 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3534
3535 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3536
3537 * MAINTAINERS (Write After Approval): Move self back from
3538 paper trail.
3539
3540 2014-05-22 Pedro Alves <palves@redhat.com>
3541
3542 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3543 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3544 (disable_randomization, enum exec_direction_kind)
3545 (execution_direction, stop_registers, start_remote)
3546 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3547 (wait_for_inferior, normal_stop, get_last_target_status)
3548 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3549 (insert_step_resume_breakpoint_at_sal)
3550 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3551 (set_step_info, print_stop_event, signal_stop_state)
3552 (signal_print_state, signal_pass_state, signal_stop_update)
3553 (signal_print_update, signal_pass_update)
3554 (update_signals_program_target, clear_exit_convenience_vars)
3555 (displaced_step_dump_bytes, update_observer_mode)
3556 (signal_catch_update, gdb_signal_from_command): Move
3557 declarations ...
3558 * infrun.h: ... to this new file.
3559 * amd64-tdep.c: Include infrun.h.
3560 * annotate.c: Include infrun.h.
3561 * arch-utils.c: Include infrun.h.
3562 * arm-linux-tdep.c: Include infrun.h.
3563 * arm-tdep.c: Include infrun.h.
3564 * break-catch-sig.c: Include infrun.h.
3565 * breakpoint.c: Include infrun.h.
3566 * common/agent.c: Include infrun.h instead of inferior.h.
3567 * corelow.c: Include infrun.h.
3568 * event-top.c: Include infrun.h.
3569 * go32-nat.c: Include infrun.h.
3570 * i386-tdep.c: Include infrun.h.
3571 * inf-loop.c: Include infrun.h.
3572 * infcall.c: Include infrun.h.
3573 * infcmd.c: Include infrun.h.
3574 * infrun.c: Include infrun.h.
3575 * linux-fork.c: Include infrun.h.
3576 * linux-nat.c: Include infrun.h.
3577 * linux-thread-db.c: Include infrun.h.
3578 * monitor.c: Include infrun.h.
3579 * nto-tdep.c: Include infrun.h.
3580 * procfs.c: Include infrun.h.
3581 * record-btrace.c: Include infrun.h.
3582 * record-full.c: Include infrun.h.
3583 * remote-m32r-sdi.c: Include infrun.h.
3584 * remote-mips.c: Include infrun.h.
3585 * remote-notif.c: Include infrun.h.
3586 * remote-sim.c: Include infrun.h.
3587 * remote.c: Include infrun.h.
3588 * reverse.c: Include infrun.h.
3589 * rs6000-tdep.c: Include infrun.h.
3590 * s390-linux-tdep.c: Include infrun.h.
3591 * solib-irix.c: Include infrun.h.
3592 * solib-osf.c: Include infrun.h.
3593 * solib-svr4.c: Include infrun.h.
3594 * target.c: Include infrun.h.
3595 * top.c: Include infrun.h.
3596 * windows-nat.c: Include infrun.h.
3597 * mi/mi-interp.c: Include infrun.h.
3598 * mi/mi-main.c: Include infrun.h.
3599 * python/py-threadevent.c: Include infrun.h.
3600
3601 2014-05-22 Pedro Alves <palves@redhat.com>
3602
3603 * infrun.c (handle_inferior_event): Store the exit code for
3604 --return-child-result here, instead of ...
3605 (print_exited_reason): ... here.
3606
3607 2014-05-21 Pedro Alves <palves@redhat.com>
3608
3609 PR gdb/13860
3610 * gdbthread.h (struct thread_control_state): New field
3611 `command_interp'.
3612 * infrun.c (follow_fork): Copy the new thread control field to the
3613 child fork thread.
3614 (clear_proceed_status_thread): Clear the new thread control field.
3615 (proceed): Set the new thread control field.
3616 * interps.h (command_interp): Declare.
3617 * interps.c (command_interpreter): New global.
3618 (command_interp): New function.
3619 (interp_exec): Set `command_interpreter' while here.
3620 * cli-out.c (cli_uiout_dtor): New function.
3621 (cli_ui_out_impl): Install it.
3622 * mi/mi-interp.c: Include cli-out.h.
3623 (mi_cmd_interpreter_exec): Add comment.
3624 (restore_current_uiout_cleanup): New function.
3625 (ui_out_free_cleanup): New function.
3626 (mi_on_normal_stop): If finishing an execution command started by
3627 a CLI command, or any kind of breakpoint-like event triggered,
3628 print the stop event to the output (CLI) stream.
3629 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3630
3631 2014-05-21 Pedro Alves <palves@redhat.com>
3632
3633 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3634 current source line having changed.
3635 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3636 * infrun.c (normal_stop): Adjust call to
3637 set_current_sal_from_frame.
3638 * source.c (clear_lines_listed_range): New function.
3639 (set_current_source_symtab_and_line, identify_source_line): Clear
3640 the lines listed range.
3641 (line_info): Handle the first "info line" after the current source
3642 line having changed.
3643 * stack.c (print_stack_frame): Remove center handling.
3644 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3645 center sal.line.
3646
3647 2014-05-21 Pedro Alves <palves@redhat.com>
3648
3649 * inf-child.c (inf_child_mourn_inferior): New function.
3650 * inf-child.h (inf_child_mourn_inferior): New declaration.
3651 * darwin-nat.c (darwin_mourn_inferior): Use
3652 inf_child_mourn_inferior.
3653 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3654 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3655 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3656 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3657 * windows-nat.c (windows_mourn_inferior): Likewise.
3658
3659 2014-05-21 Doug Evans <xdje42@gmail.com>
3660
3661 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3662
3663 2014-05-21 Doug Evans <xdje42@gmail.com>
3664
3665 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3666 (gdbscm_out_of_range_error): Ditto.
3667 (gdbscm_memory_error): Ditto.
3668 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3669 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3670 (gdbscm_out_of_range_error): Update.
3671 (gdbscm_memory_error): Update.
3672 (gdbscm_scm_to_target_string_unsafe): Delete.
3673
3674 2014-05-21 Pedro Alves <palves@redhat.com>
3675
3676 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3677 globals.
3678 (inf_child_open_target): New function.
3679 (inf_child_open): Use inf_child_open_target to push the target
3680 instead of erroring out.
3681 (inf_child_disconnect, inf_child_close)
3682 (inf_child_maybe_unpush_target): New functions.
3683 (inf_child_target): Install inf_child_disconnect and
3684 inf_child_close. Store a pointer to the returned object.
3685 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3686 declarations.
3687 * target.c (auto_connect_native_target): New global.
3688 (show_default_run_target): New function.
3689 (find_default_run_target): Return NULL if automatically connecting
3690 to the native target is disabled.
3691 (_initialize_target): Install set/show auto-connect-native-target.
3692 * NEWS: Mention "set auto-connect-native-target", and "target
3693 native".
3694 * linux-nat.c (super_close): New global.
3695 (linux_nat_close): Call super_close.
3696 (linux_nat_add_target): Store a pointer to the base class's
3697 to_close method.
3698 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3699 inf_child_maybe_unpush.
3700 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3701 already pushed.
3702 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3703 the inferior. Use inf_child_maybe_unpush_target.
3704 (inf_ttrace_attach): Don't push the target if it is already
3705 pushed.
3706 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3707 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3708 after mourning the inferior. Use inf_child_maybe_unpush_target.
3709 (darwin_attach_pid): Don't push the target if it is already
3710 pushed.
3711 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3712 mourning the inferior. Use inf_child_maybe_unpush_target.
3713 (gnu_detach): Use inf_child_maybe_unpush_target.
3714 * go32-nat.c (go32_create_inferior): Don't push the target if it
3715 is already pushed.
3716 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3717 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3718 (procfs_open): Rename to ...
3719 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3720 comments. Can target_preopen before changing node. Call
3721 inf_child_open_target to push the target explicitly.
3722 (procfs_attach): Don't push the target if it is already pushed.
3723 (procfs_detach): Use inf_child_maybe_unpush_target.
3724 (procfs_create_inferior): Don't push the target if it is already
3725 pushed.
3726 (nto_native_ops): New global.
3727 (procfs_open): Reimplement.
3728 (procfs_native_open): New function.
3729 (init_procfs_targets): Install procfs_native_open as to_open of
3730 "target native". Store a pointer to the "native" target in
3731 nto_native_ops.
3732 * procfs.c (procfs_attach): Don't push the target if it is already
3733 pushed.
3734 (procfs_detach): Use inf_child_maybe_unpush_target.
3735 (procfs_mourn_inferior): Only unpush the target after mourning the
3736 inferior. Use inf_child_maybe_unpush_target.
3737 (procfs_init_inferior): Don't push the target if it is already
3738 pushed.
3739 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3740 if it is already pushed.
3741
3742 2014-05-21 Pedro Alves <palves@redhat.com>
3743
3744 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3745 and "procfs" targets are now called "native" instead.
3746
3747 2014-05-21 Pedro Alves <palves@redhat.com>
3748
3749 * go32-nat.c (go32_open): Delete.
3750 (go32_target): Don't override the to_open method.
3751
3752 2014-05-21 Pedro Alves <palves@redhat.com>
3753
3754 * nto-procfs.c (procfs_can_run): New function.
3755 (nto_procfs_ops): New global.
3756 (init_procfs_targets): New, based on procfs_target. Install
3757 "target native" in addition to "target procfs".
3758 (_initialize_procfs): Call init_procfs_targets instead of adding
3759 the target here.
3760
3761 2014-05-21 Pedro Alves <palves@redhat.com>
3762
3763 * windows-nat.c (windows_target): Don't override to_shortname,
3764 to_longname or to_doc.
3765
3766 2014-05-21 Pedro Alves <palves@redhat.com>
3767
3768 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3769 to_doc.
3770
3771 2014-05-21 Pedro Alves <palves@redhat.com>
3772
3773 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3774 to_shortname, to_longname or to_doc.
3775
3776 2014-05-21 Pedro Alves <palves@redhat.com>
3777
3778 * go32-nat.c (go32_target): Don't override to_shortname,
3779 to_longname or to_doc.
3780
3781 2014-05-21 Pedro Alves <palves@redhat.com>
3782
3783 * inf-child.c (inf_child_open): Remove mention of "child".
3784 (inf_child_target): Rename target to "native" instead of "child".
3785
3786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3787
3788 * Makefile.in (SFILES): Delete "regset.c".
3789 (COMMON_OBS): Delete "regset.o".
3790 * regset.c: Remove.
3791 * regset.h (regset_alloc): Delete prototype.
3792
3793 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3794
3795 * sparc-linux-tdep.c (sparc32_linux_gregset)
3796 (sparc32_linux_fpregset): New static regset structures.
3797 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3798 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3799 'fpregset' fields.
3800 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3801 (sparc64_linux_fpregset): New static regset structures.
3802 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3803 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3804 New static regset structures.
3805 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3806 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3807 New static regset structures.
3808 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3809 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3810 New static regset structures.
3811 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3812 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3813 New static regset structures.
3814 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3815
3816 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3817
3818 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3819 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3820 register maps ("regmaps") from "*regset" to "*regmap". Do this
3821 for all regmap types and variables.
3822 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3823 (sparc32_linux_supply_core_gregset)
3824 (sparc32_linux_collect_core_gregset)
3825 (sparc32_linux_supply_core_fpregset)
3826 (sparc32_linux_collect_core_fpregset): Likewise.
3827 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3828 (sparc_gregmap, sparc_fpregmap): ... these.
3829 (sparc_supply_gregset, sparc_collect_gregset)
3830 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3831 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3832 (_initialize_sparc_nat): Rename regmaps.
3833 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3834 (sparc_gregmap, sparc_fpregmap): ... these.
3835 (sparc_supply_gregset, sparc_collect_gregset)
3836 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3837 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3838 Rename macros to...
3839 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3840 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3841 Likewise.
3842 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3843 Rename to...
3844 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3845 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3846 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3847 regmaps.
3848 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3849 (sparc32_bsd_fpregset): Rename to...
3850 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3851 (sparc32_bsd_fpregmap): ... these.
3852 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3853 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3854 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3855 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3856 (struct sparc_gregmap, struct sparc_fpregmap)
3857 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3858 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3859 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3860 (sparc32_supply_regset, sparc32_collect_gregset)
3861 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3862 prototypes.
3863 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3864 (sparc64_linux_ptrace_gregmap): ... this.
3865 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3866 (_initialize_sparc64_linux_nat): Rename regmaps.
3867 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3868 (sparc64_linux_core_gregmap): ... this.
3869 (sparc64_linux_supply_core_gregset)
3870 (sparc64_linux_collect_core_gregset)
3871 (sparc64_linux_supply_core_fpregset)
3872 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3873 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3874 (sparc64_sol2_fpregset): Rename to...
3875 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3876 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3877 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3878 regmaps.
3879 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3880 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3881 (sparc64_bsd_fpregset): Rename to...
3882 (struct sparc_gregmap, sparc64_sol2_gregmap)
3883 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3884 (sparc64_bsd_fpregmap): ... these.
3885 (sparc64_supply_gregset, sparc64_collect_gregset)
3886 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3887 prototypes.
3888 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3889 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3890 (sparc64fbsd_gregmap): ... this.
3891 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3892 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3893 Rename regmaps.
3894 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3895 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3896 (sparc64nbsd_collect_fpregset): Likewise.
3897 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3898 (sparc64nbsd_gregmap): ... this.
3899 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3900 regmaps.
3901 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3902 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3903 (sparc64obsd_gregmap): ... this.
3904 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3905 regmaps.
3906 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3907 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3908 (sparc32nbsd_gregmap): ... this.
3909 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3910 regmaps.
3911
3912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3913
3914 * score-tdep.c (score7_linux_gregset): New static regset
3915 structure.
3916 (score7_linux_regset_from_core_section): Remove dynamic regset
3917 allocation.
3918 (score_gdbarch_init): Drop allocation of tdep structure.
3919 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3920
3921 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3922
3923 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3924 regset structures.
3925 (am33_regset_from_core_section): Remove dynamic regset
3926 allocations.
3927
3928 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3929
3930 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3931 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3932 structures.
3933 (mips_linux_regset_from_core_section): Remove dynamic regset
3934 allocations.
3935 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3936 'gregset64', 'fpregset', and 'fpregset64'.
3937 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3938 deleted tdep fields.
3939
3940 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3941
3942 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3943 regset structures.
3944 (amd64_regset_from_core_section): Remove dynamic regset
3945 allocations.
3946 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3947 structure.
3948 (amd64obsd_regset_from_core_section): Remove dynamic regset
3949 allocation.
3950 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3951 Likewise.
3952 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3953 x86-common regset supply function.
3954 * i386-tdep.c (i386_collect_gregset): Make static.
3955 (i386_gregset): New global regset structure.
3956 (i386_fpregset, i386_xstateregset): New static regset structures.
3957 (i386_regset_from_core_section): Remove dynamic regset
3958 allocations.
3959 (i386_gdbarch_init): Remove initialization of tdep fields
3960 'gregset', 'fpregset', and 'xstateregset'.
3961 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3962 'fpregset', and 'xstateregset'.
3963 (i386_collect_gregset): Remove prototype.
3964 (i386_gregset): New declaration.
3965 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3966 structure.
3967 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3968 allocation.
3969
3970 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3971
3972 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3973 (arm_linux_vfpregset): New static regset structures.
3974 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3975 regset structures.
3976 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3977 and 'vfpregset' fields.
3978
3979 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3980
3981 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3982 (aarch64_linux_fpregset): New static regset structures.
3983 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3984 of regset structures.
3985 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3986 'fpregset' fields.
3987
3988 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3989
3990 * regset.h (struct regset): Remove gdbarch field.
3991 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3992 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3993 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3994 Likewise.
3995 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3996 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3997 (ppc32_linux_vsxregset): Likewise.
3998 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3999 via the regcache instead of the regset.
4000 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4001 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4002 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4003 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4004 Likewise.
4005
4006 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4007
4008 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4009 Constify structures.
4010 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4011 (alphanbsd_aout_gregset): Likewise.
4012 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4013 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4014 Likewise.
4015 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4016 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4017 Likewise.
4018 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4019 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4020 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4021 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4022 * m88k-tdep.c (m88k_gregset): Likewise.
4023 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4024 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4025 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4026 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4027 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4028 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4029 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4030 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4031 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4032 Likewise.
4033 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4034 * sh-tdep.h (sh_corefile_gregset): Likewise.
4035 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4036 * vax-tdep.c (vax_gregset): Likewise.
4037
4038 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 Fix TLS access for -static -pthread.
4041 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4042 (try_thread_db_load_1): Initialize it.
4043 (thread_db_get_thread_local_address): Call it if LM is zero.
4044 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4045 * target.h (struct target_ops) (to_get_thread_local_address): Add
4046 load_module_addr comment.
4047
4048 2014-05-21 Pedro Alves <palves@redhat.com>
4049
4050 * dcache.c (dcache_read_memory_partial): If reading the cache line
4051 fails, fallback to reading just the memory the caller wanted.
4052
4053 2014-05-20 Doug Evans <dje@google.com>
4054
4055 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4056 instead of get_current_arch.
4057
4058 2014-05-20 Pedro Alves <palves@redhat.com>
4059
4060 * NEWS: Mention that compare-sections now works with all targets.
4061
4062 * remote.c (PACKET_qCRC): New enum value.
4063 (remote_verify_memory): Don't send qCRC if the target has no
4064 execution. Use packet_support/packet_ok. If the target doesn't
4065 support the qCRC packet, fallback to a deep memory copy.
4066 (compare_sections_command): Say "target image" instead of "remote
4067 executable".
4068 (_initialize_remote): Add PACKET_qCRC to the list of config
4069 packets that have no associated command. Extend comment.
4070 * target.c (simple_verify_memory, default_verify_memory): New
4071 function.
4072 * target.h (struct target_ops) <to_verify_memory>: Default to
4073 default_verify_memory.
4074 (simple_verify_memory): New declaration.
4075 * target-delegates.c: Regenerate.
4076
4077 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4078
4079 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4080
4081 2014-05-20 Hui Zhu <hui@codesourcery.com>
4082 Yao Qi <yao@codesourcery.com>
4083
4084 PR backtrace/16558
4085 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4086 and change address of sp and pc.
4087
4088 2014-05-19 Tom Tromey <tromey@redhat.com>
4089
4090 * gdbtypes.c (rank_function): Use XNEWVEC.
4091 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4092
4093 2014-05-19 Doug Evans <dje@google.com>
4094
4095 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4096 build_type_unit_groups and moved closer to only caller. Remove
4097 arguments. All references updated. Remove outdated .gdb_index
4098 comment.
4099 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4100 build_type_psymtabs_1.
4101
4102 2014-05-19 Doug Evans <dje@google.com>
4103
4104 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4105 n_type_unit_groups, all_type_unit_groups. All uses removed.
4106 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4107 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4108 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4109 (add_type_unit_group_to_table): Delete.
4110
4111 2014-05-19 Doug Evans <dje@google.com>
4112
4113 * eval.c (evaluate_subexp_standard): Add some comments.
4114
4115 2014-05-17 Doug Evans <xdje42@gmail.com>
4116
4117 * progspace.c (remove_program_space): Delete, unused.
4118 * progspace.h (remove_program_space): Ditto.
4119
4120 2014-05-17 Doug Evans <xdje42@gmail.com>
4121
4122 * inferior.c (prune_inferiors): Fix comment.
4123 (remove_inferior_command): Call prune_program_spaces.
4124
4125 2014-05-16 Doug Evans <dje@google.com>
4126
4127 New command line option -D.
4128 * NEWS: Mention it.
4129 * main.c (set_gdb_data_directory): New function.
4130 (captured_main): Recognize -D. Flag error for --data-directory "".
4131 Call set_gdb_data_directory.
4132 (print_gdb_help): Print --data-directory, -D.
4133 * main.h (set_gdb_data_directory): Declare.
4134 * top.c (staged_gdb_datadir): New static global.
4135 (set_gdb_datadir): Call set_gdb_data_directory
4136 (show_gdb_datadir): New function.
4137 (init_main): Update init of data-directory parameter.
4138
4139 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4140
4141 Import the "dirfd" gnulib module.
4142 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4143 * gnulib/aclocal.m4: Update.
4144 * gnulib/config.in: Update.
4145 * gnulib/configure: Update.
4146 * gnulib/import/Makefile.am: Update.
4147 * gnulib/import/Makefile.in: Update.
4148 * gnulib/import/dirfd.c: New.
4149 * gnulib/import/m4/dirfd.m4: New.
4150 * gnulib/import/m4/gnulib-cache.m4: Update.
4151 * gnulib/import/m4/gnulib-comp.m4: Update.
4152
4153 2014-05-16 Pierre Muller <muller@sourceware.org>
4154 Yao Qi <yao@codesourcery.com>
4155
4156 * valprint.c (print_wchar): Move the code on checking whether
4157 W is a printable wide char to the default branch of switch
4158 statement below. Call wchar_printable instead of gdb_iswprint.
4159
4160 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4161
4162 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4163 ldr.w and ldrd instructions.
4164
4165 2014-05-15 Doug Evans <dje@google.com>
4166
4167 * dwarf2read.c (read_structure_type): Delete outdated comments.
4168
4169 2014-05-14 Tom Tromey <tromey@redhat.com>
4170
4171 * macrocmd.c (print_macro_definition): Reindent.
4172
4173 2014-05-13 Doug Evans <xdje42@gmail.com>
4174
4175 * python/py-cmd.c (cmdpy_completer): Add comment.
4176 (completers): Make const.
4177
4178 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4179
4180 * infrun.c (resume): Remove should_resume (unused). Move up
4181 declaration of resume_ptid.
4182
4183 2014-05-13 Tom Tromey <tromey@redhat.com>
4184
4185 * language.h (unop_type_check): Remove.
4186 (binop_type_check): Don't declare.
4187
4188 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4189
4190 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4191 call to regcache_raw_collect.
4192
4193 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4194
4195 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4196 mi_console->quote as the quoting character.
4197
4198 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4199
4200 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4201
4202 2014-04-29 Tom Tromey <tromey@redhat.com>
4203
4204 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4205 "show debug varobj".
4206
4207 2014-05-07 Kyle McMartin <kyle@redhat.com>
4208
4209 Pushed by Joel Brobecker <brobecker@adacore.com>.
4210 * aarch64-tdep.c (aarch64_software_single_step): New function.
4211 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4212 with aarch64_software_single_step.
4213
4214 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4215
4216 GDB 7.7.1 released.
4217
4218 2014-05-05 Keith Seitz <keiths@redhat.com>
4219
4220 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4221 variable or history value is successfully parsed.
4222
4223 2014-05-05 Yao Qi <yao@codesourcery.com>
4224 Pedro Alves <palves@redhat.com>
4225
4226 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4227 address of blocks that intersects the requested range. Trim
4228 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4229 sections.
4230 * ctf.c (ctf_xfer_partial): Likewise.
4231
4232 2014-05-05 Yao Qi <yao@codesourcery.com>
4233
4234 * printcmd.c (display_command): Remove the check to
4235 target_has_execution.
4236
4237 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4238
4239 * ppcobsd-nat.c: Include "obsd-nat.h".
4240 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4241 add_target.
4242 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4243
4244 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4245
4246 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4247 and 16-bit signed and unsigned arguments. Update comment.
4248 (stap_parse_probe_arguments): Extend code to handle such
4249 arguments. Use warning instead of complaint to notify about
4250 unrecognized bitness.
4251
4252 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4253
4254 PR breakpoints/16889
4255 * stap-probe.c (stap_parse_probe_arguments): Simplify
4256 check for non-prefixed probes (i.e., probes whose
4257 arguments do not start with "N@"). Always set the
4258 argument type to a sane value.
4259
4260 2014-05-01 David Taylor <dtaylor@emc.com>
4261
4262 * remote.c (compare_sections_command): Add -r option to compare
4263 all loadable read-only sections.
4264
4265 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4266
4267 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4268 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4269 Update all callers.
4270 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4271 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4272 Remove unused CORE_ADDR argument. Update all callers.
4273
4274 2014-04-29 Pedro Alves <palves@redhat.com>
4275
4276 * remote.c (struct packet_config) <detect>: Extend comment.
4277 (add_packet_config_cmd): Don't set the config's detect or support
4278 fields here.
4279 (init_all_packet_configs): Also initialize the config's 'detect'
4280 field.
4281 (reset_all_packet_configs_support): New function.
4282 (remote_open_1): Call reset_all_packet_configs_support instead of
4283 init_all_packet_configs.
4284 (_initialize_remote): Initialize all packet configs. Assert that
4285 all packets have an associated command, except a few known
4286 outliers.
4287
4288 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4289
4290 * dwarf2read.c (read_subrange_type): Handle dynamic
4291 DW_AT_lower_bound attributes.
4292
4293 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4294
4295 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4296 dynamic bounds before computing its upper bound.
4297 (ada_discrete_type_low_bound): Same as above with the lower bound.
4298
4299 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4300
4301 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4302 range types. Adjust the array handling implementation to
4303 take advantage of this change.
4304 (resolve_dynamic_range): New function, mostly extracted from
4305 resolve_dynamic_bounds.
4306 (resolve_dynamic_array): New function, mostly extracted from
4307 resolve_dynamic_bounds.
4308 (resolve_dynamic_bounds): Delete.
4309 (resolve_dynamic_type): Reimplement. Add handling of
4310 TYPE_CODE_RANGE types.
4311
4312 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4313
4314 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4315 handling of parallel ___XA types.
4316
4317 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4320 unnecessary second call to static_unwrap_type.
4321
4322 2014-04-27 Hui Zhu <hui@codesourcery.com>
4323
4324 * stack.c (print_frame_info): Call do_gdb_disassembly with
4325 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4326
4327 2014-04-26 Doug Evans <xdje42@gmail.com>
4328
4329 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4330
4331 2014-04-25 Pedro Alves <palves@redhat.com>
4332
4333 PR server/16255
4334 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4335 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4336 and newline from built string.
4337 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4338 (linux_ptrace_attach_fail_reason): ... this.
4339 * linux-nat.c (linux_nat_attach): Adjust to use
4340 linux_ptrace_attach_fail_reason.
4341
4342 2014-04-25 Pedro Alves <palves@redhat.com>
4343
4344 * remote.c (struct remote_state): Remove multi_process_aware,
4345 non_stop_aware, cond_tracepoints, cond_breakpoints,
4346 breakpoint_commands, fast_tracepoints, static_tracepoints,
4347 install_in_trace, disconnected_tracing,
4348 enable_disable_tracepoints, string_tracing, and
4349 augmented_libraries_svr4_read fields.
4350 (remote_multi_process_p): Move further below in the file.
4351 (struct packet_config): Add comments.
4352 (update_packet_config): Delete function.
4353 (show_packet_config_cmd): Use packet_config_support.
4354 (add_packet_config_cmd): Use NULL as set callback.
4355 (packet_ok): "set remote foo-packet"-style commands no longer
4356 change config->supported -- adjust.
4357 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4358 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4359 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4360 (PACKET_QNonStop, PACKET_multiprocess_feature)
4361 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4362 (PACKET_DisconnectedTracing_feature)
4363 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4364 (set_remote_protocol_packet_cmd): Delete function.
4365 (packet_config_support, packet_support): New functions.
4366 (set_remote_protocol_Z_packet_cmd): Don't call
4367 update_packet_config.
4368 (remote_query_attached, remote_pass_signals)
4369 (remote_program_signals, remote_threads_info)
4370 (remote_threads_extra_info, remote_start_remote): Use
4371 packet_support.
4372 (remote_start_remote): Use packet_config_support and
4373 packet_support.
4374 (init_all_packet_configs): Set all packets to unknown support,
4375 instead of calling update_packet_config.
4376 (remote_check_symbols): Use packet_support.
4377 (remote_supported_packet): Unconditionally set the packet config's
4378 support status.
4379 (remote_multi_process_feature, remote_non_stop_feature)
4380 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4381 (remote_breakpoint_commands_feature)
4382 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4383 (remote_install_in_trace_feature)
4384 (remote_disconnected_tracing_feature)
4385 (remote_enable_disable_tracepoint_feature)
4386 (remote_string_tracing_feature)
4387 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4388 (remote_protocol_features): Adjust to use remote_supported_packet
4389 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4390 "ConditionalTracepoints", "ConditionalBreakpoints",
4391 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4392 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4393 "EnableDisableTracepoints", and "tracenz".
4394 (remote_query_supported): Use packet_support.
4395 (remote_open_1): Adjust.
4396 (extended_remote_attach_1): Use packet_support. Switch on the
4397 result of packet_ok instead of checking whether the packet ended
4398 up disabled.
4399 (remote_vcont_resume): Use packet_support.
4400 (remote_resume, remote_stop_ns, fetch_register_using_p)
4401 (remote_prepare_to_store, store_register_using_P)
4402 (check_binary_download, remote_write_bytes): Use packet_support.
4403 (remote_vkill): Use packet_support. Switch on the result of
4404 packet_ok instead of checking whether the packet ended up
4405 disabled.
4406 (extended_remote_supports_disable_randomization): Use
4407 packet_support.
4408 (extended_remote_run): Switch on the result of packet_ok instead
4409 of checking whether the packet ended up disabled.
4410 (remote_insert_breakpoint, remote_remove_breakpoint)
4411 (remote_insert_watchpoint, remote_remove_watchpoint)
4412 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4413 packet_support.
4414 (remote_search_memory): Use packet_config_support.
4415 (remote_get_thread_local_address, remote_get_tib_address)
4416 (remote_hostio_send_command, remote_can_execute_reverse): Use
4417 packet_support.
4418 (remote_supports_cond_tracepoints)
4419 (remote_supports_cond_breakpoints)
4420 (remote_supports_fast_tracepoints)
4421 (remote_supports_static_tracepoints)
4422 (remote_supports_install_in_trace)
4423 (remote_supports_enable_disable_tracepoint)
4424 (remote_supports_string_tracing)
4425 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4426 the packet config says the feature is enabled or disabled.
4427 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4428 (remote_get_trace_status): Use packet_support.
4429 (remote_set_disconnected_tracing): Adjust to check whether the
4430 feature is enabled with packet_support.
4431 (remote_set_trace_buffer_size, remote_use_agent)
4432 (remote_can_use_agent, remote_supports_btrace): Use
4433 packet_support.
4434 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4435 Use packet_config_support.
4436 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4437 the packet config says the feature is enabled or disabled.
4438 (set_range_stepping): Use packet_support.
4439
4440 2014-04-25 Tom Tromey <tromey@redhat.com>
4441
4442 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4443 argument.
4444
4445 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4446
4447 * NEWS: Mention support for C99 variable length arrays.
4448
4449 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4450
4451 * ada-lang.c (standard_exc): Expand introductory comment.
4452
4453 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4454 Walfred Tedeschi <walfred.tedeschi@intel.com>
4455
4456 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4457 AVX512 registers.
4458 (amd64_linux_read_description): Add code to handle AVX512 xstate
4459 mask and return respective tdesc.
4460 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4461 and features/i386/x32-avx512-linux.c.
4462 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4463 (amd64_linux_core_read_description): Add code to handle AVX512
4464 xstate mask and return respective tdesc.
4465 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4466 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4467 calculation.
4468 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4469 (tdesc_amd64_avx512_linux): New prototype.
4470 (tdesc_x32_avx512_linux): Likewise.
4471 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4472 features/i386/x32-avx512.c.
4473 (amd64_ymm_avx512_names): New register names for pseudo
4474 registers YMM16-31.
4475 (amd64_ymmh_avx512_names): New register names for raw registers
4476 YMMH16-31.
4477 (amd64_k_names): New register names for K registers.
4478 (amd64_zmmh_names): New register names for ZMM raw registers.
4479 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4480 (amd64_xmm_avx512_names): New register names for XMM16-31
4481 registers.
4482 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4483 registers.
4484 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4485 if feature is present.
4486 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4487 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4488 (AMD64_NUM_REGS): Adjust to new number of registers.
4489 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4490 registers supplied via XSTATE by AVX512 registers.
4491 (i386_linux_read_description): Add case for AVX512.
4492 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4493 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4494 (i386_linux_core_read_description): Add case for AVX512.
4495 (i386_linux_init_abi): Install supported register note section
4496 for AVX512.
4497 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4498 AVX512.
4499 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4500 registers to be number of zmm7h + 1.
4501 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4502 * i386-tdep.c: Include features/i386/i386-avx512.c.
4503 (i386_zmm_names): Add ZMM pseudo register names array.
4504 (i386_zmmh_names): Add ZMM raw register names array.
4505 (i386_k_names): Add K raw register names array.
4506 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4507 registers. AVX512 has 16 more ZMM registers than there are YMM
4508 registers.
4509 (i386_zmmh_regnum_p): Add function to look up register number of
4510 ZMM raw registers.
4511 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4512 (i386_k_regnum_p): Likewise for K raw registers.
4513 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4514 registers added by AVX512.
4515 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4516 registers added by AVX512.
4517 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4518 added by AVX512.
4519 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4520 (i386_pseudo_register_name): Add ZMM pseudo registers.
4521 (i386_zmm_type): Construct and return vector registers type for ZMM
4522 registers.
4523 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4524 ZMM0-31 pseudo registers and K registers.
4525 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4526 and YMM16-31 registers from register cache.
4527 (i386_pseudo_register_write): Add code to write K, ZMM and
4528 YMM16-31 registers.
4529 (i386_register_reggroup_p): Add code to include/exclude AVX512
4530 registers in/from respective register groups.
4531 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4532 registers if feature is present in xcr0.
4533 (i386_gdbarch_init): Add code to initialize AVX512 feature
4534 variables in tdep structure, wire in pseudo registers and call
4535 initialize_tdesc_i386_avx512.
4536 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4537 variables.
4538 (i386_regnum): Add AVX512 registers.
4539 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4540 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4541 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4542 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4543 512 bits wide.
4544 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4545 (i386_ymm_avx512_regnum_p): Likewise.
4546 (i386_k_regnum_p): Likewise.
4547 (i386_zmm_regnum_p): Likewise.
4548 (i386_zmmh_regnum_p): Likewise.
4549 * i387-tdep.c : Update year in copyright notice.
4550 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4551 XSAVE buffer.
4552 (XSAVE_YMM_AVX512_ADDR): New macro.
4553 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4554 XSAVE buffer.
4555 (XSAVE_XMM_AVX512_ADDR): New macro.
4556 (xsave_avx512_k_offset): New table for K register offsets in
4557 XSAVE buffer.
4558 (XSAVE_AVX512_K_ADDR): New macro.
4559 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4560 in XSAVE buffer.
4561 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4562 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4563 buffer.
4564 (i387_collect_xsave): Add code to collect AVX512 registers from
4565 XSAVE buffer.
4566 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4567 of XMM16-31 registers.
4568 (I387_NUM_K_REGS): New define for number of K registers.
4569 (I387_K0_REGNUM): New define for K0 register number.
4570 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4571 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4572 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4573 registers.
4574 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4575 (I387_XMM16_REGNUM): New define for XMM16 register number.
4576 (I387_YMM0_REGNUM): New define for YMM0 register number.
4577 (I387_KEND_REGNUM): New define for last K register number.
4578 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4579 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4580 number.
4581 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4582 number.
4583 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4584 size.
4585 * features/Makefile: Add AVX512 related files.
4586 * features/i386/32bit-avx512.xml: New file.
4587 * features/i386/64bit-avx512.xml: Likewise.
4588 * features/i386/amd64-avx512-linux.c: Likewise.
4589 * features/i386/amd64-avx512-linux.xml: Likewise.
4590 * features/i386/amd64-avx512.c: Likewise.
4591 * features/i386/amd64-avx512.xml: Likewise.
4592 * features/i386/i386-avx512-linux.c: Likewise.
4593 * features/i386/i386-avx512-linux.xml: Likewise.
4594 * features/i386/i386-avx512.c: Likewise.
4595 * features/i386/i386-avx512.xml: Likewise.
4596 * features/i386/x32-avx512-linux.c: Likewise.
4597 * features/i386/x32-avx512-linux.xml: Likewise.
4598 * features/i386/x32-avx512.c: Likewise.
4599 * features/i386/x32-avx512.xml: Likewise.
4600 * regformats/i386/amd64-avx512-linux.dat: New file.
4601 * regformats/i386/amd64-avx512.dat: Likewise.
4602 * regformats/i386/i386-avx512-linux.dat: Likewise.
4603 * regformats/i386/i386-avx512.dat: Likewise.
4604 * regformats/i386/x32-avx512-linux.dat: Likewise.
4605 * regformats/i386/x32-avx512.dat: Likewise.
4606 * NEWS: Add note about new support for AVX512.
4607
4608
4609 2014-04-23 Pedro Alves <palves@redhat.com>
4610
4611 * breakpoint.c (insert_bp_location): Tolerate errors if the
4612 breakpoint is set in a user-loaded objfile.
4613 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4614 location is marked shlib_disabled. If the breakpoint is set in a
4615 user-loaded objfile is a GDB-side memory breakpoint, validate it
4616 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4617 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4618 flag.
4619 * mem-break.c (memory_validate_breakpoint): New function.
4620 * objfiles.c (userloaded_objfile_contains_address_p): New
4621 function.
4622 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4623 * target.h (memory_validate_breakpoint): New declaration.
4624
4625 2014-04-23 Pedro Alves <palves@redhat.com>
4626
4627 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4628 the breakpoint is set in a shared library, only suppress
4629 errors for software breakpoints, not hardware breakpoints.
4630
4631 2014-04-22 Pedro Alves <palves@redhat.com>
4632
4633 * infrun.c (schedlock_applies): New function, factored out from
4634 find_thread_needs_step_over.
4635 (find_thread_needs_step_over): Use it.
4636 (switch_back_to_stepped_thread): Always clear trap_expected if the
4637 step over is finished. Return early if scheduler locking applies.
4638 Look for the stepping thread and a potential step-over thread with
4639 a single loop.
4640 (currently_stepping_or_nexting_callback): Delete.
4641
4642 2014-04-22 Nick Clifton <nickc@redhat.com>
4643
4644 * NEWS: Mention that ARM sim now supports tracing.
4645
4646 2014-04-22 Yao Qi <yao@codesourcery.com>
4647
4648 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4649 to ...
4650 * tracefile.c (tracefile_fetch_registers): ... it. New
4651 function.
4652 * tracefile.h (tracefile_fetch_registers): Declare.
4653 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4654 tracefile_fetch_registers.
4655
4656 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4657
4658 PR gdb/14018
4659 * windows-nat.c (thread_rec): Don't display a warning when
4660 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4661 fails for any reason, set th->suspended to -1, so that we don't
4662 try to resume such a thread. Also, don't return NULL in these
4663 cases, to avoid completely ruin the session due to "PC register is
4664 not available" error.
4665 (do_windows_fetch_inferior_registers): Check errors in
4666 GetThreadContext call.
4667 (windows_continue): Accept an additional argument KILLED; if not
4668 zero, ignore errors in the SetThreadContext call, since the
4669 inferior was killed and is shutting down.
4670 (windows_resume, get_windows_debug_event)
4671 (windows_create_inferior, windows_mourn_inferior)
4672 (windows_kill_inferior): All callers of windows_continue changed
4673 to adjust to its new calling sequence.
4674
4675 2014-04-19 Yao Qi <yao@codesourcery.com>
4676
4677 * ctf.c (ctf_open): Call post_create_inferior.
4678
4679 2014-04-19 Yao Qi <yao@codesourcery.com>
4680
4681 * ctf.c (handle_id): New static variable.
4682 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4683 value. Get the declaration of event "register" and get length
4684 of field "contents".
4685
4686 2014-04-19 Yao Qi <yao@codesourcery.com>
4687
4688 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4689
4690 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4691
4692 * valops.c (oload_method_static): Remove unnecessary argument
4693 METHOD. Update all callers.
4694
4695 2014-04-18 Pedro alves <palves@redhat.com>
4696 Tom Tromey <tromey@redhat.com>
4697
4698 PR backtrace/15558
4699 * frame.c (get_prev_frame_1): Rename to ...
4700 (get_prev_frame_always): ... this, and make extern. Adjust.
4701 (skip_artificial_frames): Use get_prev_frame_always.
4702 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4703 (get_frame_unwind_stop_reason): Adjust to rename.
4704 * frame.h (get_prev_frame_always): Declare.
4705 * inline-frame.c: Include frame.h.
4706 (inline_frame_this_id): Use get_prev_frame_always.
4707
4708 2014-04-18 Tristan Gingold <gingold@adacore.com>
4709
4710 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4711 code by using bfd_mach_o_get_base_address.
4712
4713 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4714
4715 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4716 (spu_ax_pseudo_register_collect): New function.
4717 (spu_ax_pseudo_register_push_stack): Likewise.
4718 (spu_dwarf_reg_to_regnum): Likewise.
4719 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4720
4721 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4722
4723 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4724 Replace FRAME argument with FRAME_ID.
4725 * gdbarch.c, gdbarch.h: Regenerate.
4726 * findvar.c (default_value_from_register): Add GDBARCH argument;
4727 replace FRAME by FRAME_ID. No longer call get_frame_id.
4728 (value_from_register): Update call to gdbarch_value_from_register.
4729 * value.h (default_value_from_register): Update prototype.
4730 * s390-linux-tdep.c (s390_value_from_register): Update interface
4731 and call to default_value_from_register.
4732 * spu-tdep.c (spu_value_from_register): Likewise.
4733
4734 * findvar.c (address_from_register): Remove TYPE argument.
4735 Do not call value_from_register; use gdbarch_value_from_register
4736 with null_frame_id instead.
4737 * value.h (address_from_register): Update prototype.
4738 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4739 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4740 address_from_register interface change.
4741
4742 2014-04-17 Yao Qi <yao@codesourcery.com>
4743
4744 * gdbtypes.h: Update comments to link to types and macros'
4745 definitions.
4746
4747 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4748
4749 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4750
4751 2014-04-16 Keith Seitz <keiths@redhat.com>
4752
4753 PR gdb/15827
4754 * dwarf2read.c (skip_one_die): Check that all relative-offset
4755 sibling DIEs fall within range of the current reader's buffer.
4756 (read_partial_die): Likewise.
4757
4758 2014-04-16 Keith Seitz <keiths@redhat.com>
4759
4760 PR c++/16597
4761 * cp-namespace.c (lookup_symbol_file): If the type name of
4762 `this' is NULL, return immediately.
4763
4764 2014-04-14 Keith Seitz <keiths@redhat.com>
4765
4766 PR c++/16253
4767 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4768 from symbol_matches_domain in symtab.c. All local callers
4769 of symbol_matches_domain updated.
4770 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4771 search STRUCT_DOMAIN.
4772 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4773 independently. standard_lookup will do that automatically.
4774 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4775 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4776 (cp_lookup_symbol_in_namespace): Likewise.
4777 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4778 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4779 may return a STRUCT_DOMAIN match.
4780 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4781 * cp-support.c: Include language.h.
4782 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4783 VAR_DOMAIN.
4784 * psymtab.c (match_partial_symbol): Compare the requested
4785 domain with the symbol's domain directly.
4786 (lookup_partial_symbol): Likewise.
4787 * symtab.c (lookup_symbol_in_language): Explain when/why
4788 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4789 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4790 appropriate languages.
4791 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4792 and moved to ada-lang.c
4793 (lookup_block_symbol): Explain that this function only returns
4794 symbol matching the requested DOMAIN.
4795 Compare the requested domain with the symbol's domain directly.
4796 (iterate_over_symbols): Compare the requested domain with the
4797 symbol's domain directly.
4798 * symtab.h (symbol_matches_domain): Remove.
4799
4800 2014-04-14 Tom Tromey <tromey@redhat.com>
4801
4802 PR c++/15246:
4803 * c-exp.y (type_aggregate_p): New function.
4804 (qualified_name, classify_inner_name): Use it.
4805 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4806 and TYPE_TARGET_TYPE of an enum type.
4807 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4808 an enum type.
4809 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4810 handle TYPE_DECLARED_CLASS.
4811 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4812 types.
4813 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4814 * valops.c (enum_constant_from_type): New function.
4815 (value_aggregate_elt): Use it.
4816 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4817 TYPE_CODE_ENUM.
4818
4819 2014-04-14 Tom Tromey <tromey@redhat.com>
4820
4821 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4822 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4823 const.
4824 * value.h (value_aggregate_elt): Update.
4825
4826 2014-04-14 Tom Tromey <tromey@redhat.com>
4827
4828 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4829
4830 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4831
4832 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4833 (evaluate_subexp_standard): Pass noside argument.
4834 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4835 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4836 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4837 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4838 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4839
4840 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4841
4842 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4843 points to a constant blob.
4844
4845 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4846
4847 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4848 property and store it as the high bound and flag the range accordingly.
4849 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4850 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4851 * gdbtypes.h (enum range_flags): New enum.
4852 (struct range_bounds): Add flags member.
4853
4854 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4855
4856 * c-typeprint.c (c_type_print_varspec_suffix): Added
4857 check for not yet resolved high bound. If unresolved, print
4858 "variable length" string to the console instead of random
4859 length.
4860
4861 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4862
4863 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4864 value.
4865 (ada_template_to_fixed_record_type_1): Likewise.
4866 (ada_to_fixed_type_1): Likewise.
4867 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4868 (cp_print_value): Likewise.
4869 * d-valprint.c (dynamic_array_type): Likewise.
4870 * findvar.c (address_of_variable): Likewise.
4871 * jv-valprint.c (java_value_print): Likewise.
4872 * valops.c (value_ind): Likewise.
4873 * value.c (coerce_ref): Likewise.
4874
4875 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4876
4877 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4878 value and retrieve the dynamic type size.
4879
4880 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4881
4882 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4883 passed to sizeof is dynamic evaluate the argument to compute the length.
4884
4885 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4886 Joel Brobecker <brobecker@adacore.com>
4887
4888 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4889 (dwarf2_evaluate_property): New function.
4890 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4891 * dwarf2read.c (attr_to_dynamic_prop): New function.
4892 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4893 attribute.
4894 * gdbtypes.c: Include dwarf2loc.h.
4895 (is_dynamic_type): New function.
4896 (resolve_dynamic_type): New function.
4897 (resolve_dynamic_bounds): New function.
4898 (get_type_length): New function.
4899 (check_typedef): Use get_type_length to compute type length.
4900 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4901 (TYPE_LOW_BOUND_KIND): New macro.
4902 (is_dynamic_type): New function prototype.
4903 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4904 to resolve dynamic properties of the type. Update comment.
4905 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4906
4907 2014-04-14 Richard Henderson <rth@redhat.com>
4908
4909 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4910
4911 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4912 Doug Evans <xdje42@gmail.com>
4913
4914 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4915 dereference TYPE_CODE_REF values.
4916
4917 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4918
4919 Revert the following changes due to regressions:
4920
4921 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4922 (dwarf2_evaluate_property): New function.
4923 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4924 * dwarf2read.c (attr_to_dynamic_prop): New function.
4925 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4926 attribute.
4927 * gdbtypes.c: Include dwarf2loc.h.
4928 (is_dynamic_type): New function.
4929 (resolve_dynamic_type): New function.
4930 (resolve_dynamic_bounds): New function.
4931 (get_type_length): New function.
4932 (check_typedef): Use get_type_length to compute type length.
4933 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4934 (TYPE_LOW_BOUND_KIND): New macro.
4935 (is_dynamic_type): New function prototype.
4936 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4937 to resolve dynamic properties of the type. Update comment.
4938 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4939
4940 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4941 passed to sizeof is dynamic evaluate the argument to compute the length.
4942
4943 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4944 value and retrieve the dynamic type size.
4945
4946 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4947 (ada_template_to_fixed_record_type_1): Likewise.
4948 (ada_to_fixed_type_1): Likewise.
4949 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4950 (cp_print_value): Likewise.
4951 * d-valprint.c (dynamic_array_type): Likewise.
4952 * eval.c (evaluate_subexp_with_coercion): Likewise.
4953 * findvar.c (address_of_variable): Likewise.
4954 * jv-valprint.c (java_value_print): Likewise.
4955 * valops.c (value_ind): Likewise.
4956 * value.c (coerce_ref): Likewise.
4957
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
4961 length.
4962
4963 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4964 property and store it as the high bound and flag the range accordingly.
4965 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4966 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4967 * gdbtypes.h (enum range_flags): New enum.
4968 (struct range_bounds): Add flags member.
4969
4970 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4971 points to a constant blob.
4972
4973 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4974 (evaluate_subexp_standard): Pass noside argument.
4975 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4976 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4977 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4978 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4979 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4980
4981 2014-04-11 Keith Seitz <keiths@redhat.com>
4982
4983 PR c++/16675
4984 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4985 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4986 reference types.
4987
4988 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4989
4990 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4991 (evaluate_subexp_standard): Pass noside argument.
4992 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4993 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4994 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4995 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4996 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4997
4998 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4999
5000 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5001 points to a constant blob.
5002
5003 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5004
5005 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5006 property and store it as the high bound and flag the range accordingly.
5007 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5008 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5009 * gdbtypes.h (enum range_flags): New enum.
5010 (struct range_bounds): Add flags member.
5011
5012 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5013
5014 * c-typeprint.c (c_type_print_varspec_suffix): Added
5015 check for not yet resolved high bound. If unresolved, print
5016 "variable length" string to the console instead of random
5017 length.
5018
5019 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5020
5021 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5022 (ada_template_to_fixed_record_type_1): Likewise.
5023 (ada_to_fixed_type_1): Likewise.
5024 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5025 (cp_print_value): Likewise.
5026 * d-valprint.c (dynamic_array_type): Likewise.
5027 * eval.c (evaluate_subexp_with_coercion): Likewise.
5028 * findvar.c (address_of_variable): Likewise.
5029 * jv-valprint.c (java_value_print): Likewise.
5030 * valops.c (value_ind): Likewise.
5031 * value.c (coerce_ref): Likewise.
5032
5033 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5034
5035 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5036 value and retrieve the dynamic type size.
5037
5038 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5039
5040 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5041 passed to sizeof is dynamic evaluate the argument to compute the length.
5042
5043 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5044
5045 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5046 (dwarf2_evaluate_property): New function.
5047 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5048 * dwarf2read.c (attr_to_dynamic_prop): New function.
5049 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5050 attribute.
5051 * gdbtypes.c: Include dwarf2loc.h.
5052 (is_dynamic_type): New function.
5053 (resolve_dynamic_type): New function.
5054 (resolve_dynamic_bounds): New function.
5055 (get_type_length): New function.
5056 (check_typedef): Use get_type_length to compute type length.
5057 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5058 (TYPE_LOW_BOUND_KIND): New macro.
5059 (is_dynamic_type): New function prototype.
5060 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5061 to resolve dynamic properties of the type. Update comment.
5062 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5063
5064 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5065
5066 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5067 declaring high/low bounds and change uses accordingly. Call
5068 create_range_type instead of create_static_range_type.
5069 * gdbtypes.c (create_range_type): New function.
5070 (create_range_type): Convert bounds into struct bound_prop and pass
5071 them to create_range_type.
5072 * gdbtypes.h (struct bound_prop): New struct.
5073 (create_range_type): New function prototype.
5074 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5075 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5076 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5077 part of the bound.
5078 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5079
5080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5081
5082 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5083 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5084 * ada-lang.c: All uses of create_range_type updated.
5085 * coffread.c: All uses of create_range_type updated.
5086 * dwarf2read.c: All uses of create_range_type updated.
5087 * f-exp.y: All uses of create_range_type updated.
5088 * m2-valprint.c: All uses of create_range_type updated.
5089 * mdebugread.c: All uses of create_range_type updated.
5090 * stabsread.c: All uses of create_range_type updated.
5091 * valops.c: All uses of create_range_type updated.
5092 * valprint.c: All uses of create_range_type updated.
5093
5094 2014-04-10 Pedro Alves <palves@redhat.com>
5095
5096 * breakpoint.c (single_step_breakpoints)
5097 (single_step_gdbarch): Move up in the file.
5098 (one_breakpoint_xfer_memory): New function, factored out from ...
5099 (breakpoint_xfer_memory): ... here. Also process single-step
5100 breakpoints.
5101
5102 2014-04-09 Tristan Gingold <gingold@adacore.com>
5103
5104 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5105 comments.
5106 (darwin_decode_exception_message): Free port only after use.
5107
5108 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5109
5110 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5111 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5112 when setting the size of call_length.
5113
5114 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5115
5116 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5117 dereference TYPE_CODE_REF values.
5118
5119 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5120
5121 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5122 end of warning message.
5123
5124 2014-04-03 Doug Evans <dje@google.com>
5125
5126 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5127 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5128
5129 2014-04-02 Alan Modra <amodra@gmail.com>
5130
5131 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5132 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5133 (struct symbol_file_add_from_memory_args): Add size field.
5134 (find_vdso_size): New function.
5135 (add_vsyscall_page): Attempt to find vdso size.
5136
5137 2014-04-01 Doug Evans <dje@google.com>
5138
5139 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5140
5141 2014-04-01 Tristan Gingold <gingold@adacore.com>
5142
5143 * darwin-nat.c (darwin_encode_reply): Add prototype.
5144 (darwin_decode_exception_message): Reply to unknown inferiors.
5145 (darwin_decode_message): Handle message by id. Ignore message
5146 to unknown inferior.
5147 (darwin_wait): Discard unknown messages, add debug trace.
5148
5149 2014-03-31 Doug Evans <dje@google.com>
5150
5151 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5152 comp_dir_string.
5153
5154 2014-03-31 Doug Evans <dje@google.com>
5155
5156 New option "set print symbol-loading".
5157 * NEWS: Mention it.
5158 * solib.c (solib_read_symbols): Only print symbol loading messages
5159 if requested.
5160 (solib_add): If symbol loading is in "brief" mode, notify user
5161 symbols are being loaded.
5162 (reload_shared_libraries_1): Ditto.
5163 * symfile.c (print_symbol_loading_off): New static global.
5164 (print_symbol_loading_brief): New static global.
5165 (print_symbol_loading_full): New static global.
5166 (print_symbol_loading_enums): New static global.
5167 (print_symbol_loading): New static global.
5168 (print_symbol_loading_p): New function.
5169 (symbol_file_add_with_addrs): Only print symbol loading messages
5170 if requested.
5171 (_initialize_symfile): Register "print symbol-loading" set/show
5172 command.
5173 * symfile.h (print_symbol_loading_p): Declare.
5174
5175 2014-03-30 Doug Evans <xdje42@gmail.com>
5176
5177 * infrun.c (set_last_target_status): New function.
5178 (handle_inferior_event): Call it.
5179
5180 2014-03-30 Doug Evans <xdje42@gmail.com>
5181
5182 * inferior.h (enum stop_kind): Improve comment.
5183
5184 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5185
5186 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5187 a reference, strip the reference layer before calling
5188 the lang_ops value_has_mutated callback.
5189
5190 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5191
5192 Remove some globals from our parser.
5193 * language.c (unk_lang_parser): Add "struct parser_state"
5194 argument.
5195 * language.h (struct language_defn) <la_parser>: Likewise.
5196 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5197 (initialize_expout): Add "struct parser_state" argument.
5198 Rewrite function to use the parser state.
5199 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5200 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5201 write_exp_elt_longcst, write_exp_elt_dblcst,
5202 write_exp_elt_decfloatcst, write_exp_elt_type,
5203 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5204 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5205 write_dollar_variable): Likewise.
5206 (parse_exp_in_context_1): Use parser state.
5207 (insert_type_address_space): Add "struct parser_state" argument.
5208 Use parser state.
5209 (increase_expout_size): New function.
5210 * parser-defs.h: Forward declare "struct language_defn" and
5211 "struct parser_state".
5212 (expout, expout_size, expout_ptr): Remove extern declarations.
5213 (parse_gdbarch, parse_language): Rewrite macro declarations to
5214 accept the parser state.
5215 (struct parser_state): New struct.
5216 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5217 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5218 write_exp_elt_decfloatcst, write_exp_elt_type,
5219 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5220 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5221 write_exp_msymbol, write_dollar_variable,
5222 mark_struct_expression, insert_type_address_space): Add "struct
5223 parser_state" argument.
5224 (increase_expout_size): New function.
5225 * utils.c (do_clear_parser_state): New function.
5226 (make_cleanup_clear_parser_state): Likewise.
5227 * utils.h (make_cleanup_clear_parser_state): New function
5228 prototype.
5229 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5230 Update calls to write_exp* in order to pass the parser state.
5231 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5232 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5233 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5234 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5235 * stap-probe.c (stap_parse_register_operand): Likewise.
5236 (stap_parse_single_operand): Likewise.
5237 (stap_parse_argument_1): Likewise.
5238 (stap_parse_argument): Use parser state.
5239 * stap-probe.h: Include "parser-defs.h".
5240 (struct stap_parse_info) <pstate>: New field.
5241 * c-exp.y (parse_type): Rewrite to use parser state.
5242 (yyparse): Redefine to c_parse_internal.
5243 (pstate): New global variable.
5244 (parse_number): Add "struct parser_state" argument.
5245 (write_destructor_name): Likewise.
5246 (type_exp): Update calls to write_exp* and similars in order to
5247 use parser state.
5248 (exp1, exp, variable, qualified_name, space_identifier,
5249 typename, typebase): Likewise.
5250 (write_destructor_name, parse_number, lex_one_token,
5251 classify_name, classify_inner_name, c_parse): Add "struct
5252 parser_state" argument. Update function to use parser state.
5253 * c-lang.h: Forward declare "struct parser_state".
5254 (c_parse): Add "struct parser_state" argument.
5255 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5256 (yyparse): Redefine macro to ada_parse_internal.
5257 (pstate): New variable.
5258 (write_int, write_object_renaming, write_var_or_type,
5259 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5260 type_int, type_long, type_long_long, type_float, type_double,
5261 type_long_double, type_char, type_boolean, type_system_address):
5262 Add "struct parser_state" argument.
5263 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5264 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5265 var_or_type, aggregate, aggregate_component_list,
5266 positional_list, others, component_group,
5267 component_associations): Update calls to write_exp* and similar
5268 functions in order to use parser state.
5269 (ada_parse, write_var_from_sym, write_int,
5270 write_exp_op_with_string, write_object_renaming,
5271 find_primitive_type, write_selectors, write_ambiguous_var,
5272 write_var_or_type, write_name_assoc, type_int, type_long,
5273 type_long_long, type_float, type_double, type_long_double,
5274 type_char, type_boolean, type_system_address): Add "struct
5275 parser_state" argument. Adjust function to use parser state.
5276 * ada-lang.c (parse): Likewise.
5277 * ada-lang.h: Forward declare "struct parser_state".
5278 (ada_parse): Add "struct parser_state" argument.
5279 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5280 calls to both functions.
5281 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5282 parser state.
5283 (yyparse): Redefine macro to f_parse_internal.
5284 (pstate): New variable.
5285 (parse_number): Add "struct parser_state" argument.
5286 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5287 and similars in order to use parser state.
5288 (parse_number): Adjust code to use parser state.
5289 (yylex): Likewise.
5290 (f_parse): New function.
5291 * f-lang.h: Forward declare "struct parser_state".
5292 (f_parse): Add "struct parser_state" argument.
5293 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5294 parser state.
5295 (yyparse): Redefine macro for java_parse_internal.
5296 (pstate): New variable.
5297 (push_expression_name, push_expression_name, insert_exp): Add
5298 "struct parser_state" argument.
5299 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5300 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5301 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5302 PostIncrementExpression, PostDecrementExpression,
5303 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5304 UnaryExpressionNotPlusMinus, CastExpression,
5305 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5306 RelationalExpression, EqualityExpression, AndExpression,
5307 ExclusiveOrExpression, InclusiveOrExpression,
5308 ConditionalAndExpression, ConditionalOrExpression,
5309 ConditionalExpression, Assignment, LeftHandSide): Update
5310 calls to write_exp* and similars in order to use parser state.
5311 (parse_number): Ajust code to use parser state.
5312 (yylex): Likewise.
5313 (java_parse): New function.
5314 (push_variable): Add "struct parser_state" argument. Adjust
5315 code to user parser state.
5316 (push_fieldnames, push_qualified_expression_name,
5317 push_expression_name, insert_exp): Likewise.
5318 * jv-lang.h: Forward declare "struct parser_state".
5319 (java_parse): Add "struct parser_state" argument.
5320 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5321 parser state.
5322 (yyparse): Redefine macro to m2_parse_internal.
5323 (pstate): New variable.
5324 (type_exp, exp, fblock, variable, type): Update calls to
5325 write_exp* and similars to use parser state.
5326 (yylex): Likewise.
5327 (m2_parse): New function.
5328 * m2-lang.h: Forward declare "struct parser_state".
5329 (m2_parse): Add "struct parser_state" argument.
5330 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5331 * objc-lang.h: Forward declare "struct parser_state".
5332 (end_msglist): Add "struct parser_state" argument.
5333 * p-exp.y (parse_type): Rewrite macro to use parser state.
5334 (yyparse): Redefine macro to pascal_parse_internal.
5335 (pstate): New variable.
5336 (parse_number): Add "struct parser_state" argument.
5337 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5338 write_exp* and similars in order to use parser state.
5339 (parse_number, yylex): Adjust code to use parser state.
5340 (pascal_parse): New function.
5341 * p-lang.h: Forward declare "struct parser_state".
5342 (pascal_parse): Add "struct parser_state" argument.
5343 * go-exp.y (parse_type): Rewrite macro to use parser state.
5344 (yyparse): Redefine macro to go_parse_internal.
5345 (pstate): New variable.
5346 (parse_number): Add "struct parser_state" argument.
5347 (type_exp, exp1, exp, variable, type): Update calls to
5348 write_exp* and similars in order to use parser state.
5349 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5350 to use parser state.
5351 (go_parse): Likewise.
5352 * go-lang.h: Forward declare "struct parser_state".
5353 (go_parse): Add "struct parser_state" argument.
5354
5355 2014-03-27 Doug Evans <dje@google.com>
5356
5357 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5358
5359 2014-03-27 Doug Evans <dje@google.com>
5360
5361 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5362 Remove argument abbrev_section. All callers updated.
5363
5364 2014-03-27 Doug Evans <dje@google.com>
5365
5366 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5367 addr_base, ranges_base.
5368
5369 2014-03-26 Keith Seitz <keiths@redhat.com>
5370
5371 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5372 types, not VAR_DOMAIN.
5373
5374 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5375
5376 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5377 "ra" registers.
5378 * features/nios2-linux.c: Regenerated.
5379 * features/nios2.c: Regenerated.
5380
5381 2014-03-25 Pedro Alves <palves@redhat.com>
5382
5383 * cli/cli-script.c (script_from_file): Force the interpreter to
5384 sync mode.
5385
5386 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5387
5388 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5389 small stack allocation.
5390
5391 2014-03-24 Tristan Gingold <gingold@adacore.com>
5392
5393 * darwin-nat.c (exc_server): Remove unused prototype.
5394 (darwin_dump_message): Correctly display data on x86_64.
5395 (darwin_encode_reply): Fix style.
5396 Add comments and fix indentation.
5397
5398 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5399
5400 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5401
5402 2014-03-22 Doug Evans <xdje42@gmail.com>
5403
5404 * infcmd.c: Whitespace fixes.
5405 (interrupt_command): Merge two function comments into one.
5406
5407 2014-03-22 Doug Evans <xdje42@gmail.com>
5408
5409 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5410 All uses updated.
5411
5412 2014-03-22 Yao Qi <yao@codesourcery.com>
5413
5414 * remote.c (target_read_live_memory): Remove.
5415 (memory_xfer_live_readonly_partial): Rename it to
5416 remote_xfer_live_readonly_partial. Remove argument 'object'.
5417 All callers updated. Call remote_read_bytes_1
5418 instead of target_read_live_memory.
5419 * tracepoint.c (set_traceframe_number): Remove.
5420 (make_cleanup_restore_traceframe_number): Likewise .
5421 * tracepoint.h (set_traceframe_number): Remove declaration.
5422 (make_cleanup_restore_traceframe_number): Likewise.
5423
5424 2014-03-22 Yao Qi <yao@codesourcery.com>
5425
5426 * remote.c (remote_read_bytes): Move code on reading from the
5427 remote stub to ...
5428 (remote_read_bytes_1): ... here. New function.
5429
5430 2014-03-22 Yao Qi <yao@codesourcery.com>
5431
5432 * ctf.c (ctf_xfer_partial): Check the return value of
5433 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5434 return TARGET_XFER_UNAVAILABLE.
5435 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5436 * target.c (target_read_live_memory): Move it to remote.c.
5437 (memory_xfer_live_readonly_partial): Likewise.
5438 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5439 * remote.c (target_read_live_memory): Moved from target.c.
5440 (memory_xfer_live_readonly_partial): Likewise.
5441 (remote_read_bytes): Factored out from
5442 memory_xfer_partial_1.
5443
5444 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5445
5446 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5447 NULL pointer.
5448
5449 2014-03-21 Pedro Alves <palves@redhat.com>
5450
5451 * infrun.c (normal_stop): Extend comment.
5452
5453 2014-03-21 Hui Zhu <hui@codesourcery.com>
5454 Pedro Alves <palves@redhat.com>
5455
5456 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5457 static buffer.
5458 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5459 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5460 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5461
5462 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5463
5464 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5465 `z' formatted output modifier.
5466
5467 2014-03-20 Tom Tromey <tromey@redhat.com>
5468 Sergio Durigan Junior <sergiodj@redhat.com>
5469
5470 * probe.c (parse_probes): Turn assert into an ordinary error.
5471 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5472 exceptions when parsing probes. Rearrange the code for clarity.
5473
5474 2014-03-20 Tom Tromey <tromey@redhat.com>
5475
5476 PR gdb/14135
5477 * top.c (execute_command): Only dispatch events if the command
5478 started the target.
5479
5480 2014-03-20 Tom Tromey <tromey@redhat.com>
5481
5482 PR cli/15718
5483 * infcall.c: Include event-top.h.
5484 (run_inferior_call): Call async_disable_stdin if needed.
5485
5486 2014-03-20 Pedro Alves <palves@redhat.com>
5487
5488 * infrun.c (prepare_to_proceed): Delete.
5489 (thread_still_needs_step_over): New function.
5490 (find_thread_needs_step_over): New function.
5491 (proceed): If the current thread needs a step-over, set its
5492 steping_over_breakpoint flag. Adjust to use
5493 find_thread_needs_step_over instead of prepare_to_proceed.
5494 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5495 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5496 breakpoint.
5497 (switch_back_to_stepped_thread): Step over breakpoints of all
5498 threads not the stepping thread, before switching back to the
5499 stepping thread.
5500
5501 2014-03-20 Pedro Alves <palves@redhat.com>
5502
5503 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5504 extern.
5505 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5506 * infrun.c (saved_singlestep_ptid)
5507 (stepping_past_singlestep_breakpoint): Delete.
5508 (resume): Remove stepping_past_singlestep_breakpoint handling.
5509 (proceed): Store the prev_pc of the stepping thread too.
5510 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5511 singlestep_pc.
5512 (enum infwait_states): Delete infwait_thread_hop_state.
5513 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5514 field.
5515 (handle_inferior_event): Adjust.
5516 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5517 handling and the thread-hop code. Before removing single-step
5518 breakpoints, check whether the thread hit a single-step breakpoint
5519 of another thread. If it did, the trap is not a random signal.
5520 (switch_back_to_stepped_thread): If the event thread hit a
5521 single-step breakpoint, unblock it before switching to the
5522 stepping thread. Handle the case of the stepped thread having
5523 advanced already.
5524 (keep_going): Handle the case of the current thread moving past a
5525 single-step breakpoint.
5526
5527 2014-03-20 Pedro Alves <palves@redhat.com>
5528
5529 PR breakpoints/7143
5530 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5531 are being stepped over.
5532 (breakpoint_address_match): Make extern.
5533 * breakpoint.h (breakpoint_address_match): New declaration.
5534 * inferior.h (stepping_past_instruction_at): New declaration.
5535 * infrun.c (struct step_over_info): New type.
5536 (step_over_info): New global.
5537 (set_step_over_info, clear_step_over_info)
5538 (stepping_past_instruction_at): New functions.
5539 (handle_inferior_event): Clear the step-over info when
5540 trap_expected is cleared.
5541 (resume): Remove now stale comment.
5542 (clear_proceed_status): Clear step-over info.
5543 (proceed): Adjust step-over handling to set or clear the step-over
5544 info instead of removing all breakpoints.
5545 (handle_signal_stop): When setting up a thread-hop, don't remove
5546 breakpoints here.
5547 (stop_stepping): Clear step-over info.
5548 (keep_going): Adjust step-over handling to set or clear step-over
5549 info and then always inserting breakpoints, instead of removing
5550 all breakpoints when stepping over one.
5551
5552 2014-03-20 Pedro Alves <palves@redhat.com>
5553
5554 * infrun.c (previous_inferior_ptid): Adjust comment.
5555 (deferred_step_ptid): Delete.
5556 (infrun_thread_ptid_changed, prepare_to_proceed)
5557 (init_wait_for_inferior): Adjust.
5558 (handle_signal_stop): Delete deferred_step_ptid handling.
5559
5560 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5561
5562 PR gdb/15358
5563 * defs.h (sync_quit_force_run): New declaration.
5564 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5565 * event-top.c (async_sigterm_handler): New declaration.
5566 (async_sigterm_token): New variable.
5567 (async_init_signals): Create also async_sigterm_token.
5568 (async_sigterm_handler): New function.
5569 (sync_quit_force_run): New variable.
5570 (handle_sigterm): Replace quit_force call by other calls.
5571 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5572
5573 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5574
5575 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5576 offset into SPE pseudo registers.
5577
5578 2014-03-18 Pedro Alves <palves@redhat.com>
5579
5580 PR gdb/13860
5581 * inferior.h (print_stop_event): Declare.
5582 * infrun.c (print_stop_event): New, factored out from ...
5583 (normal_stop): ... this.
5584 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5585 of bpstat_print/print_stack_frame.
5586
5587 2014-03-17 Tom Tromey <tromey@redhat.com>
5588
5589 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5590
5591 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5592
5593 * ada-lang.c (decode_constrained_packed_array): Perform a
5594 minimal coercion for reference with coerce_ref instead of
5595 ada_coerce_ref.
5596
5597 2014-03-17 Tristan Gingold <gingold@adacore.com>
5598
5599 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5600 (darwin_solib_create_inferior_hook): Emit a warning if version
5601 is unhandled.
5602
5603 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5604
5605 * python/py-value.c (get_field_flag): Cast flag_name argument to
5606 PyObject_GetAttrString to support Python 2.4.
5607
5608 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5609
5610 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5611 (Global Maintainers): Remove Jan Kratochvil.
5612
5613 2014-03-14 Pedro Alves <palves@redhat.com>
5614
5615 * inferior.h (terminal_ours_for_output): Rename to ...
5616 (child_terminal_ours_for_output): ... this.
5617 (terminal_save_ours): Rename to ...
5618 (child_terminal_save_ours): ... this.
5619 (terminal_ours): Rename to ...
5620 (child_terminal_ours): ... this.
5621 (terminal_inferior): Rename to ...
5622 (child_terminal_inferior): ... this.
5623 (terminal_init_inferior): Rename to ...
5624 (child_terminal_init_inferior): ... this.
5625 (terminal_init_inferior_with_pgrp): Rename to ...
5626 (child_terminal_init_inferior_with_pgrp): ... this.
5627 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5628 (child_terminal_init_with_pgrp): ... this.
5629 (terminal_save_ours): Rename to ...
5630 (child_terminal_save_ours): ... this.
5631 (terminal_init_inferior): Rename to ...
5632 (child_terminal_init): ... this. Adjust.
5633 (terminal_inferior): Rename to ...
5634 (child_terminal_inferior): ... this.
5635 (terminal_ours_for_output): Rename to ...
5636 (child_terminal_ours_for_output): ... this. Adjust.
5637 (terminal_ours): Rename to ...
5638 (child_terminal_ours): ... this.
5639 (terminal_ours_1): Rename to ...
5640 (child_terminal_ours_1): ... this. Adjust.
5641 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5642 * windows-nat.c (do_initial_windows_stuff): Adjust.
5643 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5644 (gnu_terminal_init): ... this. Adjust.
5645 (gnu_target): Adjust.
5646 * inf-child.c (inf_child_target): Adjust.
5647
5648 2014-03-13 Doug Evans <xdje42@gmail.com>
5649
5650 PR guile/16612
5651 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5652 new eq?-hashtab.
5653
5654 2014-03-13 Doug Evans <xdje42@gmail.com>
5655
5656 * value.c (record_latest_value): Call release_value_or_incref
5657 instead of release_value.
5658
5659 2014-03-13 Pedro Alves <palves@redhat.com>
5660
5661 * procfs.c (procfs_target): Don't override to_shortname,
5662 to_longname or to_doc.
5663
5664 2014-03-13 Pedro Alves <palves@redhat.com>
5665
5666 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5667 Unix in user visible strings.
5668
5669 2014-03-12 Stan Shebs <stan@codesourcery.com>
5670
5671 * gdbtypes.h: Annotate comments for Doxygen, add a page
5672 block comment with some general info.
5673
5674 2014-03-12 Pedro Alves <palves@redhat.com>
5675
5676 * infcmd.c (prepare_execution_command): New function, factored out
5677 from several execution commands.
5678 (run_command_1, continue_command, step_1, jump_command)
5679 (signal_command, until_command, advance_command, finish_command)
5680 (attach_command): Use prepare_execution_command.
5681
5682 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5683
5684 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5685 (MAX_BPTS): Define.
5686 (MAX_WPTS): Define.
5687 (struct arm_linux_thread_points): Removed.
5688 (struct arm_linux_process_info): New.
5689 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5690 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5691 (arm_linux_find_breakpoints_by_tid): Removed.
5692 (struct arch_lwp_info): New.
5693 (arm_linux_find_process_pid): New functions.
5694 (arm_linux_add_process): New functions.
5695 (arm_linux_process_info_get): New functions.
5696 (arm_linux_forget_process): New function.
5697 (arm_linux_get_debug_reg_state): New function.
5698 (struct update_registers_data): New.
5699 (update_registers_callback): New function.
5700 (arm_linux_insert_hw_breakpoint1): Updated.
5701 (arm_linux_remove_hw_breakpoint1): Updated.
5702 (arm_linux_insert_hw_breakpoint): Updated.
5703 (arm_linux_remove_hw_breakpoint): Updated.
5704 (arm_linux_insert_watchpoint): Updated.
5705 (arm_linux_remove_watchpoint): Updated.
5706 (arm_linux_new_thread): Updated.
5707 (arm_linux_prepare_to_resume): New function.
5708 (arm_linux_new_fork): New function.
5709 (_initialize_arm_linux_nat): Updated.
5710
5711 2014-03-12 Pedro Alves <palves@redhat.com>
5712
5713 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5714
5715 2014-03-12 Tom Tromey <tromey@redhat.com>
5716
5717 * inf-child.c (return_zero): New function.
5718 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5719 * aix-thread.c (aix_thread_inferior_created): New function.
5720 (aix_thread_attach): Remove.
5721 (init_aix_thread_ops): Don't set to_attach.
5722 (_initialize_aix_thread): Register inferior_created observer.
5723 * corelow.c (init_core_ops): Don't set to_attach or
5724 to_create_inferior.
5725 * exec.c (init_exec_ops): Don't set to_attach or
5726 to_create_inferior.
5727 * infcmd.c (run_command_1): Use find_run_target. Make direct
5728 target calls.
5729 (attach_command): Use find_attach_target. Make direct target
5730 calls.
5731 * record-btrace.c (init_record_btrace_ops): Don't set
5732 to_create_inferior.
5733 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5734 Remove.
5735 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5736 set to_create_inferior.
5737 * target.c (complete_target_initialization): Add assertion.
5738 (target_create_inferior): Remove.
5739 (find_default_attach, find_default_create_inferior): Remove.
5740 (find_attach_target, find_run_target): New functions.
5741 (find_default_is_async_p, find_default_can_async_p)
5742 (target_supports_non_stop, target_attach): Remove.
5743 (init_dummy_target): Don't set to_create_inferior or
5744 to_supports_non_stop.
5745 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5746 TARGET_DEFAULT_FUNC.
5747 <to_create_inferior>: Add comment.
5748 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5749 TARGET_DEFAULT_RETURN.
5750 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5751 (find_attach_target, find_run_target): Declare.
5752 (target_create_inferior): Remove.
5753 (target_has_execution_1): Update comment.
5754 (target_supports_non_stop): Remove.
5755 * target-delegates.c: Rebuild.
5756
5757 2014-03-12 Pedro Alves <palves@redhat.com>
5758
5759 * inf-child.h: Update comment to not mention Unix.
5760
5761 2014-03-12 Pedro Alves <palves@redhat.com>
5762
5763 * inf-child.c: Update top comment to not mention Unix. Add
5764 generic comment describing how this target is meant to be used.
5765 (inf_child_post_attach, inf_child_post_startup_inferior)
5766 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5767 Unix in comment.
5768
5769 2014-03-12 Pedro Alves <palves@redhat.com>
5770
5771 * nto-procfs.c: Include inf-child.h.
5772 (procfs_ops): Delete global.
5773 (procfs_can_run): Delete method.
5774 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5775 target pointer instead of referencing procfs_ops.
5776 (procfs_prepare_to_store): Delete.
5777 (init_procfs_ops): Delete function.
5778 (procfs_target): New function, based on init_procfs_ops, but
5779 inherit inf_child_target.
5780 (_initialize_procfs): Use procfs_target.
5781
5782 2014-03-12 Pedro Alves <palves@redhat.com>
5783
5784 * windows-nat.c: Include inf-child.h.
5785 (windows_ops): Delete global.
5786 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5787 methods.
5788 (init_windows_ops): Delete function.
5789 (windows_target): New function, based on init_windows_ops, but
5790 inherit inf_child_target.
5791 (_initialize_windows_nat): Use windows_target. Install x86
5792 specific target methods here.
5793
5794 2014-03-10 Doug Evans <xdje42@gmail.com>
5795
5796 * guile/guile.c (call_initialize_gdb_module): New function.
5797 (initialize_guile): Replace call to scm_init_guile with call to
5798 scm_with_guile.
5799
5800 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5801
5802 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5803 in call to TYPE_CODE macro.
5804
5805 2014-03-10 Jerome Guitton <guitton@adacore.com>
5806
5807 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5808 Resolve tagged types to full view.
5809
5810 2014-03-10 Hui Zhu <hui@codesourcery.com>
5811
5812 * target.h (target_insert_breakpoint): Remove "hardware" from its
5813 comments.
5814
5815 2014-03-07 Doug Evans <dje@google.com>
5816
5817 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5818
5819 2014-03-07 Doug Evans <dje@google.com>
5820
5821 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5822 Remove unused local comp_dir_attr. Assert exactly one of
5823 stub_comp_unit_die, stub_comp_dir is non-NULL.
5824
5825 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5826
5827 * target.h (complete_target_initialization, add_target):
5828 Add comment.
5829
5830 2014-03-07 Pedro Alves <palves@redhat.com>
5831
5832 * go32-nat.c: Include inf-child.h.
5833 (go32_ops): Delete global.
5834 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5835 Delete methods.
5836 (go32_create_inferior): Push the passed in target pointer instead
5837 of referencing go32_ops.
5838 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5839 (go32_target): New function, based on init_go32_ops, but inherit
5840 inf_child_target.
5841 (_initialize_go32_nat): Use go32_target. Move parts of
5842 init_go32_ops here.
5843
5844 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5845
5846 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5847 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5848 SYMBOL_VALUE_ADDRESS.
5849 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5850
5851 2014-03-06 Yao Qi <yao@codesourcery.com>
5852
5853 * breakpoint.c (get_tracepoint_by_number): Remove argument
5854 optional_p. All callers updated. Adjust comments. Update
5855 output message.
5856 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5857
5858 2014-03-06 Yao Qi <yao@codesourcery.com>
5859
5860 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5861 early if get_number returns zero. Use 'p' instead of 'args'.
5862
5863 2014-03-06 Yao Qi <yao@codesourcery.com>
5864
5865 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5866 message.
5867
5868 2014-03-06 Yao Qi <yao@codesourcery.com>
5869
5870 PR breakpoints/16508
5871 * tracepoint.c (check_trace_running): New function.
5872 (trace_find_command): Move code to check_trace_running and
5873 call check_trace_running.
5874 (trace_find_pc_command): Likewise.
5875 (trace_find_tracepoint_command): Likewise.
5876 (trace_find_line_command): Likewise.
5877 (trace_find_range_command): Likewise.
5878 * tracepoint.h (check_trace_running): Likewise.
5879 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5880
5881 2014-03-06 Yao Qi <yao@codesourcery.com>
5882
5883 * target.h (struct target_ops) <to_traceframe_info>: Use
5884 TARGET_DEFAULT_NORETURN (tcomplain ()).
5885 * target-delegates.c: Regenerated.
5886
5887 2014-03-05 Pedro Alves <palves@redhat.com>
5888
5889 PR gdb/16575
5890 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5891 void. Update comment.
5892 (dcache_xfer_memory): Delete.
5893 (dcache_read_memory_partial): New, based on the read bits of
5894 dcache_xfer_memory.
5895 (dcache_update): Add status parameter. Use ULONGEST for len, and
5896 adjust. Discard cache lines if the reason for the update was
5897 error.
5898 * dcache.h (dcache_xfer_memory): Delete declaration.
5899 (dcache_read_memory_partial): New declaration.
5900 (dcache_update): Update prototype.
5901 * target.c (raw_memory_xfer_partial): Update the dcache here.
5902 (memory_xfer_partial_1): Don't handle dcache writes here.
5903
5904 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5905
5906 * remote-sim.c (gdbsim_load): Add const to prog.
5907
5908 2014-03-03 Tom Tromey <tromey@redhat.com>
5909
5910 * elfread.c (probe_key): Change to bfd_data.
5911 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5912 now per-BFD, not per-objfile.
5913 * stap-probe.c (stap_probe_destroy): Update comment.
5914 (handle_stap_probe): Allocate on the per-BFD obstack.
5915
5916 2014-03-03 Tom Tromey <tromey@redhat.com>
5917
5918 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5919 * breakpoint.c (create_longjmp_master_breakpoint): Use
5920 get_probe_address.
5921 (add_location_to_breakpoint, bkpt_probe_insert_location)
5922 (bkpt_probe_remove_location): Update.
5923 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5924 * elfread.c (elf_symfile_relocate_probe): Remove.
5925 (elf_probe_fns): Update.
5926 (insert_exception_resume_breakpoint): Change type of "probe"
5927 parameter to bound_probe.
5928 (check_exception_resume): Update.
5929 * objfiles.c (objfile_relocate1): Don't relocate probes.
5930 * probe.c (bound_probe_s): New typedef.
5931 (parse_probes): Use get_probe_address. Set sal's objfile.
5932 (find_probe_by_pc): Return a bound_probe.
5933 (collect_probes): Return a VEC(bound_probe_s).
5934 (compare_probes): Update.
5935 (gen_ui_out_table_header_info): Change type of "probes"
5936 parameter. Update.
5937 (info_probes_for_ops): Update.
5938 (get_probe_address): New function.
5939 (probe_safe_evaluate_at_pc): Update.
5940 * probe.h (struct probe_ops) <get_probe_address>: New field.
5941 <set_semaphore, clear_semaphore>: Add objfile parameter.
5942 (struct probe) <objfile>: Remove field.
5943 <arch>: New field.
5944 <address>: Update comment.
5945 (struct bound_probe): New.
5946 (find_probe_by_pc): Return a bound_probe.
5947 (get_probe_address): Declare.
5948 * solib-svr4.c (struct probe_and_action) <address>: New field.
5949 (hash_probe_and_action, equal_probe_and_action): Update.
5950 (register_solib_event_probe): Add address parameter.
5951 (solib_event_probe_at): Update.
5952 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5953 get_probe_address.
5954 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5955 (stap_get_probe_address): New function.
5956 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5957 (compile_probe_arg): Update.
5958 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5959 address.
5960 (handle_stap_probe): Don't relocate the probe.
5961 (stap_relocate): Remove.
5962 (stap_gen_info_probes_table_values): Update.
5963 (stap_probe_ops): Remove stap_relocate.
5964 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5965 (debug_sym_probe_fns): Update.
5966 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5967 * symtab.c (init_sal): Use memset.
5968 * symtab.h (struct symtab_and_line) <objfile>: New field.
5969 * tracepoint.c (start_tracing, stop_tracing): Update.
5970
5971 2014-03-03 Tom Tromey <tromey@redhat.com>
5972
5973 * probe.h (parse_probes, find_probe_by_pc)
5974 (find_probes_in_objfile): Fix comments.
5975
5976 2014-03-02 Doug Evans <xdje42@gmail.com>
5977
5978 * infrun.c (handle_signal_stop): Replace test for
5979 TARGET_WAITKIND_STOPPED with an assert.
5980
5981 2014-03-02 Doug Evans <xdje42@gmail.com>
5982
5983 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5984
5985 2014-03-02 Doug Evans <xdje42@gmail.com>
5986
5987 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5988
5989 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5990
5991 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5992
5993 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5994
5995 * i386obsd-nat.c: Include "obsd-nat.h".
5996 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5997 add_target.
5998 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5999
6000 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6001
6002 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6003
6004 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6005
6006 * mips64obsd-nat.c: Include "obsd-nath".
6007 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6008 add_target
6009 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6010
6011 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6012
6013 * amd64obsd-nat.c: Include "obsd-nat,h.
6014 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6015 add_target.
6016 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6017
6018 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6019
6020 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6021 (find_overload_match): Update call to find_oload_champ.
6022 (find_oload_champ_namespace_loop): Likewise
6023
6024 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6025
6026 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6027
6028 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6029 * config/sparc/obsd64.mh: New file.
6030 * sparc64obsd-nat.c: New file.
6031
6032 * obsd-nat.h: New file.
6033 * obsd-nat.c: New file.
6034 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6035 (ALLDEPFILES): Add obsd-nat.c.
6036
6037 2014-02-28 Tom Tromey <tromey@redhat.com>
6038
6039 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6040 * cli-out.h (cli_ui_out_impl): Now const.
6041 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6042 * ui-out.c (struct ui_out) <impl>: Now const.
6043 (default_ui_out_impl): Now const.
6044 (ui_out_new): Make 'impl' parameter const.
6045 * ui-out.h (ui_out_new): Update.
6046
6047 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6048
6049 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6050
6051 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6052
6053 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6054
6055 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6056
6057 Additional PR 8882 fix.
6058 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6059
6060 2014-02-27 Pedro Alves <palves@redhat.com>
6061
6062 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6063 isn't set.
6064
6065 2014-02-27 Pedro Alves <palves@redhat.com>
6066
6067 PR 12702
6068 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6069 * nat/linux-waitpid.c: Include string.h.
6070 (status_to_str): Moved here and made extern.
6071 * nat/linux-waitpid.h (status_to_str): New declaration.
6072
6073 2014-02-27 Hui Zhu <hui@codesourcery.com>
6074
6075 PR 12702
6076 * infrun.c (ptid_match): Move ...
6077 * common/ptid.c (ptid_match): ... here.
6078 * inferior.h (ptid_match): Move ...
6079 * common/ptid.h (ptid_match): ... here.
6080
6081 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6082
6083 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6084 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6085 gdb_target_obs.
6086
6087 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6088
6089 * obsd-tdep.c (obsd_auxv_parse): New function.
6090 (obsd_init_abi): Set auxv_parse.
6091
6092 * gdbarch.sh (auxv_parse): New.
6093 * gdbarch.h: Regenerated.
6094 * gdbarch.c: Regenerated.
6095 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6096
6097 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6098
6099 * guile/scm-value.c (gdbscm_history_append_x): New function.
6100 (value_functions): Add it.
6101
6102 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6103
6104 * dwarf2read.c (attr_value_as_address): New function.
6105 (dwarf2_find_base_address, read_call_site_scope): Use
6106 attr_value_as_address in place of DW_ADDR.
6107 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6108 the low and high addresses. Slight rework of the handling
6109 of the high pc being a constant form, and limit it to
6110 DWARF verson 4 or higher.
6111 (dwarf2_record_block_ranges): Likewise.
6112 (read_partial_die): Likewise.
6113 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6114
6115 2014-02-26 Tom Tromey <tromey@redhat.com>
6116
6117 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6118
6119 2014-02-26 Tom Tromey <tromey@redhat.com>
6120
6121 * elfread.c (elf_read_minimal_symbols): Return early if
6122 minimal symbols have already been read. Add "ei" parameter.
6123 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6124 * minsyms.c (prim_record_minimal_symbol_full): Update.
6125 * objfiles.h (struct objstats) <n_minsyms>: Move...
6126 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6127 * symmisc.c (print_objfile_statistics): Update.
6128
6129 2014-02-26 Tom Tromey <tromey@redhat.com>
6130
6131 * elfread.c (elf_read_minimal_symbols): New function, from
6132 elf_symfile_read.
6133 (elf_symfile_read): Call it.
6134
6135 2014-02-26 Tom Tromey <tromey@redhat.com>
6136
6137 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6138 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6139 (lookup_minimal_symbol_solib_trampoline)
6140 (lookup_minimal_symbol_by_pc_section_1)
6141 (lookup_minimal_symbol_and_objfile): Update.
6142 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6143 Don't allocate a minimal symbol if minsyms have already been read.
6144 (build_minimal_symbol_hash_tables): Update.
6145 (install_minimal_symbols): Do nothing if minsyms already read.
6146 Use the per-BFD obstack.
6147 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6148 * objfiles.c (allocate_objfile): Call
6149 terminate_minimal_symbol_table later.
6150 (have_minimal_symbols): Update.
6151 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6152 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6153 Move from struct objfile.
6154 <minsyms_read>: New field.
6155 (struct objfile) <msymbols, minimal_symbol_count,
6156 msymbol_hash, msymbol_demangled_hash>: Move.
6157 (ALL_OBJFILE_MSYMBOLS): Update.
6158 * symfile.c (read_symbols): Set minsyms_read.
6159 (reread_symbols): Update.
6160 * symmisc.c (dump_objfile, dump_msymbols): Update.
6161
6162 2014-02-26 Tom Tromey <tromey@redhat.com>
6163
6164 * minsyms.c (msymbols_sort): Remove.
6165 * minsyms.h (msymbols_sort): Remove.
6166 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6167 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6168 * elfread.c (elf_symtab_read): Don't add section offsets.
6169 * xcoffread.c (record_minimal_symbol): Don't add section offset
6170 to minimal symbol address.
6171 * somread.c (text_offset, data_offset): Remove.
6172 (som_symtab_read): Don't add section offsets to minimal symbol
6173 addresses.
6174 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6175 Don't add section offsets to minimal symbols.
6176 * coffread.c (coff_symtab_read): Don't add section offsets
6177 to minimal symbol addresses.
6178 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6179 to minimal symbol addresses.
6180 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6181 section offset to minimal symbol addresses.
6182 * mdebugread.c (parse_partial_symbols): Don't add section
6183 offset to minimal symbol addresses.
6184 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6185 offset to minimal symbol addresses.
6186
6187 2014-02-26 Tom Tromey <tromey@redhat.com>
6188
6189 * ada-lang.c (ada_main_name): Update.
6190 (ada_add_standard_exceptions): Update.
6191 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6192 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6193 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6194 * auxv.c (ld_so_xfer_auxv): Update.
6195 * avr-tdep.c (avr_scan_prologue): Update.
6196 * ax-gdb.c (gen_var_ref): Update.
6197 * blockframe.c (get_pc_function_start)
6198 (find_pc_partial_function_gnu_ifunc): Update.
6199 * breakpoint.c (create_overlay_event_breakpoint)
6200 (create_longjmp_master_breakpoint)
6201 (create_std_terminate_master_breakpoint)
6202 (create_exception_master_breakpoint): Update.
6203 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6204 * c-valprint.c (c_val_print): Update.
6205 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6206 * common/agent.c (agent_look_up_symbols): Update.
6207 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6208 * dwarf2loc.c (call_site_to_target_addr): Update.
6209 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6210 * elfread.c (elf_gnu_ifunc_record_cache)
6211 (elf_gnu_ifunc_resolve_by_got): Update.
6212 * findvar.c (default_read_var_value): Update.
6213 * frame.c (inside_main_func): Update.
6214 * frv-tdep.c (frv_frame_this_id): Update.
6215 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6216 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6217 Update.
6218 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6219 (hppa_hpux_find_dummy_bpaddr): Update.
6220 * hppa-tdep.c (hppa_symbol_address): Update.
6221 * infcmd.c (until_next_command): Update.
6222 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6223 Update.
6224 * linespec.c (minsym_found, add_minsym): Update.
6225 * linux-nat.c (get_signo): Update.
6226 * linux-thread-db.c (inferior_has_bug): Update.
6227 * m32c-tdep.c (m32c_return_value)
6228 (m32c_m16c_address_to_pointer): Update.
6229 * m32r-tdep.c (m32r_frame_this_id): Update.
6230 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6231 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6232 * maint.c (maintenance_translate_address): Update.
6233 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6234 (frob_address): New function.
6235 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6236 frob_address. Rename parameter to "pc_in".
6237 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6238 addresses.
6239 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6240 Update.
6241 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6242 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6243 * objc-lang.c (find_objc_msgsend): Update.
6244 * objfiles.c (objfile_relocate1): Update.
6245 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6246 * p-valprint.c (pascal_val_print): Update.
6247 * parse.c (write_exp_msymbol): Update.
6248 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6249 (ppc_elfv2_skip_entrypoint): Update.
6250 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6251 * printcmd.c (build_address_symbolic, msym_info)
6252 (address_info): Update.
6253 * proc-service.c (ps_pglobal_lookup): Update.
6254 * psymtab.c (find_pc_sect_psymtab_closer)
6255 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6256 Change msymbol parameter to bound_minimal_symbol.
6257 * ravenscar-thread.c (get_running_thread_id): Update.
6258 * remote.c (remote_check_symbols): Update.
6259 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6260 address.
6261 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6262 * solib-dsbt.c (lm_base): Update.
6263 * solib-frv.c (lm_base, main_got): Update.
6264 * solib-irix.c (locate_base): Update.
6265 * solib-som.c (som_solib_create_inferior_hook)
6266 (link_map_start): Update.
6267 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6268 * solib-svr4.c (elf_locate_base, enable_break): Update.
6269 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6270 (flush_ea_cache): Update.
6271 * stabsread.c (define_symbol, scan_file_globals): Update.
6272 * stack.c (find_frame_funname): Update.
6273 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6274 (debug_qf_find_pc_sect_symtab): Update.
6275 * symfile.c (simple_read_overlay_table)
6276 (simple_overlay_update): Update.
6277 * symfile.h (struct quick_symbol_functions)
6278 <find_pc_sect_symtab>: Change type of msymbol to
6279 bound_minimal_symbol.
6280 * symmisc.c (dump_msymbols): Update.
6281 * symtab.c (find_pc_sect_symtab_via_partial)
6282 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6283 (search_symbols, print_msymbol_info): Update.
6284 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6285 (MSYMBOL_VALUE_ADDRESS): Redefine.
6286 (BMSYMBOL_VALUE_ADDRESS): New macro.
6287 * tracepoint.c (scope_info): Update.
6288 * tui/tui-disasm.c (tui_find_disassembly_address)
6289 (tui_get_begin_asm_address): Update.
6290 * valops.c (find_function_in_inferior): Update.
6291 * value.c (value_static_field, value_fn_field): Update.
6292
6293 2014-02-26 Tom Tromey <tromey@redhat.com>
6294
6295 * ada-lang.c (ada_update_initial_language): Update.
6296 (ada_main_name, ada_has_this_exception_support): Update.
6297 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6298 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6299 * arm-tdep.c (arm_skip_stub): Update.
6300 * auxv.c (ld_so_xfer_auxv): Update.
6301 * avr-tdep.c (avr_scan_prologue): Update.
6302 * ax-gdb.c (gen_var_ref): Update.
6303 * breakpoint.c (struct breakpoint_objfile_data)
6304 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6305 type to bound_minimal_symbol.
6306 (create_overlay_event_breakpoint)
6307 (create_longjmp_master_breakpoint)
6308 (create_std_terminate_master_breakpoint)
6309 (create_exception_master_breakpoint): Update.
6310 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6311 * c-exp.y (classify_name): Update.
6312 * coffread.c (coff_symfile_read): Update.
6313 * common/agent.c (agent_look_up_symbols): Update.
6314 * d-lang.c (d_main_name): Update.
6315 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6316 * dec-thread.c (enable_dec_thread): Update.
6317 * dwarf2loc.c (call_site_to_target_addr): Update.
6318 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6319 * eval.c (evaluate_subexp_standard): Update.
6320 * findvar.c (struct minsym_lookup_data) <result>: Change type
6321 to bound_minimal_symbol.
6322 <objfile>: Remove.
6323 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6324 * frame.c (inside_main_func): Update.
6325 * frv-tdep.c (frv_frame_this_id): Update.
6326 * gcore.c (call_target_sbrk): Update.
6327 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6328 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6329 Update.
6330 * go-lang.c (go_main_name): Update.
6331 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6332 (hppa_hpux_find_import_stub_for_addr): Update.
6333 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6334 Update. Change return type.
6335 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6336 type.
6337 * jit.c (jit_breakpoint_re_set_internal): Update.
6338 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6339 Update.
6340 * linux-nat.c (get_signo): Update.
6341 * linux-thread-db.c (inferior_has_bug): Update
6342 * m32c-tdep.c (m32c_return_value)
6343 (m32c_m16c_address_to_pointer): Update.
6344 * m32r-tdep.c (m32r_frame_this_id): Update.
6345 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6346 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6347 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6348 lookup_minimal_symbol. Change return type.
6349 (lookup_minimal_symbol): Remove.
6350 (lookup_bound_minimal_symbol): Update.
6351 (lookup_minimal_symbol_text): Change return type.
6352 (lookup_minimal_symbol_solib_trampoline): Change return type.
6353 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6354 (lookup_minimal_symbol_solib_trampoline): Change return type.
6355 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6356 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6357 (value_nsstring, find_imps): Update.
6358 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6359 * p-lang.c (pascal_main_name): Update.
6360 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6361 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6362 * proc-service.c (ps_pglobal_lookup): Update.
6363 * ravenscar-thread.c (get_running_thread_msymbol): Change
6364 return type.
6365 (has_ravenscar_runtime, get_running_thread_id): Update.
6366 * remote.c (remote_check_symbols): Update.
6367 * sol-thread.c (ps_pglobal_lookup): Update.
6368 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6369 * solib-dsbt.c (lm_base): Update.
6370 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6371 Update.
6372 * solib-irix.c (locate_base): Update.
6373 * solib-som.c (som_solib_create_inferior_hook)
6374 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6375 Update.
6376 * solib-spu.c (spu_enable_break): Update.
6377 * solib-svr4.c (elf_locate_base, enable_break): Update.
6378 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6379 (flush_ea_cache): Update.
6380 * stabsread.c (define_symbol): Update.
6381 * symfile.c (simple_read_overlay_table): Update.
6382 * symtab.c (find_pc_sect_line): Update.
6383 * tracepoint.c (scope_info): Update.
6384 * tui-disasm.c (tui_get_begin_asm_address): Update.
6385 * value.c (value_static_field): Update.
6386
6387 2014-02-26 Tom Tromey <tromey@redhat.com>
6388
6389 * minsyms.c (prim_record_minimal_symbol_full): Use
6390 SET_MSYMBOL_VALUE_ADDRESS.
6391 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6392 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6393 SET_MSYMBOL_VALUE_ADDRESS.
6394 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6395 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6396
6397 2014-02-26 Tom Tromey <tromey@redhat.com>
6398
6399 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6400 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6401 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6402 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6403 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6404 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6405 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6406 * ada-lang.c (ada_main_name): Update.
6407 (ada_lookup_simple_minsym): Update.
6408 (ada_make_symbol_completion_list): Update.
6409 (ada_add_standard_exceptions): Update.
6410 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6411 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6412 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6413 * arm-tdep.c (skip_prologue_function): Update.
6414 (arm_skip_stack_protector, arm_skip_stub): Update.
6415 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6416 (arm_wince_skip_main_prologue): Update.
6417 * auxv.c (ld_so_xfer_auxv): Update.
6418 * avr-tdep.c (avr_scan_prologue): Update.
6419 * ax-gdb.c (gen_var_ref): Update.
6420 * block.c (call_site_for_pc): Update.
6421 * blockframe.c (get_pc_function_start): Update.
6422 (find_pc_partial_function_gnu_ifunc): Update.
6423 * breakpoint.c (create_overlay_event_breakpoint): Update.
6424 (create_longjmp_master_breakpoint): Update.
6425 (create_std_terminate_master_breakpoint): Update.
6426 (create_exception_master_breakpoint): Update.
6427 (resolve_sal_pc): Update.
6428 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6429 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6430 Update.
6431 * c-valprint.c (c_val_print): Update.
6432 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6433 * coffread.c (coff_symfile_read): Update.
6434 * common/agent.c (agent_look_up_symbols): Update.
6435 * dbxread.c (find_stab_function_addr): Update.
6436 (end_psymtab): Update.
6437 * dwarf2loc.c (call_site_to_target_addr): Update.
6438 (func_verify_no_selftailcall): Update.
6439 (tailcall_dump): Update.
6440 (call_site_find_chain_1): Update.
6441 (dwarf_expr_reg_to_entry_parameter): Update.
6442 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6443 (elf_gnu_ifunc_resolve_by_got): Update.
6444 * f-valprint.c (info_common_command): Update.
6445 * findvar.c (read_var_value): Update.
6446 * frame.c (get_prev_frame_1): Update.
6447 (inside_main_func): Update.
6448 * frv-tdep.c (frv_skip_main_prologue): Update.
6449 (frv_frame_this_id): Update.
6450 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6451 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6452 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6453 (gnuv3_skip_trampoline): Update.
6454 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6455 (hppa64_hpux_in_solib_call_trampoline): Update.
6456 (hppa_hpux_skip_trampoline_code): Update.
6457 (hppa64_hpux_search_dummy_call_sequence): Update.
6458 (hppa_hpux_find_import_stub_for_addr): Update.
6459 (hppa_hpux_find_dummy_bpaddr): Update.
6460 * hppa-tdep.c (hppa_symbol_address)
6461 (hppa_lookup_stub_minimal_symbol): Update.
6462 * i386-tdep.c (i386_skip_main_prologue): Update.
6463 (i386_pe_skip_trampoline_code): Update.
6464 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6465 * infcall.c (get_function_name): Update.
6466 * infcmd.c (until_next_command): Update.
6467 * jit.c (jit_breakpoint_re_set_internal): Update.
6468 (jit_inferior_init): Update.
6469 * linespec.c (minsym_found): Update.
6470 (add_minsym): Update.
6471 * linux-fork.c (info_checkpoints_command): Update.
6472 * linux-nat.c (get_signo): Update.
6473 * linux-thread-db.c (inferior_has_bug): Update.
6474 * m32c-tdep.c (m32c_return_value): Update.
6475 (m32c_m16c_address_to_pointer): Update.
6476 (m32c_m16c_pointer_to_address): Update.
6477 * m32r-tdep.c (m32r_frame_this_id): Update.
6478 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6479 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6480 * maint.c (maintenance_translate_address): Update.
6481 * minsyms.c (add_minsym_to_hash_table): Update.
6482 (add_minsym_to_demangled_hash_table): Update.
6483 (msymbol_objfile): Update.
6484 (lookup_minimal_symbol): Update.
6485 (iterate_over_minimal_symbols): Update.
6486 (lookup_minimal_symbol_text): Update.
6487 (lookup_minimal_symbol_by_pc_name): Update.
6488 (lookup_minimal_symbol_solib_trampoline): Update.
6489 (lookup_minimal_symbol_by_pc_section_1): Update.
6490 (lookup_minimal_symbol_and_objfile): Update.
6491 (prim_record_minimal_symbol_full): Update.
6492 (compare_minimal_symbols): Update.
6493 (compact_minimal_symbols): Update.
6494 (build_minimal_symbol_hash_tables): Update.
6495 (install_minimal_symbols): Update.
6496 (terminate_minimal_symbol_table): Update.
6497 (find_solib_trampoline_target): Update.
6498 (minimal_symbol_upper_bound): Update.
6499 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6500 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6501 (mips_skip_pic_trampoline_code): Update.
6502 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6503 * objc-lang.c (selectors_info): Update.
6504 (classes_info): Update.
6505 (find_methods): Update.
6506 (find_imps): Update.
6507 (find_objc_msgsend): Update.
6508 * objfiles.c (objfile_relocate1): Update.
6509 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6510 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6511 * p-valprint.c (pascal_val_print): Update.
6512 * parse.c (write_exp_msymbol): Update.
6513 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6514 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6515 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6516 * printcmd.c (build_address_symbolic): Update.
6517 (sym_info): Update.
6518 (address_info): Update.
6519 * proc-service.c (ps_pglobal_lookup): Update.
6520 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6521 (find_pc_sect_psymtab): Update.
6522 * python/py-framefilter.c (py_print_frame): Update.
6523 * ravenscar-thread.c (get_running_thread_id): Update.
6524 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6525 Update.
6526 * remote.c (remote_check_symbols): Update.
6527 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6528 (rs6000_skip_trampoline_code): Update.
6529 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6530 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6531 * solib-dsbt.c (lm_base): Update.
6532 * solib-frv.c (lm_base): Update.
6533 (main_got): Update.
6534 * solib-irix.c (locate_base): Update.
6535 * solib-som.c (som_solib_create_inferior_hook): Update.
6536 (som_solib_desire_dynamic_linker_symbols): Update.
6537 (link_map_start): Update.
6538 * solib-spu.c (spu_enable_break): Update.
6539 (ocl_enable_break): Update.
6540 * solib-svr4.c (elf_locate_base): Update.
6541 (enable_break): Update.
6542 * spu-tdep.c (spu_get_overlay_table): Update.
6543 (spu_catch_start): Update.
6544 (flush_ea_cache): Update.
6545 * stabsread.c (define_symbol): Update.
6546 (scan_file_globals): Update.
6547 * stack.c (find_frame_funname): Update.
6548 (frame_info): Update.
6549 * symfile.c (simple_read_overlay_table): Update.
6550 (simple_overlay_update): Update.
6551 * symmisc.c (dump_msymbols): Update.
6552 * symtab.c (fixup_section): Update.
6553 (find_pc_sect_line): Update.
6554 (skip_prologue_sal): Update.
6555 (search_symbols): Update.
6556 (print_msymbol_info): Update.
6557 (rbreak_command): Update.
6558 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6559 (completion_list_objc_symbol): Update.
6560 (default_make_symbol_completion_list_break_on): Update.
6561 * tracepoint.c (scope_info): Update.
6562 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6563 (tui_get_begin_asm_address): Update.
6564 * valops.c (find_function_in_inferior): Update.
6565 * value.c (value_static_field): Update.
6566 (value_fn_field): Update.
6567
6568 2014-02-26 Tom Tromey <tromey@redhat.com>
6569
6570 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6571 bound minimal symbols. Move code that knows about minsym
6572 table layout...
6573 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6574 function.
6575 * minsyms.h (minimal_symbol_upper_bound): Declare.
6576 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6577 minimal_symbol_upper_bound.
6578
6579 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6580
6581 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6582 Use the type's name if its basic type does not have a tag.
6583
6584 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6585
6586 * dwarf2read.c (read_subrange_type): Add comment.
6587
6588 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6589
6590 * dwarf2read.c (update_enumeration_type_from_children): New
6591 function, mostly extracted from process_structure_scope.
6592 (read_enumeration_type): Call update_enumeration_type_from_children.
6593 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6594 and flag_flag_enum fields.
6595
6596 2014-02-26 Pedro Alves <palves@redhat.com>
6597
6598 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6599 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6600 to_xfer_partial method.
6601
6602 2014-02-26 Pedro Alves <palves@redhat.com>
6603
6604 * target.c (complete_target_initialization): Don't install
6605 default_xfer_partial as to_xfer_partial hook.
6606 (nomemory): Delete.
6607 (update_current_target): Don't INHERIT nor de_fault
6608 deprecated_xfer_memory. Delete de_fault macro.
6609 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6610 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6611 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6612 field.
6613
6614 2014-02-26 Pedro Alves <palves@redhat.com>
6615
6616 * go32-nat.c (my_write_child): New function.
6617 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6618 (go32_xfer_partial): New function.
6619 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6620 Instead install a to_xfer_partial hook.
6621
6622 2014-02-26 Pedro Alves <palves@redhat.com>
6623
6624 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6625 to_xfer_partial helper. Rewrite.
6626 (procfs_xfer_partial): New function.
6627 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6628 Install a to_xfer_partial hook.
6629
6630 2014-02-26 Pedro Alves <palves@redhat.com>
6631
6632 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6633 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6634 (m32r_xfer_partial): New function.
6635 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6636 Install a to_xfer_partial hook.
6637
6638 2014-02-26 Pedro Alves <palves@redhat.com>
6639
6640 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6641 helper.
6642 (mips_xfer_partial): New function.
6643 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6644 hook. Install a to_xfer_partial hook.
6645
6646 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6647
6648 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6649 * gdbtypes.c (create_array_type_with_stride): New function,
6650 renaming create_array_type, but with an added parameter
6651 called "bit_stride".
6652 (create_array_type): Re-implement using
6653 create_array_type_with_stride.
6654 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6655 and DW_AT_bit_stride attributes.
6656
6657 2014-02-26 Pedro Alves <palves@redhat.com>
6658
6659 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6660 task-specific breakpoints.
6661
6662 2014-02-25 Pedro Alves <palves@redhat.com>
6663
6664 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6665 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6666
6667 2014-02-25 Stan Shebs <stan@codesourcery.com>
6668
6669 * defs.h: Annotate comments for Doxygen.
6670
6671 2014-02-25 Tom Tromey <tromey@redhat.com>
6672
6673 * target.h (target_ignore): Don't declare.
6674 * target.c (target_ignore): Remove.
6675
6676 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6677
6678 PR gdb/16626
6679 * auto-load.c (auto_load_objfile_script_1): Change filename to
6680 debugfile.
6681
6682 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6683
6684 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6685 documentation. Adjust prototype to match the target_ops
6686 to_xfer_partial method. Adjust implementation accordingly.
6687
6688 2014-02-25 Hui Zhu <hui@codesourcery.com>
6689
6690 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6691 to_traceframe_info.
6692
6693 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6694
6695 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6696 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6697 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6698 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6699 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6700 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6701 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6702 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6703 New constants.
6704 (rl78_register_type): Use a data pointer type for SP and
6705 new pseudo registers mentioned above. Use a 16 bit integer
6706 type for all other register pairs.
6707 (rl78_register_name, rl78_g10_register_name): Update for
6708 new pseudo registers.
6709 (rl78_pseudo_register_read): Likewise.
6710 (rl78_pseudo_register_write): Likewise.
6711 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6712 to the newly added pseudo registers.
6713
6714 2014-02-24 Doug Evans <dje@google.com>
6715
6716 * value.c (record_latest_value): Fix comment.
6717 * printcmd.c (print_command_1): Remove code to handle -1 return from
6718 record_latest_value.
6719
6720 2014-02-24 Pedro Alves <palves@redhat.com>
6721
6722 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6723 deprecated_xfer_memory hook.
6724 (procfs_xfer_partial): Call procfs_xfer_memory instead
6725 of the deprecated_xfer_memory target hook.
6726 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6727 helper.
6728
6729 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6730
6731 * windows-nat.c (windows_xfer_shared_libraries): Return
6732 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6733 requested object is TARGET_OBJECT_LIBRARIES.
6734
6735 2014-02-24 Yao Qi <yao@codesourcery.com>
6736
6737 * target.h (enum target_xfer_status)
6738 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6739 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6740 explicitly. New.
6741 * corefile.c (memory_error_message): User updated.
6742 * exec.c (section_table_read_available_memory): Likewise.
6743 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6744 * target.c (target_xfer_status_to_string): Likewise.
6745 (raw_memory_xfer_partial): Likewise.
6746 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6747 * valops.c (read_value_memory): Likewise.
6748 * exec.h: Update comments.
6749
6750 2014-02-24 Yao Qi <yao@codesourcery.com>
6751
6752 * target.c (target_xfer_status_to_string): Rename argument err
6753 to status.
6754 * target.h (target_xfer_status_to_string): Update declaration.
6755 Replace target_xfer_error_to_string with
6756 target_xfer_status_to_string in comment.
6757
6758 2014-02-24 Yao Qi <yao@codesourcery.com>
6759
6760 * mips-linux-nat.c (super_close): Update its type.
6761 (mips_linux_close): Pass 'self' to super_close.
6762
6763 2014-02-24 Yao Qi <yao@codesourcery.com>
6764
6765 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6766 * corefile.c (read_memory): Adjusted.
6767 * target.c (target_write_with_progress): Adjusted.
6768
6769 2014-02-23 Yao Qi <yao@codesourcery.com>
6770
6771 Revert two patches:
6772
6773 2013-10-25 Yao Qi <yao@codesourcery.com>
6774
6775 * remote.c (remote_traceframe_info): Return early if
6776 traceframe is not selected.
6777
6778 2013-07-19 Yao Qi <yao@codesourcery.com>
6779
6780 * target.c (update_current_target): Change the default action
6781 of 'to_traceframe_info' from tcomplain to return_zero.
6782 * target.h (struct target_ops) <to_traceframe_info>: Add more
6783 comments.
6784
6785 2014-02-23 Yao Qi <yao@codesourcery.com>
6786
6787 * valops.c (read_value_memory): Rewrite it. Call
6788 target_xfer_partial in a loop.
6789 * exec.h (section_table_available_memory): Remove declaration.
6790 Move comments to ...
6791 * exec.c (section_table_available_memory): ... here. Make it
6792 static.
6793
6794 2014-02-23 Yao Qi <yao@codesourcery.com>
6795
6796 * exec.c (section_table_read_available_memory): New function.
6797 * exec.h (section_table_read_available_memory): Declare.
6798 * ctf.c (ctf_xfer_partial): Call
6799 section_table_read_available_memory.
6800 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6801
6802 2014-02-23 Yao Qi <yao@codesourcery.com>
6803
6804 * ctf.c (ctf_xfer_partial): Move code to ...
6805 * exec.c (exec_read_partial_read_only): ... it. New function.
6806 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6807 * tracefile.c: Include "exec.h".
6808 * exec.h (exec_read_partial_read_only): Declare.
6809
6810 2014-02-23 Yao Qi <yao@codesourcery.com>
6811
6812 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6813 (tfile_has_memory): Remove.
6814 (init_tfile_ops): Don't set fields to_has_all_memory and
6815 to_has_memory of tfile_ops.
6816 * tracefile.c (tracefile_has_all_memory): New function.
6817 (tracefile_has_memory): New function.
6818 (init_tracefile_ops): Initialize fields to_has_all_memory and
6819 to_has_memory of 'ops'.
6820
6821 2014-02-23 Yao Qi <yao@codesourcery.com>
6822
6823 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6824 (ctf_thread_alive, ctf_get_trace_status): Remove.
6825 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6826 init_tracefile_ops.
6827 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6828 (tfile_has_stack, tfile_has_registers): Remove.
6829 (tfile_thread_alive): Remove.
6830 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6831 init_tracefile_ops.
6832 * tracefile.c (tracefile_has_stack): New function.
6833 (tracefile_has_registers): New function.
6834 (tracefile_thread_alive): New function.
6835 (tracefile_get_trace_status): New function.
6836 (init_tracefile_ops): New function.
6837 * tracefile.h (init_tracefile_ops): Declare.
6838
6839 2014-02-23 Yao Qi <yao@codesourcery.com>
6840
6841 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6842 (O_LARGEFILE): Likewise.
6843 (tfile_ops): Likewise.
6844 (TRACE_HEADER_SIZE): Likewise.
6845 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6846 (cur_data_size): Likewise.
6847 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6848 (tfile_close, tfile_files_info): Likewise.
6849 (tfile_get_trace_status): Likewise.
6850 (tfile_get_tracepoint_status): Likewise.
6851 (tfile_get_traceframe_address): Likewise.
6852 (tfile_trace_find, match_blocktype): Likewise.
6853 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6854 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6855 (tfile_get_trace_state_variable_value): Likewise.
6856 (tfile_has_all_memory, tfile_has_memory): Likewise.
6857 (tfile_has_stack, tfile_has_registers): Likewise.
6858 (tfile_thread_alive, build_traceframe_info): Likewise.
6859 (tfile_traceframe_info, init_tfile_ops): Likewise.
6860 (_initialize_tracepoint): Don't call init_tfile_ops
6861 and add_target_with_completer.
6862 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6863 exec.h, completer.h and filenames.h.
6864 (_initialize_tracefile_tfile): New function.
6865
6866 2014-02-23 Yao Qi <yao@codesourcery.com>
6867
6868 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6869 tracefile-tfile.o.
6870 (HFILES_NO_SRCDIR): Add tracefile.h.
6871 * ctf.c: Include "tracefile.h".
6872 * tracefile.h: New file.
6873 * tracefile.c: New file
6874 * tracefile-tfile.c: New file.
6875 * tracepoint.c: Include "tracefile.h".
6876 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6877 (stop_reason_names): Add const.
6878 (trace_file_writer_xfree): Move it to tracefile.c.
6879 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6880 (trace_save_ctf): Likewise.
6881 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6882 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6883 (tfile_write_header, tfile_write_regblock_type): Likewise.
6884 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6885 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6886 (tfile_write_raw_data, tfile_end): Likewise.
6887 (tfile_trace_file_writer_new): Likewise.
6888 (free_uploaded_tp): Make it extern.
6889 (free_uploaded_tsv): Make it extern.
6890 (_initialize_tracepoint): Move code to register command 'tsave'
6891 to tracefile.c.
6892 * tracepoint.h (stop_reason_names): Declare.
6893 (struct trace_frame_write_ops): Move it to tracefile.h.
6894 (struct trace_file_write_ops): Likewise.
6895 (struct trace_file_writer): Likewise.
6896 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6897
6898 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6899
6900 PR gdb/16594
6901 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6902 process name.
6903 (get_cores_used_by_process): New parameter num_cores, use it.
6904 (linux_xfer_osdata_processes): Pass num_cores to it.
6905 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6906 process name.
6907
6908 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6909
6910 * target.c (memory_xfer_partial): Fix length arg in call to
6911 breakpoint_xfer_memory.
6912
6913 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6914
6915 PR tdep/16397
6916 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6917 number comes after the + or - signs. Adjust length of register
6918 name to be extracted.
6919
6920 2014-02-20 Tom Tromey <tromey@redhat.com>
6921
6922 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6923 (ada_varobj_ops): Mark "extern".
6924
6925 2014-02-20 Tom Tromey <tromey@redhat.com>
6926
6927 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6928
6929 2014-02-20 Doug Evans <xdje42@gmail.com>
6930
6931 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6932 All callers updated.
6933 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6934 All callers updated.
6935 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6936 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6937
6938 2014-02-20 lin zuojian <manjian2006@gmail.com>
6939 Joel Brobecker <brobecker@adacore.com>
6940 Doug Evans <xdje42@gmail.com>
6941
6942 PR symtab/16581
6943 * dwarf2read.c (struct die_info): New member in_process.
6944 (reset_die_in_process): New function.
6945 (process_die): Set it at the start, reset when returning.
6946 (inherit_abstract_dies): Only call process_die if origin_child_die
6947 not already being processed.
6948
6949 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6950
6951 * windows-nat.c (handle_unload_dll): Add function documentation.
6952 (do_initial_windows_stuff): Add comment explaining why we wait
6953 until after inferior initialization has finished before
6954 processing all DLLs.
6955
6956 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6957
6958 * windows-nat.c (get_module_name): Delete.
6959 (windows_get_exec_module_filename): New function, mostly
6960 inspired from get_module_name.
6961 (windows_pid_to_exec_file): Replace call to get_module_name
6962 by call to windows_get_exec_module_filename.
6963
6964 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6965
6966 * windows-nat.c (handle_load_dll): Rewrite this function's
6967 introductory comment. Remove code using get_module_name
6968 to get the DLL's name.
6969
6970 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6971
6972 * windows-nat.c (get_windows_debug_event): Ignore
6973 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6974 if windows_initialization_done == 0.
6975 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6976 Adjust implementation to always load all DLLs.
6977 (do_initial_windows_stuff): Replace call to
6978 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6979
6980 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6981
6982 * windows-nat.c (_initialize_windows_nat): Deprecate the
6983 "dll-symbols" command. Turn the "add-shared-symbol-files"
6984 and "assf" aliases into commands, and deprecate them as well.
6985 * NEWS: Add entry explaining that "dll-symbols" and its two
6986 aliases are now deprecated.
6987
6988 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6989
6990 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6991 new-line in debug string. Remove trailing spaces.
6992
6993 2014-02-19 Stan Shebs <stan@codesourcery.com>
6994
6995 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6996
6997 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6998
6999 * NEWS: Add entry for the new feature
7000 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7001 and class values.
7002
7003 2014-02-19 Stan Shebs <stan@codesourcery.com>
7004
7005 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7006
7007 2014-02-19 Pedro Alves <palves@redhat.com>
7008
7009 * common/ptid.h (struct ptid): Mention that process_stratum
7010 targets should prefer ptid.lwp.
7011
7012 2014-02-19 Pedro Alves <palves@redhat.com>
7013
7014 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7015 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7016 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7017 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7018 store remote thread ids rather than ptid.tid.
7019 (_initialize_remote): Adjust.
7020
7021 2014-02-19 Tom Tromey <tromey@redhat.com>
7022
7023 * target.c (target_get_unwinder): Rewrite.
7024 (target_get_tailcall_unwinder): Rewrite.
7025 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7026 (record_btrace_to_get_tailcall_unwinder): New function.
7027 (init_record_btrace_ops): Update.
7028 * target.h (struct target_ops) <to_get_unwinder,
7029 to_get_tailcall_unwinder>: Now function pointers. Use
7030 TARGET_DEFAULT_RETURN.
7031
7032 2014-02-19 Tom Tromey <tromey@redhat.com>
7033
7034 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7035 argument.
7036 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7037
7038 2014-02-19 Tom Tromey <tromey@redhat.com>
7039
7040 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7041 directly.
7042 * target-delegates.c: Rebuild.
7043 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7044 TARGET_DEFAULT_FUNC.
7045 * target.c (default_target_decr_pc_after_break): Rename from
7046 forward_target_decr_pc_after_break. Simplify.
7047 (target_decr_pc_after_break): Rely on delegation.
7048
7049 2014-02-19 Tom Tromey <tromey@redhat.com>
7050
7051 * target.c (update_current_target): Do not INHERIT to_doc or
7052 to_magic. Do not de_fault to_open or to_close.
7053
7054 2014-02-19 Tom Tromey <tromey@redhat.com>
7055
7056 * gcore.h (objfile_find_memory_regions): Declare.
7057 * gcore.c (objfile_find_memory_regions): No longer static. Add
7058 "self" argument.
7059 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7060 * exec.c: Include gcore.h.
7061 (exec_set_find_memory_regions): Remove.
7062 (exec_find_memory_regions): Remove.
7063 (exec_do_find_memory_regions): Remove.
7064 (init_exec_ops): Update.
7065 * defs.h (exec_set_find_memory_regions): Remove.
7066
7067 2014-02-19 Tom Tromey <tromey@redhat.com>
7068
7069 * target-delegates.c: Rebuild.
7070 * target.h (struct target_ops) <to_extra_thread_info,
7071 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7072 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7073 not 0, in TARGET_DEFAULT_RETURN.
7074
7075 2014-02-19 Tom Tromey <tromey@redhat.com>
7076
7077 * target.c (complete_target_initialization): Remove casts. Use
7078 return_zero_has_execution.
7079 (return_zero): Add "ignore" argument.
7080 (return_zero_has_execution): New function.
7081 (init_dummy_target): Remove casts. Use
7082 return_zero_has_execution.
7083
7084 2014-02-19 Tom Tromey <tromey@redhat.com>
7085
7086 * target.c (update_current_target): Update comments. Do not
7087 INHERIT to_stratum.
7088
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7090
7091 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7092 needed.
7093 * corelow.c (core_read_description): Delegate when needed.
7094 * remote.c (remote_read_description): Delegate when needed.
7095 * target-delegates.c: Rebuild.
7096 * target.c (target_read_description): Rewrite.
7097 * target.h (struct target_ops) <to_read_description>: Update
7098 comment. Use TARGET_DEFAULT_RETURN.
7099
7100 2014-02-19 Tom Tromey <tromey@redhat.com>
7101
7102 * target-delegates.c: Rebuild.
7103 * target.c (update_current_target): Don't inherit or default
7104 to_can_run.
7105 (find_default_run_target): Check against delegate_can_run.
7106 * target.h (struct target_ops) <to_can_run>: Use
7107 TARGET_DEFAULT_RETURN.
7108
7109 2014-02-19 Tom Tromey <tromey@redhat.com>
7110
7111 * target-delegates.c: Rebuild.
7112 * target.c (target_disconnect): Unconditionally delegate.
7113 * target.h (struct target_ops) <to_disconnect>: Use
7114 TARGET_DEFAULT_NORETURN.
7115
7116 2014-02-19 Tom Tromey <tromey@redhat.com>
7117
7118 * record.c (record_stop): Unconditionally delegate.
7119 * target-delegates.c: Rebuild.
7120 * target.c (target_stop_recording): Unconditionally delegate.
7121 * target.h (struct target_ops) <to_stop_recording>: Use
7122 TARGET_DEFAULT_IGNORE.
7123
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7125
7126 * target-delegates.c: Rebuild.
7127 * target.c (target_enable_btrace): Unconditionally delegate.
7128 * target.h (struct target_ops) <to_enable_btrace>: Use
7129 TARGET_DEFAULT_NORETURN.
7130
7131 2014-02-19 Tom Tromey <tromey@redhat.com>
7132
7133 * target-delegates.c: Rebuild.
7134 * target.c (target_read_btrace): Unconditionally delegate.
7135 * target.h (struct target_ops) <to_read_btrace>: Use
7136 TARGET_DEFAULT_NORETURN.
7137
7138 2014-02-19 Tom Tromey <tromey@redhat.com>
7139
7140 * target-delegates.c: Rebuild.
7141 * target.c (target_teardown_btrace): Unconditionally delegate.
7142 * target.h (struct target_ops) <to_teardown_btrace>: Use
7143 TARGET_DEFAULT_NORETURN.
7144
7145 2014-02-19 Tom Tromey <tromey@redhat.com>
7146
7147 * target-delegates.c: Rebuild.
7148 * target.c (target_disable_btrace): Unconditionally delegate.
7149 * target.h (struct target_ops) <to_disable_btrace>: Use
7150 TARGET_DEFAULT_NORETURN.
7151
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7153
7154 * target-delegates.c: Rebuild.
7155 * target.c (default_search_memory): New function.
7156 (simple_search_memory): Update comment.
7157 (target_search_memory): Unconditionally delegate.
7158 * target.h (struct target_ops) <to_search_memory>: Use
7159 TARGET_DEFAULT_FUNC.
7160
7161 2014-02-19 Tom Tromey <tromey@redhat.com>
7162
7163 * auxv.c (default_auxv_parse): No longer static.
7164 (target_auxv_parse): Unconditionally delegate.
7165 * auxv.h (default_auxv_parse): Declare.
7166 * target-delegates.c: Rebuild.
7167 * target.c: Include auxv.h.
7168 * target.h (struct target_ops) <to_auxv_parse>: Use
7169 TARGET_DEFAULT_FUNC.
7170
7171 2014-02-19 Tom Tromey <tromey@redhat.com>
7172
7173 * target-delegates.c: Rebuild.
7174 * target.c (target_memory_map): Unconditionally delegate.
7175 * target.h (struct target_ops) <to_memory_map>: Use
7176 TARGET_DEFAULT_RETURN.
7177
7178 2014-02-19 Tom Tromey <tromey@redhat.com>
7179
7180 * target-delegates.c: Rebuild.
7181 * target.c (target_thread_alive): Unconditionally delegate.
7182 * target.h (struct target_ops) <to_thread_alive>: Use
7183 TARGET_DEFAULT_RETURN.
7184
7185 2014-02-19 Tom Tromey <tromey@redhat.com>
7186
7187 * target-delegates.c: Rebuild.
7188 * target.c (target_save_record): Unconditionally delegate.
7189 * target.h (struct target_ops) <to_save_record>: Use
7190 TARGET_DEFAULT_NORETURN.
7191
7192 2014-02-19 Tom Tromey <tromey@redhat.com>
7193
7194 * target-delegates.c: Rebuild.
7195 * target.c (target_delete_record): Unconditionally delegate.
7196 * target.h (struct target_ops) <to_delete_record>: Use
7197 TARGET_DEFAULT_NORETURN.
7198
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7200
7201 * target-delegates.c: Rebuild.
7202 * target.c (target_record_is_replaying): Unconditionally
7203 delegate.
7204 * target.h (struct target_ops) <to_record_is_replaying>: Use
7205 TARGET_DEFAULT_RETURN.
7206
7207 2014-02-19 Tom Tromey <tromey@redhat.com>
7208
7209 * target-delegates.c: Rebuild.
7210 * target.c (target_goto_record_begin): Unconditionally delegate.
7211 * target.h (struct target_ops) <to_goto_record_begin>: Use
7212 TARGET_DEFAULT_NORETURN.
7213
7214 2014-02-19 Tom Tromey <tromey@redhat.com>
7215
7216 * target-delegates.c: Rebuild.
7217 * target.c (target_goto_record_end): Unconditionally delegate.
7218 * target.h (struct target_ops) <to_goto_record_end>: Use
7219 TARGET_DEFAULT_NORETURN.
7220
7221 2014-02-19 Tom Tromey <tromey@redhat.com>
7222
7223 * target-delegates.c: Rebuild.
7224 * target.c (target_goto_record): Unconditionally delegate.
7225 * target.h (struct target_ops) <to_goto_record>: Use
7226 TARGET_DEFAULT_NORETURN.
7227
7228 2014-02-19 Tom Tromey <tromey@redhat.com>
7229
7230 * target-delegates.c: Rebuild.
7231 * target.c (target_insn_history): Unconditionally delegate.
7232 * target.h (struct target_ops) <to_insn_history>: Use
7233 TARGET_DEFAULT_NORETURN.
7234
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7236
7237 * target-delegates.c: Rebuild.
7238 * target.c (target_insn_history_from): Unconditionally delegate.
7239 * target.h (struct target_ops) <to_insn_history_from>: Use
7240 TARGET_DEFAULT_NORETURN.
7241
7242 2014-02-19 Tom Tromey <tromey@redhat.com>
7243
7244 * target-delegates.c: Rebuild.
7245 * target.c (target_insn_history_range): Unconditionally delegate.
7246 * target.h (struct target_ops) <to_insn_history_range>: Use
7247 TARGET_DEFAULT_NORETURN.
7248
7249 2014-02-19 Tom Tromey <tromey@redhat.com>
7250
7251 * target-delegates.c: Rebuild.
7252 * target.c (target_call_history): Unconditionally delegate.
7253 * target.h (struct target_ops) <to_call_history>: Use
7254 TARGET_DEFAULT_NORETURN.
7255
7256 2014-02-19 Tom Tromey <tromey@redhat.com>
7257
7258 * target-delegates.c: Rebuild.
7259 * target.c (target_call_history_from): Unconditionally delegate.
7260 * target.h (struct target_ops) <to_call_history_from>: Use
7261 TARGET_DEFAULT_NORETURN.
7262
7263 2014-02-19 Tom Tromey <tromey@redhat.com>
7264
7265 * target-delegates.c: Rebuild.
7266 * target.c (target_call_history_range): Unconditionally delegate.
7267 * target.h (struct target_ops) <to_call_history_range>: Use
7268 TARGET_DEFAULT_NORETURN.
7269
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7271
7272 * target-delegates.c: Rebuild.
7273 * target.c (target_verify_memory): Unconditionally delegate.
7274 * target.h (struct target_ops) <to_verify_memory>: Use
7275 TARGET_DEFAULT_NORETURN.
7276
7277 2014-02-19 Tom Tromey <tromey@redhat.com>
7278
7279 * target-delegates.c: Rebuild.
7280 * target.c (target_core_of_thread): Unconditionally delegate.
7281 * target.h (struct target_ops) <to_core_of_thread>: Use
7282 TARGET_DEFAULT_RETURN.
7283
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7285
7286 * target-delegates.c: Rebuild.
7287 * target.c (target_flash_done): Unconditionally delegate.
7288 * target.h (struct target_ops) <to_flash_done>: Use
7289 TARGET_DEFAULT_NORETURN.
7290
7291 2014-02-19 Tom Tromey <tromey@redhat.com>
7292
7293 * target-delegates.c: Rebuild.
7294 * target.c (target_flash_erase): Unconditionally delegate.
7295 * target.h (struct target_ops) <to_flash_erase>: Use
7296 TARGET_DEFAULT_NORETURN.
7297
7298 2014-02-19 Tom Tromey <tromey@redhat.com>
7299
7300 * target-delegates.c: Rebuild.
7301 * target.c (target_get_section_table): Unconditionally delegate.
7302 * target.h (struct target_ops) <to_get_section_table>: Use
7303 TARGET_DEFAULT_RETURN.
7304
7305 2014-02-19 Tom Tromey <tromey@redhat.com>
7306
7307 * target-delegates.c: Rebuild.
7308 * target.c (target_pid_to_str): Unconditionally delegate.
7309 (init_dummy_target): Don't initialize to_pid_to_str.
7310 (default_pid_to_str): Rename from dummy_pid_to_str.
7311 * target.h (struct target_ops) <to_pid_to_str>: Use
7312 TARGET_DEFAULT_FUNC.
7313
7314 2014-02-19 Tom Tromey <tromey@redhat.com>
7315
7316 * target-delegates.c: Rebuild.
7317 * target.c (target_find_new_threads): Unconditionally delegate.
7318 * target.h (struct target_ops) <to_find_new_threads>: Use
7319 TARGET_DEFAULT_RETURN.
7320
7321 2014-02-19 Tom Tromey <tromey@redhat.com>
7322
7323 * target-delegates.c: Rebuild.
7324 * target.c (target_program_signals): Unconditionally delegate.
7325 * target.h (struct target_ops) <to_program_signals>: Use
7326 TARGET_DEFAULT_IGNORE.
7327
7328 2014-02-19 Tom Tromey <tromey@redhat.com>
7329
7330 * target-delegates.c: Rebuild.
7331 * target.c (target_pass_signals): Unconditionally delegate.
7332 * target.h (struct target_ops) <to_pass_signals>: Use
7333 TARGET_DEFAULT_IGNORE.
7334
7335 2014-02-19 Tom Tromey <tromey@redhat.com>
7336
7337 * target-delegates.c: Rebuild.
7338 * target.c (default_mourn_inferior): New function.
7339 (target_mourn_inferior): Unconditionally delegate.
7340 * target.h (struct target_ops) <to_mourn_inferior>: Use
7341 TARGET_DEFAULT_FUNC.
7342
7343 2014-02-19 Tom Tromey <tromey@redhat.com>
7344
7345 * target-delegates.c: Rebuild.
7346 * target.c (default_follow_fork): New function.
7347 (target_follow_fork): Unconditionally delegate.
7348 * target.h (struct target_ops) <to_follow_fork>: Use
7349 TARGET_DEFAULT_FUNC.
7350
7351 2014-02-19 Tom Tromey <tromey@redhat.com>
7352
7353 * target-delegates.c: Rebuild.
7354 * target.c (target_kill): Unconditionally delegate.
7355 * target.h (struct target_ops) <to_kill>: Use
7356 TARGET_DEFAULT_NORETURN.
7357
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7359
7360 * target-delegates.c: Rebuild.
7361 * target.c (target_masked_watch_num_registers): Unconditionally
7362 delegate.
7363 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7364 Use TARGET_DEFAULT_RETURN.
7365
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7367
7368 * target-delegates.c: Rebuild.
7369 * target.c (target_remove_mask_watchpoint): Unconditionally
7370 delegate.
7371 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7372 TARGET_DEFAULT_RETURN.
7373
7374 2014-02-19 Tom Tromey <tromey@redhat.com>
7375
7376 * target-delegates.c: Rebuild.
7377 * target.c (target_insert_mask_watchpoint): Unconditionally
7378 delegate.
7379 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7380 TARGET_DEFAULT_RETURN.
7381
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7383
7384 * target-delegates.c: Rebuild.
7385 * target.c (target_ranged_break_num_registers): Unconditionally
7386 delegate.
7387 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7388 Use TARGET_DEFAULT_RETURN.
7389
7390 2014-02-19 Tom Tromey <tromey@redhat.com>
7391
7392 * target-delegates.c: Rebuild.
7393 * target.c (target_fetch_registers): Unconditionally delegate.
7394 * target.h (struct target_ops) <to_fetch_registers>: Use
7395 TARGET_DEFAULT_NORETURN.
7396
7397 2014-02-19 Tom Tromey <tromey@redhat.com>
7398
7399 * target-delegates.c: Rebuild.
7400 * target.c (update_current_target): Don't inherit or default
7401 to_stop.
7402 * target.h (struct target_ops) <to_stop>: Use
7403 TARGET_DEFAULT_IGNORE.
7404
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target-delegates.c: Rebuild.
7408 * target.c (update_current_target): Don't inherit or default
7409 to_can_run_breakpoint_commands.
7410 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7411 Use TARGET_DEFAULT_RETURN.
7412
7413 2014-02-19 Tom Tromey <tromey@redhat.com>
7414
7415 * target-delegates.c: Rebuild.
7416 * target.c (update_current_target): Don't inherit or default
7417 to_supports_evaluation_of_breakpoint_conditions.
7418 * target.h (struct target_ops)
7419 <to_supports_evaluation_of_breakpoint_conditions>: Use
7420 TARGET_DEFAULT_RETURN.
7421
7422 2014-02-19 Tom Tromey <tromey@redhat.com>
7423
7424 * target-delegates.c: Rebuild.
7425 * target.c (update_current_target): Don't inherit or default
7426 to_augmented_libraries_svr4_read.
7427 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7428 Use TARGET_DEFAULT_RETURN.
7429
7430 2014-02-19 Tom Tromey <tromey@redhat.com>
7431
7432 * target-delegates.c: Rebuild.
7433 * target.c (update_current_target): Don't inherit or default
7434 to_can_use_agent.
7435 * target.h (struct target_ops) <to_can_use_agent>: Use
7436 TARGET_DEFAULT_RETURN.
7437
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7439
7440 * target-delegates.c: Rebuild.
7441 * target.c (update_current_target): Don't inherit or default
7442 to_use_agent.
7443 * target.h (struct target_ops) <to_use_agent>: Use
7444 TARGET_DEFAULT_NORETURN.
7445
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7447
7448 * target-delegates.c: Rebuild.
7449 * target.c (update_current_target): Don't inherit or default
7450 to_traceframe_info.
7451 (return_null): Remove.
7452 * target.h (struct target_ops) <to_traceframe_info>: Use
7453 TARGET_DEFAULT_RETURN.
7454
7455 2014-02-19 Tom Tromey <tromey@redhat.com>
7456
7457 * target-delegates.c: Rebuild.
7458 * target.c (update_current_target): Don't inherit or default
7459 to_static_tracepoint_markers_by_strid.
7460 * target.h (struct target_ops)
7461 <to_static_tracepoint_markers_by_strid>: Use
7462 TARGET_DEFAULT_NORETURN.
7463
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target-delegates.c: Rebuild.
7467 * target.c (update_current_target): Don't inherit or default
7468 to_static_tracepoint_marker_at.
7469 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7470 Use TARGET_DEFAULT_RETURN.
7471
7472 2014-02-19 Tom Tromey <tromey@redhat.com>
7473
7474 * target-delegates.c: Rebuild.
7475 * target.c (update_current_target): Don't inherit or default
7476 to_set_permissions.
7477 * target.h (struct target_ops) <to_set_permissions>: Use
7478 TARGET_DEFAULT_IGNORE.
7479
7480 2014-02-19 Tom Tromey <tromey@redhat.com>
7481
7482 * target-delegates.c: Rebuild.
7483 * target.c (update_current_target): Don't inherit or default
7484 to_get_tib_address.
7485 * target.h (struct target_ops) <to_get_tib_address>: Use
7486 TARGET_DEFAULT_NORETURN.
7487
7488 2014-02-19 Tom Tromey <tromey@redhat.com>
7489
7490 * target-delegates.c: Rebuild.
7491 * target.c (update_current_target): Don't inherit or default
7492 to_set_trace_notes.
7493 * target.h (struct target_ops) <to_set_trace_notes>: Use
7494 TARGET_DEFAULT_RETURN.
7495
7496 2014-02-19 Tom Tromey <tromey@redhat.com>
7497
7498 * target-delegates.c: Rebuild.
7499 * target.c (update_current_target): Don't initialize
7500 to_set_trace_buffer_size.
7501 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7502 TARGET_DEFAULT_IGNORE.
7503
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7505
7506 * target-delegates.c: Rebuild.
7507 * target.c (update_current_target): Don't inherit or default
7508 to_set_circular_trace_buffer.
7509 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7510 TARGET_DEFAULT_IGNORE.
7511
7512 2014-02-19 Tom Tromey <tromey@redhat.com>
7513
7514 * target-delegates.c: Rebuild.
7515 * target.c (update_current_target): Don't inherit or default
7516 to_set_disconnected_tracing.
7517 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7518 TARGET_DEFAULT_IGNORE.
7519
7520 2014-02-19 Tom Tromey <tromey@redhat.com>
7521
7522 * target-delegates.c: Rebuild.
7523 * target.c (update_current_target): Don't inherit or default
7524 to_get_min_fast_tracepoint_insn_len.
7525 (return_minus_one): Remove.
7526 * target.h (struct target_ops)
7527 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7528
7529 2014-02-19 Tom Tromey <tromey@redhat.com>
7530
7531 * target-delegates.c: Rebuild.
7532 * target.c (update_current_target): Don't inherit or default
7533 to_get_raw_trace_data.
7534 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7535 TARGET_DEFAULT_NORETURN.
7536
7537 2014-02-19 Tom Tromey <tromey@redhat.com>
7538
7539 * target-delegates.c: Rebuild.
7540 * target.c (update_current_target): Don't inherit or default
7541 to_upload_trace_state_variables.
7542 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7543 Use TARGET_DEFAULT_RETURN.
7544
7545 2014-02-19 Tom Tromey <tromey@redhat.com>
7546
7547 * target-delegates.c: Rebuild.
7548 * target.c (update_current_target): Don't inherit or default
7549 to_upload_tracepoints.
7550 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7551 TARGET_DEFAULT_RETURN.
7552
7553 2014-02-19 Tom Tromey <tromey@redhat.com>
7554
7555 * target-delegates.c: Rebuild.
7556 * target.c (update_current_target): Don't inherit or default
7557 to_save_trace_data.
7558 * target.h (struct target_ops) <to_save_trace_data>: Use
7559 TARGET_DEFAULT_NORETURN.
7560
7561 2014-02-19 Tom Tromey <tromey@redhat.com>
7562
7563 * target-delegates.c: Rebuild.
7564 * target.c (update_current_target): Don't inherit or default
7565 to_get_trace_state_variable_value.
7566 * target.h (struct target_ops)
7567 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7568
7569 2014-02-19 Tom Tromey <tromey@redhat.com>
7570
7571 * target-delegates.c: Rebuild.
7572 * target.c (update_current_target): Don't inherit or default
7573 to_trace_find.
7574 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7575
7576 2014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target-delegates.c: Rebuild.
7579 * target.c (update_current_target): Don't inherit or default
7580 to_trace_stop.
7581 * target.h (struct target_ops) <to_trace_stop>: Use
7582 TARGET_DEFAULT_NORETURN.
7583
7584 2014-02-19 Tom Tromey <tromey@redhat.com>
7585
7586 * target-delegates.c: Rebuild.
7587 * target.c (update_current_target): Don't inherit or default
7588 to_get_tracepoint_status.
7589 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7590 TARGET_DEFAULT_NORETURN.
7591
7592 2014-02-19 Tom Tromey <tromey@redhat.com>
7593
7594 * target-delegates.c: Rebuild.
7595 * target.c (update_current_target): Don't inherit or default
7596 to_get_trace_status.
7597 * target.h (struct target_ops) <to_get_trace_status>: Use
7598 TARGET_DEFAULT_RETURN.
7599
7600 2014-02-19 Tom Tromey <tromey@redhat.com>
7601
7602 * target-delegates.c: Rebuild.
7603 * target.c (update_current_target): Don't inherit or default
7604 to_trace_start.
7605 * target.h (struct target_ops) <to_trace_start>: Use
7606 TARGET_DEFAULT_NORETURN.
7607
7608 2014-02-19 Tom Tromey <tromey@redhat.com>
7609
7610 * target-delegates.c: Rebuild.
7611 * target.c (update_current_target): Don't inherit or default
7612 to_trace_set_readonly_regions.
7613 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7614 Use TARGET_DEFAULT_NORETURN.
7615
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target-delegates.c: Rebuild.
7619 * target.c (update_current_target): Don't inherit or default
7620 to_disable_tracepoint.
7621 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7622 TARGET_DEFAULT_NORETURN.
7623
7624 2014-02-19 Tom Tromey <tromey@redhat.com>
7625
7626 * target-delegates.c: Rebuild.
7627 * target.c (update_current_target): Don't inherit or default
7628 to_enable_tracepoint.
7629 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7630 TARGET_DEFAULT_NORETURN.
7631
7632 2014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * target-delegates.c: Rebuild.
7635 * target.c (update_current_target): Don't inherit or default
7636 to_download_trace_state_variable.
7637 * target.h (struct target_ops) <to_download_trace_state_variable>:
7638 Use TARGET_DEFAULT_NORETURN.
7639
7640 2014-02-19 Tom Tromey <tromey@redhat.com>
7641
7642 * target-delegates.c: Rebuild.
7643 * target.c (update_current_target): Don't inherit or default
7644 to_can_download_tracepoint.
7645 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7646 TARGET_DEFAULT_RETURN.
7647
7648 2014-02-19 Tom Tromey <tromey@redhat.com>
7649
7650 * target-delegates.c: Rebuild.
7651 * target.c (update_current_target): Don't inherit or default
7652 to_download_tracepoint.
7653 * target.h (struct target_ops) <to_download_tracepoint>: Use
7654 TARGET_DEFAULT_NORETURN.
7655
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7657
7658 * target-delegates.c: Rebuild.
7659 * target.c (update_current_target): Don't inherit or default
7660 to_trace_init.
7661 * target.h (struct target_ops) <to_trace_init>: Use
7662 TARGET_DEFAULT_RETURN.
7663
7664 2014-02-19 Tom Tromey <tromey@redhat.com>
7665
7666 * target-delegates.c: Rebuild.
7667 * target.c (update_current_target): Don't inherit or default
7668 to_supports_string_tracing.
7669 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7670 TARGET_DEFAULT_RETURN.
7671
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7673
7674 * target-delegates.c: Rebuild.
7675 * target.c (update_current_target): Don't inherit or default
7676 to_supports_enable_disable_tracepoint.
7677 * target.h (struct target_ops)
7678 <to_supports_enable_disable_tracepoint>: Use
7679 TARGET_DEFAULT_RETURN.
7680
7681 2014-02-19 Tom Tromey <tromey@redhat.com>
7682
7683 * target-delegates.c: Rebuild.
7684 * target.c (update_current_target): Don't inherit or default
7685 to_supports_multi_process.
7686 * target.h (struct target_ops) <to_supports_multi_process>: Use
7687 TARGET_DEFAULT_RETURN.
7688
7689 2014-02-19 Tom Tromey <tromey@redhat.com>
7690
7691 * target-delegates.c: Rebuild.
7692 * target.c (update_current_target): Don't inherit or default
7693 to_get_ada_task_ptid.
7694 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7695 TARGET_DEFAULT_FUNC.
7696
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target-delegates.c: Rebuild.
7700 * target.c (update_current_target): Don't inherit or default
7701 to_thread_architecture.
7702 * target.h (struct target_ops) <to_thread_architecture>: Use
7703 TARGET_DEFAULT_FUNC.
7704
7705 2014-02-19 Tom Tromey <tromey@redhat.com>
7706
7707 * target-delegates.c: Rebuild.
7708 * target.c (update_current_target): Don't inherit or default
7709 to_execution_direction.
7710 * target.h (struct target_ops) <to_execution_direction>: Use
7711 TARGET_DEFAULT_FUNC.
7712
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7714
7715 * target-delegates.c: Rebuild.
7716 * target.c (update_current_target): Don't inherit or default
7717 to_can_execute_reverse.
7718 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7719 TARGET_DEFAULT_RETURN.
7720 (target_can_execute_reverse): Unconditionally delegate.
7721
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7723
7724 * target-delegates.c: Rebuild.
7725 * target.c (update_current_target): Don't inherit or default
7726 to_goto_bookmark.
7727 (dummy_goto_bookmark): Remove.
7728 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7729 * target.h (struct target_ops) <to_goto_bookmark>: Use
7730 TARGET_DEFAULT_NORETURN.
7731
7732 2014-02-19 Tom Tromey <tromey@redhat.com>
7733
7734 * target-delegates.c: Rebuild.
7735 * target.c (update_current_target): Don't inherit or default
7736 to_get_bookmark.
7737 (dummy_get_bookmark): Remove.
7738 (init_dummy_target): Don't inherit or default to_get_bookmark.
7739 * target.h (struct target_ops) <to_get_bookmark>: Use
7740 TARGET_DEFAULT_NORETURN
7741
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target-delegates.c: Rebuild.
7745 * target.c (update_current_target): Don't inherit or default
7746 to_make_corefile_notes.
7747 (init_dummy_target): Don't initialize to_make_corefile_notes.
7748 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7749 TARGET_DEFAULT_FUNC.
7750
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7752
7753 * target-delegates.c: Rebuild.
7754 * target.c (update_current_target): Don't inherit or default
7755 to_find_memory_regions.
7756 (init_dummy_target): Don't initialize to_find_memory_regions.
7757 * target.h (struct target_ops) <to_find_memory_regions>: Use
7758 TARGET_DEFAULT_FUNC.
7759
7760 2014-02-19 Tom Tromey <tromey@redhat.com>
7761
7762 * target-delegates.c: Rebuild.
7763 * target.c (update_current_target): Don't inherit or default
7764 to_log_command.
7765 * target.h (struct target_ops) <to_log_command>: Use
7766 TARGET_DEFAULT_IGNORE.
7767 (target_log_command): Unconditionally delegate.
7768
7769 2014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target-delegates.c: Rebuild.
7772 * target.c (update_current_target): Don't inherit or default
7773 to_pid_to_exec_file.
7774 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7775 TARGET_DEFAULT_RETURN.
7776
7777 2014-02-19 Tom Tromey <tromey@redhat.com>
7778
7779 * target-delegates.c: Rebuild.
7780 * target.c (update_current_target): Don't inherit or default
7781 to_thread_name.
7782 (target_thread_name): Unconditionally delegate.
7783 * target.h (struct target_ops) <to_thread_name>: Use
7784 TARGET_DEFAULT_RETURN.
7785
7786 2014-02-19 Tom Tromey <tromey@redhat.com>
7787
7788 * target-delegates.c: Rebuild.
7789 * target.c (update_current_target): Don't inherit or default
7790 to_extra_thread_info.
7791 * target.h (struct target_ops) <to_extra_thread_info>: Use
7792 TARGET_DEFAULT_RETURN.
7793
7794 2014-02-19 Tom Tromey <tromey@redhat.com>
7795
7796 * target-delegates.c: Rebuild.
7797 * target.c (update_current_target): Don't inherit or default
7798 to_has_exited.
7799 * target.h (struct target_ops) <to_has_exited>: Use
7800 TARGET_DEFAULT_RETURN..
7801
7802 2014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (update_current_target): Don't inherit or default
7806 to_set_syscall_catchpoint.
7807 (return_one): Remove.
7808 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7809 TARGET_DEFAULT_RETURN.
7810
7811 2014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (update_current_target): Don't inherit or default
7815 to_insert_exec_catchpoint.
7816 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7817 TARGET_DEFAULT_RETURN.
7818
7819 2014-01-08 Tom Tromey <tromey@redhat.com>
7820
7821 * target-delegates.c: Rebuild.
7822 * target.c (update_current_target): Don't inherit or default
7823 to_insert_exec_catchpoint.
7824 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7825 TARGET_DEFAULT_RETURN.
7826
7827 2014-02-19 Tom Tromey <tromey@redhat.com>
7828
7829 * target-delegates.c: Rebuild.
7830 * target.c (update_current_target): Don't inherit or default
7831 to_remove_vfork_catchpoint.
7832 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7833 TARGET_DEFAULT_RETURN.
7834
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7836
7837 * target-delegates.c: Rebuild.
7838 * target.c (update_current_target): Don't inherit or default
7839 to_insert_vfork_catchpoint.
7840 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7841 TARGET_DEFAULT_RETURN.
7842
7843 2014-02-19 Tom Tromey <tromey@redhat.com>
7844
7845 * target-delegates.c: Rebuild.
7846 * target.c (update_current_target): Don't inherit or default
7847 to_remove_fork_catchpoint.
7848 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7849 TARGET_DEFAULT_RETURN.
7850
7851 2014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (update_current_target): Don't inherit or default
7855 to_insert_fork_catchpoint.
7856 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7857 TARGET_DEFAULT_RETURN.
7858
7859 2014-02-19 Tom Tromey <tromey@redhat.com>
7860
7861 * target-delegates.c: Rebuild.
7862 * target.c (update_current_target): Don't inherit or default
7863 to_post_startup_inferior.
7864 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7865 TARGET_DEFAULT_IGNORE.
7866
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7868
7869 * target-delegates.c: Rebuild.
7870 * target.c (update_current_target): Don't inherit or default
7871 to_load.
7872 * target.h (struct target_ops) <to_load>: Use
7873 TARGET_DEFAULT_NORETURN.
7874
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * target-delegates.c: Rebuild.
7878 * target.c (update_current_target): Don't inherit or default
7879 to_terminal_info.
7880 * target.h (struct target_ops) <to_terminal_info>: Use
7881 TARGET_DEFAULT_FUNC.
7882
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_terminal_save_ours.
7888 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7889 TARGET_DEFAULT_IGNORE.
7890
7891 2014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_terminal_ours.
7896 * target.h (struct target_ops) <to_terminal_ours>: Use
7897 TARGET_DEFAULT_IGNORE.
7898
7899 2014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (update_current_target): Don't inherit or default
7903 to_terminal_ours_for_output.
7904 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7905 TARGET_DEFAULT_IGNORE.
7906
7907 2014-02-19 Tom Tromey <tromey@redhat.com>
7908
7909 * target-delegates.c: Rebuild.
7910 * target.c (update_current_target): Don't inherit or default
7911 to_terminal_inferior.
7912 * target.h (struct target_ops) <to_terminal_inferior>: Use
7913 TARGET_DEFAULT_IGNORE.
7914
7915 2014-02-19 Tom Tromey <tromey@redhat.com>
7916
7917 * target-delegates.c: Rebuild.
7918 * target.c (update_current_target): Don't inherit or default
7919 to_terminal_init.
7920 * target.h (struct target_ops) <to_terminal_init>: Use
7921 TARGET_DEFAULT_IGNORE.
7922
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7924
7925 * target-delegates.c: Rebuild.
7926 * target.c (update_current_target): Don't inherit or default
7927 to_can_accel_watchpoint_condition.
7928 * target.h (struct target_ops)
7929 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7930
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7932
7933 * target-delegates.c: Rebuild.
7934 * target.c (update_current_target): Don't inherit or default
7935 to_region_ok_for_hw_watchpoint.
7936 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7937 Use TARGET_DEFAULT_FUNC.
7938
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * target-delegates.c: Rebuild.
7942 * target.c (update_current_target): Don't inherit or default
7943 to_watchpoint_addr_within_range.
7944 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7945 Use TARGET_DEFAULT_FUNC.
7946
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7951 to_remove_watchpoint.
7952 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7953 TARGET_DEFAULT_NORETURN.
7954
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7959 to_insert_watchpoint.
7960 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7961 TARGET_DEFAULT_RETURN.
7962
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7967 to_remove_hw_breakpoint.
7968 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7969 TARGET_DEFAULT_RETURN.
7970
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target-delegates.c: Rebuild.
7974 * target.c (update_current_target): Don't inherit or default
7975 to_insert_hw_breakpoint.
7976 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7977 TARGET_DEFAULT_RETURN.
7978
7979 2014-02-19 Tom Tromey <tromey@redhat.com>
7980
7981 * target-delegates.c: Rebuild.
7982 * target.c (update_current_target): Don't inherit or default
7983 to_can_use_hw_breakpoint.
7984 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7985 TARGET_DEFAULT_RETURN.
7986
7987 2014-02-19 Tom Tromey <tromey@redhat.com>
7988
7989 * target-delegates.c: Rebuild.
7990 * target.c (update_current_target): Don't inherit or default
7991 to_files_info.
7992 * target.h (struct target_ops) <to_files_info>: Use
7993 TARGET_DEFAULT_IGNORE.
7994
7995 2014-02-19 Tom Tromey <tromey@redhat.com>
7996
7997 * target-delegates.c: Rebuild.
7998 * target.c (update_current_target): Don't inherit or default
7999 to_store.
8000 * target.h (struct target_ops) <to_store>: Use
8001 TARGET_DEFAULT_NORETURN.
8002
8003 2014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (update_current_target): Don't inherit or default
8007 to_post_attach.
8008 * target.h (struct target_ops) <to_post_attach>: Use
8009 TARGET_DEFAULT_IGNORE.
8010
8011 2014-02-19 Tom Tromey <tromey@redhat.com>
8012
8013 * target-delegates.c: Rebuild.
8014 * target.c (update_current_target): Don't inherit or default
8015 to_rcmd.
8016 (default_rcmd): New function.
8017 (do_monitor_command): Unconditionally delegate.
8018 * target.h (struct target_ops) <to_rmcd>: Use
8019 TARGET_DEFAULT_FUNC.
8020
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target-delegates.c: Rebuild.
8024 * target.c (init_dummy_target): Don't initialize to_attach.
8025 (target_attach): Unconditionally delegate.
8026 * target.h (struct target_ops) <to_attach>: Use
8027 TARGET_DEFAULT_FUNC.
8028
8029 2014-02-19 Tom Tromey <tromey@redhat.com>
8030
8031 * target-delegates.c: Rebuild.
8032 * target.c (target_detach): Unconditionally delegate.
8033 (init_dummy_target): Don't initialize to_detach.
8034 * target.h (struct target_ops) <to_detach>: Use
8035 TARGET_DEFAULT_IGNORE.
8036
8037 2014-02-19 Tom Tromey <tromey@redhat.com>
8038
8039 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8040 Add argument.
8041 (target_augmented_libraries_svr4_read): Add argument.
8042 * target.c (update_current_target): Update.
8043 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8044 argument.
8045
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target.h (struct target_ops) <to_call_history_range>: Add
8049 argument.
8050 * target.c (target_call_history_range): Add argument.
8051 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8052 argument.
8053 (record_btrace_call_history_from): Update.
8054
8055 2014-02-19 Tom Tromey <tromey@redhat.com>
8056
8057 * target.h (struct target_ops) <to_call_history_from>: Add
8058 argument.
8059 * target.c (target_call_history_from): Add argument.
8060 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8061 argument.
8062
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target.h (struct target_ops) <to_call_history>: Add argument.
8066 * target.c (target_call_history): Add argument.
8067 * record-btrace.c (record_btrace_call_history): Add 'self'
8068 argument.
8069
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target.h (struct target_ops) <to_insn_history_range>: Add
8073 argument.
8074 * target.c (target_insn_history_range): Add argument.
8075 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8076 argument.
8077 (record_btrace_insn_history_from): Update.
8078
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8080
8081 * target.h (struct target_ops) <to_insn_history_from>: Add
8082 argument.
8083 * target.c (target_insn_history_from): Add argument.
8084 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8085 argument.
8086
8087 2014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target.h (struct target_ops) <to_insn_history>: Add argument.
8090 * target.c (target_insn_history): Add argument.
8091 * record-btrace.c (record_btrace_insn_history): Add 'self'
8092 argument.
8093
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target.h (struct target_ops) <to_goto_record>: Add argument.
8097 * target.c (target_goto_record): Add argument.
8098 * record-full.c (record_full_goto): Add 'self' argument.
8099 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8100
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8104 * target.c (target_goto_record_end): Add argument.
8105 * record-full.c (record_full_goto_end): Add 'self' argument.
8106 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8107
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target.h (struct target_ops) <to_goto_record_begin>: Add
8111 argument.
8112 * target.c (target_goto_record_begin): Add argument.
8113 * record-full.c (record_full_goto_begin): Add 'self' argument.
8114 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8115 argument.
8116
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target.h (struct target_ops) <to_record_is_replaying>: Add
8120 argument.
8121 * target.c (target_record_is_replaying): Add argument.
8122 * record-full.c (record_full_is_replaying): Add 'self' argument.
8123 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8124 argument.
8125 (record_btrace_xfer_partial, record_btrace_store_registers)
8126 (record_btrace_prepare_to_store, record_btrace_resume)
8127 (record_btrace_wait, record_btrace_decr_pc_after_break)
8128 (record_btrace_find_new_threads, record_btrace_thread_alive):
8129 Update.
8130
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target.h (struct target_ops) <to_delete_record>: Add argument.
8134 * target.c (target_delete_record): Add argument.
8135 * record-full.c (record_full_delete): Add 'self' argument.
8136
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target.h (struct target_ops) <to_save_record>: Add argument.
8140 * target.c (target_save_record): Add argument.
8141 * record-full.c (record_full_save): Add 'self' argument.
8142 (record_full_save): Add 'self' argument.
8143
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8145
8146 * target.h (struct target_ops) <to_info_record>: Add argument.
8147 * target.c (target_info_record): Add argument.
8148 * record.c (info_record_command): Add argument.
8149 * record-full.c (record_full_info): Add 'self' argument.
8150 * record-btrace.c (record_btrace_info): Add 'self' argument.
8151
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8153
8154 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8155 * target.c (target_stop_recording): Add argument.
8156 * record.c (record_stop): Add argument.
8157 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8158 argument.
8159
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8163 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8164 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8165 argument.
8166 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8167 (_initialize_amd64_linux_nat): Use it.
8168 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8169 (_initialize_i386_linux_nat): Use it.
8170
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8174 * target.c (target_teardown_btrace): Add argument.
8175 * remote.c (remote_teardown_btrace): Add 'self' argument.
8176 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8177 argument.
8178 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8179 argument.
8180
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8184 * target.c (target_disable_btrace): Add argument.
8185 * remote.c (remote_disable_btrace): Add 'self' argument.
8186 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8187 argument.
8188 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8189 argument.
8190
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8194 * target.c (target_enable_btrace): Add argument.
8195 * remote.c (remote_enable_btrace): Add 'self' argument.
8196 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8197 argument.
8198 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8199 argument.
8200
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8202
8203 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8204 (target_can_use_agent): Add argument.
8205 * target.c (update_current_target): Update.
8206 * remote.c (remote_can_use_agent): Add 'self' argument.
8207 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8208
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target.h (struct target_ops) <to_use_agent>: Add argument.
8212 (target_use_agent): Add argument.
8213 * target.c (update_current_target): Update.
8214 * remote.c (remote_use_agent): Add 'self' argument.
8215 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8216
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8220 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8221 (target_traceframe_info): Add argument.
8222 * target.c (update_current_target): Update.
8223 * remote.c (remote_traceframe_info): Add 'self' argument.
8224 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8225
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8227
8228 * target.h (target_static_tracepoint_markers_by_strid): Add
8229 argument.
8230 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8231 'self' argument.
8232 * target.c (update_current_target): Update.
8233 * remote.c (struct target_ops)
8234 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8235 * linux-nat.c (struct target_ops)
8236 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8237
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8239
8240 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8241 Add argument.
8242 (target_static_tracepoint_marker_at): Add argument.
8243 * target.c (update_current_target): Update.
8244 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8245 argument.
8246
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8250 (target_set_permissions): Add argument.
8251 * target.c (update_current_target): Update.
8252 * remote.c (remote_set_permissions): Add 'self' argument.
8253 (remote_start_remote): Update.
8254
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8256
8257 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8258 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8259 (target_get_tib_address): Add argument.
8260 * target.c (update_current_target): Update.
8261 * remote.c (remote_get_tib_address): Add 'self' argument.
8262
8263 2014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8266 (target_set_trace_notes): Add argument.
8267 * target.c (update_current_target): Update.
8268 * remote.c (remote_set_trace_notes): Add 'self' argument.
8269
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8273 argument.
8274 (target_set_trace_buffer_size): Add argument.
8275 * target.c (update_current_target): Update.
8276 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8277
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8281 argument.
8282 (target_set_circular_trace_buffer): Add argument.
8283 * target.c (update_current_target): Update.
8284 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8285 argument.
8286
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8290 argument.
8291 (target_set_disconnected_tracing): Add argument.
8292 * target.c (update_current_target): Update.
8293 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8294
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.h (struct target_ops)
8298 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8299 (target_get_min_fast_tracepoint_insn_len): Add argument.
8300 * target.c (update_current_target): Update.
8301 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8302 argument.
8303
8304 2014-02-19 Tom Tromey <tromey@redhat.com>
8305
8306 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8307 argument.
8308 (target_get_raw_trace_data): Add argument.
8309 * target.c (update_current_target): Update.
8310 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8311
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8315 Add argument.
8316 (target_upload_trace_state_variables): Add argument.
8317 * target.c (update_current_target): Update.
8318 * remote.c (remote_upload_trace_state_variables): Add 'self'
8319 argument.
8320 (remote_start_remote): Update.
8321
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8325 argument.
8326 (target_upload_tracepoints): Add argument.
8327 * target.c (update_current_target): Update.
8328 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8329 (remote_start_remote): Update.
8330
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8334 (target_save_trace_data): Add argument.
8335 * target.c (update_current_target): Update.
8336 * remote.c (remote_save_trace_data): Add 'self' argument.
8337
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8341 argument.
8342 * target.h (struct target_ops)
8343 <to_get_trace_state_variable_value>: Add argument.
8344 (target_get_trace_state_variable_value): Add argument.
8345 * target.c (update_current_target): Update.
8346 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8347 argument.
8348 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8349
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8353 * target.h (struct target_ops) <to_trace_find>: Add argument.
8354 (target_trace_find): Add argument.
8355 * target.c (update_current_target): Update.
8356 * remote.c (remote_trace_find): Add 'self' argument.
8357 * ctf.c (ctf_trace_find): Add 'self' argument.
8358
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8362 (target_trace_stop): Add argument.
8363 * target.c (update_current_target): Update.
8364 * remote.c (remote_trace_stop): Add 'self' argument.
8365
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8367
8368 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8369 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8370 argument.
8371 (target_get_tracepoint_status): Add argument.
8372 * target.c (update_current_target): Update.
8373 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8374
8375 2014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8378 * target.h (struct target_ops) <to_get_trace_status>: Add
8379 argument.
8380 (target_get_trace_status): Add argument.
8381 * target.c (update_current_target): Update.
8382 * remote.c (remote_get_trace_status): Add 'self' argument.
8383 (remote_start_remote, remote_can_download_tracepoint): Update.
8384 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8385
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target.h (struct target_ops) <to_trace_start>: Add argument.
8389 (target_trace_start): Add argument.
8390 * target.c (update_current_target): Update.
8391 * remote.c (remote_trace_start): Add 'self' argument.
8392
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8394
8395 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8396 Add argument.
8397 (target_trace_set_readonly_regions): Add argument.
8398 * target.c (update_current_target): Update.
8399 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8400 argument.
8401
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8405 argument.
8406 (target_disable_tracepoint): Add argument.
8407 * target.c (update_current_target): Update.
8408 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8409
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8413 argument.
8414 (target_enable_tracepoint): Add argument.
8415 * target.c (update_current_target): Update.
8416 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8417
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target.h (struct target_ops) <to_download_trace_state_variable>:
8421 Add argument.
8422 (target_download_trace_state_variable): Add argument.
8423 * target.c (update_current_target): Update.
8424 * remote.c (remote_download_trace_state_variable): Add 'self'
8425 argument.
8426
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8430 argument.
8431 (target_can_download_tracepoint): Add argument.
8432 * target.c (update_current_target): Update.
8433 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target.h (struct target_ops) <to_download_tracepoint>: Add
8438 argument.
8439 (target_download_tracepoint): Add argument.
8440 * target.c (update_current_target): Update.
8441 * remote.c (remote_download_tracepoint): Add 'self' argument.
8442
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target.h (struct target_ops) <to_trace_init>: Add argument.
8446 (target_trace_init): Add argument.
8447 * target.c (update_current_target): Update.
8448 * remote.c (remote_trace_init): Add 'self' argument.
8449
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8453 * target.c (target_fileio_readlink): Add argument.
8454 * remote.c (remote_hostio_readlink): Add 'self' argument.
8455 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8456
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8460 * target.c (target_fileio_unlink): Add argument.
8461 * remote.c (remote_hostio_unlink): Add 'self' argument.
8462 (remote_file_delete): Update.
8463 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8464
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8468 * target.c (target_fileio_close): Add argument.
8469 * remote.c (remote_hostio_close): Add 'self' argument.
8470 (remote_hostio_close_cleanup): Update.
8471 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8472 Update.
8473 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8474
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8478 * target.c (target_fileio_pread): Add argument.
8479 * remote.c (remote_hostio_pread): Add 'self' argument.
8480 (remote_bfd_iovec_pread, remote_file_get): Update.
8481 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8482
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8486 * target.c (target_fileio_pwrite): Add argument.
8487 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8488 (remote_file_put): Update.
8489 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8490
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8494 * target.c (target_fileio_open): Add argument.
8495 * remote.c (remote_hostio_open): Add 'self' argument.
8496 (remote_bfd_iovec_open): Add 'self' argument.
8497 (remote_file_put): Add 'self' argument.
8498 (remote_file_get): Add 'self' argument.
8499 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8500
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8504 Add argument.
8505 (target_can_run_breakpoint_commands): Add argument.
8506 * target.c (update_current_target): Update.
8507 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8508 argument.
8509 (remote_insert_breakpoint): Add 'self' argument.
8510 (remote_insert_hw_breakpoint): Add 'self' argument.
8511 (remote_can_run_breakpoint_commands): Add 'self' argument.
8512
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target.h (struct target_ops)
8516 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8517 (target_supports_evaluation_of_breakpoint_conditions): Add
8518 argument.
8519 * target.c (update_current_target): Update.
8520 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8521 argument.
8522 (remote_insert_breakpoint): Add 'self' argument.
8523 (remote_insert_hw_breakpoint): Add 'self' argument.
8524 (remote_supports_cond_breakpoints): Add 'self' argument.
8525
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8527
8528 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8529 argument.
8530 (target_supports_string_tracing): Add argument.
8531 * target.c (update_current_target): Update.
8532 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8533
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target.h (struct target_ops)
8537 <to_supports_disable_randomization>: Add argument.
8538 * target.c (find_default_supports_disable_randomization): Add
8539 argument.
8540 (target_supports_disable_randomization): Add argument.
8541 (find_default_supports_disable_randomization): Add 'self'
8542 argument.
8543 * remote.c (extended_remote_supports_disable_randomization): Add
8544 'self' argument.
8545 (remote_supports_disable_randomization): Add 'self' argument.
8546 (extended_remote_create_inferior): Update.
8547 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8548 'self' argument.
8549
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target.h (struct target_ops)
8553 <to_supports_enable_disable_tracepoint>: Add argument.
8554 (target_supports_enable_disable_tracepoint): Add argument.
8555 * target.c (update_current_target): Update.
8556 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8557 argument.
8558
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target.h (struct target_ops) <to_supports_multi_process>: Add
8562 argument.
8563 (target_supports_multi_process): Add argument.
8564 * target.c (update_current_target): Update.
8565 * remote.c (remote_supports_multi_process): Add 'self' argument.
8566 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8567 argument.
8568 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8569 argument.
8570
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_execution_direction>: Add
8574 argument.
8575 (target_execution_direction): Add argument.
8576 * target.c (default_execution_direction): Add 'self' argument.
8577 * record-full.c (record_full_execution_direction): Add 'self'
8578 argument.
8579
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8583 argument.
8584 (target_can_execute_reverse): Add argument.
8585 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8586 * record-full.c (record_full_can_execute_reverse): Add 'self'
8587 argument.
8588 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8589 argument.
8590
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8594 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8595 argument.
8596 (target_get_ada_task_ptid): Add argument.
8597 * target.c (update_current_target): Update.
8598 (default_get_ada_task_ptid): Add 'self' argument.
8599 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8600 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8601 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8602 argument.
8603 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8604 argument.
8605 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8606 argument.
8607 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8608 argument.
8609 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8610 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8611 argument.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8616 (target_goto_bookmark): Add argument.
8617 * target.c (dummy_goto_bookmark): Add 'self' argument.
8618 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8619
8620 2014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8623 (target_get_bookmark): Add argument.
8624 * target.c (dummy_get_bookmark): Add 'self' argument.
8625 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8626
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8628
8629 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8630 argument.
8631 (target_make_corefile_notes): Add argument.
8632 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8633 * procfs.c (procfs_make_note_section): Add 'self' argument.
8634 (procfs_make_note_section): Add 'self' argument.
8635 (procfs_make_note_section): Add 'self' argument.
8636 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8637 argument.
8638 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8639 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8640 * exec.c (exec_make_note_section): Add 'self' argument.
8641 (exec_make_note_section): Add 'self' argument.
8642
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target.h (struct target_ops) <to_find_memory_regions>: Add
8646 argument.
8647 (target_find_memory_regions): Add argument.
8648 * target.c (dummy_find_memory_regions): Add 'self' argument.
8649 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8650 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8651 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8652 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8653 * exec. (exec_do_find_memory_regions): New global.
8654 (exec_set_find_memory_regions): Rewrite.
8655 (exec_find_memory_regions): New function.
8656 (init_exec_ops): Use exec_find_memory_regions.
8657
8658 2014-02-19 Tom Tromey <tromey@redhat.com>
8659
8660 * target.h (struct target_ops) <to_supports_non_stop>: Add
8661 argument.
8662 * target.c (find_default_supports_non_stop): Add argument.
8663 (target_supports_non_stop): Add argument.
8664 (find_default_supports_non_stop): Add 'self' argument.
8665 * remote.c (remote_supports_non_stop): Add 'self' argument.
8666 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8667
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target.h (struct target_ops) <to_log_command>: Add argument.
8671 (target_log_command): Add argument.
8672 * serial.h (serial_log_command): Add 'self' argument.
8673 * serial.c (serial_log_command): Add 'self' argument.
8674
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8678 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8679 argument.
8680 (target_pid_to_exec_file): Add argument.
8681 * target.c (debug_to_pid_to_exec_file): Add argument.
8682 (update_current_target): Update.
8683 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8684 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8685 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8686 (linux_handle_extended_wait): Update.
8687 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8688 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8689 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8690 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8691
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target.h (struct target_ops) <to_rcmd>: Add argument.
8695 (target_rcmd): Add argument.
8696 * target.c (debug_to_rcmd): Add argument.
8697 (update_current_target, do_monitor_command): Update.
8698 * remote.c (remote_rcmd): Add 'self' argument.
8699 * monitor.c (monitor_rcmd): Add 'self' argument.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * windows-nat.c (windows_stop): Add 'self' argument.
8704 * target.h (struct target_ops) <to_stop>: Add argument.
8705 * target.c (target_stop): Add argument.
8706 (debug_to_stop): Add argument.
8707 (update_current_target): Update.
8708 * remote.c (remote_stop): Add 'self' argument.
8709 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8710 (gdbsim_cntrl_c): Update.
8711 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8712 * procfs.c (procfs_stop): Add 'self' argument.
8713 * nto-procfs.c (procfs_stop): Add 'self' argument.
8714 * monitor.c (monitor_stop): Add 'self' argument.
8715 (monitor_open): Update.
8716 * linux-nat.c (linux_nat_stop): Add argument.
8717 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8718 * gnu-nat.c (gnu_stop): Add 'self' argument.
8719 * darwin-nat.c (darwin_stop): Add 'self' argument.
8720
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target.h (struct target_ops) <to_thread_name>: Add argument.
8724 * target.c (target_thread_name): Add argument.
8725 (update_current_target): Update.
8726 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8727
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target.h (struct target_ops) <to_extra_thread_info>: Add
8731 argument.
8732 (target_extra_thread_info): Add argument.
8733 * target.c (update_current_target): Update.
8734 * remote.c (remote_threads_extra_info): Add 'self' argument.
8735 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8736 argument.
8737 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8738 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8739 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8740 argument.
8741 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8742 argument.
8743 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8744 argument.
8745 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8746 argument.
8747
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8749
8750 * target.h (struct target_ops) <to_program_signals>: Add argument.
8751 * target.c (target_program_signals): Add argument.
8752 * remote.c (remote_program_signals): Add 'self' argument.
8753
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8757 * target.c (target_pass_signals): Add argument.
8758 * remote.c (remote_pass_signals): Add 'self' argument.
8759 (remote_start_remote): Update.
8760 * procfs.c (procfs_pass_signals): Add 'self' argument.
8761 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8762 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8763 (linux_nat_create_inferior, linux_nat_attach): Update.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * windows-nat.c (windows_can_run): Add 'self' argument.
8768 * target.h (struct target_ops) <to_can_run>: Add argument.
8769 (target_can_run): Add argument.
8770 * target.c (debug_to_can_run): Add argument.
8771 (update_current_target): Update.
8772 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8773 * inf-child.c (inf_child_can_run): Add 'self' argument.
8774 * go32-nat.c (go32_can_run): Add 'self' argument.
8775
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target.h (struct target_ops) <to_has_exited>: Add argument.
8779 (target_has_exited): Add argument.
8780 * target.c (debug_to_has_exited): Add argument.
8781 (update_current_target): Update.
8782
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8786 argument.
8787 (target_set_syscall_catchpoint): Add argument.
8788 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8789 argument.
8790 * target.c (update_current_target): Update.
8791
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8795 argument.
8796 (target_remove_exec_catchpoint): Add argument.
8797 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8798 (update_current_target): Update.
8799 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8800 argument.
8801
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8805 argument.
8806 (target_insert_exec_catchpoint): Add argument.
8807 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8808 (update_current_target): Update.
8809 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8810 argument.
8811
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8815 argument.
8816 (target_remove_vfork_catchpoint): Add argument.
8817 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8818 (update_current_target): Update.
8819 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8820 argument.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8825 argument.
8826 (target_insert_vfork_catchpoint): Add argument.
8827 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8828 (update_current_target): Update.
8829 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8830 argument.
8831
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8835 argument.
8836 (target_remove_fork_catchpoint): Add argument.
8837 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8838 (update_current_target): Update.
8839 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8840 argument.
8841
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8845 argument.
8846 (target_insert_fork_catchpoint): Add argument.
8847 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8848 (update_current_target): Update.
8849 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8850 argument.
8851
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8855 argument.
8856 (target_post_startup_inferior): Add argument.
8857 * target.c (debug_to_post_startup_inferior): Add argument.
8858 (update_current_target): Update.
8859 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8860 argument.
8861 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8862 argument.
8863 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8864 argument.
8865 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8866 argument.
8867 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8868 'self' argument.
8869 (super_post_startup_inferior): Likewise.
8870 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8871 'self' argument.
8872 (super_post_startup_inferior): Likewise.
8873 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8874 Add 'self' argument.
8875 (super_post_startup_inferior): Likewise.
8876
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * target.h (struct target_ops) <to_load>: Add argument.
8880 * target.c (target_load): Add argument.
8881 (debug_to_load): Add argument.
8882 (update_current_target): Update.
8883 * remote.c (remote_load): Add 'self' argument.
8884 * remote-sim.c (gdbsim_load): Add 'self' argument.
8885 * remote-mips.c (mips_load): Add 'self' argument.
8886 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8887 * monitor.c (monitor_load): Add 'self' argument.
8888 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8889
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8893 (target_terminal_info): Add argument.
8894 * target.c (debug_to_terminal_info): Add argument.
8895 (default_terminal_info): Likewise.
8896 * inflow.c (child_terminal_info): Add 'self' argument.
8897 * inferior.h (child_terminal_info): Add 'self' argument.
8898 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8899
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8903 argument.
8904 (target_terminal_save_ours): Add argument.
8905 * target.c (debug_to_terminal_save_ours): Add argument.
8906 (update_current_target): Update.
8907 * inflow.c (terminal_save_ours): Add 'self' argument.
8908 * inferior.h (terminal_save_ours): Add 'self' argument.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8913 (target_terminal_ours): Add argument.
8914 * target.c (debug_to_terminal_ours): Add argument.
8915 (update_current_target): Update.
8916 * remote.c (remote_terminal_ours): Add 'self' argument.
8917 (remote_close): Update.
8918 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8919 * inflow.c (terminal_ours): Add 'self' argument.
8920 * inferior.h (terminal_ours): Add 'self' argument.
8921 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8922
8923 2014-02-19 Pedro Alves <palves@redhat.com>
8924 Tom Tromey <tromey@redhat.com>
8925
8926 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8927 argument.
8928 (target_terminal_ours_for_output): Add argument.
8929 * target.c (debug_to_terminal_ours_for_output): Add argument.
8930 (update_current_target): Update.
8931 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8932 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8933 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8934
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target.h (struct target_ops) <to_terminal_inferior>: Add
8938 argument.
8939 * target.c (target_terminal_inferior): Add argument.
8940 (update_current_target): Update.
8941 * remote.c (remote_terminal_inferior): Add 'self' argument.
8942 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8943 * inflow.c (terminal_inferior): Add 'self' argument.
8944 * inferior.h (terminal_inferior): Add 'self' argument.
8945 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8946 (go32_terminal_inferior): Add 'self' argument.
8947
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8951 (target_terminal_init): Add argument.
8952 * target.c (debug_to_terminal_init): Add argument.
8953 (update_current_target): Update.
8954 * inflow.c (terminal_init_inferior): Add 'self' argument.
8955 * inferior.h (terminal_init_inferior): Add 'self' argument.
8956 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8957 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8958
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target.h (struct target_ops)
8962 <to_can_accel_watchpoint_condition>: Add argument.
8963 (target_can_accel_watchpoint_condition): Add argument.
8964 * target.c (debug_to_can_accel_watchpoint_condition): Add
8965 argument.
8966 (update_current_target): Update.
8967 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8968 'self' argument.
8969
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8973 Add argument.
8974 (target_region_ok_for_hw_watchpoint): Add argument.
8975 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8976 (default_region_ok_for_hw_watchpoint): Add argument.
8977 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8978 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8979 argument.
8980 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8981 argument.
8982 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8983 argument.
8984 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8985 'self' argument.
8986 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8987 'self' argument.
8988 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8989 'self' argument.
8990 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8991 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8992 'self' argument.
8993 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8994 Add 'self' argument.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8999 argument.
9000 (target_insert_watchpoint): Add argument.
9001 * target.c (debug_to_insert_watchpoint): Add argument.
9002 (update_current_target): Update.
9003 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9004 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9005 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9006 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9007 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9008 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9009 argument.
9010 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9011 (procfs_insert_hw_watchpoint): Add 'self' argument.
9012 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9013 argument.
9014 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9015 argument.
9016 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9017 argument.
9018 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9019 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9020 argument.
9021 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9022 'self' argument.
9023
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9027 argument.
9028 (target_remove_watchpoint): Add argument.
9029 * target.c (debug_to_remove_watchpoint): Add argument.
9030 (update_current_target): Update.
9031 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9032 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9033 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9034 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9035 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9036 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9037 argument.
9038 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9039 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9040 argument.
9041 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9042 argument.
9043 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9044 argument.
9045 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9046 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9047 argument.
9048 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9049 'self' argument.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9054 argument.
9055 (target_remove_hw_breakpoint): Add argument.
9056 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9057 (update_current_target): Update.
9058 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9059 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9060 argument.
9061 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9062 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9063 argument.
9064 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9065 'self' argument.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9070 argument.
9071 (target_insert_hw_breakpoint): Add argument.
9072 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9073 (update_current_target): Update.
9074 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9075 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9076 argument.
9077 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9078 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9079 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9080 argument.
9081 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9082 'self' argument.
9083
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9087 argument.
9088 (target_can_use_hardware_watchpoint): Add argument.
9089 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9090 (update_current_target): Update.
9091 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9092 argument.
9093 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9094 argument.
9095 * remote.c (remote_check_watch_resources): Add 'self' argument.
9096 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9097 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9098 argument.
9099 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9100 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9101 argument.
9102 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9103 argument.
9104 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9105 argument.
9106 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9107 argument.
9108 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9109 argument.
9110 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9111 argument.
9112 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9113 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9114 argument.
9115 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9116 'self' argument.
9117
9118 2014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target.h (struct target_ops) <to_post_attach>: Add argument.
9121 (target_post_attach): Add argument.
9122 * target.c (debug_to_post_attach): Add argument.
9123 (update_current_target): Update.
9124 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9125 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9126 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9127 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9128 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9129
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9131
9132 * windows-nat.c (windows_close): Add 'self' argument.
9133 * tracepoint.c (tfile_close): Add 'self' argument.
9134 * target.h (struct target_ops) <to_close>: Add argument.
9135 * target.c (target_close): Add argument.
9136 (update_current_target): Update.
9137 * remote.c (remote_close): Add 'self' argument.
9138 * remote-sim.c (gdbsim_close): Add 'self' argument.
9139 * remote-mips.c (mips_close): Add 'self' argument.
9140 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9141 * record-full.c (record_full_close): Add 'self' argument.
9142 * record-btrace.c (record_btrace_close): Add 'self' argument.
9143 * monitor.h (monitor_close): Add 'self' argument.
9144 * monitor.c (monitor_close): Add 'self' argument.
9145 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9146 * linux-nat.c (linux_nat_close): Add argument.
9147 * go32-nat.c (go32_close): Add 'self' argument.
9148 * exec.c (exec_close_1): Add 'self' argument.
9149 * ctf.c (ctf_close): Add 'self' argument.
9150 * corelow.c (core_close): Add 'self' argument.
9151 (core_close_cleanup): Update.
9152 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9153 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9154
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * remote.c (remote_load): New function.
9158 (init_remote_ops): Use it.
9159
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9161
9162 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9163 argument.
9164 * common/linux-btrace.h (linux_supports_btrace): Update.
9165 * remote.c (remote_supports_btrace): Add "self" argument.
9166 * target-delegates.c: Rebuild.
9167 * target.c (target_supports_btrace): Remove.
9168 * target.h (struct target_ops) <to_supports_btrace>: Add
9169 target_ops argument.
9170 (target_supports_btrace): New define.
9171
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * record-full.c (record_full_beneath_to_resume_ops)
9175 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9176 (record_full_beneath_to_wait)
9177 (record_full_beneath_to_store_registers_ops)
9178 (record_full_beneath_to_store_registers)
9179 (record_full_beneath_to_xfer_partial_ops)
9180 (record_full_beneath_to_xfer_partial)
9181 (record_full_beneath_to_insert_breakpoint_ops)
9182 (record_full_beneath_to_insert_breakpoint)
9183 (record_full_beneath_to_remove_breakpoint_ops)
9184 (record_full_beneath_to_remove_breakpoint)
9185 (record_full_beneath_to_stopped_by_watchpoint)
9186 (record_full_beneath_to_stopped_data_address)
9187 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9188 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9189 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9190 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9191 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9192 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9193 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9194 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9195 (record_full_resume, record_full_wait_1)
9196 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9197 (record_full_store_registers, record_full_xfer_partial)
9198 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9199 (record_full_async, record_full_core_xfer_partial): Use target
9200 delegation.
9201 * target-delegates.c: Rebuild.
9202 * target.c (current_xfer_partial): Remove.
9203 (update_current_target): Do not INHERIT or de_fault
9204 to_insert_breakpoint, to_remove_breakpoint,
9205 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9206 to_is_async_p, to_async. Do not set to_xfer_partial field.
9207 (default_xfer_partial): Simplify.
9208 (current_xfer_partial): Remove.
9209 (target_wait, target_resume): Simplify.
9210 (find_default_can_async_p, find_default_is_async_p): Update.
9211 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9212 to_xfer_partial, to_stopped_by_watchpoint,
9213 to_stopped_data_address.
9214 (target_store_registers): Simplify.
9215 (forward_target_remove_breakpoint)
9216 (forward_target_insert_breakpoint): Remove.
9217 (target_remove_breakpoint, target_insert_breakpoint)
9218 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9219 * target.h (struct target_ops) <to_resume, to_wait,
9220 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9221 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9222 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9223 markup.
9224 (forward_target_remove_breakpoint)
9225 (forward_target_insert_breakpoint): Remove.
9226 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9227 directly.
9228 (record_btrace_insert_breakpoint): Delegate directly.
9229
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 PR build/7701:
9233 * target-delegates.c: New file.
9234 * target.c: Include target-delegates.c.
9235 (init_dummy_target): Call install_dummy_methods.
9236 (complete_target_initialization): Call install_delegators.
9237 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9238 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9239 * make-target-delegates: New file.
9240
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * record.c (find_record_target): Use find_target_at.
9244 * target.c (find_target_at): New function.
9245 * target.h (find_target_at): Declare.
9246
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9250 Add 'ops' argument.
9251 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9252 'ops' argument.
9253 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9254 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9255 'ops' argument.
9256 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9257 argument.
9258 * linux-nat.c (save_sigtrap): Update.
9259 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9260 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9261 (linux_nat_close): Update.
9262 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9263 argument.
9264 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9265 argument.
9266 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9267 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9268 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9269 (tmp_to_async): Add 'ops' argument.
9270 (record_full_stopped_by_watchpoint, record_full_async)
9271 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9272 argument.
9273 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9274 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9275 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9276 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9277 (remote_is_async_p, remote_async): Add 'ops' argument.
9278 (remote_stopped_data_address): Update.
9279 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9280 * target.c (update_current_target)
9281 (find_default_can_async_p, find_default_is_async_p): Update.
9282 (init_dummy_target): Update.
9283 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9284 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9285 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9286 (target_can_async_p, target_is_async_p, target_async)
9287 (target_stopped_by_watchpoint): Update.
9288
9289 2014-02-19 Yao Qi <yao@codesourcery.com>
9290
9291 PR gdb/16220
9292 * gdbarch.sh: Remove startup_gdbarch.
9293 * gdbarch.c: Regenerated.
9294 * gdbarch.h: Likewise.
9295
9296 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9297
9298 * rl78-tdep.c (rl78_g10_register_name): New function.
9299 (rl78_return_value): Add g10 support.
9300 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9301 g10.
9302
9303 2014-02-17 Doug Evans <xdje42@gmail.com>
9304
9305 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9306 (SUBDIR_GUILE_SRCS): Ditto.
9307 (scm-gsmob.o): Ditto.
9308
9309 2014-02-17 Yao Qi <yao@codesourcery.com>
9310
9311 * gnu-nat.c (ILL_RPC): Declare defined function.
9312
9313 2014-02-17 Yao Qi <yao@codesourcery.com>
9314
9315 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9316 mach_msg_type_number_t.
9317 (gnu_write_inferior): Likewise.
9318
9319 2014-02-17 Yao Qi <yao@codesourcery.com>
9320
9321 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9322 in format string.
9323 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9324 (inf_validate_procs, inf_signal): Likewise.
9325 (S_exception_raise_request): Likewise.
9326 (do_mach_notify_dead_name): Likewise.
9327 (steal_exc_port): Likewise.
9328 (gnu_read_inferior): Change 'copy_count''s type to
9329 mach_msg_type_number_t.
9330 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9331 format string.
9332
9333 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9334
9335 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9336 flag. Adjust all users; in particular...
9337 (gnu_wait): ..., don't decrement its value in here...
9338 (gnu_create_inferior): ..., and instead set the flag in here,
9339 around the startup_inferior call, and call that one with
9340 START_INFERIOR_TRAPS_EXPECTED.
9341
9342 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9343 (ILL_RPC): ... new macro.
9344 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9345 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9346 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9347 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9348 functions with ILL_RPC macro.
9349 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9350 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9351 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9352 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9353 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9354 (S_proc_getlogin_reply, S_proc_getsid_reply)
9355 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9356 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9357 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9358 (S_proc_getnports_reply, S_proc_is_important_reply)
9359 (S_proc_get_code_reply): New stub functions, generated with
9360 ILL_RPC macro.
9361
9362 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9363 collected the type check structures.
9364
9365 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9366
9367 2014-02-14 Doug Evans <dje@google.com>
9368
9369 * target.c (target_write_partial): Fix result type.
9370
9371 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9372
9373 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9374 the proper offsets to access fpregset_t.
9375
9376 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9377
9378 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9379 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9380 * h8300-tdep.c (setmachinelist): Remove global.
9381 * hppa-tdep.c (hppa_sigtramp): Remove global.
9382 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9383 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9384 * ravenscar-thread.c (update_target_observer): Remove global.
9385 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9386
9387 2014-02-12 Tom Tromey <tromey@redhat.com>
9388
9389 * common/rsp-low.c: Update comments.
9390 * common/rsp-low.h: Update comments.
9391
9392 2014-02-12 Tom Tromey <tromey@redhat.com>
9393
9394 * common/rsp-low.c (convert_ascii_to_int): Remove.
9395 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9396
9397 2014-02-12 Tom Tromey <tromey@redhat.com>
9398
9399 * common/rsp-low.h (unhexify): Don't declare.
9400 * common/rsp-low.c (unhexify): Remove.
9401
9402 2014-02-12 Tom Tromey <tromey@redhat.com>
9403
9404 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9405 * common/rsp-low.c (convert_int_to_ascii): Remove.
9406
9407 2014-02-12 Tom Tromey <tromey@redhat.com>
9408
9409 * common/rsp-low.h (hexify): Don't declare.
9410 * common/rsp-low.c (hexify): Remove.
9411
9412 2014-02-12 Tom Tromey <tromey@redhat.com>
9413
9414 * common/rsp-low.c (hexify): Never take strlen of argument.
9415
9416 2014-02-12 Tom Tromey <tromey@redhat.com>
9417
9418 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9419 * remote.c (extended_remote_run, remote_rcmd)
9420 (remote_download_trace_state_variable, remote_save_trace_data)
9421 (remote_set_trace_notes): Update.
9422 * tracepoint.c (encode_source_string, tfile_write_status)
9423 (tfile_write_uploaded_tsv): Update.
9424
9425 2014-02-12 Tom Tromey <tromey@redhat.com>
9426
9427 * tracepoint.c: Include rsp-low.h.
9428 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9429 * remote.c: Include rsp-low.h.
9430 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9431 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9432 (remote_unescape_input): Move to common/rsp-low.c.
9433 * common/rsp-low.h: New file.
9434 * common/rsp-low.c: New file.
9435 * Makefile.in (SFILES): Add common/rsp-low.c.
9436 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9437 (COMMON_OBS): Add rsp-low.o.
9438 (rsp-low.o): New target.
9439
9440 2014-02-12 Tom Tromey <tromey@redhat.com>
9441
9442 * utils.h: Include print-utils.h.
9443 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9444 (int_string, core_addr_to_string, core_addr_to_string_nz)
9445 (hex_string, hex_string_custom): Don't declare.
9446 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9447 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9448 (hex_string_custom, int_string, core_addr_to_string)
9449 (core_addr_to_string_nz, host_address_to_string): Move to
9450 common/print-utils.c.
9451 * common/print-utils.h: New file.
9452 * common/print-utils.c: New file
9453 * Makefile.in (SFILES): Add common/print-utils.c.
9454 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9455 (COMMON_OBS): Add print-utils.o.
9456 (print-utils.o): New target.
9457
9458 2014-02-12 Tom Tromey <tromey@redhat.com>
9459
9460 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9461
9462 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9463
9464 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9465
9466 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9467
9468 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9469 if a PT_IO ptrace request returns sucessfully but indicates that 0
9470 bytes were transferred.
9471
9472 2014-02-12 Pedro Alves <palves@redhat.com>
9473 Kevin Buettner <kevinb@redhat.com>
9474
9475 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9476 TYPE_INSTANCE_FLAG_CODE_SPACE.
9477
9478 2014-02-12 Pedro Alves <palves@redhat.com>
9479
9480 * h8300-tdep.c (pseudo_from_raw_register)
9481 (raw_from_pseudo_register): New functions.
9482 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9483 them.
9484
9485 2014-02-12 Pedro Alves <palves@redhat.com>
9486
9487 * h8300-tdep.c (h8300_register_sim_regno): New function.
9488 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9489 gdbarch_register_sim_regno hook.
9490
9491 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9492
9493 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9494
9495 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9496
9497 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9498
9499 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9500
9501 * obsd-tdep.h (obsd_init_abi): New prototype.
9502 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9503 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9504 (obsd_init_abi): New functions.
9505 * i386obsd-tdep.c: Include "obsd-tdep.h".
9506 (i386obsd_init_abi): Call obsd_init_abi.
9507 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9508 (amd64obsd_init_abi): Call obsd_init_abi.
9509 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9510 obsd-tdep.c to gdb_target_obs.
9511
9512 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9513
9514 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9515 double float arguments to 16-byte in the argument slots.
9516
9517 2014-02-11 Doug Evans <xdje42@gmail.com>
9518
9519 * configure.ac: Don't crash if pkg-config is not found and guile
9520 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9521 in guile checks.
9522 * configure: Regenerate.
9523
9524 2014-02-11 Yao Qi <yao@codesourcery.com>
9525
9526 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9527 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9528 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9529 * gnu-nat.c (gnu_xfer_memory): Likewise.
9530 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9531 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9532 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9533 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9534
9535 2014-02-11 Yao Qi <yao@codesourcery.com>
9536
9537 * target.h (enum target_xfer_error): Rename to ...
9538 (enum target_xfer_status): ... it. New. All users updated.
9539 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9540 New.
9541 (TARGET_XFER_STATUS_ERROR_P): New macro.
9542 (target_xfer_error_to_string): Remove declaration.
9543 (target_xfer_status_to_string): Declare.
9544 (target_xfer_partial_ftype): Adjust it.
9545 (struct target_ops) <to_xfer_partial>: Return
9546 target_xfer_status. Add argument xfered_len. Update
9547 comments.
9548 * target.c (target_xfer_error_to_string): Rename to ...
9549 (target_xfer_status_to_string): ... it. New. All callers
9550 updated.
9551 (target_read_live_memory): Likewise. Call target_xfer_partial
9552 instead of target_read.
9553 (memory_xfer_live_readonly_partial): Return
9554 target_xfer_status. Add argument xfered_len.
9555 (raw_memory_xfer_partial): Likewise.
9556 (memory_xfer_partial_1): Likewise.
9557 (memory_xfer_partial): Likewise.
9558 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9559 properly. Update debug message.
9560 (default_xfer_partial, current_xfer_partial): Likewise.
9561 (target_write_partial): Likewise.
9562 (target_read_partial): Likewise. All callers updated.
9563 (read_whatever_is_readable): Likewise.
9564 (target_write_with_progress): Likewise.
9565 (target_read_alloc_1): Likewise.
9566
9567 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9568 * auxv.c (procfs_xfer_auxv): Likewise.
9569 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9570 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9571 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9572 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9573 * corefile.c (read_memory): Adjust.
9574 * corelow.c (core_xfer_partial): Likewise.
9575 * ctf.c (ctf_xfer_partial): Likewise.
9576 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9577 updated.
9578 (darwin_xfer_partial): Likewise.
9579 * exec.c (section_table_xfer_memory_partial): Likewise. All
9580 callers updated.
9581 (exec_xfer_partial): Likewise.
9582 * exec.h (section_table_xfer_memory_partial): Update
9583 declaration.
9584 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9585 negative.
9586 (gnu_xfer_partial): Likewise.
9587 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9588 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9589 (ia64_hpux_xfer_solib_got): Likewise.
9590 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9591 type of 'partial_len' to ULONGEST.
9592 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9593 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9594 (linux_nat_xfer_partial): Likewise.
9595 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9596 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9597 * monitor.c (monitor_xfer_memory): Likewise.
9598 (monitor_xfer_partial): Likewise.
9599 * procfs.c (procfs_xfer_partial): Likewise.
9600 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9601 * record-full.c (record_full_xfer_partial): Likewise.
9602 (record_full_core_xfer_partial): Likewise.
9603 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9604 (gdbsim_xfer_partial): Likewise.
9605 * remote.c (remote_write_bytes_aux): Likewise. All callers
9606 updated.
9607 (remote_write_bytes, remote_read_bytes): Likewise. All
9608 callers updated.
9609 (remote_flash_erase): Likewise. All callers updated.
9610 (remote_write_qxfer): Likewise. All callers updated.
9611 (remote_read_qxfer): Likewise. All callers updated.
9612 (remote_xfer_partial): Likewise.
9613 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9614 (rs6000_xfer_shared_libraries): Likewise.
9615 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9616 (sol_thread_xfer_partial): Likewise.
9617 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9618 (sparc_xfer_partial): Likewise.
9619 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9620 updated.
9621 (spu_xfer_partial): Likewise.
9622 * spu-multiarch.c (spu_xfer_partial): Likewise.
9623 * tracepoint.c (tfile_xfer_partial): Likewise.
9624 * windows-nat.c (windows_xfer_memory): Likewise.
9625 (windows_xfer_shared_libraries): Likewise.
9626 (windows_xfer_partial): Likewise.
9627 * valprint.c: Replace 'target_xfer_error' with
9628 'target_xfer_status' in comments.
9629
9630 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9631
9632 Checked in by Joel Brobecker <brobecker@adacore.com>.
9633 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9634
9635 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9636
9637 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9638 function parameters.
9639
9640 2014-02-10 Will Newton <will.newton@linaro.org>
9641
9642 * elfread.c (elf_rel_plt_read): Look for a .got section if
9643 looking up .got.plt fails.
9644 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9645 on address passed to elf_gnu_ifunc_record_cache.
9646 (elf_gnu_ifunc_resolve_addr): Likewise.
9647 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9648
9649 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9650
9651 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9652 (X_RETTURN): New macro.
9653 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9654
9655 * sparc64-tdep.c (sparc64_init_abi): Hook
9656 sparc_in_function_epilogue_p.
9657
9658 2014-02-10 Gary Benson <gbenson@redhat.com>
9659
9660 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9661 Rename name_matcher to symbol_matcher.
9662
9663 2014-02-10 Gary Benson <gbenson@redhat.com>
9664
9665 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9666 Use expand_symtabs_file_matcher_ftype and
9667 expand_symtabs_symbol_matcher_ftype.
9668
9669 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9670
9671 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9672 (struct ada_symbol_cache): New.
9673 (ada_free_symbol_cache): Forward declare.
9674 (struct ada_pspace_data): New.
9675 (ada_pspace_data_handle): New static global.
9676 (get_ada_pspace_data, ada_pspace_data_cleanup)
9677 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9678 (cache_space, cache): Delete, now folded inside struct
9679 ada_pspace_data.
9680 (ada_get_symbol_cache): New function.
9681 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9682 implementation.
9683 (_initialize_ada_language): Remove initialization of cache_space.
9684 Move call to observer_attach_inferior_exit up, grouping it
9685 with the other observer registrations inside this function.
9686 Rename command to be more general. Add call to
9687 register_program_space_data_with_cleanup.
9688
9689 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9690
9691 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9692 ada_new_objfile_observer.
9693 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9694 (_initialize_tasks): Update uses of ada_new_objfile_observer
9695 and ada_tasks_normal_stop_observer.
9696
9697 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9698
9699 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9700 returned by the 'Length attribute to integer.
9701
9702 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9703
9704 * ada-lang.c (_initialize_ada_language): Initialize
9705 cache_space obstack.
9706
9707 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9708
9709 * ada-lang.c (HASH_SIZE): New macro.
9710 (struct cache_entry): New type.
9711 (cache_space, cache): New static globals.
9712 (ada_clear_symbol_cache, find_entry): New functions.
9713 (lookup_cached_symbol, cache_symbol): Implement.
9714 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9715 (_initialize_ada_language): Attach ada_new_objfile_observer
9716 and ada_free_objfile_observer.
9717
9718 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9719
9720 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9721 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9722 struct block * parameter.
9723 (ada_lookup_symbol_list_worker): Constify local variable "block".
9724 Remove cast which is no longer necessary.
9725
9726 2014-02-10 Doug Evans <xdje42@gmail.com>
9727
9728 Add Guile as an extension language.
9729 * NEWS: Mention Guile scripting.
9730 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9731 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9732 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9733 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9734 (CLIBS): Add GUILE_LIBS.
9735 (install-guile): New rule.
9736 (guile.o): New rule.
9737 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9738 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9739 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9740 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9741 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9742 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9743 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9744 * configure.ac: New option --with-guile.
9745 * configure: Regenerate.
9746 * config.in: Regenerate.
9747 * auto-load.c: Remove #include "python/python.h". Add #include
9748 "gdb/section-scripts.h".
9749 (source_section_scripts): Handle Guile scripts.
9750 (_initialize_auto_load): Add name of Guile objfile script to
9751 scripts-directory help text.
9752 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9753 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9754 (struct breakpoint): New member scm_bp_object.
9755 * defs.h (enum command_control_type): New value guile_control.
9756 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9757 "extension.h".
9758 (show_user): Update comment.
9759 (_initialize_cli_cmds): Update help text for "show user". Update help
9760 text for max-user-call-depth.
9761 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9762 "extension.h".
9763 (multi_line_command_p): Add guile_control.
9764 (print_command_lines): Handle guile_control.
9765 (execute_control_command, recurse_read_control_structure): Ditto.
9766 (process_next_line): Recognize "guile" commands.
9767 * disasm.c (gdb_disassemble_info): Make non-static.
9768 * disasm.h: #include "dis-asm.h".
9769 (struct gdbarch): Add forward decl.
9770 (gdb_disassemble_info): Declare.
9771 * extension.c: #include "guile/guile.h".
9772 (extension_languages): Add guile.
9773 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9774 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9775 * gdbtypes.c (get_unsigned_type_max): New function.
9776 (get_signed_type_minmax): New function.
9777 * gdbtypes.h (get_unsigned_type_max): Declare.
9778 (get_signed_type_minmax): Declare.
9779 * guile/README: New file.
9780 * guile/guile-internal.h: New file.
9781 * guile/guile.c: New file.
9782 * guile/guile.h: New file.
9783 * guile/scm-arch.c: New file.
9784 * guile/scm-auto-load.c: New file.
9785 * guile/scm-block.c: New file.
9786 * guile/scm-breakpoint.c: New file.
9787 * guile/scm-disasm.c: New file.
9788 * guile/scm-exception.c: New file.
9789 * guile/scm-frame.c: New file.
9790 * guile/scm-gsmob.c: New file.
9791 * guile/scm-iterator.c: New file.
9792 * guile/scm-lazy-string.c: New file.
9793 * guile/scm-math.c: New file.
9794 * guile/scm-objfile.c: New file.
9795 * guile/scm-ports.c: New file.
9796 * guile/scm-pretty-print.c: New file.
9797 * guile/scm-safe-call.c: New file.
9798 * guile/scm-string.c: New file.
9799 * guile/scm-symbol.c: New file.
9800 * guile/scm-symtab.c: New file.
9801 * guile/scm-type.c: New file.
9802 * guile/scm-utils.c: New file.
9803 * guile/scm-value.c: New file.
9804 * guile/lib/gdb.scm: New file.
9805 * guile/lib/gdb/boot.scm: New file.
9806 * guile/lib/gdb/experimental.scm: New file.
9807 * guile/lib/gdb/init.scm: New file.
9808 * guile/lib/gdb/iterator.scm: New file.
9809 * guile/lib/gdb/printing.scm: New file.
9810 * guile/lib/gdb/types.scm: New file.
9811 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9812 (VPATH): Add $(GUILE_SRCDIR).
9813 (GUILE_DIR): New variable.
9814 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9815 (all): Add stamp-guile dependency.
9816 (stamp-guile): New rule.
9817 (clean-guile, install-guile, uninstall-guile): New rules.
9818 (install-only): Add install-guile dependency.
9819 (uninstall): Add uninstall-guile dependency.
9820 (clean): Add clean-guile dependency.
9821
9822 2014-02-09 Doug Evans <xdje42@gmail.com>
9823
9824 Revert this patch (which I approved, mea culpa).
9825
9826 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9827
9828 * Makefile.in (all-lib): Remove.
9829 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9830
9831 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9832
9833 Fix Python stack corruption.
9834 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9835 gdb_py_longest.
9836
9837 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9838
9839 * Makefile.in (all-lib): Remove.
9840 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9841
9842 2014-02-07 Doug Evans <dje@google.com>
9843
9844 * extension-priv.h (extension_language_script_ops): Add comment.
9845 (extension_language_ops): Add comment.
9846 (active_ext_lang_state): Fix typo in comment.
9847
9848 2014-02-07 Pedro Alves <palves@redhat.com>
9849
9850 PR breakpoints/16292
9851 * infrun.c (handle_signal_stop) <signal arrives while stepping
9852 over a breakpoint>: Switch back to the stepping thread.
9853
9854 2014-02-07 Yao Qi <yao@codesourcery.com>
9855
9856 * target.c (target_xfer_partial): Return zero if LEN is zero.
9857
9858 2014-02-07 Yao Qi <yao@codesourcery.com>
9859
9860 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9861 (ld_so_xfer_auxv): Likewise.
9862 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9863 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9864 * corelow.c (core_xfer_partial): Likewise.
9865 * ctf.c (ctf_xfer_partial): Likewise.
9866 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9867 (darwin_xfer_partial): Likewise.
9868 * exec.c (exec_xfer_partial): Likewise.
9869 * gnu-nat.c (gnu_xfer_partial): Likewise.
9870 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9871 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9872 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9873 * linux-nat.c (linux_xfer_siginfo): Likewise.
9874 (linux_proc_xfer_spu): Likewise.
9875 * procfs.c (procfs_xfer_partial): Likewise.
9876 * record-full.c (record_full_xfer_partial): Likewise.
9877 (record_full_core_xfer_partial): Likewise.
9878 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9879 * remote.c (remote_write_qxfer): Likewise.
9880 (remote_write_qxfer, remote_read_qxfer): Likewise.
9881 (remote_xfer_partial): Likewise.
9882 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9883 (rs6000_xfer_shared_libraries): Likewise.
9884 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9885 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9886 (spu_xfer_partial): Likewise.
9887 * target.c (memory_xfer_partial_1): Likewise.
9888 * tracepoint.c (tfile_xfer_partial): Likewise.
9889 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9890 (windows_xfer_partial): Likewise.
9891
9892 2014-02-07 Yao Qi <yao@codesourcery.com>
9893
9894 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9895 comments.
9896 (core_xfer_shared_libraries_aix): Likewise.
9897 * gdbarch.c, gdbarch.h: Regenerated.
9898 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9899 ULONGEST. Change 'len_avail' type to ULONGEST.
9900 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9901 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9902 declaration.
9903 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9904
9905 2014-02-07 Yao Qi <yao@codesourcery.com>
9906
9907 * corefile.c (memory_error): Get 'exception' from ERR and pass
9908 'exception' to throw_error.
9909
9910 2014-02-06 Doug Evans <xdje42@gmail.com>
9911
9912 * configure.ac (libpython checking): Remove all but python.o from
9913 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9914 * configure: Regenerate.
9915
9916 * Makefile.in (SFILES): Add extension.c.
9917 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9918 (COMMON_OBS): Add extension.o.
9919 * extension.h: New file.
9920 * extension-priv.h: New file.
9921 * extension.c: New file.
9922
9923 * python/python-internal.h: #include "extension.h".
9924 (gdbpy_auto_load_enabled): Declare.
9925 (gdbpy_apply_val_pretty_printer): Declare.
9926 (gdbpy_apply_frame_filter): Declare.
9927 (gdbpy_preserve_values): Declare.
9928 (gdbpy_breakpoint_cond_says_stop): Declare.
9929 (gdbpy_breakpoint_has_cond): Declare.
9930 (void source_python_script_for_objfile): Delete.
9931 * python/python.c: #include "extension-priv.h".
9932 Delete inclusion of "observer.h".
9933 (extension_language_python): Moved here and renamed from
9934 script_language_python in py-auto-load.c.
9935 Redefined to be of type extension_language_defn.
9936 (python_extension_script_ops): New global.
9937 (python_extension_ops): New global.
9938 (struct python_env): New member previous_active.
9939 (restore_python_env): Call restore_active_ext_lang.
9940 (ensure_python_env): Call set_active_ext_lang.
9941 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9942 New arg extlang.
9943 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9944 New arg extlang.
9945 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9946 New arg extlang.
9947 (gdbpy_eval_from_control_command): Renamed from
9948 eval_python_from_control_command, made static. New arg extlang.
9949 (gdbpy_source_script) Renamed from source_python_script, made static.
9950 New arg extlang.
9951 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9952 result to int. New arg extlang.
9953 (gdbpy_source_objfile_script): Renamed from
9954 source_python_script_for_objfile, made static. New arg extlang.
9955 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9956 static. New args extlang, extlang_printers. Change result type to
9957 "void".
9958 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9959 static. New arg extlang. Rename arg printers to extlang_printers
9960 and change type to ext_lang_type_printers *.
9961 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9962 static. Replace argument arg with extlang, extlang_printers.
9963 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9964 (!HAVE_PYTHON, source_python_script): Delete.
9965 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9966 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9967 (!HAVE_PYTHON, start_type_printers): Delete.
9968 (!HAVE_PYTHON, apply_type_printers): Delete.
9969 (!HAVE_PYTHON, free_type_printers): Delete.
9970 (_initialize_python): Delete call to observer_attach_before_prompt.
9971 (finalize_python): Set/restore active extension language.
9972 (gdbpy_finish_initialization) Renamed from
9973 finish_python_initialization, made static. New arg extlang.
9974 (gdbpy_initialized): New function.
9975 * python/python.h: #include "extension.h". Delete #include
9976 "value.h", "mi/mi-cmds.h".
9977 (extension_language_python): Declare.
9978 (GDBPY_AUTO_FILE_NAME): Delete.
9979 (enum py_bt_status): Moved to extension.h and renamed to
9980 ext_lang_bt_status.
9981 (enum frame_filter_flags): Moved to extension.h.
9982 (enum py_frame_args): Moved to extension.h and renamed to
9983 ext_lang_frame_args.
9984 (finish_python_initialization): Delete.
9985 (eval_python_from_control_command): Delete.
9986 (source_python_script): Delete.
9987 (apply_val_pretty_printer): Delete.
9988 (apply_frame_filter): Delete.
9989 (preserve_python_values): Delete.
9990 (gdbpy_script_language_defn): Delete.
9991 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9992 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9993
9994 * auto-load.c: #include "extension.h".
9995 (GDB_AUTO_FILE_NAME): Delete.
9996 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9997 (script_language_gdb): Delete, moved to extension.c and renamed to
9998 extension_language_gdb.
9999 (source_gdb_script_for_objfile): Delete.
10000 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10001 (loaded_script): Change type of language member to
10002 struct extension_language_defn *.
10003 (init_loaded_scripts_info): Initialize
10004 unsupported_script_warning_printed.
10005 (maybe_add_script): Make static. Change type of language arg to
10006 struct extension_language_defn *.
10007 (clear_section_scripts): Reset unsupported_script_warning_printed.
10008 (auto_load_objfile_script_1): Rewrite to use extension language API.
10009 (auto_load_objfile_script): Make public. Remove support-compiled-in
10010 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10011 (source_section_scripts): Rewrite to use extension language API.
10012 (load_auto_scripts_for_objfile): Rewrite to use
10013 auto_load_scripts_for_objfile.
10014 (collect_matching_scripts_data): Change type of language member to
10015 struct extension_language_defn *.
10016 (auto_load_info_scripts): Change type of language arg to
10017 struct extension_language_defn *.
10018 (unsupported_script_warning_print): New function.
10019 (script_not_found_warning_print): Make static.
10020 (_initialize_auto_load): Rewrite construction of scripts-directory
10021 help.
10022 * auto-load.h (struct objfile): Add forward decl.
10023 (struct script_language): Delete.
10024 (struct auto_load_pspace_info): Add forward decl.
10025 (struct extension_language_defn): Add forward decl.
10026 (maybe_add_script): Delete.
10027 (auto_load_objfile_script): Declare.
10028 (script_not_found_warning_print): Delete.
10029 (auto_load_info_scripts): Update prototype.
10030 (auto_load_gdb_scripts_enabled): Declare.
10031 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10032 auto_load_python_scripts_enabled and made public.
10033 (script_language_python): Delete, moved to python.c.
10034 (gdbpy_script_language_defn): Delete.
10035 (info_auto_load_python_scripts): Update to use
10036 extension_language_python.
10037
10038 * breakpoint.c (condition_command): Replace call to
10039 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10040 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10041 with call to breakpoint_ext_lang_cond_says_stop.
10042 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10043 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10044 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10045 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10046 New arg slang.
10047 (local_setattro): Print name of extension language with existing
10048 stop condition.
10049
10050 * valprint.c (val_print, value_print): Update to call
10051 apply_ext_lang_val_pretty_printer.
10052 * cp-valprint.c (cp_print_value): Update call to
10053 apply_ext_lang_val_pretty_printer.
10054 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10055 (gdbpy_apply_val_pretty_printer): Renamed from
10056 apply_val_pretty_printer. New arg extlang.
10057 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10058
10059 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10060 extension language API.
10061 * cli/cli-script.c (execute_control_command): Update to call
10062 eval_ext_lang_from_control_command.
10063
10064 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10065 enum ext_lang_bt_status values. Update call to
10066 apply_ext_lang_frame_filter.
10067 (mi_cmd_stack_list_locals): Ditto.
10068 (mi_cmd_stack_list_args): Ditto.
10069 (mi_cmd_stack_list_variables): Ditto.
10070 * mi/mi-main.c: Delete #include "python/python-internal.h".
10071 Add #include "extension.h".
10072 (mi_cmd_list_features): Replace reference to python internal variable
10073 gdb_python_initialized with call to ext_lang_initialized_p.
10074
10075 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10076 Update to use enum ext_lang_frame_args. Update to call
10077 apply_ext_lang_frame_filter.
10078 * python/py-framefilter.c (extract_sym): Update to use enum
10079 ext_lang_bt_status.
10080 (extract_value, py_print_type, py_print_value): Ditto.
10081 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10082 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10083 (py_print_frame): Ditto.
10084 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10085 New arg extlang. Update to use enum ext_lang_bt_status.
10086
10087 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10088 finish_python_initialization. Replace with call to
10089 finish_ext_lang_initialization.
10090
10091 * typeprint.c (do_free_global_table): Update to call
10092 free_ext_lang_type_printers.
10093 (create_global_typedef_table): Update to call
10094 start_ext_lang_type_printers.
10095 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10096 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10097 (type_print_options): Change type of global_printers from "void *"
10098 to "struct ext_lang_type_printers *".
10099
10100 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10101 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10102 (gdbpy_preserve_values): Renamed from preserve_python_values.
10103 New arg extlang.
10104 (!HAVE_PYTHON, preserve_python_values): Delete.
10105
10106 * utils.c (quit_flag): Delete, moved to extension.c.
10107 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10108 extension.c.
10109
10110 * eval.c: Delete #include "python/python.h".
10111 * main.c: Delete #include "python/python.h".
10112
10113 * defs.h: Update comment.
10114
10115 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10116
10117 GDB 7.7 released.
10118
10119 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10120
10121 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10122 defined.
10123
10124 2014-02-05 Yao Qi <yao@codesourcery.com>
10125
10126 * remote.c (remote_pass_signals): Remove local 'buf' and use
10127 rs->buf.
10128 (remote_program_signals): Likewise.
10129
10130 2014-02-05 Yao Qi <yao@codesourcery.com>
10131
10132 * ctf.c: Include "inferior.h" and "gdbthread.h".
10133 (CTF_PID): A new macro.
10134 (ctf_open): Call inferior_appeared and add_thread_silent.
10135 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10136 (ctf_thread_alive): New function.
10137 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10138
10139 2014-02-05 Yao Qi <yao@codesourcery.com>
10140
10141 Revert this patch:
10142
10143 2013-05-24 Yao Qi <yao@codesourcery.com>
10144
10145 * tracepoint.c (TFILE_PID): Remove.
10146 (tfile_open): Don't add thread and inferior.
10147 (tfile_close): Don't set 'inferior_ptid'. Don't call
10148 exit_inferior_silent.
10149 (tfile_thread_alive): Remove.
10150 (init_tfile_ops): Don't set field 'to_thread_alive' of
10151 tfile_ops.
10152
10153 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10154
10155 * remote.c (remote_start_remote): Call remote_check_symbols even
10156 if only symbol-file (not file) has been given.
10157
10158 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10159
10160 * gdbarch.sh (skip_entrypoint): New callback.
10161 * gdbarch.c, gdbarch.h: Regenerate.
10162 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10163 * infrun.c (fill_in_stop_func): Likewise.
10164 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10165 (ppc_elfv2_elf_make_msymbol_special): New function.
10166 (ppc_elfv2_skip_entrypoint): Likewise.
10167 (ppc_linux_init_abi): Install them for ELFv2.
10168
10169 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10170
10171 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10172 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10173 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10174 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10175 structures returned in GPRs.
10176
10177 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10178
10179 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10180 offset to the stack parameter list for the ELFv2 ABI.
10181
10182 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10183
10184 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10185 set_gdbarch_convert_from_func_ptr_addr and
10186 set_gdbarch_elf_make_msymbol_special for ELFv1.
10187 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10188 function descriptors on ELFv1.
10189 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10190 set up r12 at function entry.
10191
10192 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10193
10194 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10195 (struct gdbarch_tdep): New member elf_abi.
10196
10197 * rs6000-tdep.c: Include "elf/ppc64.h".
10198 (rs6000_gdbarch_init): Detect ELF ABI version.
10199
10200 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10201
10202 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10203 within a register pair holding a DFP 128-bit value on little-endian.
10204 (ppc64_sysv_abi_return_value_base): Likewise.
10205 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10206 (dfp_pseudo_register_write): Likewise.
10207
10208 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10209
10210 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10211 offset on little-endian when passing _Decimal32.
10212 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10213
10214 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10215
10216 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10217 of the overlapped FP register within the VSX register on little-
10218 endian platforms.
10219 (efpr_pseudo_register_write): Likewise.
10220
10221 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10222
10223 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10224 offset on little-endian when passing small structures.
10225
10226 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10227
10228 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10229 (struct ppc64_sysv_argpos): New data structure.
10230 (ppc64_sysv_abi_push_float): Remove.
10231 (ppc64_sysv_abi_push_val): New function.
10232 (ppc64_sysv_abi_push_integer): Likewise.
10233 (ppc64_sysv_abi_push_freg): Likewise.
10234 (ppc64_sysv_abi_push_vreg): Likewise.
10235 (ppc64_sysv_abi_push_param): Likewise.
10236 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10237 (ppc64_sysv_abi_return_value_base): New function.
10238 (ppc64_sysv_abi_return_value): Refactor to use it.
10239
10240 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10241
10242 * NEWS: Document new target powerpc64le-*-linux*.
10243
10244 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10245
10246 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10247 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10248 core dumps.
10249 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10250 register set used in ELF core dumps. Add floating-point register set.
10251
10252 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10253
10254 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10255 dwarf2_to_gdb[] table using symbolic constants. Adjust
10256 penultimate entry from number representing the PC register
10257 to symbolic constant representing the MDR register. Add
10258 constant for the PC register to the end of the table.
10259
10260 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10261
10262 * bsd-kvm.c: Include <sys/param.h>
10263
10264 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10265
10266 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10267
10268 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10269
10270 * ada-lang.h (clear_ada_sym_cache): Delete.
10271
10272 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10273
10274 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10275
10276 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10277
10278 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10279 the sigreturn register save area only if the syscall is
10280 sigreturn.
10281
10282 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10283
10284 * valops.c (value_slice): Minor reformatting.
10285
10286 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10287
10288 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10289
10290 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10291
10292 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10293 New static globals.
10294 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10295 (ada_ignore_descriptive_types_p): New static global.
10296 (find_parallel_type_by_descriptive_type): Return immediately
10297 if ada_ignore_descriptive_types_p is set.
10298 (_initialize_ada_language): Register new commands "maintenance
10299 set ada", "maintenance show ada", "maintenance set ada
10300 ignore-descriptive-types" and "maintenance show ada
10301 ignore-descriptive-types".
10302 * NEWS: Add entry for new "maint ada set/show
10303 ignore-descriptive-types" commands.
10304
10305 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10306
10307 * record-btrace.c (record_btrace_close): Call btrace_teardown
10308 for all threads.
10309
10310 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10311
10312 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10313 "ui-out.h".
10314
10315 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10316
10317 * ada-typeprint (type_is_full_subrange_of_target_type):
10318 New function.
10319 (print_range): Add parameter bounds_prefered_p. If not set,
10320 try printing range types using the name of their base type.
10321 (print_range_type): Add parameter bounds_prefered_p.
10322 Use it in call to print_range.
10323 (print_array_type, ada_print_type): Update calls to print_range
10324 and print_range_type.
10325
10326 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10327
10328 * ada-typeprint.c (print_array_type, print_choices, print_range)
10329 (print_range_bound, print_dynamic_range_bound, print_range_type):
10330 Remove declaration.
10331
10332 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10333
10334 * ada-typeprint.c (print_range): Add missing empty line
10335 after local declaration.
10336
10337 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10338
10339 * ada-valprint.c (print_optional_low_bound): Get index_type's
10340 target type for as long as it is a TYPE_CODE_RANGE.
10341
10342 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10343
10344 * procfs.c (procfs_make_note_section): Remove assertion and
10345 associated comment.
10346
10347 2014-01-24 Yao Qi <yao@codesourcery.com>
10348
10349 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10350 * corelow.c (get_core_siginfo): Likewise.
10351
10352 2014-01-24 Yao Qi <yao@codesourcery.com>
10353
10354 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10355 ULONGEST. Don't check 'len' is negative.
10356 (remote_write_bytes): Change type of 'len' to ULONGEST.
10357
10358 2014-01-23 Tom Tromey <tromey@redhat.com>
10359
10360 PR python/16485:
10361 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10362 Handle exception from frame.block.
10363 (FrameVars.fetch_frame_locals): Likewise.
10364
10365 2014-01-23 Tom Tromey <tromey@redhat.com>
10366
10367 PR python/16487:
10368 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10369 on a NULL pointer. Move "goto error" to correct place.
10370
10371 2014-01-23 Tom Tromey <tromey@redhat.com>
10372
10373 PR python/16491:
10374 * python/py-framefilter.c (apply_frame_filter): Call
10375 ensure_python_env after computing gdbarch.
10376
10377 2014-01-23 Yao Qi <yao@codesourcery.com>
10378
10379 * target.c (raw_memory_xfer_partial): Change argument type
10380 from void * to gdb_byte *.
10381 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10382
10383 2014-01-22 Doug Evans <dje@google.com>
10384
10385 New gdbserver option --debug-format=timestamp.
10386 * NEWS: Mention it.
10387
10388 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10389
10390 * syscalls/s390x-linux.xml: New file.
10391 * syscalls/s390-linux.xml: New file.
10392 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10393 (XML_SYSCALL_FILENAME_S390X): Likewise.
10394 (op_svc): New enum value for SVC opcode.
10395 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10396 (s390_linux_get_syscall_number): New function.
10397 (s390_gdbarch_init): Register '*get_syscall_number' and the
10398 syscall xml file name.
10399 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10400 "s390-linux.xml" and "s390x-linux.xml".
10401 * NEWS: Announce new feature.
10402
10403 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10404
10405 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10406
10407 2014-01-22 Pedro Alves <palves@redhat.com>
10408
10409 * xtensa-config.c: Include defs.h.
10410
10411 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10412
10413 * common/common-utils.h: Add "ARI:" comment beside __func__
10414 reference.
10415
10416 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10417
10418 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10419 documentation a bit.
10420
10421 2014-01-21 Roland McGrath <mcgrathr@google.com>
10422
10423 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10424 * configure: Regenerate.
10425 * aclocal.m4: Regenerate.
10426 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10427 New substituted variables.
10428 (install-strip): New target.
10429 (INSTALL_SCRIPT): New substituted variable.
10430 (FLAGS_TO_PASS): Add it.
10431 (install-only): Use $(INSTALL_SCRIPT) rather than
10432 $(INSTALL_PROGRAM) for gcore.
10433
10434 2014-01-20 Tom Tromey <tromey@redhat.com>
10435
10436 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10437 together.
10438
10439 2014-01-20 Tom Tromey <tromey@redhat.com>
10440
10441 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10442 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10443 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10444 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10445 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10446 (struct cmd_list_element) <flags>: Remove.
10447 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10448 doc_allocated>: New fields.
10449 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10450 bitfields.
10451 * maint.c (maintenance_do_deprecate): Update.
10452 * top.c (execute_command): Update.
10453
10454 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10455
10456 * xtensa-linux-nat.c: Include asm/ptrace.h.
10457
10458 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10459
10460 * Makefile.in (SFILES): Add d-support.c.
10461 (COMMON_OBS): Add d-support.o.
10462 * d-lang.h (d_parse_symbol): Add comment, now defined in
10463 d-support.c.
10464 * d-lang.c (parse_call_convention)
10465 (parse_attributes, parse_function_types)
10466 (parse_function_args, parse_type, parse_identifier)
10467 (call_convention_p, d_parse_symbol): Move functions to ...
10468 * d-support.c: ... New file.
10469
10470 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10471
10472 * d-lang.h (d_parse_symbol): Add declaration.
10473 * d-lang.c (extract_identifiers)
10474 (extract_type_info): Remove functions.
10475 (parse_call_convention, parse_attributes)
10476 (parse_function_types, parse_function_args)
10477 (parse_type, parse_identifier, call_convention_p)
10478 (d_parse_symbol): New functions.
10479 (d_demangle): Use d_parse_symbol to demangle D symbols.
10480
10481 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10482
10483 * d-lang.h (struct builtin_d_type): New data type.
10484 (builtin_d_type): Add declaration.
10485 * d-lang.c (d_language_arch_info, build_d_types)
10486 (builtin_d_type): New functions.
10487 (enum d_primitive_types): New data type.
10488 (d_language_defn): Change c_language_arch_info to
10489 d_language_arch_info.
10490 (d_type_data): New static variable.
10491 (_initialize_d_language): Initialize d_type_data.
10492
10493 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10494
10495 * d-lang.h (d_main_name): Add declaration.
10496 * d-lang.c (d_main_name): New function.
10497 * symtab.c (find_main_name): Add call to d_main_name.
10498
10499 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10500
10501 * d-lang.c (d_language_defn): Change macro_expansion_c to
10502 macro_expansion_no.
10503
10504 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10505
10506 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10507
10508 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10509
10510 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10511 gdb_exception" declaration.
10512 * remote.c (getpkt_or_notif_sane): Likewise.
10513
10514 2014-01-17 Doug Evans <dje@google.com>
10515
10516 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10517 function, contents of dirnames_to_char_ptr_vec_append moved here.
10518 (delim_string_to_char_ptr_vec): New function.
10519 (dirnames_to_char_ptr_vec_append): Rewrite.
10520 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10521
10522 2014-01-17 Doug Evans <dje@google.com>
10523
10524 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10525 and moved here ...
10526 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10527 #include "common-utils.h".
10528 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10529 * common/vec.h (VEC_ASSERT_PASS): Update.
10530 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10531 (MACH_CHECK_ERROR): Update.
10532
10533 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10534
10535 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10536 comments.
10537 * gdbarch.h: Regenerate.
10538
10539 2014-01-16 Tom Tromey <tromey@redhat.com>
10540
10541 * value.c (struct value) <regnum>: Move earlier.
10542
10543 2014-01-16 Tom Tromey <tromey@redhat.com>
10544
10545 * remote.c (extended_remote_create_inferior): Rename from
10546 extended_remote_create_inferior_1. Add "ops" argument. Remove
10547 old implementation.
10548
10549 2014-01-16 Pedro Alves <palves@redhat.com>
10550
10551 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10552 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10553 the backchain.
10554
10555 2014-01-16 Doug Evans <dje@google.com>
10556
10557 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10558
10559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10560
10561 * btrace.h (btrace_thread_flag): New.
10562 (struct btrace_thread_info) <flags>: New.
10563 * record-btrace.c (record_btrace_resume_thread)
10564 (record_btrace_find_thread_to_move, btrace_step_no_history)
10565 (btrace_step_stopped, record_btrace_start_replaying)
10566 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10567 (record_btrace_find_resume_thread): New.
10568 (record_btrace_resume, record_btrace_wait): Extend.
10569 (record_btrace_can_execute_reverse): New.
10570 (record_btrace_open): Fail in non-stop mode.
10571 (record_btrace_set_replay): Split into this, ...
10572 (record_btrace_stop_replaying): ... this, ...
10573 (record_btrace_clear_histories): ... and this.
10574 (init_record_btrace_ops): Init to_can_execute_reverse.
10575 * NEWS: Announce it.
10576
10577 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10578
10579 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10580 (forward_target_decr_pc_after_break)
10581 (target_decr_pc_after_break): New.
10582 * target.c (forward_target_decr_pc_after_break)
10583 (target_decr_pc_after_break): New.
10584 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10585 instead of gdbarch_decr_pc_after_break.
10586 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10587 instead of gdbarch_decr_pc_after_break.
10588 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10589 instead of gdbarch_decr_pc_after_break.
10590 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10591 instead of gdbarch_decr_pc_after_break.
10592 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10593 instead of gdbarch_decr_pc_after_break.
10594 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10595 instead of gdbarch_decr_pc_after_break.
10596
10597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10598
10599 * btrace.c: Include regcache.h.
10600 (btrace_add_pc): New.
10601 (btrace_enable): Call btrace_add_pc.
10602 (btrace_is_empty): New.
10603 * btrace.h (btrace_is_empty): New.
10604 * record-btrace.c (require_btrace, record_btrace_info): Call
10605 btrace_is_empty.
10606
10607 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10608
10609 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10610 Support delta reads.
10611 (linux_disable_btrace): Change return type.
10612 * common/linux-btrace.h (linux_read_btrace): Change parameters
10613 and return type to allow error reporting. Update users.
10614 (linux_disable_btrace): Change return type. Update users.
10615 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10616 New.
10617 (btrace_error): New.
10618 (btrace_block) <begin>: Comment on BEGIN == 0.
10619 * btrace.c (btrace_compute_ftrace): Start from the end of
10620 the current trace.
10621 (btrace_stitch_trace, btrace_clear_history): New.
10622 (btrace_fetch): Read delta trace, return if replaying.
10623 (btrace_clear): Move clear history code to btrace_clear_history.
10624 (parse_xml_btrace): Throw an error if parsing failed.
10625 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10626 and return type to allow error reporting.
10627 (target_read_btrace): Change parameters and return type to allow
10628 error reporting.
10629 * target.c (target_read_btrace): Update.
10630 * remote.c (remote_read_btrace): Support delta reads. Pass
10631 errors on.
10632 * NEWS: Announce it.
10633
10634 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10635
10636 * record.h (record_btrace_frame_unwind)
10637 (record_btrace_tailcall_frame_unwind): New declarations.
10638 * dwarf2-frame: Include record.h
10639 (dwarf2_frame_cfa): Throw an error for btrace frames.
10640 * record-btrace.c: Include hashtab.h.
10641 (btrace_get_bfun_name): New.
10642 (btrace_call_history): Call btrace_get_bfun_name.
10643 (struct btrace_frame_cache): New.
10644 (bfcache): New.
10645 (bfcache_hash, bfcache_eq, bfcache_new): New.
10646 (btrace_get_frame_function): New.
10647 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10648 (record_btrace_frame_this_id): Compute own id.
10649 (record_btrace_frame_prev_register): Provide PC, throw_error
10650 for all other registers.
10651 (record_btrace_frame_sniffer): Detect btrace frames.
10652 (record_btrace_tailcall_frame_sniffer): New.
10653 (record_btrace_frame_dealloc_cache): New.
10654 (record_btrace_frame_unwind): Add new functions.
10655 (record_btrace_tailcall_frame_unwind): New.
10656 (_initialize_record_btrace): Allocate cache.
10657 * btrace.c (btrace_clear): Call reinit_frame_cache.
10658 * NEWS: Announce it.
10659
10660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10661
10662 * record-btrace.c (record_btrace_set_replay)
10663 (record_btrace_goto_begin, record_btrace_goto_end)
10664 (record_btrace_goto): New.
10665 (init_record_btrace_ops): Initialize them.
10666 * NEWS: Announce it.
10667
10668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10669
10670 * record-btrace.c (record_btrace_find_new_threads)
10671 (record_btrace_thread_alive): New.
10672 (init_record_btrace_ops): Initialize to_find_new_threads and
10673 to_thread_alive.
10674
10675 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10676
10677 * record-btrace.c (record_btrace_resume): New.
10678 (record_btrace_wait): New.
10679 (init_record_btrace_ops): Initialize to_wait and to_resume.
10680
10681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10682
10683 * record-btrace.c (record_btrace_xfer_partial)
10684 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10685 (record_btrace_allow_memory_access): New.
10686 (init_record_btrace_ops): Initialize new methods.
10687 * target.c (raw_memory_xfer_partial): Bail out if target reports
10688 that this memory is not available.
10689
10690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10691
10692 * target.h (target_ops) <to_insert_breakpoint>
10693 <to_remove_breakpoint>: Add target_ops parameter.
10694 (forward_target_insert_breakpoint): New.
10695 (forward_target_remove_breakpoint): New.
10696 (memory_remove_breakpoint, memory_insert_breakpoint):
10697 Add target_ops parameter.
10698 * target.c (target_insert_breakpoint): Split into this and ...
10699 (forward_target_insert_breakpoint): ... this.
10700 (target_remove_breakpoint): Split into this and ...
10701 (forward_target_remove_breakpoint): ... this.
10702 (debug_to_insert_breakpoint): Add target_ops parameter.
10703 Call forward_target_insert_breakpoint.
10704 (debug_to_remove_breakpoint): Add target_ops parameter.
10705 Call forward_target_remove_breakpoint.
10706 (update_current_target): Do not inherit or default to_insert_breakpoint
10707 and to_remove_breakpoint.
10708 * corelow.c (ignore): Add target_ops parameter.
10709 * exec.c (ignore): Add target_ops parameter.
10710 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10711 Add target_ops parameter.
10712 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10713 Add target_ops parameter.
10714 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10715 Add target_ops parameter.
10716 * record-full.c (record_full_beneath_to_insert_breakpoint)
10717 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10718 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10719 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10720 (record_full_core_remove_breakpoint): Add target_ops parameter.
10721 Update users.
10722 (record_full_beneath_to_insert_breakpoint_ops)
10723 (record_full_beneath_to_remove_breakpoint_ops)
10724 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10725 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10726 tmp_to_remove_breakpoint_ops,
10727 record_full_beneath_to_insert_breakpoint_ops, and
10728 record_full_beneath_to_remove_breakpoint_ops.
10729 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10730 (m32r_remove_breakpoint): Add target_ops parameter.
10731 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10732 Add target_ops parameter.
10733 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10734 Add target_ops parameter.
10735
10736 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10737 Markus Metzger <markus.t.metzger@intel.com>
10738
10739 * record-btrace.c: Include frame-unwind.h.
10740 (record_btrace_frame_unwind_stop_reason)
10741 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10742 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10743 New.
10744 (init_record_btrace_ops): Install it.
10745
10746 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10747
10748 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10749 get_prev_frame_1.
10750
10751 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10752
10753 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10754 earlier.
10755
10756 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10757
10758 * frame-unwind.c: Include target.h.
10759 (frame_unwind_try_unwinder): New function with code from ...
10760 (frame_unwind_find_by_frame): ... here. New variable
10761 unwinder_from_target, call also target_get_unwinder)
10762 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10763 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10764 * target.h (struct target_ops): New fields to_get_unwinder and
10765 to_get_tailcall_unwinder.
10766 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10767
10768 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10769
10770 * record-btrace.c (record_btrace_fetch_registers)
10771 (record_btrace_store_registers)
10772 (record_btrace_to_prepare_to_store): New.
10773 (init_record_btrace_ops): Add the above.
10774
10775 2014-01-16 Tom Tromey <tromey@redhat.com>
10776
10777 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10778 * target.h (struct target_ops) <to_prepare_to_store>: Add
10779 argument.
10780 (target_prepare_to_store): Add argument.
10781 * target.c (debug_to_prepare_to_store): Add argument.
10782 (update_current_target): Update.
10783 * remote.c (remote_prepare_to_store): Add 'self' argument.
10784 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10785 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10786 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10787 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10788 argument.
10789 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10790 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10791 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10792 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10793 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10794
10795 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10796
10797 * btrace.h (replay) <replay>: New.
10798 (btrace_is_replaying): New.
10799 * btrace.c (btrace_clear): Free replay iterator.
10800 (btrace_is_replaying): New.
10801 * record-btrace.c (record_btrace_is_replaying): New.
10802 (record_btrace_info): Print insn number if replaying.
10803 (record_btrace_insn_history): Start at replay position.
10804 (record_btrace_call_history): Start at replay position.
10805 (init_record_btrace_ops): Init to_record_is_replaying.
10806
10807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10808
10809 * record-btrace.c (record_btrace_insn_history_range): Include
10810 end.
10811 (record_btrace_insn_history_from): Adjust range.
10812 (record_btrace_call_history_range): Include
10813 end.
10814 (record_btrace_call_history_from): Adjust range.
10815 * NEWS: Announce changes.
10816
10817 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10818
10819 * record.h (enum record_print_flag)
10820 <record_print_indent_calls>: New.
10821 * record.c (get_call_history_modifiers): Recognize /c modifier.
10822 (_initialize_record): Document /c modifier.
10823 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10824 Reorder fields. Optionally indent the function name. Update
10825 all users.
10826 * NEWS: Announce changes.
10827
10828 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10829
10830 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10831
10832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10833
10834 * btrace.c (ftrace_new_function): Start counting at one.
10835 * record-btrace.c (record_btrace_info): Adjust number of calls
10836 and insns.
10837 * NEWS: Announce it.
10838
10839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10840
10841 * record-btrace.c (btrace_call_history_insn_range): Print
10842 insn range as [begin, end].
10843
10844 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10845
10846 * btrace.h (struct btrace_func_link): New.
10847 (enum btrace_function_flag): New.
10848 (struct btrace_inst): Rename to ...
10849 (struct btrace_insn): ...this. Update all users.
10850 (struct btrace_func) <ibegin, iend>: Remove.
10851 (struct btrace_func_link): New.
10852 (struct btrace_func): Rename to ...
10853 (struct btrace_function): ...this. Update all users.
10854 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10855 (number, level, flags>: New.
10856 (struct btrace_insn_iterator): Rename to ...
10857 (struct btrace_insn_history): ...this.
10858 Update all users.
10859 (struct btrace_insn_iterator, btrace_call_iterator): New.
10860 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10861 (struct btrace_target_info) <begin, end, level>
10862 <insn_history, call_history>: New.
10863 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10864 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10865 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10866 (btrace_call_number, btrace_call_begin, btrace_call_end)
10867 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10868 (btrace_find_function_by_number, btrace_set_insn_history)
10869 (btrace_set_call_history): New.
10870 * btrace.c (btrace_init_insn_iterator)
10871 (btrace_init_func_iterator, compute_itrace): Remove.
10872 (ftrace_print_function_name, ftrace_print_filename)
10873 (ftrace_skip_file): Change
10874 parameter to const.
10875 (ftrace_init_func): Remove.
10876 (ftrace_debug): Use new btrace_function fields.
10877 (ftrace_function_switched): Also consider gaining and
10878 losing symbol information).
10879 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10880 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10881 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10882 New.
10883 (ftrace_new_function): Move. Remove debug print.
10884 (ftrace_update_lines, ftrace_update_insns): New.
10885 (ftrace_update_function): Check for call, ret, and jump.
10886 (compute_ftrace): Renamed to ...
10887 (btrace_compute_ftrace): ...this. Rewritten to compute call
10888 stack.
10889 (btrace_fetch, btrace_clear): Updated.
10890 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10891 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10892 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10893 (btrace_call_number, btrace_call_begin, btrace_call_end)
10894 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10895 (btrace_find_function_by_number, btrace_set_insn_history)
10896 (btrace_set_call_history): New.
10897 * record-btrace.c (require_btrace): Use new btrace thread
10898 info fields.
10899 (record_btrace_info, btrace_insn_history)
10900 (record_btrace_insn_history, record_btrace_insn_history_range):
10901 Use new btrace thread info fields and new iterator.
10902 (btrace_func_history_src_line): Rename to ...
10903 (btrace_call_history_src_line): ...this. Use new btrace
10904 thread info fields.
10905 (btrace_func_history): Rename to ...
10906 (btrace_call_history): ...this. Use new btrace thread info
10907 fields and new iterator.
10908 (record_btrace_call_history, record_btrace_call_history_range):
10909 Use new btrace thread info fields and new iterator.
10910
10911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10912
10913 * frame.h (frame_id_build_unavailable_stack_special): New.
10914 * frame.c (frame_id_build_unavailable_stack_special): New.
10915
10916 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10917
10918 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10919 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10920 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10921 to gdbarch.
10922 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10923 (i386_insn_is_jump, i386_jmp_p): New.
10924 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10925 insn_is_jump to gdbarch.
10926 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10927 * gdbarch.h: Regenerated.
10928 * gdbarch.c: Regenerated.
10929 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10930 (default_insn_is_jump): New.
10931 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10932 (default_insn_is_jump): New.
10933
10934 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10935
10936 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10937 Change to ...
10938 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10939 (btrace_read_type) <btrace_read_new>: Change to ...
10940 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10941
10942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10943
10944 * common/linux-btrace.c (linux_read_btrace): Free trace from
10945 previous iteration.
10946
10947 2014-01-15 Doug Evans <dje@google.com>
10948
10949 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10950 uint32_t.
10951
10952 2014-01-15 Tom Tromey <tromey@redhat.com>
10953
10954 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10955 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10956 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10957 (set_objfile_main_name): New function.
10958 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10959 language_of_main>: New fields.
10960 (set_objfile_main_name): Declare.
10961 * symtab.c (find_main_name): Loop over objfiles to find the main
10962 name and language.
10963 (set_main_name): Now static.
10964 (get_main_info): Add comment.
10965 * symtab.h (set_main_name): Don't declare.
10966
10967 2014-01-15 Tom Tromey <tromey@redhat.com>
10968
10969 * symtab.c (main_progspace_key): New global.
10970 (struct main_info): New.
10971 (name_of_main, language_of_main): Remove.
10972 (get_main_info, main_info_cleanup): New function.
10973 (set_main_name, main_name, main_language): Use get_main_info.
10974 (_initialize_symtab): Initialize main_progspace_key.
10975
10976 2014-01-15 Tom Tromey <tromey@redhat.com>
10977
10978 * dbxread.c (process_one_symbol): Update.
10979 * dwarf2read.c (read_partial_die): Update.
10980 * symfile.c (set_initial_language): Call main_language.
10981 * symtab.c (language_of_main): Now static.
10982 (set_main_name): Add 'lang' parameter.
10983 (find_main_name): Update.
10984 (main_language): New function.
10985 (symtab_observer_executable_changed): Update.
10986 * symtab.h (set_main_name): Update.
10987 (language_of_main): Remove.
10988 (main_language): Declare.
10989
10990 2014-01-15 Tom Tromey <tromey@redhat.com>
10991
10992 * symfile.c (init_entry_point_info): Use new "initialized" field.
10993 Update.
10994 * objfiles.h (struct entry_point) <initialized>: New field.
10995 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10996 (struct objfile) <ei>: ...here. Remove.
10997 * objfiles.c (entry_point_address_query): Update.
10998
10999 2014-01-15 Tom Tromey <tromey@redhat.com>
11000
11001 * objfiles.c (entry_point_address_query): Relocate entry point
11002 address.
11003 (objfile_relocate1): Do not relocate entry point address.
11004 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11005 <the_bfd_section_index>: New field.
11006 * symfile.c (init_entry_point_info): Find the entry point's
11007 section.
11008
11009 2014-01-15 Tom Tromey <tromey@redhat.com>
11010
11011 * solib-frv.c (enable_break): Use entry_point_address_query.
11012
11013 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11014
11015 * NEWS: Add note on improved process record-replay on
11016 arm*-linux* targets.
11017
11018 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11019
11020 * arm-tdep.c (enum arm_record_result): New enum.
11021 (arm_record_unsupported_insn): New function.
11022 (arm_record_coproc_data_proc): Removed.
11023 (thumb2_record_ld_st_multiple): New function.
11024 (thumb2_record_ld_st_dual_ex_tbb): New function.
11025 (thumb2_record_data_proc_sreg_mimm): New function.
11026 (thumb2_record_ps_dest_generic): New function.
11027 (thumb2_record_branch_misc_cntrl): New function.
11028 (thumb2_record_str_single_data): New function.
11029 (thumb2_record_ld_mem_hints): New function.
11030 (thumb2_record_ld_word): New function.
11031 (thumb2_record_lmul_lmla_div): New function.
11032 (thumb2_record_decode_insn_handler): New function.
11033 (decode_insn): Add thumb32 instruction handlers.
11034
11035 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11036
11037 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11038 (struct arm_linux_record_tdep): Declare.
11039 (arm_canonicalize_syscall): New function.
11040 (arm_all_but_pc_registers_record): New function.
11041 (arm_linux_syscall_record): New function.
11042 (arm_linux_init_abi): Add syscall recording constructs.
11043 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11044 decoding. (arm_record_coproc_data_proc): Update arm syscall
11045 decoding.
11046 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11047 <arm_syscall_record>: New field.
11048 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11049 gdb_target_obs.
11050
11051 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11052
11053 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11054 register for push instruction recording.
11055
11056 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11057
11058 * arm-tdep.c (thumb_record_misc): Update to correct logical
11059 error while recording ldm, ldmia and pop instructions.
11060
11061 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11062
11063 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11064
11065 2014-01-15 Pedro Alves <palves@redhat.com>
11066
11067 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11068 (go32_resume, go32_fetch_registers, store_register)
11069 (go32_store_registers, go32_prepare_to_store)
11070 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11071 (go32_create_inferior, go32_can_run, go32_terminal_init)
11072 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11073 declarations.
11074
11075 2014-01-15 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (async_callback_ftype): New typedef.
11078 (struct target_ops) <to_async>: Use it.
11079
11080 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11081
11082 * python/py-value.c (get_field_type): Remove unnecessary curly
11083 braces for single-statement if block.
11084
11085 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11086
11087 * python/py-type.c (convert_field): Add missing empty line
11088 after declarations.
11089
11090 2014-01-14 Doug Evans <dje@google.com>
11091
11092 * symfile.h (expand_symtabs_matching): Renamed from
11093 expand_partial_symbol_names. Update prototype.
11094 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11095 * symfile.c (expand_symtabs_matching): Renamed from
11096 expand_partial_symbol_names. New args file_matcher, kind.
11097 Rename arg fun to symbol_matcher.
11098 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11099 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11100 ada_expand_partial_symbol_name.
11101 (ada_make_symbol_completion_list): Update to call
11102 expand_symtabs_matching.
11103 (ada_add_global_exceptions): Call expand_symtabs_matching.
11104 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11105 call map_symbol_filenames.
11106 * symtab.c (sources_info): Update to call map_symbol_filenames.
11107 (search_symbols): Call expand_symtabs_matching.
11108 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11109 (default_make_symbol_completion_list_break_on): Update to call
11110 expand_symtabs_matching.
11111 (make_source_files_completion_list): Update to call
11112 map_symbol_filenames.
11113
11114 2014-01-14 Doug Evans <dje@google.com>
11115
11116 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11117 (expand_symtabs_symbol_matcher_ftype): New typedef.
11118 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11119 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11120 * symfile.c (expand_partial_symbol_names): Update to use
11121 expand_symtabs_symbol_matcher_ftype.
11122 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11123 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11124 Arg name_matcher renamed to symbol_matcher.
11125 * psymtab.c (recursively_search_psymtabs): Update to use
11126 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11127 sym_matcher.
11128 (expand_symtabs_matching_via_partial): Update to use
11129 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11130 Arg name_matcher renamed to symbol_matcher.
11131
11132 2014-01-14 Doug Evans <dje@google.com>
11133
11134 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11135 (map_partial_symbol_filenames): Ditto.
11136 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11137 (map_partial_symbol_filenames): Ditto.
11138 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11139 (map_partial_symbol_filenames): Ditto.
11140 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11141 (map_partial_symbol_filenames): Ditto.
11142 * symtab.c: Delete #include "psymtab.h".
11143
11144 2014-01-14 Pedro Alves <palves@redhat.com>
11145 Tom Tromey <tromey@redhat.com>
11146
11147 * infrun.c (use_displaced_stepping): Use find_record_target
11148 instead of RECORD_IS_USED.
11149 (adjust_pc_after_break): Use record_full_is_used instead of
11150 RECORD_IS_USED.
11151 * record-btrace.c (record_btrace_open): Call record_preopen
11152 instead of checking RECORD_IS_USED.
11153 * record-full.c (record_full_shortname)
11154 (record_full_core_shortname): New globals.
11155 (record_full_is_used): New function.
11156 (find_full_open): Call record_preopen instead of checking
11157 RECORD_IS_USED.
11158 (init_record_full_ops): Set the target's shortname to
11159 record_full_shortname.
11160 (init_record_full_core_ops): Set the target's shortname to
11161 record_full_core_shortname.
11162 * record-full.h (record_full_is_used): Declare.
11163 * record.c (find_record_target): Make extern.
11164 (record_preopen): New function.
11165 * record.h (RECORD_IS_USED): Delete macro.
11166 (find_record_target, record_preopen): Declare functions.
11167
11168 2014-01-14 Yao Qi <yao@codesourcery.com>
11169
11170 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11171 'len''s type to ULONGEST.
11172 (core_xfer_shared_libraries_aix): Likewise.
11173 * gdbarch.c, gdbarch.h: Regenerated.
11174 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11175 Change type of 'len' to ULONGEST.
11176 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11177 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11178
11179 2014-01-14 Yao Qi <yao@codesourcery.com>
11180
11181 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11182 type of 'len' to ULONGEST.
11183 (linux_xfer_osdata_processgroups): Likewise.
11184 (linux_xfer_osdata_threads): Likewise.
11185 (linux_xfer_osdata_fds): Likewise.
11186 (linux_xfer_osdata_isockets): Likewise.
11187 (linux_xfer_osdata_shm): Likewise.
11188 (linux_xfer_osdata_sem): Likewise.
11189 (linux_xfer_osdata_msg): Likewise.
11190 (linux_common_xfer_osdata): Likewise.
11191 (struct osdata_type) <getter>: Likewise.
11192 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11193 the declaration.
11194
11195 2014-01-14 Yao Qi <yao@codesourcery.com>
11196
11197 * target.h (target_xfer_partial_ftype): Update.
11198 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11199 ULONGEST.
11200 * aix-thread.c (aix_thread_xfer_partial): Change type of
11201 argument 'len' to ULONGEST.
11202 * auxv.c (procfs_xfer_auxv): Likewise.
11203 (ld_so_xfer_auxv): Likewise.
11204 (memory_xfer_auxv): Likewise.
11205 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11206 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11207 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11208 * corelow.c (core_xfer_partial): Likewise.
11209 * ctf.c (ctf_xfer_partial): Likewise.
11210 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11211 '%u'.
11212 (darwin_read_dyld_info): Likewise.
11213 (darwin_xfer_partial): Likewise.
11214 * exec.c (section_table_xfer_memory_partial): Likewise.
11215 (exec_xfer_partial): Likewise.
11216 * exec.h (section_table_xfer_memory_partial): Update
11217 declaration.
11218 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11219 instead of plongest.
11220 (gnu_xfer_partial): Likewise.
11221 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11222 (ia64_hpux_xfer_solib_got): Likewise.
11223 (ia64_hpux_xfer_partial): Likewise.
11224 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11225 * inf-ptrace.c (inf_ptrace_xfer_partial):
11226 * inf-ttrace.c (inf_ttrace_xfer_partial):
11227 * linux-nat.c (linux_xfer_siginfo): Likewise.
11228 (linux_nat_xfer_partial): Likewise.
11229 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11230 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11231 * monitor.c (monitor_xfer_memory): Likewise.
11232 (monitor_xfer_partial): Likewise.
11233 * procfs.c (procfs_xfer_partial): Likewise.
11234 * record-full.c (record_full_xfer_partial): Likewise.
11235 (record_full_core_xfer_partial): Likewise.
11236 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11237 instead of plongest.
11238 (gdbsim_xfer_partial): Likewise.
11239 * remote.c (remote_xfer_partial): Likewise.
11240 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11241 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11242 declaration.
11243 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11244 (rs6000_xfer_shared_libraries): Likewise.
11245 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11246 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11247 (sparc_xfer_partial): Likewise.
11248 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11249 (spu_xfer_partial): Likewise.
11250 * spu-multiarch.c (spu_xfer_partial): Likewise.
11251 * target.c (target_read_live_memory): Likewise.
11252 (memory_xfer_live_readonly_partial): Likewise.
11253 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11254 (target_xfer_partial, default_xfer_partial): Likewise.
11255 (current_xfer_partial): Likewise.
11256 * tracepoint.c (tfile_xfer_partial): Likewise.
11257 * windows-nat.c (windows_xfer_memory): Likewise. Call
11258 pulongest instead of plongest.
11259 (windows_xfer_partial): Likewise.
11260 (windows_xfer_shared_libraries): Likewise.
11261
11262 2014-01-14 Yao Qi <yao@codesourcery.com>
11263
11264 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11265 target_xfer_partial_ftype.
11266
11267 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11268
11269 PR python/15464
11270 PR python/16113
11271 * valops.c (value_struct_elt_bitpos): New function
11272 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11273 object to 'None' if the field name is an empty string ("").
11274 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11275 attribute to look for a field when 'name' is 'None'.
11276 (get_field_type): New function
11277
11278 2014-01-13 Doug Evans <dje@google.com>
11279
11280 PR symtab/16426
11281 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11282 (try_open_dwop_file): Ditto.
11283 * gdb_bfd.c: #include "vec.h".
11284 (bfdp): New typedef.
11285 (struct gdb_bfd_data): New member included_bfds.
11286 (gdb_bfd_unref): Unref all included bfds.
11287 (gdb_bfd_record_inclusion): New function.
11288 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11289
11290 2014-01-13 Tom Tromey <tromey@redhat.com>
11291
11292 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11293
11294 2014-01-13 Tom Tromey <tromey@redhat.com>
11295
11296 * defs.h (use_windows): Remove.
11297 * gdb.c (main): Update.
11298 * main.c (captured_main, gdb_main): Update.
11299 * main.h (struct captured_main_args) <use_windows>: Remove.
11300 * top.c (use_windows): Remove.
11301
11302 2014-01-13 Tom Tromey <tromey@redhat.com>
11303
11304 * defs.h (deprecated_flush_hook): Remove.
11305
11306 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11307
11308 PR threads/16216
11309 * linux-thread-db.c (try_thread_db_load): Add parameter
11310 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11311 (try_thread_db_load_from_pdir_1): Move it there from here.
11312 (try_thread_db_load_from_sdir): Update caller.
11313 (try_thread_db_load_from_dir): Move it there from here.
11314
11315 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11316
11317 * regformats/regdat.sh: Always rewrite the register file.
11318
11319 2014-01-13 Pedro Alves <palves@redhat.com>
11320
11321 * Makefile.in (CHECK_HEADERS): New variable.
11322 (check-headers:): New rule.
11323
11324 2014-01-13 Tom Tromey <tromey@redhat.com>
11325
11326 * cli/cli-setshow.c (do_set_command): Update.
11327 * defs.h (deprecated_set_hook): Remove.
11328 * top.c (deprecated_set_hook): Remove.
11329
11330 2014-01-13 Pedro Alves <palves@redhat.com>
11331
11332 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11333 the tracepoint if the PC is a pseudo-register.
11334
11335 2014-01-13 Tom Tromey <tromey@redhat.com>
11336
11337 * defs.h (XCALLOC): Remove.
11338 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11339 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11340 * dwarf2loc.c (allocate_piece_closure): Likewise.
11341 * elfread.c (elf_symfile_segments): Likewise.
11342 (elf_symfile_segments): Likewise.
11343 * gdbtypes.c (copy_type_recursive): Likewise.
11344 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11345 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11346 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11347 XCALLOC.
11348 * mt-tdep.c (mt_gdbarch_init): Likewise.
11349 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11350 XCALLOC.
11351 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11352 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11353 * registry.c (registry_alloc_data): Likewise.
11354 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11355 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11356 * serial.c (serial_fdopen_ops): Likewise.
11357 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11358 XCALLOC.
11359 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11360 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11361 not XCALLOC.
11362
11363 2014-01-13 Tom Tromey <tromey@redhat.com>
11364
11365 * defs.h (XMALLOC): Remove.
11366 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11367 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11368 * cli-out.c (struct ui_out *): Likewise.
11369 * cli/cli-dump.c (add_dump_command): Likewise.
11370 (add_dump_command): Likewise.
11371 * complaints.c (get_complaints): Likewise.
11372 (find_complaint): Likewise.
11373 * dwarf2-frame.c (execute_cfa_program): Likewise.
11374 * dwarf2read.c (abbrev_table_read_table): Likewise.
11375 * gdbarch.sh: Likewise.
11376 * gdbarch.c: Rebuild.
11377 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11378 * interps.c (interp_new): Likewise.
11379 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11380 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11381 * mi/mi-console.c (mi_console_file_new): Likewise.
11382 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11383 * mi/mi-out.c (mi_out_new): Likewise.
11384 * mi/mi-parse.c (mi_parse): Likewise.
11385 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11386 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11387 * observer.c (xalloc_observer_list_node): Likewise.
11388 * regcache.c (regcache_xmalloc_1): Likewise.
11389 * reggroups.c (reggroup_new): Likewise.
11390 (_initialize_reggroup): Likewise.
11391 * registry.c (register_data_with_cleanup): Likewise.
11392 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11393 * ser-base.c (serial_ttystate): Likewise.
11394 * ser-mingw.c (make_pipe_state): Likewise.
11395 * ser-pipe.c (pipe_open): Likewise.
11396 * serial.c (serial_open): Likewise.
11397 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11398 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11399 (tui_alloc_win_info): Likewise.
11400 (tui_add_content_elements): Likewise.
11401 * tui/tui-file.c (tui_file_new): Likewise.
11402 * tui/tui-out.c (tui_out_new): Likewise.
11403 * ui-file.c (mem_file_new): Likewise.
11404 * ui-out.c (push_level): Likewise.
11405 (make_cleanup_ui_out_end): Likewise.
11406 (append_header_to_list): Likewise.
11407 (ui_out_new): Likewise.
11408 * user-regs.c (user_reg_add_builtin): Likewise.
11409
11410 2014-01-13 Tom Tromey <tromey@redhat.com>
11411
11412 * defs.h (XZALLOC): Remove.
11413 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11414 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11415 (get_ada_tasks_inferior_data): Likewise.
11416 * auto-load.c (get_auto_load_pspace_data): Likewise.
11417 * auxv.c (get_auxv_inferior_data): Likewise.
11418 * bfd-target.c (target_bfd_reopen): Likewise.
11419 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11420 (deprecated_insert_raw_breakpoint): Likewise.
11421 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11422 * corelow.c (core_open): Likewise.
11423 * darwin-nat.c (darwin_check_new_threads): Likewise.
11424 (darwin_attach_pid): Likewise.
11425 * dummy-frame.c (dummy_frame_push): Likewise.
11426 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11427 * dwarf2loc.c (allocate_piece_closure): Likewise.
11428 * elfread.c (elf_symfile_segments): Likewise.
11429 * eval.c (ptrmath_type_p): Likewise.
11430 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11431 * gdbtypes.c (alloc_type_arch): Likewise.
11432 (alloc_type_instance): Likewise.
11433 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11434 * inf-child.c (inf_child_can_use_agent): Likewise.
11435 * inflow.c (get_inflow_inferior_data): Likewise.
11436 * infrun.c (save_infcall_suspend_state): Likewise.
11437 * jit.c (jit_reader_load): Likewise.
11438 (get_jit_objfile_data): Likewise.
11439 (get_jit_program_space_data): Likewise.
11440 (jit_object_open_impl): Likewise.
11441 (jit_symtab_open_impl): Likewise.
11442 (jit_block_open_impl): Likewise.
11443 (jit_frame_sniffer): Likewise.
11444 * linux-fork.c (add_fork): Likewise.
11445 * maint.c (make_command_stats_cleanup): Likewise.
11446 * objfiles.c (get_objfile_pspace_data): Likewise.
11447 * opencl-lang.c (struct lval_closure): Likewise.
11448 * osdata.c (osdata_start_osdata): Likewise.
11449 * progspace.c (new_address_space): Likewise.
11450 (add_program_space): Likewise.
11451 * remote-sim.c (get_sim_inferior_data): Likewise.
11452 * sh-tdep.c (sh_gdbarch_init): Likewise.
11453 * skip.c (Ignore): Likewise.
11454 (skip_delete_command): Likewise.
11455 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11456 (library_list_start_library): Likewise.
11457 (solib_aix_current_sos): Likewise.
11458 * solib-darwin.c (get_darwin_info): Likewise.
11459 (darwin_current_sos): Likewise.
11460 * solib-dsbt.c (get_dsbt_info): Likewise.
11461 * solib-ia64-hpux.c (new_so_list): Likewise.
11462 (ia64_hpux_get_solib_linkage_addr): Likewise.
11463 * solib-spu.c (append_ocl_sos): Likewise.
11464 (spu_current_sos): Likewise.
11465 * solib-svr4.c (get_svr4_info): Likewise.
11466 (svr4_keep_data_in_core): Likewise.
11467 (library_list_start_library): Likewise.
11468 (svr4_default_sos): Likewise.
11469 (svr4_read_so_list): Likewise.
11470 * solib-target.c (library_list_start_library): Likewise.
11471 (solib_target_current_sos): Likewise.
11472 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11473 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11474 * symfile.c (default_symfile_segments): Likewise.
11475 * target-descriptions.c (tdesc_data_init): Likewise.
11476 (tdesc_create_reg): Likewise.
11477 (struct tdesc_type *): Likewise.
11478 (tdesc_create_vector): Likewise.
11479 (tdesc_set_struct_size): Likewise.
11480 (struct tdesc_type *): Likewise.
11481 (tdesc_free_feature): Likewise.
11482 (tdesc_create_feature): Likewise.
11483 * windows-nat.c (windows_add_thread): Likewise.
11484 (windows_make_so): Likewise.
11485 * xml-support.c (gdb_xml_body_text): Likewise.
11486 (gdb_xml_create_parser_and_cleanup): Likewise.
11487 (xml_process_xincludes): Likewise.
11488 * xml-syscall.c (allocate_syscalls_info): Likewise.
11489 (syscall_create_syscall_desc): Likewise.
11490
11491 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11492
11493 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11494 function, with code from i386_stap_parse_special_token.
11495 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11496 (i386_stap_parse_special_token): Move code to the two functions
11497 above; simplify it.
11498
11499 2014-01-09 Pedro Alves <palves@redhat.com>
11500 Hui Zhu <hui@codesourcery.com>
11501
11502 PR gdb/16101
11503 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11504 bp_err_string. Don't mark the location shlib_disabled if the
11505 error thrown wasn't a generic or memory error. Catch errors
11506 thrown while inserting breakpoints in overlayed code. Output
11507 error message of software breakpoints.
11508 * remote.c (remote_insert_breakpoint): If this breakpoint has
11509 target-side commands but this stub doesn't support Z0 packets,
11510 throw NOT_SUPPORTED_ERROR error.
11511 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11512 * target.h (target_insert_breakpoint): Extend comment.
11513 (target_insert_hw_breakpoint): Add comment.
11514
11515 2014-01-08 Pedro Alves <palves@redhat.com>
11516
11517 * remote.c (remote_add_thread): Add threads silently if starting
11518 up.
11519 (remote_notice_new_inferior): If in all-stop, and starting up,
11520 don't call notice_new_inferior.
11521 (get_current_thread): New function, factored out from ...
11522 (add_current_inferior_and_thread): ... this. Adjust.
11523 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11524 found any thread, then select the remote's current thread as GDB's
11525 current thread too.
11526
11527 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11528
11529 * NEWS: Create a new section for the next release branch.
11530 Rename the section of the current branch, now that it has
11531 been cut.
11532
11533 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11534
11535 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11536 * version.in: Bump version to 7.7.50.DATE-cvs.
11537
11538 2014-01-08 Yao Qi <yao@codesourcery.com>
11539
11540 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11541 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11542 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11543
11544 2014-01-08 Yao Qi <yao@codesourcery.com>
11545
11546 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11547 return value of bfd_get_filename to symbol_file_add_from_bfd.
11548
11549 2014-01-08 Pierre Muller <muller@sourceware.org>
11550
11551 Fix PR16201.
11552 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11553 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11554 to prim_record_mininal_symbol_and_info.
11555 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11556 in call to prim_record_minimal_symbol_and_info.
11557 (read_pe_exported_syms): Set index field of section_data.
11558
11559 2014-01-07 Andrew Pinski <apinski@cavium.com>
11560
11561 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11562 * features/aarch64.c: Regenerate.
11563
11564 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11565
11566 * target.c (return_null): Define.
11567 (update_current_target): Use it instead of return_zero for
11568 functions that return a pointer.
11569
11570 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11571
11572 * source.c (add_path): Fix check for duplicated paths in the previously
11573 included paths.
11574
11575 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11576
11577 * ada-lang.c: Remove duplicated include statements.
11578 * alphabsd-nat.c: Ditto.
11579 * amd64-darwin-tdep.c: Ditto.
11580 * amd64fbsd-nat.c: Ditto.
11581 * auto-load.c: Ditto.
11582 * ax-gdb.c: Ditto.
11583 * breakpoint.c: Ditto.
11584 * dbxread.c: Ditto.
11585 * fork-child.c: Ditto.
11586 * gdb_usleep.c: Ditto.
11587 * i386-darwin-tdep.c: Ditto.
11588 * i386fbsd-nat.c: Ditto.
11589 * infcmd.c: Ditto.
11590 * inferior.c: Ditto.
11591 * jv-lang.c: Ditto.
11592 * linux-nat.c: Ditto.
11593 * linux-tdep.c: Ditto.
11594 * m68kbsd-nat.c: Ditto.
11595 * m68klinux-nat.c: Ditto.
11596 * microblaze-tdep.c: Ditto.
11597 * mips-linux-tdep.c: Ditto.
11598 * mn10300-tdep.c: Ditto.
11599 * nto-tdep.c: Ditto.
11600 * opencl-lang.c: Ditto.
11601 * osdata.c: Ditto.
11602 * printcmd.c: Ditto.
11603 * regcache.c: Ditto.
11604 * remote-m32r-sdi.c: Ditto.
11605 * remote.c: Ditto.
11606 * symfile.c: Ditto.
11607 * symtab.c: Ditto.
11608 * tilegx-linux-nat.c: Ditto.
11609 * tilegx-tdep.c: Ditto.
11610 * tracepoint.c: Ditto.
11611 * valops.c: Ditto.
11612 * vaxbsd-nat.c: Ditto.
11613 * windows-nat.c: Ditto.
11614 * xtensa-tdep.c: Ditto.
11615
11616 2014-01-07 Yao Qi <yao@codesourcery.com>
11617
11618 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11619
11620 2014-01-07 Yao Qi <yao@codesourcery.com>
11621 Joel Brobecker <brobecker@adacore.com>
11622
11623 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11624 (pdc_write_regs): Likewise.
11625 (fetch_regs_kernel_thread): Likewise.
11626 (store_regs_kernel_thread): Likewise.
11627
11628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11629
11630 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11631 tagged type objects to their actual type.
11632
11633 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11634
11635 * ada-valprint.c (print_field_values): Add "language" parameter.
11636 Update calls to print_field_values and print_variant_part.
11637 Pass new parameter "language" in call to val_print instead
11638 of "current_language". Replace call to ada_val_print by call
11639 to val_print.
11640 (print_variant_part): Add "language" parameter.
11641 (ada_val_print_struct_union): Update call to print_field_values.
11642
11643 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11644
11645 * ada-valprint.c (ui_memcpy): Delete.
11646 (ada_print_floating): Update documentation. Add empty line
11647 between between function documentation and implementation.
11648 Delete variable "buffer". Use ui_file_xstrdup in place of
11649 ui_file_put. Minor adjustments following this change.
11650
11651 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11652
11653 * ada-valprint.c (ada_val_print_string): New function,
11654 extracted from ada_val_print_array.
11655 (ada_val_print_array): Replace extracted code by call
11656 to ada_val_print_string followed by a return. Move
11657 "else" branch to the function's top block.
11658
11659 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11660
11661 * ada-valprint.c (ada_val_print_array): Move implementation
11662 down. Rename parameter "offset" and "val" into "offset_aligned"
11663 and "original_value" respectively. Add parameter "offset".
11664
11665 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11666
11667 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11668 re-organizing the code. Change the "???" message printed
11669 when target type is a TYPE_CODE_UNDEF into
11670 "<ref to undefined type>".
11671
11672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11673
11674 * ada-valprint.c (print_record): Delete, implementation inlined...
11675 (ada_val_print_struct_union): ... here. Remove call to
11676 ada_check_typedef in inlined implementation.
11677
11678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11679
11680 * ada-valprint.c (ada_val_print_gnat_array): New function,
11681 extracted from ada_val_print_1;
11682 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11683 (ada_val_print_flt, ada_val_print_struct_union)
11684 (ada_val_print_ref): Likewise.
11685 (ada_val_print_1): Delete variables i and elttype.
11686 Replace extracted-out code by call to corresponding
11687 new functions.
11688
11689 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11690
11691 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11692
11693 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11694
11695 * ada-valprint.c (ada_val_print_1): Replace calls to
11696 ada_val_print_1 by calls to val_print.
11697
11698 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11699
11700 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11701 Update calls to self accordingly. Replace calls to c_val_print
11702 by calls to val_print.
11703
11704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11705
11706 * ada-valprint.c (print_record): Delete declaration.
11707 (adjust_type_signedness, ada_val_print_1): Likewise.
11708 (ada_val_print): Move function implementation down.
11709 (print_variant_part, print_field_values, print_record):
11710 Move function implementation up.
11711
11712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11713
11714 * python/py-type.c (typy_get_name): New function.
11715 (type_object_getset): Add entry for attribute "name".
11716 * NEWS: Add entry mentioning this new attribute.
11717
11718 2014-01-07 Yao Qi <yao@codesourcery.com>
11719
11720 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11721 statement.
11722
11723 2014-01-07 Yao Qi <yao@codesourcery.com>
11724
11725 * gnu-nat.c (info_port_rights): Add qualifier const to
11726 argument args.
11727
11728 2014-01-07 Yao Qi <yao@codesourcery.com>
11729
11730 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11731
11732 2014-01-07 Yao Qi <yao@codesourcery.com>
11733
11734 * gnu-nat.c (make_inf) Update declaration.
11735 (make_inf): Make it static.
11736 (inf_set_traced): Likewise.
11737 (inf_port_to_thread, inf_task_died_status): Likewise.
11738
11739 2014-01-07 Yao Qi <yao@codesourcery.com>
11740
11741 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11742
11743 2014-01-07 Yao Qi <yao@codesourcery.com>
11744
11745 * gnu-nat.c (_initialize_gnu_nat): Declare.
11746
11747 2014-01-07 Yao Qi <yao@codesourcery.com>
11748
11749 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11750 'enum bfd_endian'.
11751 (struct gdbarch_info) <byte_order>: Change type to
11752 'enum bfd_endian'.
11753 <byte_order_for_code>: Likewise.
11754 * gdbarch.c, gdbarch.h: Regenerated.
11755
11756 2014-01-06 Sasha Smundak <asmundak@google.com>
11757
11758 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11759
11760 2014-01-06 Tom Tromey <tromey@redhat.com>
11761
11762 * doublest.c (convert_doublest_to_floatformat): Use const, not
11763 CONST.
11764 * somread.c (som_symtab_read): Likewise.
11765
11766 2014-01-07 Hui Zhu <hui@codesourcery.com>
11767
11768 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11769 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11770 (gdb_bfd_fopen): Ditto.
11771 (gdb_bfd_openr): Ditto.
11772 (gdb_bfd_openw): Ditto.
11773 (gdb_bfd_openr_iovec): Ditto.
11774 (gdb_bfd_fdopenr): Ditto.
11775 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11776 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11777 with xstrdup.
11778 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11779 with xstrdup.
11780 * symfile-mem.c (symbol_file_add_from_memory): Removed
11781 gdb_bfd_stash_filename.
11782
11783 2014-01-03 Doug Evans <dje@google.com>
11784
11785 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11786 output.
11787
11788 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11789
11790 Update year range in copyright notice of all files.
11791
11792 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11793
11794 * top.c (print_gdb_version): Set copyright year to 2014.
11795
11796 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11797
11798 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11799
11800 For older changes see ChangeLog-2013.
11801 \f
11802 Local Variables:
11803 mode: change-log
11804 left-margin: 8
11805 fill-column: 74
11806 version-control: never
11807 coding: utf-8
11808 End:
This page took 0.266669 seconds and 5 git commands to generate.