AARCH64 Linux: Fill 'collect_regset' in regset structures.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d4d793bf
AA
12014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4 by call to regcache_collect_regset.
5 (supply_gregset, supply_fpregset): Call regcache_supply_regset
6 instead of aarch64_linux_supply_gregset/_fpregset.
7 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
8 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
9 header file instead.
10 (aarch64_linux_supply_gregset, supply_gregset_from_core)
11 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
12 functions. Move logic to ...
13 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
14 register maps.
15 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
16 refer to new register maps, replace *_regset_from_core by
17 regcache_supply_regset, and also use regcache_collect_regset.
18 * aarch64-linux-tdep.h: Include "regset.h".
19 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
20 Delete prototypes.
21 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
22 macros, moved from C source file.
23 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
24 variable declarations.
25
99b7da5d
AA
262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
27
28 * s390-linux-nat.c: Include "regset.h".
29 (regmap_gregset): Delete macro.
30 (s390_64_regmap_gregset): New register map for
31 regcache_supply/_collect_regset.
32 (s390_64_gregset): New regset.
33 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
34 (regmap_fpregset): Delete macro.
35 (s390_native_supply, s390_native_collect): Delete functions.
36 (supply_gregset, fill_gregset): Replace s390-specific regmap
37 handling by a call to regcache_supply/_collect_regset.
38 (supply_fpregset, fill_fpregset): Call regcache_supply/
39 _collect_regset instead of s390_native_supply/_collect.
40 (fetch_regset, store_regset): Likewise. Also change the last
41 parameter to a regset instead of a regmap.
42 (s390_linux_fetch_inferior_registers)
43 (390_linux_store_inferior_registers): Adjust last parameter in
44 calls to fetch_regset and store_regset.
45 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
46 (s390_gregmap): ... this. Also make static const and convert to
47 regcache_map_entry format.
48 (s390x_regmap_gregset): Delete.
49 (s390_regmap_fpregset): Rename to...
50 (s390_fpregmap): ... this. Make static const and convert to
51 regcache_map_entry format.
52 (s390_regmap_upper, s390_regmap_last_break)
53 (s390x_regmap_last_break, s390_regmap_system_call)
54 (s390_regmap_tdb): Likewise.
55 (s390_supply_regset, s390_collect_regset): Remove functions.
56 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
57 s390_supply_regset.
58 (s390_gregset, s390_fpregset, s390_upper_regset)
59 (s390_last_break_regset, s390x_last_break_regset)
60 (s390_system_call_regset, s390_tdb_regset): Make global and
61 replace s390_supply/_collect_regset by regcache_supply/
62 _collect_regset.
63 (s390x_gregset): Delete.
64 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
65 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
66 (s390_regmap_fpregset, s390_regmap_last_break)
67 (s390x_regmap_last_break, s390_regmap_system_call)
68 (s390_regmap_tdb): Delete global variable declarations.
69 (s390_gregset, s390_fpregset, s390_last_break_regset)
70 (s390x_last_break_regset, s390_system_call_regset)
71 (s390_tdb_regset): New global variable declarations.
72
0b309272
AA
732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
74
75 * regcache.c: Include "regset.h".
76 (regcache_transfer_regset): New local function.
77 (regcache_supply_regset, regcache_collect_regset): New functions.
78 * regcache.h (struct regcache_map_entry): New structure.
79 (REGCACHE_MAP_SKIP): New enum value.
80 (regcache_supply_regset, regcache_collect_regset): New prototypes.
81
7fefa8d7
AA
822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
83
84 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
85 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
86 (ppc_linux_collect_gregset ): Likewise.
87 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
88 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
89 (ppc_collect_vrregset): Likewise.
90 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
91 Likewise.
92
96c4f946
YQ
932014-08-07 Yao Qi <yao@codesourcery.com>
94
95 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
96 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
97 * remote.c (remote_read_bytes): Likewise.
98
fffbe6a8
YQ
992014-08-07 Yao Qi <yao@codesourcery.com>
100
101 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
102
5ee8a82c
YQ
1032014-08-07 Yao Qi <yao@codesourcery.com>
104
105 PR remote/17230
106 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
107 TARGET_XFER_OK instead of 0.
108
bb974a24
GB
1092014-08-07 Gary Benson <gbenson@redhat.com>
110
111 * common/common-defs.h: Include errno.h.
112 * defs.h: Do not include errno.h.
113 * ada-typeprint.c: Likewise.
114 * c-typeprint.c: Likewise.
115 * core-regset.c: Likewise.
116 * corefile.c: Likewise.
117 * corelow.c: Likewise.
118 * event-loop.c: Likewise.
119 * f-typeprint.c: Likewise.
120 * gnu-nat.c: Likewise.
121 * go32-nat.c: Likewise.
122 * i386gnu-nat.c: Likewise.
123 * m2-typeprint.c: Likewise.
124 * nat/linux-btrace.c: Likewise.
125 * p-typeprint.c: Likewise.
126 * procfs.c: Likewise.
127 * remote-sim.c: Likewise.
128 * rs6000-nat.c: Likewise.
129 * target.c: Likewise.
130 * typeprint.c: Likewise.
131 * ui-file.c: Likewise.
132 * valops.c: Likewise.
133 * valprint.c: Likewise.
134
6d3d12eb
GB
1352014-08-07 Gary Benson <gbenson@redhat.com>
136
137 * common/common-defs.h: Include string.h.
138 * aarch64-tdep.c: Do not include string.h.
139 * ada-exp.y: Likewise.
140 * ada-lang.c: Likewise.
141 * ada-lex.l: Likewise.
142 * ada-typeprint.c: Likewise.
143 * ada-valprint.c: Likewise.
144 * aix-thread.c: Likewise.
145 * alpha-linux-tdep.c: Likewise.
146 * alpha-mdebug-tdep.c: Likewise.
147 * alpha-nat.c: Likewise.
148 * alpha-osf1-tdep.c: Likewise.
149 * alpha-tdep.c: Likewise.
150 * alphanbsd-tdep.c: Likewise.
151 * amd64-dicos-tdep.c: Likewise.
152 * amd64-linux-tdep.c: Likewise.
153 * amd64-nat.c: Likewise.
154 * amd64-sol2-tdep.c: Likewise.
155 * amd64fbsd-tdep.c: Likewise.
156 * amd64obsd-tdep.c: Likewise.
157 * arch-utils.c: Likewise.
158 * arm-linux-nat.c: Likewise.
159 * arm-linux-tdep.c: Likewise.
160 * arm-tdep.c: Likewise.
161 * arm-wince-tdep.c: Likewise.
162 * armbsd-tdep.c: Likewise.
163 * armnbsd-nat.c: Likewise.
164 * armnbsd-tdep.c: Likewise.
165 * armobsd-tdep.c: Likewise.
166 * avr-tdep.c: Likewise.
167 * ax-gdb.c: Likewise.
168 * ax-general.c: Likewise.
169 * bcache.c: Likewise.
170 * bfin-tdep.c: Likewise.
171 * breakpoint.c: Likewise.
172 * build-id.c: Likewise.
173 * buildsym.c: Likewise.
174 * c-exp.y: Likewise.
175 * c-lang.c: Likewise.
176 * c-typeprint.c: Likewise.
177 * c-valprint.c: Likewise.
178 * charset.c: Likewise.
179 * cli-out.c: Likewise.
180 * cli/cli-cmds.c: Likewise.
181 * cli/cli-decode.c: Likewise.
182 * cli/cli-dump.c: Likewise.
183 * cli/cli-interp.c: Likewise.
184 * cli/cli-logging.c: Likewise.
185 * cli/cli-script.c: Likewise.
186 * cli/cli-setshow.c: Likewise.
187 * cli/cli-utils.c: Likewise.
188 * coffread.c: Likewise.
189 * common/agent.c: Likewise.
190 * common/buffer.c: Likewise.
191 * common/buffer.h: Likewise.
192 * common/common-utils.c: Likewise.
193 * common/filestuff.c: Likewise.
194 * common/filestuff.c: Likewise.
195 * common/format.c: Likewise.
196 * common/print-utils.c: Likewise.
197 * common/rsp-low.c: Likewise.
198 * common/signals.c: Likewise.
199 * common/vec.h: Likewise.
200 * common/xml-utils.c: Likewise.
201 * core-regset.c: Likewise.
202 * corefile.c: Likewise.
203 * corelow.c: Likewise.
204 * cp-abi.c: Likewise.
205 * cp-name-parser.y: Likewise.
206 * cp-support.c: Likewise.
207 * cp-valprint.c: Likewise.
208 * cris-tdep.c: Likewise.
209 * d-exp.y: Likewise.
210 * darwin-nat.c: Likewise.
211 * dbxread.c: Likewise.
212 * dcache.c: Likewise.
213 * demangle.c: Likewise.
214 * dicos-tdep.c: Likewise.
215 * disasm.c: Likewise.
216 * doublest.c: Likewise.
217 * dsrec.c: Likewise.
218 * dummy-frame.c: Likewise.
219 * dwarf2-frame.c: Likewise.
220 * dwarf2loc.c: Likewise.
221 * dwarf2read.c: Likewise.
222 * elfread.c: Likewise.
223 * environ.c: Likewise.
224 * eval.c: Likewise.
225 * event-loop.c: Likewise.
226 * exceptions.c: Likewise.
227 * exec.c: Likewise.
228 * expprint.c: Likewise.
229 * f-exp.y: Likewise.
230 * f-lang.c: Likewise.
231 * f-typeprint.c: Likewise.
232 * f-valprint.c: Likewise.
233 * fbsd-nat.c: Likewise.
234 * findcmd.c: Likewise.
235 * findvar.c: Likewise.
236 * fork-child.c: Likewise.
237 * frame.c: Likewise.
238 * frv-linux-tdep.c: Likewise.
239 * frv-tdep.c: Likewise.
240 * gdb.c: Likewise.
241 * gdb_bfd.c: Likewise.
242 * gdbarch.c: Likewise.
243 * gdbarch.sh: Likewise.
244 * gdbtypes.c: Likewise.
245 * gnu-nat.c: Likewise.
246 * gnu-v2-abi.c: Likewise.
247 * gnu-v3-abi.c: Likewise.
248 * go-exp.y: Likewise.
249 * go-lang.c: Likewise.
250 * go32-nat.c: Likewise.
251 * guile/guile.c: Likewise.
252 * guile/scm-auto-load.c: Likewise.
253 * hppa-hpux-tdep.c: Likewise.
254 * hppa-linux-nat.c: Likewise.
255 * hppanbsd-tdep.c: Likewise.
256 * hppaobsd-tdep.c: Likewise.
257 * i386-cygwin-tdep.c: Likewise.
258 * i386-dicos-tdep.c: Likewise.
259 * i386-linux-tdep.c: Likewise.
260 * i386-nto-tdep.c: Likewise.
261 * i386-sol2-tdep.c: Likewise.
262 * i386-tdep.c: Likewise.
263 * i386bsd-tdep.c: Likewise.
264 * i386gnu-nat.c: Likewise.
265 * i386nbsd-tdep.c: Likewise.
266 * i386obsd-tdep.c: Likewise.
267 * i387-tdep.c: Likewise.
268 * ia64-libunwind-tdep.c: Likewise.
269 * ia64-linux-nat.c: Likewise.
270 * inf-child.c: Likewise.
271 * inf-ptrace.c: Likewise.
272 * inf-ttrace.c: Likewise.
273 * infcall.c: Likewise.
274 * infcmd.c: Likewise.
275 * inflow.c: Likewise.
276 * infrun.c: Likewise.
277 * interps.c: Likewise.
278 * iq2000-tdep.c: Likewise.
279 * irix5-nat.c: Likewise.
280 * jv-exp.y: Likewise.
281 * jv-lang.c: Likewise.
282 * jv-typeprint.c: Likewise.
283 * jv-valprint.c: Likewise.
284 * language.c: Likewise.
285 * linux-fork.c: Likewise.
286 * linux-nat.c: Likewise.
287 * lm32-tdep.c: Likewise.
288 * m2-exp.y: Likewise.
289 * m2-typeprint.c: Likewise.
290 * m32c-tdep.c: Likewise.
291 * m32r-linux-nat.c: Likewise.
292 * m32r-linux-tdep.c: Likewise.
293 * m32r-rom.c: Likewise.
294 * m32r-tdep.c: Likewise.
295 * m68hc11-tdep.c: Likewise.
296 * m68k-tdep.c: Likewise.
297 * m68kbsd-tdep.c: Likewise.
298 * m68klinux-nat.c: Likewise.
299 * m68klinux-tdep.c: Likewise.
300 * m88k-tdep.c: Likewise.
301 * machoread.c: Likewise.
302 * macrocmd.c: Likewise.
303 * main.c: Likewise.
304 * mdebugread.c: Likewise.
305 * mem-break.c: Likewise.
306 * memattr.c: Likewise.
307 * memory-map.c: Likewise.
308 * mep-tdep.c: Likewise.
309 * mi/mi-cmd-break.c: Likewise.
310 * mi/mi-cmd-disas.c: Likewise.
311 * mi/mi-cmd-env.c: Likewise.
312 * mi/mi-cmd-stack.c: Likewise.
313 * mi/mi-cmd-var.c: Likewise.
314 * mi/mi-cmds.c: Likewise.
315 * mi/mi-console.c: Likewise.
316 * mi/mi-getopt.c: Likewise.
317 * mi/mi-interp.c: Likewise.
318 * mi/mi-main.c: Likewise.
319 * mi/mi-parse.c: Likewise.
320 * microblaze-rom.c: Likewise.
321 * microblaze-tdep.c: Likewise.
322 * mingw-hdep.c: Likewise.
323 * minidebug.c: Likewise.
324 * minsyms.c: Likewise.
325 * mips-irix-tdep.c: Likewise.
326 * mips-linux-tdep.c: Likewise.
327 * mips-tdep.c: Likewise.
328 * mips64obsd-tdep.c: Likewise.
329 * mipsnbsd-tdep.c: Likewise.
330 * mipsread.c: Likewise.
331 * mn10300-linux-tdep.c: Likewise.
332 * mn10300-tdep.c: Likewise.
333 * monitor.c: Likewise.
334 * moxie-tdep.c: Likewise.
335 * mt-tdep.c: Likewise.
336 * nat/linux-btrace.c: Likewise.
337 * nat/linux-osdata.c: Likewise.
338 * nat/linux-procfs.c: Likewise.
339 * nat/linux-ptrace.c: Likewise.
340 * nat/linux-waitpid.c: Likewise.
341 * nbsd-tdep.c: Likewise.
342 * nios2-linux-tdep.c: Likewise.
343 * nto-procfs.c: Likewise.
344 * nto-tdep.c: Likewise.
345 * objc-lang.c: Likewise.
346 * objfiles.c: Likewise.
347 * opencl-lang.c: Likewise.
348 * osabi.c: Likewise.
349 * osdata.c: Likewise.
350 * p-exp.y: Likewise.
351 * p-lang.c: Likewise.
352 * p-typeprint.c: Likewise.
353 * parse.c: Likewise.
354 * posix-hdep.c: Likewise.
355 * ppc-linux-nat.c: Likewise.
356 * ppc-sysv-tdep.c: Likewise.
357 * ppcfbsd-tdep.c: Likewise.
358 * ppcnbsd-tdep.c: Likewise.
359 * ppcobsd-tdep.c: Likewise.
360 * printcmd.c: Likewise.
361 * procfs.c: Likewise.
362 * prologue-value.c: Likewise.
363 * python/py-auto-load.c: Likewise.
364 * python/py-gdb-readline.c: Likewise.
365 * ravenscar-thread.c: Likewise.
366 * regcache.c: Likewise.
367 * registry.c: Likewise.
368 * remote-fileio.c: Likewise.
369 * remote-m32r-sdi.c: Likewise.
370 * remote-mips.c: Likewise.
371 * remote-notif.c: Likewise.
372 * remote-sim.c: Likewise.
373 * remote.c: Likewise.
374 * reverse.c: Likewise.
375 * rs6000-aix-tdep.c: Likewise.
376 * ser-base.c: Likewise.
377 * ser-go32.c: Likewise.
378 * ser-mingw.c: Likewise.
379 * ser-pipe.c: Likewise.
380 * ser-tcp.c: Likewise.
381 * ser-unix.c: Likewise.
382 * serial.c: Likewise.
383 * sh-tdep.c: Likewise.
384 * sh64-tdep.c: Likewise.
385 * shnbsd-tdep.c: Likewise.
386 * skip.c: Likewise.
387 * sol-thread.c: Likewise.
388 * solib-dsbt.c: Likewise.
389 * solib-frv.c: Likewise.
390 * solib-osf.c: Likewise.
391 * solib-som.c: Likewise.
392 * solib-spu.c: Likewise.
393 * solib-target.c: Likewise.
394 * solib.c: Likewise.
395 * somread.c: Likewise.
396 * source.c: Likewise.
397 * sparc-nat.c: Likewise.
398 * sparc-sol2-tdep.c: Likewise.
399 * sparc-tdep.c: Likewise.
400 * sparc64-tdep.c: Likewise.
401 * sparc64fbsd-tdep.c: Likewise.
402 * sparc64nbsd-tdep.c: Likewise.
403 * sparcnbsd-tdep.c: Likewise.
404 * spu-linux-nat.c: Likewise.
405 * spu-multiarch.c: Likewise.
406 * spu-tdep.c: Likewise.
407 * stabsread.c: Likewise.
408 * stack.c: Likewise.
409 * std-regs.c: Likewise.
410 * symfile.c: Likewise.
411 * symmisc.c: Likewise.
412 * symtab.c: Likewise.
413 * target.c: Likewise.
414 * thread.c: Likewise.
415 * tilegx-linux-nat.c: Likewise.
416 * tilegx-tdep.c: Likewise.
417 * top.c: Likewise.
418 * tracepoint.c: Likewise.
419 * tui/tui-command.c: Likewise.
420 * tui/tui-data.c: Likewise.
421 * tui/tui-disasm.c: Likewise.
422 * tui/tui-file.c: Likewise.
423 * tui/tui-layout.c: Likewise.
424 * tui/tui-out.c: Likewise.
425 * tui/tui-regs.c: Likewise.
426 * tui/tui-source.c: Likewise.
427 * tui/tui-stack.c: Likewise.
428 * tui/tui-win.c: Likewise.
429 * tui/tui-windata.c: Likewise.
430 * tui/tui-winsource.c: Likewise.
431 * typeprint.c: Likewise.
432 * ui-file.c: Likewise.
433 * ui-out.c: Likewise.
434 * user-regs.c: Likewise.
435 * utils.c: Likewise.
436 * v850-tdep.c: Likewise.
437 * valarith.c: Likewise.
438 * valops.c: Likewise.
439 * valprint.c: Likewise.
440 * value.c: Likewise.
441 * varobj.c: Likewise.
442 * vax-tdep.c: Likewise.
443 * vaxnbsd-tdep.c: Likewise.
444 * vaxobsd-tdep.c: Likewise.
445 * windows-nat.c: Likewise.
446 * xcoffread.c: Likewise.
447 * xml-support.c: Likewise.
448 * xstormy16-tdep.c: Likewise.
449 * xtensa-linux-nat.c: Likewise.
450
dccbb609
GB
4512014-08-07 Gary Benson <gbenson@redhat.com>
452
453 * common/common-defs.h: Include gdb_assert.h.
454 * aarch64-tdep.c: Do not include gdb_assert.h.
455 * addrmap.c: Likewise.
456 * aix-thread.c: Likewise.
457 * alpha-linux-tdep.c: Likewise.
458 * alpha-mdebug-tdep.c: Likewise.
459 * alphanbsd-tdep.c: Likewise.
460 * amd64-nat.c: Likewise.
461 * amd64-tdep.c: Likewise.
462 * amd64bsd-nat.c: Likewise.
463 * amd64fbsd-nat.c: Likewise.
464 * amd64fbsd-tdep.c: Likewise.
465 * amd64nbsd-nat.c: Likewise.
466 * amd64nbsd-tdep.c: Likewise.
467 * amd64obsd-nat.c: Likewise.
468 * amd64obsd-tdep.c: Likewise.
469 * arch-utils.c: Likewise.
470 * arm-tdep.c: Likewise.
471 * armbsd-tdep.c: Likewise.
472 * auxv.c: Likewise.
473 * bcache.c: Likewise.
474 * bfin-tdep.c: Likewise.
475 * blockframe.c: Likewise.
476 * breakpoint.c: Likewise.
477 * bsd-kvm.c: Likewise.
478 * bsd-uthread.c: Likewise.
479 * buildsym.c: Likewise.
480 * c-exp.y: Likewise.
481 * c-lang.c: Likewise.
482 * charset.c: Likewise.
483 * cleanups.c: Likewise.
484 * cli-out.c: Likewise.
485 * cli/cli-decode.c: Likewise.
486 * cli/cli-dump.c: Likewise.
487 * cli/cli-logging.c: Likewise.
488 * cli/cli-script.c: Likewise.
489 * cli/cli-utils.c: Likewise.
490 * coffread.c: Likewise.
491 * common/common-utils.c: Likewise.
492 * common/queue.h: Likewise.
493 * common/signals.c: Likewise.
494 * common/vec.h: Likewise.
495 * complaints.c: Likewise.
496 * completer.c: Likewise.
497 * corelow.c: Likewise.
498 * cp-abi.c: Likewise.
499 * cp-name-parser.y: Likewise.
500 * cp-namespace.c: Likewise.
501 * cp-support.c: Likewise.
502 * cris-tdep.c: Likewise.
503 * dbxread.c: Likewise.
504 * dictionary.c: Likewise.
505 * doublest.c: Likewise.
506 * dsrec.c: Likewise.
507 * dummy-frame.c: Likewise.
508 * dwarf2-frame-tailcall.c: Likewise.
509 * dwarf2-frame.c: Likewise.
510 * dwarf2expr.c: Likewise.
511 * dwarf2loc.c: Likewise.
512 * dwarf2read.c: Likewise.
513 * eval.c: Likewise.
514 * event-loop.c: Likewise.
515 * exceptions.c: Likewise.
516 * expprint.c: Likewise.
517 * f-valprint.c: Likewise.
518 * fbsd-nat.c: Likewise.
519 * findvar.c: Likewise.
520 * frame-unwind.c: Likewise.
521 * frame.c: Likewise.
522 * frv-tdep.c: Likewise.
523 * gcore.c: Likewise.
524 * gdb-dlfcn.c: Likewise.
525 * gdb_bfd.c: Likewise.
526 * gdbarch.c: Likewise.
527 * gdbarch.sh: Likewise.
528 * gdbtypes.c: Likewise.
529 * gnu-nat.c: Likewise.
530 * gnu-v3-abi.c: Likewise.
531 * go-lang.c: Likewise.
532 * guile/scm-exception.c: Likewise.
533 * guile/scm-gsmob.c: Likewise.
534 * guile/scm-lazy-string.c: Likewise.
535 * guile/scm-math.c: Likewise.
536 * guile/scm-pretty-print.c: Likewise.
537 * guile/scm-safe-call.c: Likewise.
538 * guile/scm-utils.c: Likewise.
539 * guile/scm-value.c: Likewise.
540 * h8300-tdep.c: Likewise.
541 * hppa-hpux-nat.c: Likewise.
542 * hppa-tdep.c: Likewise.
543 * hppanbsd-tdep.c: Likewise.
544 * hppaobsd-tdep.c: Likewise.
545 * i386-darwin-nat.c: Likewise.
546 * i386-darwin-tdep.c: Likewise.
547 * i386-nto-tdep.c: Likewise.
548 * i386-tdep.c: Likewise.
549 * i386bsd-nat.c: Likewise.
550 * i386fbsd-tdep.c: Likewise.
551 * i386gnu-nat.c: Likewise.
552 * i386nbsd-tdep.c: Likewise.
553 * i386obsd-tdep.c: Likewise.
554 * i387-tdep.c: Likewise.
555 * ia64-libunwind-tdep.c: Likewise.
556 * ia64-tdep.c: Likewise.
557 * inf-ptrace.c: Likewise.
558 * inf-ttrace.c: Likewise.
559 * infcall.c: Likewise.
560 * infcmd.c: Likewise.
561 * infrun.c: Likewise.
562 * inline-frame.c: Likewise.
563 * interps.c: Likewise.
564 * jv-lang.c: Likewise.
565 * jv-typeprint.c: Likewise.
566 * linux-fork.c: Likewise.
567 * linux-nat.c: Likewise.
568 * linux-thread-db.c: Likewise.
569 * m32c-tdep.c: Likewise.
570 * m32r-linux-nat.c: Likewise.
571 * m32r-tdep.c: Likewise.
572 * m68k-tdep.c: Likewise.
573 * m68kbsd-nat.c: Likewise.
574 * m68kbsd-tdep.c: Likewise.
575 * m88k-tdep.c: Likewise.
576 * machoread.c: Likewise.
577 * macroexp.c: Likewise.
578 * macrotab.c: Likewise.
579 * maint.c: Likewise.
580 * mdebugread.c: Likewise.
581 * memory-map.c: Likewise.
582 * mep-tdep.c: Likewise.
583 * mi/mi-common.c: Likewise.
584 * microblaze-tdep.c: Likewise.
585 * mingw-hdep.c: Likewise.
586 * mips-linux-nat.c: Likewise.
587 * mips-linux-tdep.c: Likewise.
588 * mips-tdep.c: Likewise.
589 * mips64obsd-tdep.c: Likewise.
590 * mipsnbsd-tdep.c: Likewise.
591 * mn10300-linux-tdep.c: Likewise.
592 * mn10300-tdep.c: Likewise.
593 * moxie-tdep.c: Likewise.
594 * mt-tdep.c: Likewise.
595 * nat/linux-btrace.c: Likewise.
596 * nat/linux-osdata.c: Likewise.
597 * nat/linux-ptrace.c: Likewise.
598 * nat/mips-linux-watch.c: Likewise.
599 * nios2-linux-tdep.c: Likewise.
600 * nios2-tdep.c: Likewise.
601 * objc-lang.c: Likewise.
602 * objfiles.c: Likewise.
603 * obsd-nat.c: Likewise.
604 * opencl-lang.c: Likewise.
605 * osabi.c: Likewise.
606 * parse.c: Likewise.
607 * ppc-linux-nat.c: Likewise.
608 * ppc-sysv-tdep.c: Likewise.
609 * ppcfbsd-nat.c: Likewise.
610 * ppcfbsd-tdep.c: Likewise.
611 * ppcnbsd-nat.c: Likewise.
612 * ppcnbsd-tdep.c: Likewise.
613 * ppcobsd-nat.c: Likewise.
614 * ppcobsd-tdep.c: Likewise.
615 * printcmd.c: Likewise.
616 * procfs.c: Likewise.
617 * prologue-value.c: Likewise.
618 * psymtab.c: Likewise.
619 * python/py-lazy-string.c: Likewise.
620 * python/py-value.c: Likewise.
621 * regcache.c: Likewise.
622 * reggroups.c: Likewise.
623 * registry.c: Likewise.
624 * remote-sim.c: Likewise.
625 * remote.c: Likewise.
626 * rs6000-aix-tdep.c: Likewise.
627 * rs6000-tdep.c: Likewise.
628 * s390-linux-tdep.c: Likewise.
629 * score-tdep.c: Likewise.
630 * ser-base.c: Likewise.
631 * ser-mingw.c: Likewise.
632 * sh-tdep.c: Likewise.
633 * sh64-tdep.c: Likewise.
634 * solib-darwin.c: Likewise.
635 * solib-spu.c: Likewise.
636 * solib-svr4.c: Likewise.
637 * source.c: Likewise.
638 * sparc-nat.c: Likewise.
639 * sparc-sol2-tdep.c: Likewise.
640 * sparc-tdep.c: Likewise.
641 * sparc64-sol2-tdep.c: Likewise.
642 * sparc64-tdep.c: Likewise.
643 * sparc64fbsd-tdep.c: Likewise.
644 * sparc64nbsd-tdep.c: Likewise.
645 * sparc64obsd-tdep.c: Likewise.
646 * sparcnbsd-tdep.c: Likewise.
647 * sparcobsd-tdep.c: Likewise.
648 * spu-multiarch.c: Likewise.
649 * spu-tdep.c: Likewise.
650 * stabsread.c: Likewise.
651 * stack.c: Likewise.
652 * symfile.c: Likewise.
653 * symtab.c: Likewise.
654 * target-descriptions.c: Likewise.
655 * target-memory.c: Likewise.
656 * target.c: Likewise.
657 * tic6x-linux-tdep.c: Likewise.
658 * tic6x-tdep.c: Likewise.
659 * tilegx-linux-nat.c: Likewise.
660 * tilegx-tdep.c: Likewise.
661 * top.c: Likewise.
662 * tramp-frame.c: Likewise.
663 * tui/tui-out.c: Likewise.
664 * tui/tui-winsource.c: Likewise.
665 * ui-out.c: Likewise.
666 * user-regs.c: Likewise.
667 * utils.c: Likewise.
668 * v850-tdep.c: Likewise.
669 * valops.c: Likewise.
670 * value.c: Likewise.
671 * varobj.c: Likewise.
672 * vax-nat.c: Likewise.
673 * xml-syscall.c: Likewise.
674 * xml-tdesc.c: Likewise.
675 * xstormy16-tdep.c: Likewise.
676 * xtensa-linux-nat.c: Likewise.
677 * xtensa-tdep.c: Likewise.
678
e76df0d0
GB
6792014-08-07 Gary Benson <gbenson@redhat.com>
680
681 * common/common-defs.h: Include common-utils.h.
682 * defs.h: Do not include common-utils.h.
683 * common/gdb_assert.h: Likewise.
684 * darwin-nat.h: Likewise.
685 * nat/linux-btrace.c: Likewise.
686 * target/waitstatus.h: Likewise.
687
4cb9c816
GB
6882014-08-07 Gary Benson <gbenson@redhat.com>
689
690 * common/common-defs.h: Include ptid.h.
691 * defs.h: Do not include ptid.h.
692 * inferior.h: Likewise.
693 * infrun.h: Likewise.
694 * nat/linux-btrace.h: Likewise.
695 * nat/linux-osdata.h: Likewise.
696 * target/waitstatus.h: Likewise.
697
3995eeee
GB
6982014-08-07 Gary Benson <gbenson@redhat.com>
699
700 * common/common-defs.h: Include gdb_locale.h.
701 * defs.h: Do not include gdb_locale.h.
702
cb9f1a9b
GB
7032014-08-07 Gary Benson <gbenson@redhat.com>
704
705 * common/common-defs.h: Include gdb/signals.h.
706 * defs.h: Do not include gdb/signals.h.
707
a5fceff8
GB
7082014-08-07 Gary Benson <gbenson@redhat.com>
709
710 * common/common-defs.h: Include pathmax.h.
711 * defs.h: Do not include pathmax.h.
712
b9391142
GB
7132014-08-07 Gary Benson <gbenson@redhat.com>
714
715 * common/common-defs.h: Include libiberty.h.
716 * defs.h: Do not include libiberty.h.
717 * common/queue.h: Likewise.
718 * cp-name-parser.y: Likewise.
719 * mi/mi-cmd-catch.c: Likewise.
720 * python/python.c: Likewise.
721
0e443c87
GB
7222014-08-07 Gary Benson <gbenson@redhat.com>
723
724 * common/common-defs.h: Include ansidecl.h.
725 * defs.h: Do not include ansidecl.h.
726 * common/buffer.h: Likewise.
727 * common/common-utils.h: Likewise.
728
8ebb3f56
GB
7292014-08-07 Gary Benson <gbenson@redhat.com>
730
731 * common/common-defs.h: Include stddef.h.
732 * defs.h: Do not include stddef.h.
733 * common/common-utils.h: Likewise.
734 * amd64fbsd-nat.c: Likewise.
735 * bcache.c: Likewise.
736 * charset.c: Likewise.
737 * common/buffer.h: Likewise.
738 * common/vec.h: Likewise.
739 * i386bsd-nat.c: Likewise.
740 * nat/linux-btrace.h: Likewise.
741 * ppcfbsd-nat.c: Likewise.
742 * ppcnbsd-tdep.h: Likewise.
743 * ppcobsd-nat.c: Likewise.
744 * ppcobsd-tdep.h: Likewise.
745 * python/py-gdb-readline.c: Likewise.
746
8980bdf6
GB
7472014-08-07 Gary Benson <gbenson@redhat.com>
748
749 * common/common-defs.h: Include stdarg.h.
750 * defs.h: Do not include stdarg.h.
751 * ada-lang.c: Likewise.
752 * common/common-utils.h: Likewise.
753 * guile/scm-string.c: Likewise.
754 * guile/scm-utils.c: Likewise.
755 * m32c-tdep.c: Likewise.
756
d7096f71
GB
7572014-08-07 Gary Benson <gbenson@redhat.com>
758
759 * common/common-defs.h: Include stdlib.h.
760 * defs.h: Do not include stdlib.h.
761 * addrmap.c: Likewise.
762 * bcache.c: Likewise.
763 * common/buffer.c: Likewise.
764 * common/common-utils.c: Likewise.
765 * cp-name-parser.y: Likewise.
766 * go32-nat.c: Likewise.
767 * mn10300-linux-tdep.c: Likewise.
768 * nat/linux-osdata.c: Likewise.
769 * tui/tui.c: Likewise.
770 * windows-nat.c: Likewise.
771
d02f550d
GB
7722014-08-07 Gary Benson <gbenson@redhat.com>
773
774 * common/common-defs.h: Include stdio.h.
775 * defs.h: Do not include stdio.h.
776 * ada-lang.c: Likewise.
777 * common/buffer.c: Likewise.
778 * common/common-utils.c: Likewise.
779 * cp-name-parser.y: Likewise.
780 * gnu-nat.c: Likewise.
781 * go32-nat.c: Likewise.
782 * i386gnu-nat.c: Likewise.
783 * proc-api.c: Likewise.
784 * proc-events.c: Likewise.
785 * proc-flags.c: Likewise.
786 * proc-why.c: Likewise.
787 * python/python-internal.h: Likewise.
788 * target-memory.c: Likewise.
789 * tui/tui-io.c: Likewise.
790 * tui/tui.c: Likewise.
791
b6d7a4bf
SM
7922014-08-06 Simon Marchi <simon.marchi@ericsson.com>
793
794 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
795 (scan_dyntag_auxv): Same.
796
af19829b
YQ
7972014-08-06 Yao Qi <yao@codesourcery.com>
798
799 * amd64-linux-nat.c: Remove duplicated include
800 "x86-linux-nat.h".
801 * i386-linux-nat.c: Likewise.
802
8e07a239
YQ
8032014-08-06 Yao Qi <yao@codesourcery.com>
804
805 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
806 operand" with "Special opcode" in comments.
807
7bfe8241
GB
8082014-08-05 Gary Benson <gbenson@redhat.com>
809
810 * interps.c (initialize_interps): Remove prototype.
811 (interpreter_initialized): Remove static global.
812 (interp_add): Do not call initialize_interps.
813 (initialize_interps): Remove function.
814
d6c95504
GB
8152014-08-05 Gary Benson <gbenson@redhat.com>
816
817 * utils.c (vwarning): Remove spurious va_end.
818
241fd515
AM
8192014-08-05 Alan Modra <amodra@gmail.com>
820
821 * charset.c (convert_between_encodings): Cast result of obstack_base.
822 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
823 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
824 (read_unwind_info): Use size_t for some locals.
825 * jit.c (finalize_symtab): Likewise.
826 * utils.c (hashtab_obstack_allocate): Likewise.
827 * symmisc.c (print_objfile_statistics): Update format strings.
828
dc304a94
JK
8292014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
830
831 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
832 (Changes in GDB 7.8): ... here.
833
3cecbbbe
TT
8342014-08-04 Tom Tromey <tromey@redhat.com>
835
836 * target.c (set_targetdebug): New function.
837 (initialize_targets): Pass set_targetdebug when creating "set
838 debug target".
839
6908c509
JB
8402014-08-01 Joel Brobecker <brobecker@adacore.com>
841
842 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
843 if detecting a variable-sized field that is not the last field.
844 Fix struct type length computation.
845
53e8f97d
JB
8462014-08-01 Joel Brobecker <brobecker@adacore.com>
847
848 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
849 Add debug trace.
850
e068c55d
JB
8512014-08-01 Joel Brobecker <brobecker@adacore.com>
852
853 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
854 Remove "+ 8" offset in computation of CHAIN_VMA.
855
4d4ca2a1
DE
8562014-07-31 Doug Evans <dje@google.com>
857
858 * inflow.c (child_terminal_inferior): Add comment.
859 (child_terminal_ours_for_output): Add comment.
860 (child_terminal_ours): Add comment.
861 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
862 (linux_nat_terminal_ours): Add comment.
863
462f517e
GB
8642014-07-31 Gary Benson <gbenson@redhat.com>
865
866 * common/btrace-common.h: Do not include defs.h or server.h.
867 * nat/mips-linux-watch.h: Likewise.
868 * gdb-dlfcn.h: Do not include defs.h.
869 * tracefile.h: Likewise.
870
74228e77
RM
8712014-07-30 Roland McGrath <mcgrathr@google.com>
872
873 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
874
014f9477
TT
8752014-07-30 Tom Tromey <tromey@redhat.com>
876
877 * bsd-kvm.c (bsd_kvm_open): Constify.
878 * corelow.c (core_open): Constify.
879 * ctf.c (ctf_open): Constify.
880 * dbug-rom.c (dbug_open): Constify.
881 * exec.c (exec_open): Constify.
882 * m32r-rom.c (m32r_open, mon2000_open): Constify.
883 * microblaze-rom.c (picobug_open): Constify.
884 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
885 Constify.
886 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
887 * record-btrace.c (record_btrace_open): Constify.
888 * record-full.c (record_full_core_open_1, record_full_open_1)
889 (record_full_open): Constify.
890 * remote-m32r-sdi.c (m32r_open): Constify.
891 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
892 (rockhopper_open, lsi_open): Constify.
893 * remote-sim.c (gdbsim_open): Constify.
894 * remote.c (remote_open, extended_remote_open, remote_open_1):
895 Constify.
896 * target.h (struct target_ops) <to_open>: Make "arg" const.
897 * tracefile-tfile.c (tfile_open): Constify.
898
e799154c
TT
8992014-07-30 Tom Tromey <tromey@redhat.com>
900
901 * breakpoint.c (map_breakpoint_numbers): Update.
902 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
903 (get_number_const): New function.
904 (get_number): Rewrite using get_number_const.
905 (init_number_or_range): Make "string" const.
906 (number_is_in_list): Make "list" const.
907 * cli/cli-utils.h (get_number_const): Declare.
908 (struct get_number_or_range_state) <string, end_ptr>: Now const.
909 (init_number_or_range, number_is_in_list): Update.
910 * printcmd.c (map_display_numbers): Update.
911 * value.c (value_from_history_ref): Constify.
912 * value.h (value_from_history_ref): Update.
913
5f08566b
TT
9142014-07-30 Tom Tromey <tromey@redhat.com>
915
916 * corefile.c (hook_type, call_extra_exec_file_hooks)
917 (specify_exec_file_hook): Constify.
918 * exec.c (exec_file_attach): Make "filename" const.
919 * gdbcore.h (deprecated_exec_file_display_hook)
920 (specify_exec_file_hook, exec_file_attach): Constify.
921 * main.c (captured_main): Use catch_command_errors_const.
922
8981c758
TT
9232014-07-30 Tom Tromey <tromey@redhat.com>
924
925 * target.c (open_target): New function.
926 (add_target_with_completer, add_deprecated_target_alias): Use
927 set_cmd_sfunc, set_cmd_context.
928 (debug_to_open): Remove.
929 (setup_target_debug): Update.
930
a1c7835a
YQ
9312014-07-30 Yao Qi <yao@codesourcery.com>
932
933 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
934 comments.
935 * parse.c (exp_iterate): Update comments.
936
976411d6
GB
9372014-07-30 Gary Benson <gbenson@redhat.com>
938
939 * common/common-defs.h: New file.
940 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
941 * defs.h: Include common-defs.h.
942 Do not include config.h or build-gnulib/config.h.
943
5d4848a4
GB
9442014-07-30 Gary Benson <gbenson@redhat.com>
945
946 * common/common-utils.h: Do not include config.h.
947 * nat/linux-btrace.h: Likewise.
948
d41f6d8e
GB
9492014-07-30 Gary Benson <gbenson@redhat.com>
950
951 * btrace.c: Include defs.h.
952 * common/ptid.c: Include defs.h or server.h as appropriate.
953 * nat/mips-linux-watch.c: Likewise.
954
84202f9c
TT
9552014-07-29 Tom Tromey <tromey@redhat.com>
956
957 * target.c (target_is_pushed): Simplify.
958
2530441c
JB
9592014-07-29 Joel Brobecker <brobecker@adacore.com>
960
961 GDB 7.8 released.
962
7e09a223
YQ
9632014-07-29 Yao Qi <yao@codesourcery.com>
964
965 PR gdb/17206
966 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
967
7ebdbe92
DE
9682014-07-28 Doug Evans <xdje42@gmail.com>
969
970 PR guile/17203
971 * guile/scm-param.c (pascm_parameter_defined_p): New function.
972 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
973 parameters.
974
f347ffc9
WN
9752014-07-28 Will Newton <will.newton@linaro.org>
976
977 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
978 (THUMB2_SET_R7_SIGRETURN2): Likewise.
979 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
980 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
981 (THUMB2_EABI_SYSCALL): Likewise.
982 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
983 struct tramp_frame.
984 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
985 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
986
37c5f1f7
DE
9872014-07-27 Doug Evans <xdje42@gmail.com>
988
989 * guile/scm-param.c (pascm_print_param_smob): Fix output.
990
0c3abbc7
DE
9912014-07-27 Doug Evans <xdje42@gmail.com>
992
993 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
994
e76c5d17
DE
9952014-07-26 Ludovic Courtès <ludo@gnu.org>
996 Doug Evans <xdje42@gmail.com>
997
998 PR guile/17146
999 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1000 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1001 * configure.ac: Try to use guild to compile an scm file, if it fails
1002 then disable guile support.
1003 * configure: Regenerate.
1004 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1005 GUILE_FILE_LIST.
1006 (GUILE_COMPILED_FILES): New variable.
1007 (GUILE_FILES) Update.
1008 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1009 (stamp-guile): Compile scm files.
1010 * guile/guile.c (boot_guile_support): New function.
1011 (standard_throw_args_p): New function.
1012 (print_standard_throw_error, print_throw_error): New functions.
1013 (handle_boot_error): New function.
1014 (initialize_scheme_side): Rewrite to call boot_guile_support.
1015 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1016 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1017
186fcde0
DE
10182014-07-26 Ludovic Courtès <ludo@gnu.org>
1019 Doug Evans <xdje42@gmail.com>
1020
1021 PR guile/17146
1022 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1023 * guile/lib/gdb/support.scm: New file.
1024 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1025 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1026 All uses updated.
1027 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1028 All uses updated.
1029 (%assert-type): Ditto, and renamed to assert-type.
1030 (%exception-print-style): Delete.
1031
4df42755
DE
10322014-07-26 Doug Evans <xdje42@gmail.com>
1033
1034 PR build/17105
1035 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1036 * configure: Regenerate.
1037 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1038 PYTHON_FILES.
1039 (PYTHON_FILES): New variable.
1040 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1041 (GUILE_FILES): New variable.
1042 (stamp-python, install-python, uninstall-python): Handle empty
1043 file list.
1044 (stamp-guile, install-guile, uninstall-guile): Ditto.
1045
ee7333ae
DE
10462014-07-26 Doug Evans <xdje42@gmail.com>
1047
1048 PR guile/17177
1049 * guile/lib/gdb.scm (pretty-printers): Export.
1050 (set-pretty-printers!): Export.
1051 * guile/lib/gdb/printing.scm (gdb module): Update.
1052 (prepend-pretty-printer!, append-pretty-printer!): Update.
1053 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1054 (pretty_printer_list_var): Delete.
1055 (pretty_printer_list): New static global.
1056 (gdbscm_pretty_printers): New function.
1057 (gdbscm_set_pretty_printers_x): New function.
1058 (ppscm_find_pretty_printer_from_gdb): Update.
1059 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1060 (gdbscm_initialize_pretty_printers): Update.
1061
74edf516
DE
10622014-07-26 Doug Evans <xdje42@gmail.com>
1063
1064 PR 17185
1065 * configure.ac: Add check for header gc/gc.h.
1066 Add check for function setenv.
1067 * configure: Regenerate.
1068 * config.in: Regenerate.
1069 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1070
d54398a7
MR
10712014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1072
1073 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1074 variation in gdbarch matching.
1075
ab16fce8
TT
10762014-07-25 Tom Tromey <tromey@redhat.com>
1077
1078 * exec.c (using_exec_ops): Remove.
1079 (exec_close_1): Update. Remove extraneous block, reindent.
1080 (add_target_sections): Use target_is_pushed.
1081
88056fbb
PA
10822014-07-25 Pedro Alves <palves@redhat.com>
1083
1084 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1085 * monitor.c (monitor_create_inferior): Likewise.
1086 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1087 * remote-sim.c (gdbsim_create_inferior): Likewise.
1088 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1089 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1090 * windows-nat.c (do_initial_windows_stuff): Likewise.
1091
70509625
PA
10922014-07-25 Pedro Alves <palves@redhat.com>
1093
1094 * NEWS: Mention signal passing and "signal" command changes.
1095 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1096 comment.
1097 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1098 call.
1099 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1100 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1101 (jump_command): Adjust clear_proceed_status call.
1102 (signal_command): Warn if other thread that are resumed have
1103 signals that will be delivered. Adjust clear_proceed_status call.
1104 (until_next_command, finish_command)
1105 (proceed_after_attach_callback, attach_command_post_wait)
1106 (attach_command): Adjust clear_proceed_status call.
1107 * infrun.c (proceed_after_vfork_done): Likewise.
1108 (proceed_after_attach_callback): Adjust comment.
1109 (clear_proceed_status_thread): Clear stop_signal if not in pass
1110 state.
1111 (clear_proceed_status_callback): Delete.
1112 (clear_proceed_status): New 'step' parameter. Only clear the
1113 proceed status of threads the command being prepared is about to
1114 resume.
1115 (proceed): If passed in an explicit signal, override stop_signal
1116 with it. Don't pass the last stop signal to the thread we're
1117 resuming.
1118 (init_wait_for_inferior): Adjust clear_proceed_status call.
1119 (switch_back_to_stepped_thread): Clear the signal if it should not
1120 be passed.
1121 * infrun.h (clear_proceed_status): New 'step' parameter.
1122 (user_visible_resume_ptid): Add comment.
1123 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1124 signal is in pass state.
1125 * remote.c (append_pending_thread_resumptions): Likewise.
1126 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1127
d8be2939
TT
11282014-07-25 Tom Tromey <tromey@redhat.com>
1129
1130 * target.h (target_stopped_data_address)
1131 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1132 parentheses.
1133
7d0d9d2b
PL
11342014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1135
1136 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1137 comments.
1138 (avr_pointer_to_address): Likewise.
1139
e9e7f724
TT
11402014-07-24 Tom Tromey <tromey@redhat.com>
1141
1142 * monitor.c (compile_pattern): Update.
1143 * target.h (struct target_ops) <to_shortname, to_longname,
1144 to_doc>: Now const.
1145
1947513d
TT
11462014-07-24 Tom Tromey <tromey@redhat.com>
1147
1148 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1149 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1150 (add_info_alias, add_com): Make "doc" const.
1151 (print_doc_line): Make "str" const.
1152 (delete_cmd): Update.
1153 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1154 (print_doc_line): Update.
1155 * cli/cli-script.c (document_command): Update.
1156 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1157 (add_com, add_info, add_info_alias): Update.
1158 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1159 * python/py-cmd.c (cmdpy_destroyer): Update.
1160
64e61d29
TT
11612014-07-24 Tom Tromey <tromey@redhat.com>
1162
1163 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1164 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1165 (help_cmd_list): Constify.
1166 (lookup_cmd): Update.
1167 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1168 const.
1169 (help_cmd_list, apropos_cmd): Update.
1170 * cli/cli-script.c (show_user): Update.
1171 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1172 * cli/cli-setshow.h (cmd_show_list): Update.
1173 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1174 (cmd_show_list): Update.
1175 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1176 * python/py-cmd.c (cmdpy_destroyer): Update.
1177
429e55ea
TT
11782014-07-24 Tom Tromey <tromey@redhat.com>
1179
1180 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1181 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1182 const.
1183 * command.h (deprecate_cmd): Update.
1184 * maint.c (maintenance_do_deprecate): Add casts.
1185
64669f3b
TT
11862014-07-24 Tom Tromey <tromey@redhat.com>
1187
1188 * cli/cli-decode.c (help_cmd): Make parameter "const".
1189 * cli/cli-decode.h (help_cmd): Update.
1190
d3d3328b
TT
11912014-07-24 Tom Tromey <tromey@redhat.com>
1192
1193 * stack.c (up_silently_base, down_silently_base): Make argument
1194 const.
1195
414842dc
TT
11962014-07-24 Tom Tromey <tromey@redhat.com>
1197
1198 * solib.c (solib_add): Make "pattern" const.
1199 * solib.h (solib_add): Update.
1200
baa336ce
TT
12012014-07-24 Tom Tromey <tromey@redhat.com>
1202
1203 * remote.c (remote_serial_open, print_packet, putpkt)
1204 (putpkt_binary): Constify.
1205 * remote.h (putpkt): Update.
1206
5a19e2d0
TT
12072014-07-24 Tom Tromey <tromey@redhat.com>
1208
1209 * monitor.c (monitor_open): Make "args" const.
1210 * monitor.h (monitor_open): Update.
1211
fc4baa5e
TT
12122014-07-24 Tom Tromey <tromey@redhat.com>
1213
1214 * maint.c (match_bfd_flags): Make "string" const.
1215 (print_bfd_section_info): Remove casts.
1216 (print_objfile_section_info): Make "string" const.
1217
0d5f0dbe
TT
12182014-07-24 Tom Tromey <tromey@redhat.com>
1219
1220 * inf-child.c (inf_child_open_target): Make "arg" const.
1221 * inf-child.h (inf_child_open_target): Update.
1222
41c77899
TT
12232014-07-24 Tom Tromey <tromey@redhat.com>
1224
1225 * environ.c (unset_in_environ): Make "var" const.
1226 * environ.h (unset_in_environ): Update.
1227
93db0d79
TT
12282014-07-24 Tom Tromey <tromey@redhat.com>
1229
1230 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1231 Make "cmd" const.
1232 (scan_filename_with_cleanup): Likewise.
1233 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1234 Make arguments const.
1235 (restore_command): Update.
1236
36d6eb95
PA
12372014-07-24 Pedro Alves <palves@redhat.com>
1238
1239 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1240
8009206a
TT
12412014-07-24 Tom Tromey <tromey@redhat.com>
1242 Gary Benson <gbenson@redhat.com>
1243
1244 * nat/linux-ptrace.c (additional_flags): New global.
1245 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1246 additional_flags; don't check GDBSERVER.
1247 (linux_ptrace_set_additional_flags): New function.
1248 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1249 Declare.
1250 * linux-nat.c (_initialize_linux_nat): Call
1251 linux_ptrace_set_additional_flags.
1252
a7068b60
TT
12532014-07-24 Tom Tromey <tromey@redhat.com>
1254
1255 * make-target-delegates (munge_type, write_debugmethod): New
1256 functions.
1257 (debug_names): New global.
1258 ($TARGET_DEBUG_PRINTER): New global.
1259 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1260 name.
1261 Write debug methods. Generate init_debug_target.
1262 * target-debug.h: New file.
1263 * target-delegates.c: Rebuild.
1264 * target.c: Include target-debug.h.
1265 (debug_target): Hoist definition.
1266 (target_kill, target_get_section_table, target_memory_map)
1267 (target_flash_erase, target_flash_done, target_detach)
1268 (target_disconnect, target_wait, target_resume)
1269 (target_pass_signals, target_program_signals, target_follow_fork)
1270 (target_mourn_inferior, target_search_memory)
1271 (target_thread_address_space, target_close)
1272 (target_find_new_threads, target_core_of_thread)
1273 (target_verify_memory, target_insert_mask_watchpoint)
1274 (target_remove_mask_watchpoint): Remove targetdebug code.
1275 (debug_to_post_attach, debug_to_prepare_to_store)
1276 (debug_to_files_info, debug_to_insert_breakpoint)
1277 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1278 (debug_to_region_ok_for_hw_watchpoint)
1279 (debug_to_can_accel_watchpoint_condition)
1280 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1281 (debug_to_watchpoint_addr_within_range)
1282 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1283 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1284 (debug_to_terminal_init, debug_to_terminal_inferior)
1285 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1286 (debug_to_terminal_save_ours, debug_to_terminal_info)
1287 (debug_to_load, debug_to_post_startup_inferior)
1288 (debug_to_insert_fork_catchpoint)
1289 (debug_to_remove_fork_catchpoint)
1290 (debug_to_insert_vfork_catchpoint)
1291 (debug_to_remove_vfork_catchpoint)
1292 (debug_to_insert_exec_catchpoint)
1293 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1294 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1295 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1296 (setup_target_debug): Call init_debug_target.
1297 * target.h (TARGET_DEBUG_PRINTER): New macro.
1298 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1299 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1300
2c51604d
GB
13012014-07-24 Gary Benson <gbenson@redhat.com>
1302
1303 * exceptions.h (throw_vfatal): Renamed to...
1304 (throw_vquit): New declaration.
1305 (throw_quit): Likewise.
1306 * exceptions.c (throw_vfatal): Renamed to...
1307 (throw_vquit): New function.
1308 (throw_quit): Likewise.
1309 (throw_error): Call throw_verror rather than throw_it.
1310 * utils.h (vfatal): Removed.
1311 (fatal): Likewise.
1312 * utils.c (vfatal): Removed.
1313 (fatal): Likewise.
1314 (internal_verror): Replaced call to fatal with call to throw_quit.
1315 (quit): Replaced calls to fatal with calls to throw_quit.
1316
34211963
ME
13172014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1318
1319 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1320 target_read_code.
1321
a52b4d3e
ME
13222014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1323
1324 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1325 less than zero in conditional expression.
1326
a8bdc56b
TT
13272014-07-23 Tom Tromey <tromey@redhat.com>
1328
1329 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1330 ($INTRO_PART): Don't match whitespace.
1331 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1332 argument matching.
1333 ($METHOD): Add $METHOD_TRAILER.
1334 (trim): Rewrite.
1335 (scan_target_h): New sub.
1336 Change main loop not to collect state.
1337 * target-delegates.c: Rebuild.
1338
91b52240
GB
13392014-07-23 Gary Benson <gbenson@redhat.com>
1340
1341 * cp-support.c (gdb_demangle): Fix build on systems without
1342 sigaltstack.
1343
45326f6f
JK
13442014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1345
1346 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1347 for reference entry value target data value.
1348
e214cf6c
JK
13492014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1352 value_available_contents_eq.
1353
bddbbedd
PA
13542014-07-22 Pedro Alves <palves@redhat.com>
1355
1356 * value.c (allocate_optimized_out_value): Don't mark value as
1357 non-lazy.
1358
45c71484
JW
13592014-07-22 Jiong Wang <jiong.wang@arm.com>
1360
1361 * MAINTAINERS (Write After Approval): Update my email address.
1362
9597b22a
DE
13632014-07-20 Doug Evans <dje@google.com>
1364
1365 PR server/17147
1366 * remote.c (putpkt_binary): Add text to error message.
1367
91101fe5
YQ
13682014-07-20 Yao Qi <yao@codesourcery.com>
1369
1370 * eval.c: Remove "Chill" from comments.
1371 * gdbtypes.h: Likewise.
1372 * symtab.h: Likewise.
1373
c9402c95
YQ
13742014-07-20 Yao Qi <yao@codesourcery.com>
1375
1376 * std-operator.def: Update comments to TERNOP_SLICE.
1377
ae8fddda
YQ
13782014-07-20 Yao Qi <yao@codesourcery.com>
1379
1380 * std-operator.def: Remove BINOP_RANGE.
1381 * breakpoint.c (watchpoint_exp_is_const): Update.
1382 * expprint.c (dump_subexp_body_standard): Likewise.
1383 * eval.c (init_array_element): Remove dead code.
1384 (evaluate_subexp_standard): Likewise.
1385
9c816640
YQ
13862014-07-20 Yao Qi <yao@codesourcery.com>
1387
1388 * std-operator.def: Remove BINOP_IN.
1389 * breakpoint.c (watchpoint_exp_is_const): Update.
1390 * eval.c (evaluate_subexp_standard): Likewise.
1391 * expprint.c (dump_subexp_body_standard): Likewise.
1392
164224e9
ME
13932014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1394
1395 * microblaze-tdep.c (microblaze_register_names): Add
1396 the rshr and rslr register names.
1397 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1398 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1399 Use of tdesc_numbered_register. Use of
1400 microblaze_register_g_packet_guesses. Use of
1401 tdesc_use_registers. Use of set_gdbarch_register_type.
1402 (microblaze_register_g_packet_guesses): New.
1403 * microblaze-tdep.h (microblaze_reg_num): Add
1404 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1405 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1406 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1407 * features/microblaze-core.xml: New file.
1408 * features/microblaze-stack-protect.xml: New file.
1409 * features/microblaze-with-stack-protect.c: New file.
1410 * features/microblaze-with-stack-protect.xml: New file.
1411 * features/microblaze.xml: New file.
1412 * features/microblaze.c: New file.
1413 * features/Makefile (microblaze-with-stack-protect): Add
1414 microblaze-with-stack-protect microblaze and microblaze-expedite.
1415 * regformats/microblaze-with-stack-protect.dat: New file.
1416 * regformats/microblaze.dat: New file.
1417 * doc/gdb.texinfo (MicroBlaze Features): Added.
1418
e8b2341c
TT
14192014-07-18 Tom Tromey <tromey@redhat.com>
1420
1421 * exec.c (exec_ops): Now static.
1422 * exec.h (exec_ops): Don't declare.
1423
44e89118
TT
14242014-07-18 Tom Tromey <tromey@redhat.com>
1425
1426 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1427 to find_target_beneath.
1428 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1429 find_target_beneath.
1430 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1431
b0ed115f
TT
14322014-07-18 Tom Tromey <tromey@redhat.com>
1433
1434 PR gdb/17130:
1435 * utils.c (quit): Use target_supports_terminal_ours.
1436 * target.h (target_supports_terminal_ours): Declare.
1437 * target.c (target_supports_delete_record): Don't check
1438 to_delete_record against NULL.
1439 (target_supports_terminal_ours): New function.
1440
e75fdfca
TT
14412014-07-18 Tom Tromey <tromey@redhat.com>
1442
1443 PR gdb/17130:
1444 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1445 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1446 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1447 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1448 * windows-nat.c (windows_xfer_partial): Always delegate.
1449 * record-btrace.c (record_btrace_xfer_partial): Simplify
1450 delegation.
1451 (record_btrace_fetch_registers, record_btrace_store_registers)
1452 (record_btrace_prepare_to_store, record_btrace_resume)
1453 (record_btrace_wait, record_btrace_find_new_threads)
1454 (record_btrace_thread_alive): Likewise.
1455 * procfs.c (procfs_xfer_partial): Always delegate.
1456 * corelow.c (core_xfer_partial): Always delegate.
1457 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1458
83814951
TT
14592014-07-18 Tom Tromey <tromey@redhat.com>
1460
1461 * exec.c (exec_make_note_section): Move earlier.
1462
b8b8facf
DE
14632014-07-17 Doug Evans <dje@google.com>
1464
74b49205 1465 PR gdb/17170
b8b8facf
DE
1466 * maint.c (count_symtabs_and_blocks): Handle NULL
1467 current_program_space.
1468 (report_command_stats): Check global enabled flag in addition to
1469 recorded enabled flag.
1470 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1471
69ff6be5
PA
14722014-07-16 Pedro Alves <palves@redhat.com>
1473
1474 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1475
252db1b5
TT
14762014-07-16 Tom Tromey <tromey@redhat.com>
1477
1478 * target.h (struct target_ops) <to_delete_record>: Reformat
1479 comment.
1480
a432721e
TT
14812014-07-16 Tom Tromey <tromey@redhat.com>
1482
1483 * target-delegates.c: Rebuild.
1484
487d9753
PL
14852014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1486
1487 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1488 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1489 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1490 (avr_pointer_to_address): Likewise.
1491 (avr_address_class_type_flags): New function.
1492 (avr_address_class_type_flags_to_name): Likewise.
1493 (avr_address_class_name_to_type_flags): Likewise.
1494 (avr_gdbarch_init): Set address_class_type_flags,
1495 address_class_type_flags_to_name and
1496 address_class_name_to_type_flags.
1497
57745c90
PA
14982014-07-15 Pedro Alves <palves@redhat.com>
1499
1500 * linux-nat.c (kill_callback): Save errno and work with saved
1501 copy.
1502
2d40be18
SM
15032014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1504
1505 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1506
572f6555
EBM
15072014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1508
1509 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1510 breakpoint support correctly.
1511
cc1c52ad
PA
15122014-07-14 Pedro Alves <palves@redhat.com>
1513
1514 * utils.c (prompt_for_continue): Call target_terminal_ours.
1515
1e973570
PA
15162014-07-14 Pedro Alves <palves@redhat.com>
1517
1518 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1519 catch_errors. Don't re-enable stdin or notify observers where,
1520 and rethrow error.
1521 (fetch_inferior_event_wrapper): Delete.
1522
93d6eb10
PA
15232014-07-14 Pedro Alves <palves@redhat.com>
1524
1525 PR gdb/17072
1526 * top.c: Include "inf-loop.h".
1527 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1528 field.
1529 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1530 was async before.
1531 (gdb_readline_wrapper): Store whether the target is async, and
1532 make it sync.
1533
0017922d
PA
15342014-07-14 Pedro Alves <palves@redhat.com>
1535
1536 PR gdb/17072
1537 * top.c (gdb_readline_wrapper_line): Tweak comment.
1538 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1539 the input handler callback.
1540
94696ad3
PA
15412014-07-14 Pedro Alves <palves@redhat.com>
1542
1543 PR gdb/17072
1544 * main.c: Include event-top.h.
1545 (handle_command_errors): New function.
1546 (catch_command_errors, catch_command_errors_const): Use it.
1547
9d1e69a2
PA
15482014-07-14 Pedro Alves <palves@redhat.com>
1549
1550 * exceptions.c (catch_command_errors, catch_command_errors_const):
1551 Moved to main.c.
1552 * exceptions.h (catch_command_errors_ftype)
1553 (catch_command_errors_const_ftype): Moved to main.c.
1554 (catch_command_errors, catch_command_errors_const): Delete
1555 declarations.
1556 * main.c (catch_command_errors_ftype)
1557 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1558 (catch_command_errors, catch_command_errors_const)): Moved here
1559 from exceptions.c and make static.
1560
feefc97b
PA
15612014-07-14 Pedro Alves <palves@redhat.com>
1562
1563 * exceptions.c (print_any_exception): Delete.
1564 (catch_exceptions_with_msg): Use exception_print instead of
1565 print_any_exception.
1566 (catch_errors): Use exception_fprintf instead of
1567 print_any_exception.
1568 (catch_command_errors, catch_command_errors_const): Use
1569 exception_print instead of print_any_exception.
1570
c933f875
PA
15712014-07-14 Pedro Alves <palves@redhat.com>
1572
1573 * infcall.c (run_inferior_call): Set 'sync_execution' while
1574 running the inferior call.
1575
feb6f816
PA
15762014-07-14 Pedro Alves <palves@redhat.com>
1577
1578 * value.c (value_contents_equal): Delete function.
1579 * value.h (value_contents_equal): Delete declaration.
1580
d98b7a16
TT
15812014-07-14 Tom Tromey <tromey@redhat.com>
1582
1583 PR exp/17106:
1584 * gdbtypes.c (is_dynamic_type_internal): New function, from
1585 is_dynamic_type.
1586 (is_dynamic_type): Rewrite.
1587 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1588 (resolve_dynamic_struct): Likewise.
1589 (resolve_dynamic_type_internal): New function, from
1590 resolve_dynamic_type.
1591 (resolve_dynamic_type): Rewrite.
1592
548740d6
TT
15932014-07-14 Tom Tromey <tromey@redhat.com>
1594
1595 * target.c (target_require_runnable): Also check record_stratum.
1596 Update comment.
1597
808f7ab1
YQ
15982014-07-11 Yao Qi <yao@codesourcery.com>
1599
1600 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1601 thumb_instruction_restores_sp return true.
1602
540314bd
YQ
16032014-07-11 Yao Qi <yao@codesourcery.com>
1604
1605 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1606 (thumb_in_function_epilogue_p): Call
1607 thumb_instruction_restores_sp.
1608
1db01f22
YQ
16092014-07-11 Yao Qi <yao@codesourcery.com>
1610
1611 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1612 'add sp, #imm'.
1613 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1614
3116063b
GB
16152014-07-11 Gary Benson <gbenson@redhat.com>
1616
1617 * amd64-linux-nat.c (gdbcore.h): Remove include.
1618 (regset.h): Likewise.
1619 (nat/linux-btrace.h): Likewise.
1620 (btrace.h): Likewise.
1621 (gdb_assert.h): Likewise.
1622 (string.h): Likewise.
1623 (sys/uio.h): Likewise.
1624 (sys/debugreg.h): Likewise.
1625 (sys/syscall.h): Likewise.
1626 (sys/procfs.h): Likewise.
1627 (sys/user.h): Likewise.
1628 (asm/ptrace.h): Likewise.
1629 (i386-nat.h): Likewise.
1630 * i386-linux-nat.c (i386-nat.h): Likewise.
1631 (regset.h): Likewise.
1632 (target.h): Likewise.
1633 (linux-nat.h): Likewise.
1634 (nat/linux-btrace.h): Likewise.
1635 (btrace.h): Likewise.
1636 (gdb_assert.h): Likewise.
1637 (string.h): Likewise.
1638 (sys/uio.h): Likewise.
1639 (sys/user.h): Likewise.
1640 (sys/procfs.h): Likewise.
1641 (sys/reg.h): Likewise.
1642 (sys/debugreg.h): Likewise.
1643 (ORIG_EAX): Remove definition.
1644
040baaf6
GB
16452014-07-11 Gary Benson <gbenson@redhat.com>
1646
1647 * i386-linux-nat.h: New file.
1648 * x86-linux-nat.h: Likewise.
1649 * x86-linux-nat.c: Likewise.
1650 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1651 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1652 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1653 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1654 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1655 (PTRACE_SETREGSET): Likewise.
1656 (arch_lwp_info): Now in x86-linux-nat.c.
1657 (have_ptrace_getregset): Now in x86-linux-nat.h.
1658 (x86_linux_dr_get): Now in x86-linux-nat.c.
1659 (x86_linux_dr_set): Likewise.
1660 (x86_linux_dr_get_addr): Likewise.
1661 (x86_linux_dr_get_control): Likewise.
1662 (x86_linux_dr_get_status): Likewise.
1663 (update_debug_registers_callback): Likewise.
1664 (x86_linux_dr_set_control): Likewise.
1665 (x86_linux_dr_set_addr): Likewise.
1666 (x86_linux_prepare_to_resume): Likewise.
1667 (x86_linux_new_thread): Likewise.
1668 (x86_linux_new_fork): Likewise.
1669 (x86_linux_get_thread_area): Likewise.
1670 (super_post_startup_inferior): Likewise.
1671 (x86_linux_child_post_startup_inferior): Likewise.
1672 (AMD64_LINUX_USER64_CS): Likewise.
1673 (AMD64_LINUX_X32_DS): Likewise.
1674 (x86_linux_read_description): Likewise.
1675 (x86_linux_enable_btrace): Likewise.
1676 (x86_linux_disable_btrace): Likewise.
1677 (x86_linux_teardown_btrace): Likewise.
1678 (x86_linux_read_btrace): Likewise.
1679 (x86_linux_create_target): Likewise.
1680 (x86_linux_add_target): Likewise.
1681 * i386-linux-nat.c (x86-linux-nat.h): New include.
1682 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1683 (PTRACE_SETREGSET): Likewise.
1684 (arch_lwp_info): Now in x86-linux-nat.c.
1685 (have_ptrace_getregset): Now in x86-linux-nat.h.
1686 (x86_linux_dr_get): Now in x86-linux-nat.c.
1687 (x86_linux_dr_set): Likewise.
1688 (x86_linux_dr_get_addr): Likewise.
1689 (x86_linux_dr_get_control): Likewise.
1690 (x86_linux_dr_get_status): Likewise.
1691 (update_debug_registers_callback): Likewise.
1692 (x86_linux_dr_set_control): Likewise.
1693 (x86_linux_dr_set_addr): Likewise.
1694 (x86_linux_prepare_to_resume): Likewise.
1695 (x86_linux_new_thread): Likewise.
1696 (x86_linux_new_fork): Likewise.
1697 (x86_linux_get_thread_area): Likewise.
1698 (super_post_startup_inferior): Likewise.
1699 (x86_linux_child_post_startup_inferior): Likewise.
1700 (AMD64_LINUX_USER64_CS): Likewise.
1701 (AMD64_LINUX_X32_DS): Likewise.
1702 (x86_linux_read_description): Likewise.
1703 (x86_linux_enable_btrace): Likewise.
1704 (x86_linux_disable_btrace): Likewise.
1705 (x86_linux_teardown_btrace): Likewise.
1706 (x86_linux_read_btrace): Likewise.
1707 (x86_linux_create_target): Likewise.
1708 (x86_linux_add_target): Likewise.
1709
1aa7e42c
GB
17102014-07-11 Gary Benson <gbenson@redhat.com>
1711
1712 * amd64-linux-nat.c: Comment and whitespace changes.
1713 * i386-linux-nat.c: Comment and whitespace changes.
1714
c1e246a0
GB
17152014-07-11 Gary Benson <gbenson@redhat.com>
1716
1717 * amd64-linux-nat.c (x86_linux_create_target): New function.
1718 (x86_linux_add_target): Likewise.
1719 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1720 * i386-linux-nat.c (x86_linux_create_target): New function.
1721 (x86_linux_add_target): Likewise.
1722 (_initialize_i386_linux_nat): Delegate to the above new functions.
1723
8c420b8d
GB
17242014-07-11 Gary Benson <gbenson@redhat.com>
1725
1726 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1727 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1728 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1729 (ps_get_thread_area): Delegate to the above.
1730
cb1da100
GB
17312014-07-11 Gary Benson <gbenson@redhat.com>
1732
1733 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1734 x86_linux_read_description. All uses updated. amd64-specific
1735 code conditionalized. Conditionalized i386-specific code added.
1736 Redundant cast removed.
1737 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1738 x86_linux_read_description. All uses updated. i386-specific
1739 code conditionalized. Conditionalized amd64-specific code added.
1740 One sizeof replaced with the actual type it is describing.
1741
2acf3cd0
GB
17422014-07-11 Gary Benson <gbenson@redhat.com>
1743
1744 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1745 x86_linux_dr_get. All uses updated.
1746 (amd64_linux_dr_set): Renamed to
1747 x86_linux_dr_set. All uses updated.
1748 (amd64_linux_dr_get_addr): Renamed to
1749 x86_linux_dr_get_addr. All uses updated.
1750 (amd64_linux_dr_get_control): Renamed to
1751 x86_linux_dr_get_control. All uses updated.
1752 (amd64_linux_dr_get_status): Renamed to
1753 x86_linux_dr_get_status. All uses updated.
1754 (amd64_linux_dr_set_control): Renamed to
1755 x86_linux_dr_set_control. All uses updated.
1756 (amd64_linux_dr_set_addr): Renamed to
1757 x86_linux_dr_set_addr. All uses updated.
1758 (amd64_linux_prepare_to_resume): Renamed to
1759 x86_linux_prepare_to_resume. All uses updated.
1760 (amd64_linux_new_thread): Renamed to
1761 x86_linux_new_thread. All uses updated.
1762 (amd64_linux_new_fork): Renamed to
1763 x86_linux_new_fork. All uses updated.
1764 (amd64_linux_child_post_startup_inferior): Renamed to
1765 x86_linux_child_post_startup_inferior. All uses updated.
1766 (amd64_linux_enable_btrace): Renamed to
1767 x86_linux_enable_btrace. All uses updated.
1768 (amd64_linux_disable_btrace): Renamed to
1769 x86_linux_disable_btrace. All uses updated.
1770 (amd64_linux_teardown_btrace): Renamed to
1771 x86_linux_teardown_btrace. All uses updated.
1772 (amd64_linux_read_btrace): Renamed to
1773 x86_linux_read_btrace. All uses updated.
1774 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1775 x86_linux_dr_get. All uses updated.
1776 (i386_linux_dr_set): Renamed to
1777 x86_linux_dr_set. All uses updated.
1778 (i386_linux_dr_get_addr): Renamed to
1779 x86_linux_dr_get_addr. All uses updated.
1780 (i386_linux_dr_get_control): Renamed to
1781 x86_linux_dr_get_control. All uses updated.
1782 (i386_linux_dr_get_status): Renamed to
1783 x86_linux_dr_get_status. All uses updated.
1784 (i386_linux_dr_set_control): Renamed to
1785 x86_linux_dr_set_control. All uses updated.
1786 (i386_linux_dr_set_addr): Renamed to
1787 x86_linux_dr_set_addr. All uses updated.
1788 (i386_linux_prepare_to_resume): Renamed to
1789 x86_linux_prepare_to_resume. All uses updated.
1790 (i386_linux_new_thread): Renamed to
1791 x86_linux_new_thread. All uses updated.
1792 (i386_linux_new_fork): Renamed to
1793 x86_linux_new_fork. All uses updated.
1794 (i386_linux_child_post_startup_inferior): Renamed to
1795 x86_linux_child_post_startup_inferior. All uses updated.
1796 (i386_linux_enable_btrace): Renamed to
1797 x86_linux_enable_btrace. All uses updated.
1798 (i386_linux_disable_btrace): Renamed to
1799 x86_linux_disable_btrace. All uses updated.
1800 (i386_linux_teardown_btrace): Renamed to
1801 x86_linux_teardown_btrace. All uses updated.
1802 (i386_linux_read_btrace): Renamed to
1803 x86_linux_read_btrace. All uses updated.
1804
b9c1d481
AS
18052014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1806
1807 * remote.c (extended_remote_post_attach): New function.
1808 (init_extended_remote_ops): Install it as to_post_attach method.
1809
7180e04a
PA
18102014-07-09 Pedro Alves <palves@redhat.com>
1811
1812 * infcmd.c (attach_command_post_wait): Don't call
1813 target_terminal_inferior here.
1814 (attach_command): Call it here instead.
1815
9a9a7608
AB
18162014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1819 field.
1820 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1821 from varobj.c, with additional checks.
1822 (c_varobj_ops): Fill in is_path_expr_parent field.
1823 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1824 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1825 field.
1826 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1827 ops method.
1828 (varobj_default_is_path_expr_parent): New function.
1829 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1830 (varobj_default_is_path_expr_parent): Declare new function.
1831
1f267ae3
MM
18322014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1833
1834 * infcmd.c (finish_backward): Turn internal error into normal error.
1835
b2ee242b
PA
18362014-07-07 Pedro Alves <palves@redhat.com>
1837
8a869bca 1838 PR gdb/17096
b2ee242b
PA
1839 * remote.c (async_handle_remote_sigint)
1840 (async_handle_remote_sigint_twice): Call
1841 gdb_call_async_signal_handler instead of
1842 mark_async_signal_handler.
1843
38e229b2
TT
18442014-07-07 Tom Tromey <tromey@redhat.com>
1845
1846 * target-delegates.c: Rebuild.
1847 * target.c (target_info_record): Remove.
1848 * record.c (info_record_command): Unconditionally call
1849 to_info_record.
1850 * target.h (struct target_ops) <to_info_record>: Use
1851 TARGET_DEFAULT_IGNORE.
1852 (target_info_record): Remove.
1853
f0f9ff95
TT
18542014-07-07 Tom Tromey <tromey@redhat.com>
1855
1856 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1857 TARGET_DEFAULT_NORETURN.
1858 * target.c (generic_tls_error): New function.
1859 (target_translate_tls_address): Don't search target stack.
1860 * target-delegates.c: Rebuild.
1861 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1862 stack.
1863 * linux-thread-db.c (thread_db_get_thread_local_address):
1864 Unconditionally call beneath target.
1865
4a5be5ee
MK
18662014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1867
1868 * cli/cli-logging.c (pop_output_files): Assign targerr to
1869 gdb_stdtargerr.
1870
92c3b204
AB
18712014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 * MAINTAINERS (Write After Approval): Update my email address.
1874
9b11e3a7
GB
18752014-07-02 Gary Benson <gbenson@redhat.com>
1876
1877 * proc-service.c (ps_xfer_memory): Update comment.
1878 (ps_pstop): Remove unused function.
1879 (ps_pcontinue): Likewise.
1880 (ps_lstop): Likewise.
1881 (ps_lcontinue): Likewise.
1882 (ps_lgetxregsize): Likewise.
1883 (ps_lgetxregs): Likewise.
1884 (ps_lsetxregs): Likewise.
1885 (ps_plog): Likewise.
1886 (ps_ptread): Likewise.
1887 (ps_ptwrite): Likewise.
1888
cf363f18
MW
18892014-07-01 Mark Wielaard <mjw@redhat.com>
1890
1891 * dwarf2read.c (add_array_cv_type): New function.
1892 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1893 (read_tag_volatile_type): Likewise.
1894
82ae6c8d
TT
18952014-07-01 Tom Tromey <tromey@redhat.com>
1896
1897 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1898 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1899 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1900 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1901 * command.h (cmd_cfunc_ftype): Move earlier.
1902 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1903 (add_com, add_info): Use cmd_cfunc_ftype.
1904
96142726
TT
19052014-06-30 Tom Tromey <tromey@redhat.com>
1906
1907 * symtab.c (operator_chars): Make parameters and return type
1908 const.
1909 (file_matches): Make "files" const.
1910 (struct search_symbols_data) <files>: Now const.
1911 (search_symbols): Make "regexp" and "files" parameters const.
1912 Update.
1913 (symtab_symbol_info): Remove cast.
1914 (rbreak_command): Update.
1915 * symtab.h (search_symbols): Update.
1916
b67a2c6f
YQ
19172014-06-27 Yao Qi <yao@codesourcery.com>
1918
1919 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1920 Change parameter type to 'struct thread_info *'. Caller
1921 updated.
1922 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1923 Update declaration.
1924 * dummy-frame.c (struct dummy_frame_id): New.
1925 (dummy_frame_id_eq): New function.
1926 (struct dummy_frame) <id>: Change its type to 'struct
1927 dummy_frame_id'.
1928 (dummy_frame_push): Add parameter ptid and save it in
1929 dummy_frame_id.
1930 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1931 inferior_ptid.
1932 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1933 to inferior_ptid.
1934 (lookup_dummy_frame): Change parameter type to 'struct
1935 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1936 instead of frame_id_eq.
1937 (dummy_frame_pop): Add parameter ptid. Callers updated.
1938 Update comments. Compose dummy_frame_id and pass it to
1939 lookup_dummy_frame.
1940 (dummy_frame_discard): Add parameter ptid.
1941 (dummy_frame_sniffer): Compose dummy_frame_id and call
1942 dummy_frame_id_eq instead of frame_id_eq.
1943 (fprint_dummy_frames): Print ptid.
1944 * dummy-frame.h: Remove comments.
1945 (dummy_frame_push): Add ptid in declaration.
1946 (dummy_frame_pop, dummy_frame_discard): Likewise.
1947
5b10184c
TT
19482014-06-26 Tom Tromey <tromey@redhat.com>
1949
1950 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1951 * command.h (error_no_arg): Update.
1952
06900326
TT
19532014-06-26 Tom Tromey <tromey@redhat.com>
1954
1955 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1956 (do_show_command): Make "arg" const.
1957 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1958
c2bcbb1d
TT
19592014-06-26 Tom Tromey <tromey@redhat.com>
1960
1961 * record-full.c (record_full_get_bookmark): Make "args" const.
1962 (record_full_goto_bookmark): Make "raw_bookmark" const.
1963 * record.c (record_goto): New function.
1964 (cmd_record_goto): Use it. Now static.
1965 * record.h (record_goto): Declare.
1966 (cmd_record_goto): Remove declaration.
1967 * target-delegates.c: Rebuild.
1968 * target.h (struct target_ops) <to_get_bookmark,
1969 to_goto_bookmark>: Make parameter const.
1970
9cbe5fff
TT
19712014-06-26 Tom Tromey <tromey@redhat.com>
1972
1973 * defs.h (generic_load): Update.
1974 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1975 * monitor.c (monitor_load): Make "args" const.
1976 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1977 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1978 const.
1979 (mips_load): Make "file" const.
1980 * remote-sim.c (gdbsim_load): Make "args" const.
1981 * remote.c (remote_load): Make "name" const.
1982 * symfile.c (generic_load): Make "args" const.
1983 * target-delegates.c: Rebuild.
1984 * target.c (target_load): Make "arg" const.
1985 (debug_to_load): Make "args" const.
1986 * target.h (struct target_ops) <to_load>: Make parameter const.
1987 (target_load): Update.
1988
34a68019
TT
19892014-06-26 Tom Tromey <tromey@redhat.com>
1990
1991 PR symtab/16902:
1992 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1993 (dwarf2_physname, read_partial_die)
1994 (guess_partial_die_structure_name, fixup_partial_die)
1995 (guess_full_die_structure_name, anonymous_struct_prefix)
1996 (dwarf2_name): Use per-BFD obstack.
1997
efc889c1
YQ
19982014-06-26 Yao Qi <yao@codesourcery.com>
1999
2000 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2001 dummyframe and this_id into inner block below.
2002
4395285e
YQ
20032014-06-26 Yao Qi <yao@codesourcery.com>
2004
2005 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2006 with "signal_pass[0]" in the initialization of signal_pass.
2007
aef92902
MM
20082014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2009
2010 * record-btrace.c (record_btrace_generating_corefile)
2011 (record_btrace_prepare_to_generate_core)
2012 (record_btrace_done_generating_core): New.
2013 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2014 (record_btrace_store_registers, record_btrace_prepare_to_store):
2015 Forward request when generating a core file.
2016 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2017 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2018 to_done_generating_core.
2019
5fff78c4
MM
20202014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2021
2022 * target.h (target_ops) <to_prepare_to_generate_core>
2023 <to_done_generating_core>: New.
2024 (target_prepare_to_generate_core, target_done_generating_core): New.
2025 * target.c (target_prepare_to_generate_core)
2026 (target_done_generating_core): New.
2027 * target-delegates.c: Regenerate.
2028 * gcore.c: (write_gcore_file): Rename to ...
2029 (write_gcore_file_1): ...this.
2030 (write_gcore_file): Call target_prepare_to_generate_core
2031 and target_done_generating_core.
2032
1d1f1ccb
MM
20332014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2034
2035 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2036 * gcore.c (write_gcore_file): Free memory returned from
2037 make_corefile_notes.
2038 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2039 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2040
3343ef86
YQ
20412014-06-24 Yao Qi <yao@codesourcery.com>
2042
2043 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2044 (arm_linux_init_abi): Set skip_trampoline_code with
2045 gdbarch_skip_trampoline_code instead of
2046 find_solib_trampoline_target.
2047
18d18ac8
YQ
20482014-06-24 Yao Qi <yao@codesourcery.com>
2049
2050 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2051 arm_skip_bx_reg returns non-zero.
2052
80d8d390
YQ
20532014-06-24 Yao Qi <yao@codesourcery.com>
2054
2055 * arm-tdep.c (arm_skip_bx_reg): New function.
2056 (arm_skip_stub): Call arm_skip_bx_reg.
2057
6a18a01c
DB
20582014-06-23 Don Breazeal <donb@codesourcery.com>
2059
2060 * MAINTAINERS: Add myself as write-after-approval maintainer.
2061
8e9db26e
PA
20622014-06-23 Pedro Alves <palves@redhat.com>
2063
2064 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2065 DR_CONTROL before setting DR0..DR3.
2066 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2067 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2068 bits of DR_CONTROL related to the debug register slot being
2069 disabled. If all slots are vacant, clear local slowdown as well,
2070 and assert DR_CONTROL is 0.
2071
70afc5b7
SC
20722014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2073
2074 * python/lib/gdb/command/xmethods.py
2075 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2076 current progspace only if the string "progspace" matches LOCUS_RE.
2077
840ed64d
JK
20782014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2079
2080 Fix --with-system-readline with readline-6.3 patch 5.
2081 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2082 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2083 types.
2084
26f2dc30
TT
20852014-06-20 Tom Tromey <tromey@redhat.com>
2086
2087 * dwarf2read.c (dw2_get_real_path): Use correct type in
2088 OBSTACK_CALLOC.
2089 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2090
125f8a3d
GB
20912014-06-20 Gary Benson <gbenson@redhat.com>
2092
2093 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2094 * common/glibc_thread_db.h: Likewise.
2095 * common/i386-cpuid.h: Likewise.
2096 * common/i386-gcc-cpuid.h: Likewise.
2097 * common/linux-btrace.h: Likewise.
2098 * common/linux-osdata.h: Likewise.
2099 * common/linux-procfs.h: Likewise.
2100 * common/linux-ptrace.h: Likewise.
2101 * common/mips-linux-watch.h: Likewise.
2102 * common/linux-btrace.c: Moved to nat.
2103 * common/linux-osdata.c: Likewise.
2104 * common/linux-procfs.c: Likewise.
2105 * common/linux-ptrace.c: Likewise.
2106 * common/mips-linux-watch.c: Likewise.
2107 * nat/gdb_thread_db.h: Moved from common.
2108 * nat/glibc_thread_db.h: Likewise.
2109 * nat/i386-cpuid.h: Likewise.
2110 * nat/i386-gcc-cpuid.h: Likewise.
2111 * nat/linux-btrace.c: Likewise.
2112 * nat/linux-btrace.h: Likewise.
2113 * nat/linux-osdata.c: Likewise.
2114 * nat/linux-osdata.h: Likewise.
2115 * nat/linux-procfs.c: Likewise.
2116 * nat/linux-procfs.h: Likewise.
2117 * nat/linux-ptrace.c: Likewise.
2118 * nat/linux-ptrace.h: Likewise.
2119 * nat/mips-linux-watch.c: Likewise.
2120 * nat/mips-linux-watch.h: Likewise.
2121 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2122 (object file files): Reordered.
2123 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2124 of glibc_thread_db.h.
2125
42995dbd
GB
21262014-06-20 Gary Benson <gbenson@redhat.com>
2127
2128 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2129 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2130 (i386_dr_low): Likewise.
2131 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2132 (i386_dr_low_set_addr): Likewise.
2133 (i386_dr_low_get_addr): Likewise.
2134 (i386_dr_low_can_set_control): Likewise.
2135 (i386_dr_low_set_control): Likewise.
2136 (i386_dr_low_get_control): Likewise.
2137 (i386_dr_low_get_status): Likewise.
2138 (i386_get_debug_register_length): Likewise.
2139 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2140 (i386_dr_low): Likewise.
2141 * nat/i386-dregs.c (i386-low.h): Remove include.
2142 (i386-nat.h): Likewise.
2143 (nat/i386-dregs.h): New include.
2144 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2145 (i386_dr_low_set_addr): Likewise.
2146 (i386_dr_low_get_addr): Likewise.
2147 (i386_dr_low_can_set_control): Likewise.
2148 (i386_dr_low_set_control): Likewise.
2149 (i386_dr_low_get_control): Likewise.
2150 (i386_dr_low_get_status): Likewise.
2151 (i386_get_debug_register_length): Likewise.
2152 (debug_hw_points): Likewise.
2153
3ed9baed
IB
21542014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2155
2156 * Makefile.in (SFILES): Add d-exp.y.
2157 (YYFILES): Add d-exp.c.
2158 (YYOBJ): Add d-exp.o.
2159 (local-maintainer-clean): Delete d-exp.c.
2160 * d-exp.y: New file.
2161 * d-lang.h (d_parse): New declaration.
2162 (d_error): New declaration.
2163 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2164 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2165 PREC_ORDER operators.
2166 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2167
78c164b0
YQ
21682014-06-19 Yao Qi <yao@codesourcery.com>
2169
2170 * gdbthread.h (any_running): Remove the declaration.
2171 * thread.c (any_running): Remove.
2172
f6e29b6e
YQ
21732014-06-19 Yao Qi <yao@codesourcery.com>
2174
2175 * gdbthread.h (struct thread_info) <state>: Change its type to
2176 'enum thread_state'. Update comments.
2177
034f788c
PA
21782014-06-19 Pedro Alves <palves@redhat.com>
2179
2180 * gdbthread.h (ALL_THREADS): Delete.
2181 (ALL_NON_EXITED_THREADS): New macro.
2182 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2183 instead of ALL_THREADS.
2184 * infrun.c (find_thread_needs_step_over)
2185 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2186 instead of ALL_THREADS.
2187 * record-btrace.c (record_btrace_open)
2188 (record_btrace_stop_recording, record_btrace_close)
2189 (record_btrace_is_replaying, record_btrace_resume)
2190 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2191 * remote.c (append_pending_thread_resumptions): Likewise.
2192 * thread.c (thread_apply_all_command): Likewise.
2193
46e33252
GB
21942014-06-19 Gary Benson <gbenson@redhat.com>
2195
2196 * i386-nat.c (i386_stopped_by_watchpoint):
2197 Use i386_dr_stopped_by_watchpoint.
2198 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2199 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2200
3a8ee006
GB
22012014-06-19 Gary Benson <gbenson@redhat.com>
2202
2203 * nat/i386-dregs.c: New file.
2204 * Makefile.in (i386-dregs.o): New rule.
2205 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2206 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2207 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2208 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2209 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2210 * config/i386/go32.mh (NATDEPFILES): Likewise.
2211 * config/i386/linux.mh (NATDEPFILES): Likewise.
2212 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2213 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2214 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2215 * i386-nat.h (debug_hw_points): New declaration.
2216 * i386-nat.c (breakpoint.h): Remove include.
2217 (command.h): Likewise.
2218 (target.h): Likewise.
2219 (gdb_assert.h): Likewise.
2220 (debug_hw_points): Made nonstatic.
2221 (debug_printf): Now in i386-dregs.c.
2222 (TARGET_HAS_DR_LEN_8): Likewise.
2223 (DR_CONTROL_SHIFT): Likewise.
2224 (DR_CONTROL_SIZE): Likewise.
2225 (DR_RW_EXECUTE): Likewise.
2226 (DR_RW_WRITE): Likewise.
2227 (DR_RW_READ): Likewise.
2228 (DR_RW_IORW): Likewise.
2229 (DR_LEN_1): Likewise.
2230 (DR_LEN_2): Likewise.
2231 (DR_LEN_4): Likewise.
2232 (DR_LEN_8): Likewise.
2233 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2234 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2235 (DR_ENABLE_SIZE): Likewise.
2236 (DR_LOCAL_SLOWDOWN): Likewise.
2237 (DR_GLOBAL_SLOWDOWN): Likewise.
2238 (DR_CONTROL_RESERVED): Likewise.
2239 (I386_DR_CONTROL_MASK): Likewise.
2240 (I386_DR_VACANT): Likewise.
2241 (I386_DR_LOCAL_ENABLE): Likewise.
2242 (I386_DR_GLOBAL_ENABLE): Likewise.
2243 (I386_DR_DISABLE): Likewise.
2244 (I386_DR_SET_RW_LEN): Likewise.
2245 (I386_DR_GET_RW_LEN): Likewise.
2246 (I386_DR_WATCH_HIT): Likewise.
2247 (i386_wp_op_t): Likewise.
2248 (i386_show_dr): Likewise.
2249 (i386_length_and_rw_bits): Likewise.
2250 (i386_insert_aligned_watchpoint): Likewise.
2251 (i386_remove_aligned_watchpoint): Likewise.
2252 (i386_handle_nonaligned_watchpoint): Likewise.
2253 (i386_update_inferior_debug_regs): Likewise.
2254 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2255 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2256 (i386_region_ok_for_watchpoint):
2257 Use i386_dr_region_ok_for_watchpoint.
2258 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2259
322a8e06
GB
22602014-06-19 Gary Benson <gbenson@redhat.com>
2261
2262 * i386-nat.c (i386_insert_hw_breakpoint): Use
2263 i386_insert_watchpoint.
2264 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2265
8f26655c
GB
22662014-06-19 Gary Benson <gbenson@redhat.com>
2267
2268 * i386-nat.c (i386_dr_show): Renamed to
2269 i386_show_dr and made static. All uses updated.
2270 (i386_dr_length_and_rw_bits): Renamed to
2271 i386_length_and_rw_bits and made static.
2272 All uses updated.
2273 (i386_dr_insert_aligned_watchpoint): Renamed to
2274 i386_insert_aligned_watchpoint and made static.
2275 All uses updated.
2276 (i386_dr_remove_aligned_watchpoint): Renamed to
2277 i386_remove_aligned_watchpoint and made static.
2278 All uses updated.
2279 (i386_dr_update_inferior_debug_regs): Renamed to
2280 i386_update_inferior_debug_regs and made static.
2281 All uses updated.
2282 * nat/i386-dregs.h (i386_dr_show): Removed.
2283 (i386_dr_length_and_rw_bits): Likewise.
2284 (i386_dr_insert_aligned_watchpoint): Likewise.
2285 (i386_dr_remove_aligned_watchpoint): Likewise.
2286 (i386_dr_update_inferior_debug_regs): Likewise.
2287
992c7d70
GB
22882014-06-19 Gary Benson <gbenson@redhat.com>
2289
2290 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2291 * configure: Regenerate.
2292 * config.in: Likewise.
2293 * main.c (signal.h): New include.
2294 (setup_alternate_signal_stack): New function.
2295 (captured_main): Call the above.
2296 * cp-support.c (signal.h): New include.
2297 (catch_demangler_crashes): New flag.
2298 (SIGJMP_BUF): New define.
2299 (SIGSETJMP): Likewise.
2300 (SIGLONGJMP): Likewise.
2301 (gdb_demangle_jmp_buf): New static global.
2302 (gdb_demangle_attempt_core_dump): Likewise.
2303 (gdb_demangle_signal_handler): New function.
2304 (gdb_demangle): If catch_demangler_crashes is set, install the
2305 above signal handler before calling bfd_demangle, and restore
2306 the original signal handler afterwards. Display the offending
2307 symbol and call demangler_warning the first time a segmentation
2308 fault is caught.
2309 (_initialize_cp_support): New maint set/show command.
2310
eae7090b
GB
23112014-06-19 Gary Benson <gbenson@redhat.com>
2312
2313 * utils.h (resource_limit_kind): New enum.
2314 (can_dump_core): New declaration.
2315 (warn_cant_dump_core): Likewise.
2316 (dump_core): Likewise.
2317 * utils.c (dump_core): Made nonstatic. Added new
2318 parameter "limit_kind".
2319 (can_dump_core): Made nonstatic. Moved printing code to...
2320 (warn_cant_dump_core): New function.
2321 (can_dump_core_warn): Likewise.
2322 (internal_vproblem): Replace calls to can_dump_core with
2323 calls to can_dump_core_warn. Supply new argument to each.
2324
57fcfb1b
GB
23252014-06-19 Gary Benson <gbenson@redhat.com>
2326
2327 * utils.h (demangler_vwarning): New declaration.
2328 (demangler_warning): Likewise.
2329 * utils.c (struct internal_problem)
2330 <user_settable_should_quit>: New field.
2331 <user_settable_should_dump_core>: Likewise
2332 (internal_error_problem): Add values for above new fields.
2333 (internal_warning_problem): Likewise.
2334 (demangler_warning_problem): New static global.
2335 (demangler_vwarning): New function.
2336 (demangler_warning): Likewise.
2337 (add_internal_problem_command): Selectively add commands.
2338 (_initialize_utils): New internal problem command.
2339 * maint.c (maintenance_demangler_warning): New function.
2340 (_initialize_maint_cmds): New command.
2341
17a40b44
TT
23422014-06-18 Tom Tromey <tromey@redhat.com>
2343
2344 * f-valprint.c (info_common_command_for_block): Update.
2345 * symtab.h (struct general_symbol_info) <common_block>: Now
2346 const.
2347
346d1dfe
TT
23482014-06-18 Tom Tromey <tromey@redhat.com>
2349
2350 * symtab.h (struct symtab) <blockvector>: Now const.
2351 * ada-lang.c (ada_add_global_exceptions): Update.
2352 * buildsym.c (augment_type_symtab): Update.
2353 * dwarf2read.c (dw2_lookup_symbol): Update.
2354 * jit.c (finalize_symtab): Update.
2355 * jv-lang.c (add_class_symtab_symbol): Update.
2356 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2357 Update.
2358 * objfiles.c (objfile_relocate1): Update.
2359 * psymtab.c (lookup_symbol_aux_psymtabs)
2360 (maintenance_check_psymtabs): Update.
2361 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2362 Update.
2363 * spu-tdep.c (spu_catch_start): Update.
2364 * symmisc.c (dump_symtab_1): Update.
2365 * symtab.c (lookup_global_symbol_from_objfile)
2366 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2367 (basic_lookup_transparent_type_quick)
2368 (basic_lookup_transparent_type, find_pc_sect_symtab)
2369 (find_pc_sect_line, search_symbols): Update.
2370 * block.c (find_block_in_blockvector): Make "bl" const.
2371 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2372 const.
2373 (blockvector_contains_pc): Make "bv" const.
2374 (block_for_pc_sect): Update.
2375 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2376 (blockvector_contains_pc): Update.
2377 * breakpoint.c (resolve_sal_pc): Update.
2378 * inline-frame.c (block_starting_point_at): Update.
2379
1834676b
TT
23802014-06-18 Tom Tromey <tromey@redhat.com>
2381
2382 * completer.c (complete_line): Make "line_buffer" const.
2383 * completer.h (complete_line): Update.
2384
ac1a991b
TT
23852014-06-18 Tom Tromey <tromey@redhat.com>
2386
2387 * symtab.c (add_macro_name): Remove unneeded cast.
2388
5bc98e52
TT
23892014-06-18 Tom Tromey <tromey@redhat.com>
2390
2391 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2392 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2393
8236def8
TT
23942014-06-18 Tom Tromey <tromey@redhat.com>
2395
2396 * probe.c (info_probes_for_ops): Make "arg" const.
2397 * probe.h (info_probes_for_ops): Update.
2398
3977b71f
TT
23992014-06-18 Tom Tromey <tromey@redhat.com>
2400
2401 * varobj.c (varobj_create): Update.
2402 * valops.c (value_of_this): Update.
2403 * tracepoint.c (add_local_symbols, scope_info): Update.
2404 * symtab.h (struct general_symbol_info) <block>: Now const.
2405 * symtab.c (skip_prologue_sal)
2406 (default_make_symbol_completion_list_break_on)
2407 (skip_prologue_using_sal): Update.
2408 * stack.h (iterate_over_block_locals)
2409 (iterate_over_block_local_vars): Update.
2410 * stack.c (print_frame_args): Update.
2411 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2412 parameter const.
2413 (get_selected_block): Make return type const.
2414 * python/py-frame.c (frapy_block): Update.
2415 * python/py-block.c (gdbpy_block_for_pc): Update.
2416 * p-exp.y (%union) <bval>: Now const.
2417 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2418 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2419 * m2-exp.y (%union) <bval>: Now const.
2420 * linespec.c (get_current_search_block): Make return type const.
2421 (create_sals_line_offset, find_label_symbols): Update.
2422 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2423 Update.
2424 (block_starting_point_at): Make "block" const.
2425 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2426 (check_exception_resume): Update.
2427 * guile/scm-frame.c (gdbscm_frame_block): Update.
2428 * guile/scm-block.c (gdbscm_lookup_block): Update.
2429 * frame.h (get_frame_block): Update.
2430 (get_selected_block): Make return type const.
2431 * frame.c (frame_id_inner): Update.
2432 * f-valprint.c (info_common_command_for_block)
2433 (info_common_command): Update.
2434 * dwarf2loc.c (dwarf2_find_location_expression)
2435 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2436 (locexpr_describe_location_piece): Update.
2437 * c-exp.y (%union) <bval>: Now const.
2438 * breakpoint.c (resolve_sal_pc): Update.
2439 * blockframe.c (get_frame_block):Make return type const.
2440 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2441 (block_innermost_frame): Update.
2442 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2443 (block_for_pc, block_for_pc_sect): Update.
2444 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2445 'pblock' const.
2446 (block_for_pc_sect, block_for_pc): Make return type const.
2447 * ax-gdb.c (gen_expr): Update.
2448 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2449 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2450 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2451 (ada_read_var_value): Update.
2452 * ada-exp.y (struct name_info) <block>: Now const.
2453 (%union): Likewise.
2454 (block_lookup): Constify.
2455
b9228891
GB
24562014-06-18 Gary Benson <gbenson@redhat.com>
2457
2458 * nat/i386-dregs.h: New file.
2459 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2460 * i386-nat.h (i386-dregs.h): New include.
2461 (DR_FIRSTADDR): Now in i386-dregs.h.
2462 (DR_LASTADDR): Likewise.
2463 (DR_NADDR): Likewise.
2464 (DR_STATUS): Likewise.
2465 (DR_CONTROL): Likewise.
2466 (i386_debug_reg_state): Likewise.
2467 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2468
a1aa2221
LM
24692014-06-18 Don Breazeal <donb@codesourcery.com>
2470
2471 * breakpoint.c (set_longjmp_breakpoint): Call
2472 momentary_breakpoint_from_master with additional argument.
2473 (set_longjmp_breakpoint_for_call_dummy): Call
2474 momentary_breakpoint_from_master with additional argument.
2475 (set_std_terminate_breakpoint): Call
2476 momentary_breakpoint_from_master with additional argument.
2477 (momentary_breakpoint_from_master): Add argument to function
2478 definition and use it to initialize structure member flag.
74228e77 2479 (clone_momentary_breakpoint): Call
a1aa2221
LM
2480 momentary_breakpoint_from_master with additional argument.
2481 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2482 member flags set in momentary_breakpoint_from_master.
2483
4be83cc2
GB
24842014-06-18 Gary Benson <gbenson@redhat.com>
2485
2486 * i386-nat.c (i386_show_dr): Renamed to
2487 i386_dr_show and made nonstatic. All uses updated.
2488 (i386_length_and_rw_bits): Renamed to
2489 i386_dr_length_and_rw_bits and made nonstatic.
2490 All uses updated.
2491 (i386_insert_aligned_watchpoint): Renamed to
2492 i386_dr_insert_aligned_watchpoint and made nonstatic.
2493 All uses updated.
2494 (i386_remove_aligned_watchpoint): Renamed to
2495 i386_dr_remove_aligned_watchpoint and made nonstatic.
2496 All uses updated.
2497 (i386_update_inferior_debug_regs): Renamed to
2498 i386_dr_update_inferior_debug_regs and made nonstatic.
2499 All uses updated.
2500
131aa0d4
GB
25012014-06-18 Gary Benson <gbenson@redhat.com>
2502
2503 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2504 (i386_dr_low_can_set_control): Likewise.
2505 (i386_dr_low_set_addr): Likewise.
2506 (i386_dr_low_set_control): Likewise.
2507 (i386_dr_low_get_addr): Likewise.
2508 (i386_dr_low_get_status): Likewise.
2509 (i386_dr_low_get_control): Likewise.
2510 (i386_insert_aligned_watchpoint): Use new macros.
2511 (i386_update_inferior_debug_regs): Likewise.
2512 (i386_stopped_data_address): Likewise.
2513
d9305f7f
GB
25142014-06-18 Gary Benson <gbenson@redhat.com>
2515
2516 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2517 New parameter. All uses updated.
2518
ea008da4
GB
25192014-06-18 Gary Benson <gbenson@redhat.com>
2520
2521 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2522 All uses updated.
2523
1b6d4134
GB
25242014-06-18 Gary Benson <gbenson@redhat.com>
2525
2526 * i386-nat.c (debug_printf): New macro.
2527 (i386_get_debug_register_length): Likewise.
2528 (TARGET_HAS_DR_LEN_8): Use above macro.
2529 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2530 and printf_unfiltered. Use phex to format values.
2531
9b4550ef
GB
25322014-06-18 Gary Benson <gbenson@redhat.com>
2533
2534 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2535 Make const.
2536
6e62758f
GB
25372014-06-18 Gary Benson <gbenson@redhat.com>
2538
2539 * i386-nat.c: Comment changes.
2540
51c79e94
GB
25412014-06-18 Gary Benson <gbenson@redhat.com>
2542
2543 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2544
3e11889a
GB
25452014-06-18 Gary Benson <gbenson@redhat.com>
2546
2547 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2548 (i386_insert_aligned_watchpoint): Likewise.
2549 (i386_remove_aligned_watchpoint): Likewise.
2550 (i386_handle_nonaligned_watchpoint): Likewise.
2551
fc6e2f03
GB
25522014-06-18 Gary Benson <gbenson@redhat.com>
2553
2554 * i386-nat.c: Whitespace changes.
2555
2afe7d50
SB
25562014-06-17 Samuel Bronson <naesten@gmail.com>
2557
2558 * MAINTAINERS: Update Roland McGrath's email address.
2559 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2560 Red Hat a while ago, and giving me a current address.
2afe7d50 2561
3bca49ee
TT
25622014-06-17 Tom Tromey <tromey@redhat.com>
2563
2564 * utils.h (savestring): Remove declaration.
2565
6e366df1
TT
25662014-06-17 Tom Tromey <tromey@redhat.com>
2567
2568 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2569
6be47f0c
KS
25702014-06-16 Keith Seitz <keiths@redhat.com>
2571
2572 PR mi/15863
2573 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2574 to update the varobj if inferior_ptid is null_ptid.
2575
7bc112c1
TT
25762014-06-16 Tom Tromey <tromey@redhat.com>
2577
2578 * target.h (struct target_ops) <to_info_proc>: Make parameter
2579 const.
2580 (target_info_proc): Update.
2581 * target.c (target_info_proc): Make "args" const.
2582 * procfs.c (procfs_info_proc): Update.
2583 * linux-tdep.c (linux_info_proc): Update.
2584 (linux_core_info_proc_mappings): Make "args" const.
2585 (linux_core_info_proc): Update.
2586 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2587 * gdbarch.c: Rebuild.
2588 * gdbarch.h: Rebuild.
2589 * corelow.c (core_info_proc): Update.
2590
fee354ee
TT
25912014-06-16 Tom Tromey <tromey@redhat.com>
2592
2593 * target.h (struct target_ops) <to_disconnect>: Make parameter
2594 const.
2595 (target_disconnect): Update.
2596 * target.c (target_disconnect): Make "args" const.
2597 * target-delegates.c: Rebuild.
2598 * remote.c (remote_disconnect): Update.
2599 * record.h (record_disconnect): Update.
2600 * record.c (record_disconnect): Update.
2601 * inf-child.c (inf_child_disconnect): Update.
2602
a30bf1f1
TT
26032014-06-16 Tom Tromey <tromey@redhat.com>
2604
2605 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2606 * target.c (debug_to_rcmd, default_rcmd): Update.
2607 * target-delegates.c: Rebuild.
2608 * remote.c (remote_rcmd): Update.
2609 * monitor.c (monitor_rcmd): Update.
2610
d03de421
PA
26112014-06-16 Pedro Alves <palves@redhat.com>
2612
2613 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2614 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2615 have OBJF_SHARED set.
2616 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2617 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2618 instead of OBJF_USERLOADED.
2619 * objfiles.h (OBJF_SHARED): Update comment.
2620 (userloaded_objfile_contains_address_p): Rename to ...
2621 (shared_objfile_contains_address_p): ... this, and update
2622 comments.
2623 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2624 new objfile.
2625 (remove_symbol_file_command): Skip objfiles that don't have
2626 OBJF_SHARED set.
2627
99f4262f
TT
26282014-06-16 Tom Tromey <tromey@redhat.com>
2629
2630 * minsyms.h (prim_record_minimal_symbol)
2631 (prim_record_minimal_symbol_and_info): Update comments.
2632
97d66cc6
EZ
26332014-06-14 Eli Zaretskii <eliz@gnu.org>
2634
2635 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2636 or --without-guile, according to how GDB was built.
2637
635c7e8a
TT
26382014-06-13 Tom Tromey <tromey@redhat.com>
2639
2640 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2641 to help_list.
2642 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2643 to help_list.
2644 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2645 help_list.
2646 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2647 help_list.Pass all_commands, not -1, to help_list.
2648 * cli/cli-dump.c (dump_command, append_command)
2649 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2650 (binary_dump_command, binary_append_command): Pass all_commands,
2651 not -1, to help_list.
2652 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2653 -1, to help_list.
2654 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2655 -1, to help_list.
2656 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2657 help_list.
2658 * top.c (set_history): Pass all_commands, not -1, to help_list.
2659 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2660 all_commands, not -1, to help_list.
2661 * symfile.c (overlay_command): Pass all_commands, not -1, to
2662 help_list.
2663 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2664 help_list.
2665 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2666 help_list.
2667 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2668 -1, to help_list.
2669 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2670 not -1, to help_list.
2671 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2672 not -1, to help_list.
2673 * maint.c (maintenance_command, maintenance_info_command)
2674 (maintenance_print_command, maintenance_set_cmd): Pass
2675 all_commands, not -1, to help_list.
2676 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2677 help_list.
2678 * language.c (set_check): Pass all_commands, not -1, to help_list.
2679 * infcmd.c (unset_command): Pass all_commands, not -1, to
2680 help_list.
2681 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2682 help_list.
2683 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2684 help_list.
2685 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2686 help_list.
2687 * breakpoint.c (save_command): Pass all_commands, not -1, to
2688 help_list.
2689 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2690 all_commands, not -1, to help_list.
2691
b94ade42
PL
26922014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2693
2694 * regcache.c (struct register_to_invalidate): New structure.
2695 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2696 functions.
2697 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2698
31f628ae
YQ
26992014-06-12 Yao Qi <yao@codesourcery.com>
2700
2701 * varobj.c (varobj_get_num_children): Call
2702 varobj_is_dynamic_p.
2703 (varobj_list_children): Likewise.
2704 (varobj_update): Likewise. Update comments.
2705
cde5ef40
YQ
27062014-06-12 Yao Qi <yao@codesourcery.com>
2707
2708 * varobj.c (varobj_pretty_printed_p): Rename to ...
2709 (varobj_is_dynamic_p): ... this. New function.
2710 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2711 (varobj_is_dynamic_p): Declare.
2712 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2713 (mi_print_value_p, varobj_update_one): Likewise.
2714
576ea091
YQ
27152014-06-12 Pedro Alves <pedro@codesourcery.com>
2716 Yao Qi <yao@codesourcery.com>
2717
2718 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2719 (varobj_get_iterator): Wrap up code for pretty-printer by
2720 "#if HAVE_PYTHON" and "#endif".
2721 (update_dynamic_varobj_children): Likewise.
2722
827f100c
YQ
27232014-06-12 Pedro Alves <pedro@codesourcery.com>
2724 Yao Qi <yao@codesourcery.com>
2725
2726 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2727 gdb_python_initialized is false. Move some code from varobj.c.
2728 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2729 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2730 (struct varobj_item): Moved to varobj-iter.h".
2731 (varobj_clear_saved_item): New function.
2732 (update_dynamic_varobj_children): Move python-related code to
2733 py-varobj.c.
2734 (free_variable): Call varobj_clear_saved_item and
2735 varobj_iter_delete.
2736
e5250216
YQ
27372014-06-12 Pedro Alves <pedro@codesourcery.com>
2738 Yao Qi <yao@codesourcery.com>
2739
2740 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2741 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2742 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2743 (py-varobj.o): New rule.
2744 * python/py-varobj.c: New file.
2745 * python/python-internal.h (py_varobj_get_iterator): Declare.
2746 * varobj-iter.h: New file.
2747 * varobj.c: Include "varobj-iter.h"
2748 (struct varobj) <child_iter>: Change its type from "PyObject *"
2749 to "struct varobj_iter *".
2750 <saved_item>: Likewise.
2751 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2752 [HAVE_PYTHON] (varobj_get_iterator): New function.
2753 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2754 python-specific code to python/py-varobj.c.
2755 (install_visualizer): Call varobj_iter_delete instead of
2756 Py_XDECREF.
2757 * varobj.h (varobj_ensure_python_env): Declare.
2758
5a2e0d6e
YQ
27592014-06-12 Yao Qi <yao@codesourcery.com>
2760
2761 * varobj.c (struct varobj_item): New structure.
2762 (create_child_with_value): Update declaration.
2763 (varobj_add_child): Replace arguments 'name' and 'value' with
2764 'item'. All callers updated.
2765 (install_dynamic_child): Likewise.
2766 (update_dynamic_varobj_children): Likewise.
2767 (varobj_add_child): Likewise.
2768 (create_child_with_value): Likewise.
2769
919b9a93
JB
27702014-06-11 Joel Brobecker <brobecker@adacore.com>
2771
2772 * NEWS: Create a new section for the next release branch.
2773 Rename the section of the current branch, now that it has
2774 been cut.
2775
71a55bdf
JB
27762014-06-11 Joel Brobecker <brobecker@adacore.com>
2777
2778 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2779 * version.in: Bump version to 7.8.50.DATE-cvs.
2780
364fe1f7
PA
27812014-06-11 Pedro Alves <palves@redhat.com>
2782
2783 PR remote/17028
2784 * ser-mingw.c (net_windows_socket_check_pending): New function.
2785 (net_windows_select_thread): Ignore spurious wakeups. Use
2786 net_windows_socket_check_pending.
2787 (net_windows_wait_handle): Check for pending events with
2788 ioctlsocket, through net_windows_socket_check_pending, instead of
2789 checking the socket's event.
2790
5a6c7709
SC
27912014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2792
2793 * python/python-internal.h (gdb_PyObject_GetAttrString)
2794 (gdb_PyObject_HasAttrString): New inline function definitions.
2795 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2796 char * of the second argument to PyObject_GetAttrString.
74228e77 2797
0e58ee40
JB
27982014-06-10 Joel Brobecker <brobecker@adacore.com>
2799
2800 * serial.c (serial_write): Fix index of character to be printed
2801 in call to serial_logchar when serial debug traces are enabled.
2802
d190df30
JB
28032014-06-10 Joel Brobecker <brobecker@adacore.com>
2804
2805 * gdbtypes (resolve_dynamic_range): Add function description.
2806
b4b01d36
PA
28072014-06-09 Pedro Alves <palves@redhat.com>
2808
2809 * linux-nat.c (linux_child_follow_fork): Initialize status with
2810 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2811 inner block. Only pass the signal to PTRACE_DETACH if in pass
2812 state.
2813
3657956b
GB
28142014-06-09 Gary Benson <gbenson@redhat.com>
2815
2816 * common/signals.c (gdb_signal_from_host): Reorder to separate
2817 the always-available ANSI-standard signals from the signals that
2818 require checking.
2819 (do_gdb_signal_to_host): Likewise.
2820 * proc-events.c (signal_table): Likewise.
2821
c077881a
HZ
28222014-06-08 Hui Zhu <hui@codesourcery.com>
2823
2824 * common/linux-ptrace.c (linux_disable_event_reporting): New
2825 function.
2826 * common/linux-ptrace.h (linux_disable_event_reporting): New
2827 declaration.
2828 * linux-nat.c (linux_child_follow_fork): Do a single step before
2829 detach.
2830
4186eb54
KS
28312014-06-07 Keith Seitz <keiths@redhat.com>
2832
2833 Revert:
2834 PR c++/16253
2835 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2836 from symbol_matches_domain in symtab.c. All local callers
2837 of symbol_matches_domain updated.
2838 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2839 search STRUCT_DOMAIN.
2840 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2841 independently. standard_lookup will do that automatically.
2842 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2843 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2844 (cp_lookup_symbol_in_namespace): Likewise.
2845 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2846 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2847 may return a STRUCT_DOMAIN match.
2848 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2849 * cp-support.c: Include language.h.
2850 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2851 VAR_DOMAIN.
2852 * psymtab.c (match_partial_symbol): Compare the requested
2853 domain with the symbol's domain directly.
2854 (lookup_partial_symbol): Likewise.
2855 * symtab.c (lookup_symbol_in_language): Explain when/why
2856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2857 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2858 appropriate languages.
2859 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2860 and moved to ada-lang.c
2861 (lookup_block_symbol): Explain that this function only returns
2862 symbol matching the requested DOMAIN.
2863 Compare the requested domain with the symbol's domain directly.
2864 (iterate_over_symbols): Compare the requested domain with the
2865 symbol's domain directly.
2866 * symtab.h (symbol_matches_domain): Remove.
2867
25326a28 28682014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2869
2870 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2871 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2872 (gdbscm_guile_version_is_at_least): Declare.
2873 (gdbscm_scm_string_to_int): Declare.
2874 * guile/guile.c (gdbscm_guile_major_version): New global.
2875 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2876 (guile_datadir): New static global.
2877 (gdbscm_guile_data_directory): New function.
2878 (initialize_scheme_side): Update.
2879 (misc_guile_functions): Add guile-data-directory.
2880 (initialize_gdb_module): Fetch guile version number.
2881 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2882 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2883 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2884 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2885 comments.
2886 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2887 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2888 * guile/scm-value.c (gdbscm_value_to_string): Only call
2889 scm_port_conversion_strategy if Guile version >= 2.0.6.
2890
0a770bb2 28912014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2892
2893 * main.c (print_gdb_help): Add -q and --silent.
2894
73ba372c
GB
28952014-06-06 Gary Benson <gbenson@redhat.com>
2896
2897 * common/signals.c: Remove preprocessor conditionals for
2898 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2899 SIGSEGV and SIGTERM.
2900 * proc-events.c: Likewise.
2901
c33b2f12
MM
29022014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2903
2904 * symfile.c (symfile_free_objfile): Remove restriction to
2905 OBJF_USERLOADED.
2906 * symfile-mem.c (symbol_file_add_from_memory): Call
2907 add_target_sections_of_objfile.
2908
fb934770
LC
29092014-06-05 Ludovic Courtès <ludo@gnu.org>
2910
2911 * guile/scm-value.c (gdbscm_history_append_x): Use
2912 'vlscm_get_value_smob_arg_unsafe' instead of
2913 'vlscm_scm_to_value'.
2914
6ef284bd
SM
29152014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2916
2917 PR mi/15806
2918 * utils.c (printchar): Don't escape at all if quoter is NUL.
2919 Update function documentation to clarify effect of parameter
2920 QUOTER.
2921 * remote.c (escape_buffer): Pass '\\' as the quoter to
2922 fputstrn_unfiltered.
2923 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2924 generate the output.
2925 (mi_solib_unloaded): Same.
2926
270c9937
JB
29272014-06-05 Joel Brobecker <brobecker@adacore.com>
2928
2929 * development.sh: Delete.
2930 * Makefile.in (config.status): Adjust dependency on development.sh.
2931 * configure.ac: Adjust development.sh source call.
2932 * configure: Regenerate.
2933
16f691fb
DE
29342014-06-04 Doug Evans <xdje42@gmail.com>
2935
2936 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2937 is_scheme_bkpt, spec.
2938 (bpscm_make_breakpoint_smob): Initialize new members.
2939 (gdbscm_create_breakpoint_x): Split into two ...
2940 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2941 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2942 (scheme_function breakpoint_functions): Update.
2943 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2944 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2945 register-breakpoint!.
2946
ef7cab6b
JB
29472014-06-04 Joel Brobecker <brobecker@adacorer.com>
2948
2949 PR server/17023
2950 * mem-break.c (z_type_supported): Return zero if
2951 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2952
012370f6
TT
29532014-06-04 Tom Tromey <tromey@redhat.com>
2954
2955 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2956 value_from_contents_and_address_unresolved.
2957 (ada_template_to_fixed_record_type_1): Likewise.
2958 (ada_which_variant_applies): Likewise.
2959 * value.h (value_from_contents_and_address_unresolved): Declare.
2960 * value.c (value_from_contents_and_address_unresolved): New
2961 function.
2962 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2963 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2964 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2965
92e2a17f
TT
29662014-06-04 Tom Tromey <tromey@redhat.com>
2967
2968 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2969
c0939df1
TT
29702014-06-04 Tom Tromey <tromey@redhat.com>
2971
2972 * procfs.c (procfs_attach): Make "args" const.
2973 * windows-nat.c (windows_attach): Make "args" const.
2974 * nto-procfs.c (procfs_attach): Make "args" const.
2975 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2976 * go32-nat.c (go32_attach): Make "args" const.
2977 * gnu-nat.c (gnu_attach): Make "args" const.
2978 * darwin-nat.c (darwin_attach): Make "args" const.
2979 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2980 * linux-nat.c (linux_nat_attach): Make "args" const.
2981 * remote.c (extended_remote_attach_1, extended_remote_attach):
2982 Make "args" const.
2983 * target.h (struct target_ops) <to_attach>: Make "args" const.
2984 (find_default_attach): Likewise.
2985 * utils.c (parse_pid_to_attach): Make "args" const.
2986 * utils.h (parse_pid_to_attach): Update.
2987
8eaff7cd
TT
29882014-06-04 Tom Tromey <tromey@redhat.com>
2989
2990 * target-delegates.c: Rebuild.
2991 * target.c (default_thread_address_space): New function.
2992 (target_thread_address_space): Simplify.
2993 * target.h (struct target_ops) <to_thread_address_space>: Add
2994 TARGET_DEFAULT_FUNC.
2995
1913f160
DE
29962014-06-04 Doug Evans <xdje42@gmail.com>
2997
2998 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2999
70ad5bff
MM
30002014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3001
3002 * record-btrace.c: Include event-loop.h and inf-loop.h.
3003 (record_btrace_resume_exec_dir)
3004 (record_btrace_async_inferior_event_handler)
3005 (record_btrace_handle_async_inferior_event): New.
3006 (record_btrace_open): Create async event handler.
3007 (record_btrace_close): Delete async event handler.
3008 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3009 Mark async event handler.
3010 (record_btrace_execution_direction): New.
3011 (init_record_btrace_ops): Initialize to_execution_direction.
3012
b6210538
DE
30132014-06-03 Doug Evans <xdje42@gmail.com>
3014
3015 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3016 (gdbscm_make_parameter): Ditto.
3017
a5b1fd27
DE
30182014-06-03 Doug Evans <dje@google.com>
3019
3020 * exec.c (exec_close_1): Call clear_section_table instead of
3021 resize_section_table.
3022 (clear_section_table): New function.
3023 (resize_section_table): Make static. Rename arg num_added to
3024 adjustment.
3025 * exec.h (clear_section_table): Declare.
3026 (resize_section_table): Delete.
3027 * progspace.c (release_program_space): Call clear_section_table
3028 instead of resize_section_table.
3029
0c6e92a5
SC
30302014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3031
3032 * NEWS (Python Scripting): Add entry about the new xmethods
3033 feature.
3034
883964a7
SC
30352014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3036
3037 * python/py-xmethods.c: New file.
3038 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3039 (objfpy_dealloc): XDECREF on the new xmethods field.
3040 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3041 field.
3042 (objfpy_get_xmethods): New function.
3043 (objfile_getset): New entry 'xmethods'.
3044 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3045 (pspy_dealloc): XDECREF on the new xmethods field.
3046 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3047 field.
3048 (pspy_get_xmethods): New function.
3049 (pspace_getset): New entry 'xmethods'.
3050 * python/python-internal.h: Add declarations for new functions.
3051 * python/python.c (_initialize_python): Invoke
3052 gdbpy_initialize_xmethods.
3053 * python/lib/gdb/__init__.py (xmethods): New
3054 attribute.
3055 * python/lib/gdb/xmethod.py: New file.
3056 * python/lib/gdb/command/xmethods.py: New file.
3057
58992dc5
SC
30582014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3059
3060 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3061 best match method returned by find_overload_match is an xmethod.
3062 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3063 the best matching operator returned by find_overload_match is an
3064 xmethod.
3065 * valops.c: #include "extension.h".
3066 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3067 Return void. The list of matching source methods is returned in
3068 "fn_list" and a vector of matching debug method workers is
3069 returned in "xm_worker_vec". Update all callers.
3070 (value_find_oload_method_list): Likewise.
3071 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3072 non-NULL, then the index of the best matching method in this
3073 vector is returned. Update all callers.
3074 (find_overload_match): Include xmethods while performing overload
3075 resolution.
3076
e81e7f5e
SC
30772014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3078
3079 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3080 * extension-priv.h (struct extension_language_ops): Add the
3081 xmethod interface.
3082 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3083 get_matching_xmethod_workers, get_xmethod_argtypes,
3084 invoke_xmethod, free_xmethod_worker,
3085 free_xmethod_worker_vec): New functions.
3086 * extension.h: #include "common/vec.h".
3087 New function declarations.
3088 (struct xmethod_worker): New struct.
3089 (VEC (xmethod_worker_ptr)): New vector type.
3090 (xmethod_worker_ptr): New typedef.
3091 (xmethod_worker_vec): Likewise.
3092 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3093 builtin_type.
3094 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3095 (struct builtin_type): New field "xmethod".
3096 * valarith.c (value_ptradd): Assert that the value argument is not
3097 lval_xcallable.
3098 * valops.c (value_must_coerce_to_target): Return 0 for
3099 lval_xcallable values.
3100 * value.c (struct value): New field XM_WORKER in the field
3101 LOCATION.
3102 (value_address, value_raw_address): Return 0 for lval_xcallable
3103 values.
3104 (set_value_address): Assert that the value is not an
3105 lval_xcallable.
3106 (value_free): Free the associated xmethod worker when freeing
3107 lval_xcallable values.
3108 (set_value_component_location): Assert that the WHOLE value is not
3109 lval_xcallable.
3110 (value_of_xmethod, call_xmethod): New functions.
3111 * value.h: Declare "struct xmethod_worker".
3112 Declare new functions value_of_xmethod, call_xmethod.
3113
ef370185
JB
31142014-06-03 Joel Brobecker <brobecker@adacore.com>
3115 Pedro Alves <palves@redhat.com>
3116
3117 PR breakpoints/17000
3118 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3119 New function, extracted from software_breakpoint_inserted_here_p.
3120 (software_breakpoint_inserted_here_p): Replace factored out code
3121 by call to find_non_raw_software_breakpoint_inserted_here.
3122 (bp_target_info_copy_insertion_state): New function.
3123 (bkpt_insert_location): Handle the case of a single-step
3124 breakpoint already inserted at the same address.
3125 (bkpt_remove_location): Handle the case of a single-step
3126 breakpoint still inserted at the same address.
3127 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3128 breakpoint already inserted at the same address.
3129 (deprecated_remove_raw_breakpoint): Handle the case of a
3130 non-raw breakpoint still inserted at the same address.
3131 (find_single_step_breakpoint): New function, extracted from
3132 single_step_breakpoint_inserted_here_p.
3133 (find_single_step_breakpoint): New function,
3134 factored out from single_step_breakpoint_inserted_here_p.
3135 (single_step_breakpoint_inserted_here_p): Reimplement.
3136
1e2ccb61
BM
31372014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3138
3139 Pushed by Joel Brobecker <brobecker@adacore.com>
3140 * source.c (show_substitute_path_command): Fix display of matching
3141 substitution rules.
3142
d3448d85
GB
31432014-06-03 Gary Benson <gbenson@redhat.com>
3144
3145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3146
06eb1586
DE
31472014-06-02 Doug Evans <xdje42@gmail.com>
3148
3149 Add parameter support for Guile.
3150 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3151 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3152 (scm-param.o): New rule.
3153 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3154 (gdbscm_misc_error): Declare.
3155 (gdbscm_canonicalize_command_name): Declare.
3156 (gdbscm_scm_to_host_string): Declare.
3157 (gdbscm_scm_from_host_string): Declare.
3158 (gdbscm_initialize_parameters): Declare.
3159 * guile/guile.c (initialize_gdb_module): Call
3160 gdbscm_initialize_parameters.
3161 * guile/lib/gdb.scm: Export parameter symbols.
3162 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3163 cmdscm_canonicalize_name and made public. All callers updated.
3164 * guile/scm-exception.c (gdbscm_misc_error): New function.
3165 * guile/scm-param.c: New file.
3166 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3167 (gdbscm_scm_to_host_string): New function.
3168 (gdbscm_scm_from_host_string): New function.
3169 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3170
e698b8c4
DE
31712014-06-02 Doug Evans <xdje42@gmail.com>
3172
3173 Add command support for Guile.
3174 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3175 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3176 (scm-cmd.o): New rule.
3177 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3178 (gdbscm_user_error_p): Declare.
3179 (gdbscm_parse_command_name): Declare.
3180 (gdbscm_valid_command_class_p): Declare.
3181 (gdbscm_initialize_commands): Declare.
3182 * guile/guile.c (initialize_gdb_module): Call
3183 gdbscm_initialize_commands.
3184 * guile/lib/gdb.scm: Export command symbols.
3185 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3186 (throw-user-error): New function.
3187 * guile/scm-cmd.c: New file.
3188 * guile/scm-exception.c (user_error_symbol): New static global.
3189 (gdbscm_user_error_p): New function.
3190 (gdbscm_initialize_exceptions): Set user_error_symbol.
3191 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3192
fb1f94b0
PM
31932014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3194
3195 * top.c (command_loop): Handle comments here...
3196 (command_line_input): ... not here.
3197
ded03782
DE
31982014-06-02 Doug Evans <xdje42@gmail.com>
3199
3200 Add progspace support for Guile.
3201 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3202 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3203 (scm-progspace.o): New rule.
3204 * guile/guile-internal.h (pspace_smob): New typedef.
3205 (psscm_pspace_smob_pretty_printers): Declare.
3206 (psscm_pspace_smob_from_pspace): Declare.
3207 (psscm_scm_from_pspace): Declare.
3208 * guile/guile.c (initialize_gdb_module): Call
3209 gdbscm_initialize_pspaces.
3210 * guile/lib/gdb.scm: Export progspace symbols.
3211 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3212 support.
3213 (append-pretty-printer!): Ditto.
3214 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3215 Implement.
3216 * guile/scm-progspace.c: New file.
3217
397998fc
AM
32182014-06-03 Alan Modra <amodra@gmail.com>
3219
3220 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3221 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3222
6aa5f3a6
DE
32232014-06-02 Doug Evans <dje@google.com>
3224
3225 Add support for skeletonless type units.
3226 * dwarf2read.c (struct dwarf2_per_objfile): New member
3227 n_allocated_type_units.
3228 (struct dwarf2_per_objfile) <tu_stats>: New member
3229 nr_all_type_units_reallocs.
3230 (create_signatured_type_table_from_index): Initialize
3231 n_allocated_type_units
3232 (create_all_type_units): Ditto.
3233 (add_type_unit): Move up in file. New arg slot.
3234 All callers updated. Increase space for all_type_units more
3235 efficiently.
3236 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3237 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3238 (lookup_dwp_signatured_type): Ditto.
3239 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3240 All callers updated.
3241 (build_type_psymtabs_1): Leave type_unit_groups as
3242 NULL if no TUs present.
3243 (print_tu_stats): New function.
3244 (process_skeletonless_type_unit): New function.
3245 (process_dwo_file_for_skeletonless_type_units): New
3246 function.
3247 (process_skeletonless_type_units): New function.
3248 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3249 Call print tu_stats if debugging enabled.
3250
41fac0cf
PA
32512014-06-02 Pedro Alves <palves@redhat.com>
3252
3253 * breakpoint.c (build_target_command_list): Don't build a command
3254 list if we have any duplicate location that isn't a dprintf.
3255
cd1608cc
PA
32562014-06-02 Pedro Alves <palves@redhat.com>
3257
3258 * breakpoint.c (dprintf_breakpoint_hit): New function.
3259 (initialize_breakpoint_ops): Install it as dprintf's
3260 breakpoint_hit method.
3261
486ef3b9
JB
32622014-06-02 Joel Brobecker <brobecker@adacore.com>
3263
3264 * source.c (substitute_path_rule_matches): Simplify using
3265 filename_ncmp instead of FILENAME_CMP.
3266
230cd560
JB
32672014-06-02 Joel Brobecker <brobecker@adacore.com>
3268
3269 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3270
16954d5d
LC
32712014-06-01 Ludovic Courtès <ludo@gnu.org>
3272
3273 * configure.ac: When Guile is available, check for the
3274 availability of 'scm_new_smob'.
3275 * configure, config.h.in: Regenerate.
3276 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3277 function.
3278
53e8a631
AB
32792014-05-30 Andrew Burgess <aburgess@broadcom.com>
3280
3281 * frame.c (struct frame_info): Add stop_string field.
3282 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3283 (get_prev_frame_always): Old content moved into
3284 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3285 TRY_CATCH, handle MEMORY_ERROR exceptions.
3286 (frame_stop_reason_string): New function definition.
3287 * frame.h (unwind_stop_reason_to_string): Extend comment to
3288 mention frame_stop_reason_string.
3289 (frame_stop_reason_string): New function declaration.
3290 * stack.c (frame_info): Switch to frame_stop_reason_string.
3291 (backtrace_command_1): Switch to frame_stop_reason_string.
3292 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3293 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3294 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3295
70e38b8e
AB
32962014-05-30 Andrew Burgess <aburgess@broadcom.com>
3297
3298 * frame.c (frame_stop_reason_string): Rename to ...
3299 (unwind_stop_reason_to_string): this.
3300 * frame.h (frame_stop_reason_string): Rename to ...
3301 (unwind_stop_reason_to_string): this.
3302 * stack.c (frame_info): Update call to frame_stop_reason_string.
3303 (backtrace_command_1): Likewise.
3304 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3305 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3306
938f0e2f
AB
33072014-05-30 Andrew Burgess <aburgess@broadcom.com>
3308
3309 * frame.c (remove_prev_frame): New function.
3310 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3311 remove_prev_frame.
3312
a09dd441
PA
33132014-05-29 Pedro Alves <palves@redhat.com>
3314
3315 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3316 and make it const. When a single-step decays to a continue,
3317 clear 'step', not 'hw_step'. Pass whether the caller wanted
3318 to step to user_visible_resume_ptid, not what we ask the
3319 target to do.
3320
bdc36728
PA
33212014-05-29 Pedro Alves <palves@redhat.com>
3322
3323 * infrun.c (process_event_stop_test, handle_step_into_function)
3324 (handle_step_into_function_backward): Adjust.
3325 Don't set the even thread's stop_step and call stop_waiting before
3326 calling end_stepping_range. Instead do that ...
3327 (end_stepping_range): ... here. Take an ecs pointer parameter.
3328
22bcd14b
PA
33292014-05-29 Pedro Alves <palves@redhat.com>
3330
3331 * infrun.c (stop_stepping): Rename to ...
3332 (stop_waiting): ... this.
3333 (proceed): Update comment.
3334 (process_event_stop_test, handle_inferior_event)
3335 (handle_signal_stop, handle_step_into_function)
3336 (handle_step_into_function_backward): Update.
3337
4ae57c05
PA
33382014-05-29 Pedro Alves <palves@redhat.com>
3339
3340 * infcall.c (run_inferior_call): Don't check whether the current
3341 thread is running after the proceed call.
3342
329ea579
PA
33432014-05-29 Pedro Alves <palves@redhat.com>
3344 Tom Tromey <tromey@redhat.com>
3345
3346 * NEWS: Mention "maint set target-async", "set mi-async", and that
3347 background execution commands are now always available.
3348 * target.h (target_async_permitted): Update comment.
3349 * target.c (target_async_permitted, target_async_permitted_1):
3350 Default to 1.
3351 (set_target_async_command): Rename to ...
3352 (maint_set_target_async_command): ... this.
3353 (show_target_async_command): Rename to ...
3354 (maint_show_target_async_command): ... this.
3355 (_initialize_target): Adjust.
3356 * infcmd.c (prepare_execution_command): Make extern.
3357 * inferior.h (prepare_execution_command): Declare.
3358 * infrun.c (set_observer_mode): Leave target async alone.
3359 * mi/mi-interp.c (mi_interpreter_init): Install
3360 mi_on_sync_execution_done as sync_execution_done observer.
3361 (mi_on_sync_execution_done): New function.
3362 (mi_execute_command_input_handler): Don't print the prompt if we
3363 just started a synchronous command with an async target.
3364 (mi_on_resume): Check sync_execution before printing prompt.
3365 * mi/mi-main.h (mi_async_p): Declare.
3366 * mi/mi-main.c: Include gdbcmd.h.
3367 (mi_async_p): New function.
3368 (mi_async, mi_async_1): New globals.
3369 (set_mi_async_command, show_mi_async_command, mi_async): New
3370 functions.
3371 (exec_continue): Call prepare_execution_command.
3372 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3373 (mi_execute_async_cli_command): Use mi_async_p.
3374 (_initialize_mi_main): Install "set mi-async". Make
3375 "target-async" a deprecated alias.
3376
92bcb5f9
PA
33772014-05-29 Pedro Alves <palves@redhat.com>
3378
3379 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3380 (_initialize_cli_interp): Adjust.
3381 * event-loop.c: Include "observer.h".
3382 (start_event_loop): Notify 'command_error' observers instead of
3383 calling display_gdb_prompt. Remove FIXME comment.
3384 * event-top.c (display_gdb_prompt): Remove call into the
3385 interpreters.
3386 * inf-loop.c: Include "observer.h".
3387 (inferior_event_handler): Notify 'command_error' observers instead
3388 of calling display_gdb_prompt.
3389 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3390 observers instead of calling display_gdb_prompt.
3391 * interps.c (interp_set): Don't call display_gdb_prompt.
3392 (current_interp_display_prompt_p): Delete.
3393 * interps.h (interp_prompt_p): Delete declaration.
3394 (interp_prompt_p_ftype): Delete.
3395 (struct interp_procs) <prompt_proc_p>: Delete field.
3396 (current_interp_display_prompt_p): Delete declaration.
3397 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3398 (_initialize_mi_interp): Adjust.
3399 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3400 'command_error' observers.
3401 (tui_on_sync_execution_done, tui_on_command_error): New
3402 functions.
3403 (tui_display_prompt_p): Delete.
3404 (_initialize_tui_interp): Adjust.
3405
fd664c91
PA
34062014-05-29 Pedro Alves <palves@redhat.com>
3407
3408 PR gdb/13860
3409 * cli/cli-interp.c: Include infrun.h and observer.h.
3410 (cli_uiout, cli_interp): New globals.
3411 (cli_on_signal_received, cli_on_end_stepping_range)
3412 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3413 functions.
3414 (cli_interpreter_init): Install them as 'end_stepping_range',
3415 'signal_received' 'signal_exited', 'exited' and 'no_history'
3416 observers.
3417 (_initialize_cli_interp): Remove cli_interp local.
3418 * infrun.c (handle_inferior_event): Call the several stop reason
3419 observers instead of printing the stop reason directly.
3420 (end_stepping_range): New function.
3421 (print_end_stepping_range_reason, print_signal_exited_reason)
3422 (print_exited_reason, print_signal_received_reason)
3423 (print_no_history_reason): Make static, and add an uiout
3424 parameter. Print to that instead of to CURRENT_UIOUT.
3425 * infrun.h (print_end_stepping_range_reason)
3426 (print_signal_exited_reason, print_exited_reason)
3427 (print_signal_received_reason print_no_history_reason): New
3428 declarations.
3429 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3430 'mi_uiout'.
3431 <cli_uiout>: New field.
3432 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3433 uiout for CLI output. Install 'signal_received',
3434 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3435 observers.
3436 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3437 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3438 (mi_on_no_history): New functions.
3439 (ui_out_free_cleanup): Delete function.
3440 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3441 instead use the one already stored in the MI interpreter data.
3442 (mi_ui_out): Adjust.
3443 * tui/tui-interp.c: Include infrun.h and observer.h.
3444 (tui_interp): New global.
3445 (tui_on_signal_received, tui_on_end_stepping_range)
3446 (tui_on_signal_exited, tui_on_exited)
3447 (tui_on_no_history): New functions.
3448 (tui_init): Install them as 'end_stepping_range',
3449 'signal_received' 'signal_exited', 'exited' and 'no_history'
3450 observers.
3451 (_initialize_tui_interp): Delete tui_interp local.
3452
8817a6f2
PA
34532014-05-29 Pedro Alves <palves@redhat.com>
3454
3455 PR gdb/15713
3456 * linux-nat.c (linux_nat_resume_callback): Rename the second
3457 parameter to 'except'. Skip LP if it points to EXCEPT.
3458 (linux_nat_resume): Don't mark the event lwp as not stopped
3459 before resuming sibling lwps. Instead ask
3460 linux_nat_resume_callback to skip the event lwp. Mark it as not
3461 stopped after actually resuming it.
3462 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3463 resuming it.
3464 (wait_lwp): Mark the lwp as stopped here.
3465 (stop_wait_callback): Mark the lwp as not stopped right after
3466 resuming it. Don't mark lwps as stopped here.
3467 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3468 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3469
251bde03
PA
34702014-05-29 Pedro Alves <palves@redhat.com>
3471
3472 PR PR15693
3473 * infrun.c (resume): Determine how much to resume depending on
3474 whether the caller wanted a step, not whether we can hardware step
3475 the target. Mark all threads that we intend to run as running,
3476 unless we're calling an inferior function.
3477 (normal_stop): If the thread is running an infcall, don't finish
3478 thread state.
3479 * target.c (target_resume): Don't mark threads as running here.
3480
7f3c0343
JB
34812014-05-28 Joel Brobecker <brobecker@adacore.com>
3482
3483 * serial.c (_initialize_serial): Remove support for
3484 the "set remotebaud" and "show remotebaud" commands.
3485 * NEWS: Add entry documenting the removal of that command.
3486
ee34b3f9
YQ
34872014-05-28 Yao Qi <yao@codesourcery.com>
3488
3489 * charset.c: Fix typo in comments.
3490
add6c04d
GB
34912014-05-27 Gary Benson <gbenson@redhat.com>
3492
3493 * utils.c (internal_vproblem): Prompt for a bug report.
3494
92c48fc5
AW
34952014-05-26 Andy Wingo <wingo@igalia.com>
3496
3497 * guile/scm-arch.c (arscm_mark_arch_smob):
3498 * guile/scm-block.c (bkscm_mark_block_smob)
3499 (bkscm_mark_block_syms_progress_smob):
3500 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3501 * guile/scm-exception.c (exscm_mark_exception_smob):
3502 * guile/scm-frame.c (frscm_mark_frame_smob):
3503 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3504 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3505 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3506 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3507 (ppscm_mark_pretty_printer_worker_smob):
3508 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3509 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3510 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3511 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3512 mark functions.
3513 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3514 function.
3515
b2715b27
AW
35162014-05-26 Andy Wingo <wingo@igalia.com>
3517 Doug Evans <xdje42@gmail.com>
3518
3519 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3520 empty_base_class. All uses updated.
3521 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3522 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3523 Adapt all callers.
3524 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3525 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3526 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3527 (gdbscm_gsmob_has_property_p, add_property_name)
3528 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3529 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3530 (gdb-object-has-property?, gdb-object-properties): Remove.
3531 (gdb-object-kind): Renamed from gsmob-kind.
3532
214ab2da
AW
35332014-05-26 Andy Wingo <wingo@igalia.com>
3534
3535 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3536 * configure: Regenerate.
3537
589fdceb
MM
35382014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3539
3540 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3541
67b5c0c1
MM
35422014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3543
3544 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3545 (replay_memory_access_read_only, replay_memory_access_read_write)
3546 (replay_memory_access_types, replay_memory_access)
3547 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3548 (cmd_set_record_btrace, cmd_show_record_btrace)
3549 (cmd_show_replay_memory_access): New.
3550 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3551 (record_btrace_remove_breakpoint): Replace
3552 record_btrace_allow_memory_access with replay_memory_access.
3553 (_initialize_record_btrace): Add commands.
3554 * NEWS: Announce it.
3555
036cd381
RR
35562014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3557
3558 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3559
c77c1e42
RR
35602014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3561
3562 * MAINTAINERS (Write After Approval): Move self back from
3563 paper trail.
3564
45741a9c
PA
35652014-05-22 Pedro Alves <palves@redhat.com>
3566
3567 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3568 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3569 (disable_randomization, enum exec_direction_kind)
3570 (execution_direction, stop_registers, start_remote)
3571 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3572 (wait_for_inferior, normal_stop, get_last_target_status)
3573 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3574 (insert_step_resume_breakpoint_at_sal)
3575 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3576 (set_step_info, print_stop_event, signal_stop_state)
3577 (signal_print_state, signal_pass_state, signal_stop_update)
3578 (signal_print_update, signal_pass_update)
3579 (update_signals_program_target, clear_exit_convenience_vars)
3580 (displaced_step_dump_bytes, update_observer_mode)
3581 (signal_catch_update, gdb_signal_from_command): Move
3582 declarations ...
3583 * infrun.h: ... to this new file.
3584 * amd64-tdep.c: Include infrun.h.
3585 * annotate.c: Include infrun.h.
3586 * arch-utils.c: Include infrun.h.
3587 * arm-linux-tdep.c: Include infrun.h.
3588 * arm-tdep.c: Include infrun.h.
3589 * break-catch-sig.c: Include infrun.h.
3590 * breakpoint.c: Include infrun.h.
3591 * common/agent.c: Include infrun.h instead of inferior.h.
3592 * corelow.c: Include infrun.h.
3593 * event-top.c: Include infrun.h.
3594 * go32-nat.c: Include infrun.h.
3595 * i386-tdep.c: Include infrun.h.
3596 * inf-loop.c: Include infrun.h.
3597 * infcall.c: Include infrun.h.
3598 * infcmd.c: Include infrun.h.
3599 * infrun.c: Include infrun.h.
3600 * linux-fork.c: Include infrun.h.
3601 * linux-nat.c: Include infrun.h.
3602 * linux-thread-db.c: Include infrun.h.
3603 * monitor.c: Include infrun.h.
3604 * nto-tdep.c: Include infrun.h.
3605 * procfs.c: Include infrun.h.
3606 * record-btrace.c: Include infrun.h.
3607 * record-full.c: Include infrun.h.
3608 * remote-m32r-sdi.c: Include infrun.h.
3609 * remote-mips.c: Include infrun.h.
3610 * remote-notif.c: Include infrun.h.
3611 * remote-sim.c: Include infrun.h.
3612 * remote.c: Include infrun.h.
3613 * reverse.c: Include infrun.h.
3614 * rs6000-tdep.c: Include infrun.h.
3615 * s390-linux-tdep.c: Include infrun.h.
3616 * solib-irix.c: Include infrun.h.
3617 * solib-osf.c: Include infrun.h.
3618 * solib-svr4.c: Include infrun.h.
3619 * target.c: Include infrun.h.
3620 * top.c: Include infrun.h.
3621 * windows-nat.c: Include infrun.h.
3622 * mi/mi-interp.c: Include infrun.h.
3623 * mi/mi-main.c: Include infrun.h.
3624 * python/py-threadevent.c: Include infrun.h.
3625
98eb56a4
PA
36262014-05-22 Pedro Alves <palves@redhat.com>
3627
3628 * infrun.c (handle_inferior_event): Store the exit code for
3629 --return-child-result here, instead of ...
3630 (print_exited_reason): ... here.
3631
17b2616c
PA
36322014-05-21 Pedro Alves <palves@redhat.com>
3633
3634 PR gdb/13860
3635 * gdbthread.h (struct thread_control_state): New field
3636 `command_interp'.
3637 * infrun.c (follow_fork): Copy the new thread control field to the
3638 child fork thread.
3639 (clear_proceed_status_thread): Clear the new thread control field.
3640 (proceed): Set the new thread control field.
3641 * interps.h (command_interp): Declare.
3642 * interps.c (command_interpreter): New global.
3643 (command_interp): New function.
3644 (interp_exec): Set `command_interpreter' while here.
3645 * cli-out.c (cli_uiout_dtor): New function.
3646 (cli_ui_out_impl): Install it.
3647 * mi/mi-interp.c: Include cli-out.h.
3648 (mi_cmd_interpreter_exec): Add comment.
3649 (restore_current_uiout_cleanup): New function.
3650 (ui_out_free_cleanup): New function.
3651 (mi_on_normal_stop): If finishing an execution command started by
3652 a CLI command, or any kind of breakpoint-like event triggered,
3653 print the stop event to the output (CLI) stream.
3654 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3655
5166082f
PA
36562014-05-21 Pedro Alves <palves@redhat.com>
3657
3658 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3659 current source line having changed.
3660 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3661 * infrun.c (normal_stop): Adjust call to
3662 set_current_sal_from_frame.
3663 * source.c (clear_lines_listed_range): New function.
3664 (set_current_source_symtab_and_line, identify_source_line): Clear
3665 the lines listed range.
3666 (line_info): Handle the first "info line" after the current source
3667 line having changed.
3668 * stack.c (print_stack_frame): Remove center handling.
3669 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3670 center sal.line.
3671
c1ee2fb3
PA
36722014-05-21 Pedro Alves <palves@redhat.com>
3673
3674 * inf-child.c (inf_child_mourn_inferior): New function.
3675 * inf-child.h (inf_child_mourn_inferior): New declaration.
3676 * darwin-nat.c (darwin_mourn_inferior): Use
3677 inf_child_mourn_inferior.
3678 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3679 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3680 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3681 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3682 * windows-nat.c (windows_mourn_inferior): Likewise.
3683
5c6d4fb2
DE
36842014-05-21 Doug Evans <xdje42@gmail.com>
3685
250748cb 3686 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3687
4a2722c5
DE
36882014-05-21 Doug Evans <xdje42@gmail.com>
3689
17292b30 3690 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3691 (gdbscm_out_of_range_error): Ditto.
3692 (gdbscm_memory_error): Ditto.
250748cb
DE
3693 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3694 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3695 (gdbscm_out_of_range_error): Update.
3696 (gdbscm_memory_error): Update.
3697 (gdbscm_scm_to_target_string_unsafe): Delete.
3698
6a3cb8e8
PA
36992014-05-21 Pedro Alves <palves@redhat.com>
3700
3701 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3702 globals.
3703 (inf_child_open_target): New function.
3704 (inf_child_open): Use inf_child_open_target to push the target
3705 instead of erroring out.
3706 (inf_child_disconnect, inf_child_close)
3707 (inf_child_maybe_unpush_target): New functions.
3708 (inf_child_target): Install inf_child_disconnect and
3709 inf_child_close. Store a pointer to the returned object.
3710 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3711 declarations.
3712 * target.c (auto_connect_native_target): New global.
3713 (show_default_run_target): New function.
3714 (find_default_run_target): Return NULL if automatically connecting
3715 to the native target is disabled.
3716 (_initialize_target): Install set/show auto-connect-native-target.
3717 * NEWS: Mention "set auto-connect-native-target", and "target
3718 native".
3719 * linux-nat.c (super_close): New global.
3720 (linux_nat_close): Call super_close.
3721 (linux_nat_add_target): Store a pointer to the base class's
3722 to_close method.
3723 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3724 inf_child_maybe_unpush.
3725 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3726 already pushed.
3727 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3728 the inferior. Use inf_child_maybe_unpush_target.
3729 (inf_ttrace_attach): Don't push the target if it is already
3730 pushed.
3731 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3732 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3733 after mourning the inferior. Use inf_child_maybe_unpush_target.
3734 (darwin_attach_pid): Don't push the target if it is already
3735 pushed.
3736 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3737 mourning the inferior. Use inf_child_maybe_unpush_target.
3738 (gnu_detach): Use inf_child_maybe_unpush_target.
3739 * go32-nat.c (go32_create_inferior): Don't push the target if it
3740 is already pushed.
3741 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3742 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3743 (procfs_open): Rename to ...
3744 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3745 comments. Can target_preopen before changing node. Call
3746 inf_child_open_target to push the target explicitly.
3747 (procfs_attach): Don't push the target if it is already pushed.
3748 (procfs_detach): Use inf_child_maybe_unpush_target.
3749 (procfs_create_inferior): Don't push the target if it is already
3750 pushed.
3751 (nto_native_ops): New global.
3752 (procfs_open): Reimplement.
3753 (procfs_native_open): New function.
3754 (init_procfs_targets): Install procfs_native_open as to_open of
3755 "target native". Store a pointer to the "native" target in
3756 nto_native_ops.
3757 * procfs.c (procfs_attach): Don't push the target if it is already
3758 pushed.
3759 (procfs_detach): Use inf_child_maybe_unpush_target.
3760 (procfs_mourn_inferior): Only unpush the target after mourning the
3761 inferior. Use inf_child_maybe_unpush_target.
3762 (procfs_init_inferior): Don't push the target if it is already
3763 pushed.
3764 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3765 if it is already pushed.
3766
930ee1b1
PA
37672014-05-21 Pedro Alves <palves@redhat.com>
3768
3769 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3770 and "procfs" targets are now called "native" instead.
3771
1f5d1b13
PA
37722014-05-21 Pedro Alves <palves@redhat.com>
3773
3774 * go32-nat.c (go32_open): Delete.
3775 (go32_target): Don't override the to_open method.
3776
132f8e03
PA
37772014-05-21 Pedro Alves <palves@redhat.com>
3778
3779 * nto-procfs.c (procfs_can_run): New function.
3780 (nto_procfs_ops): New global.
3781 (init_procfs_targets): New, based on procfs_target. Install
3782 "target native" in addition to "target procfs".
3783 (_initialize_procfs): Call init_procfs_targets instead of adding
3784 the target here.
3785
03c136c3
PA
37862014-05-21 Pedro Alves <palves@redhat.com>
3787
3788 * windows-nat.c (windows_target): Don't override to_shortname,
3789 to_longname or to_doc.
3790
a635d0f3
PA
37912014-05-21 Pedro Alves <palves@redhat.com>
3792
3793 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3794 to_doc.
3795
4f9b5133
PA
37962014-05-21 Pedro Alves <palves@redhat.com>
3797
3798 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3799 to_shortname, to_longname or to_doc.
3800
bc85afde
PA
38012014-05-21 Pedro Alves <palves@redhat.com>
3802
3803 * go32-nat.c (go32_target): Don't override to_shortname,
3804 to_longname or to_doc.
3805
4ebfc96e
PA
38062014-05-21 Pedro Alves <palves@redhat.com>
3807
3808 * inf-child.c (inf_child_open): Remove mention of "child".
3809 (inf_child_target): Rename target to "native" instead of "child".
3810
2648dfed
AA
38112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3812
3813 * Makefile.in (SFILES): Delete "regset.c".
3814 (COMMON_OBS): Delete "regset.o".
3815 * regset.c: Remove.
3816 * regset.h (regset_alloc): Delete prototype.
3817
b13feb94
AA
38182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3819
3820 * sparc-linux-tdep.c (sparc32_linux_gregset)
3821 (sparc32_linux_fpregset): New static regset structures.
3822 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3823 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3824 'fpregset' fields.
3825 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3826 (sparc64_linux_fpregset): New static regset structures.
3827 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3828 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3829 New static regset structures.
3830 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3831 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3832 New static regset structures.
3833 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3834 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3835 New static regset structures.
3836 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3837 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3838 New static regset structures.
3839 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3840
b4fd25c9
AA
38412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3842
3843 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3844 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3845 register maps ("regmaps") from "*regset" to "*regmap". Do this
3846 for all regmap types and variables.
3847 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3848 (sparc32_linux_supply_core_gregset)
3849 (sparc32_linux_collect_core_gregset)
3850 (sparc32_linux_supply_core_fpregset)
3851 (sparc32_linux_collect_core_fpregset): Likewise.
3852 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3853 (sparc_gregmap, sparc_fpregmap): ... these.
3854 (sparc_supply_gregset, sparc_collect_gregset)
3855 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3856 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3857 (_initialize_sparc_nat): Rename regmaps.
3858 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3859 (sparc_gregmap, sparc_fpregmap): ... these.
3860 (sparc_supply_gregset, sparc_collect_gregset)
3861 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3862 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3863 Rename macros to...
3864 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3865 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3866 Likewise.
3867 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3868 Rename to...
3869 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3870 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3871 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3872 regmaps.
3873 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3874 (sparc32_bsd_fpregset): Rename to...
3875 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3876 (sparc32_bsd_fpregmap): ... these.
3877 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3878 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3879 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3880 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3881 (struct sparc_gregmap, struct sparc_fpregmap)
3882 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3883 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3884 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3885 (sparc32_supply_regset, sparc32_collect_gregset)
3886 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3887 prototypes.
3888 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3889 (sparc64_linux_ptrace_gregmap): ... this.
3890 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3891 (_initialize_sparc64_linux_nat): Rename regmaps.
3892 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3893 (sparc64_linux_core_gregmap): ... this.
3894 (sparc64_linux_supply_core_gregset)
3895 (sparc64_linux_collect_core_gregset)
3896 (sparc64_linux_supply_core_fpregset)
3897 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3898 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3899 (sparc64_sol2_fpregset): Rename to...
3900 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3901 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3902 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3903 regmaps.
3904 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3905 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3906 (sparc64_bsd_fpregset): Rename to...
3907 (struct sparc_gregmap, sparc64_sol2_gregmap)
3908 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3909 (sparc64_bsd_fpregmap): ... these.
3910 (sparc64_supply_gregset, sparc64_collect_gregset)
3911 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3912 prototypes.
3913 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3914 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3915 (sparc64fbsd_gregmap): ... this.
3916 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3917 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3918 Rename regmaps.
3919 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3920 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3921 (sparc64nbsd_collect_fpregset): Likewise.
3922 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3923 (sparc64nbsd_gregmap): ... this.
3924 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3925 regmaps.
3926 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3927 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3928 (sparc64obsd_gregmap): ... this.
3929 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3930 regmaps.
3931 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3932 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3933 (sparc32nbsd_gregmap): ... this.
3934 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3935 regmaps.
3936
8fea3224
AA
39372014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3938
3939 * score-tdep.c (score7_linux_gregset): New static regset
3940 structure.
3941 (score7_linux_regset_from_core_section): Remove dynamic regset
3942 allocation.
3943 (score_gdbarch_init): Drop allocation of tdep structure.
3944 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3945
24534243
AA
39462014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3947
3948 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3949 regset structures.
3950 (am33_regset_from_core_section): Remove dynamic regset
3951 allocations.
3952
b7195f27
AA
39532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3954
3955 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3956 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3957 structures.
3958 (mips_linux_regset_from_core_section): Remove dynamic regset
3959 allocations.
3960 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3961 'gregset64', 'fpregset', and 'fpregset64'.
3962 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3963 deleted tdep fields.
3964
ecc37a5a
AA
39652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3966
3967 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3968 regset structures.
3969 (amd64_regset_from_core_section): Remove dynamic regset
3970 allocations.
3971 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3972 structure.
3973 (amd64obsd_regset_from_core_section): Remove dynamic regset
3974 allocation.
3975 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3976 Likewise.
3977 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3978 x86-common regset supply function.
3979 * i386-tdep.c (i386_collect_gregset): Make static.
3980 (i386_gregset): New global regset structure.
3981 (i386_fpregset, i386_xstateregset): New static regset structures.
3982 (i386_regset_from_core_section): Remove dynamic regset
3983 allocations.
3984 (i386_gdbarch_init): Remove initialization of tdep fields
3985 'gregset', 'fpregset', and 'xstateregset'.
3986 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3987 'fpregset', and 'xstateregset'.
3988 (i386_collect_gregset): Remove prototype.
3989 (i386_gregset): New declaration.
3990 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3991 structure.
3992 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3993 allocation.
3994
b7611c43
AA
39952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3996
3997 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3998 (arm_linux_vfpregset): New static regset structures.
3999 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4000 regset structures.
4001 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4002 and 'vfpregset' fields.
4003
a069a2bd
AA
40042014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4005
4006 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4007 (aarch64_linux_fpregset): New static regset structures.
4008 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4009 of regset structures.
4010 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4011 'fpregset' fields.
4012
09424cff
AA
40132014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4014
4015 * regset.h (struct regset): Remove gdbarch field.
4016 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4017 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4018 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4019 Likewise.
4020 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4021 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4022 (ppc32_linux_vsxregset): Likewise.
4023 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4024 via the regcache instead of the regset.
4025 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4026 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4027 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4028 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4029 Likewise.
4030
3ca7dae4
AA
40312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4032
4033 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4034 Constify structures.
4035 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4036 (alphanbsd_aout_gregset): Likewise.
4037 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4038 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4039 Likewise.
4040 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4041 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4042 Likewise.
4043 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4044 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4045 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4046 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4047 * m88k-tdep.c (m88k_gregset): Likewise.
4048 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4049 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4050 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4051 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4052 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4053 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4054 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4055 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4056 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4057 Likewise.
4058 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4059 * sh-tdep.h (sh_corefile_gregset): Likewise.
4060 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4061 * vax-tdep.c (vax_gregset): Likewise.
4062
5876f503
JK
40632014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 Fix TLS access for -static -pthread.
4066 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4067 (try_thread_db_load_1): Initialize it.
4068 (thread_db_get_thread_local_address): Call it if LM is zero.
4069 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4070 * target.h (struct target_ops) (to_get_thread_local_address): Add
4071 load_module_addr comment.
4072
0256a6ac
PA
40732014-05-21 Pedro Alves <palves@redhat.com>
4074
4075 * dcache.c (dcache_read_memory_partial): If reading the cache line
4076 fails, fallback to reading just the memory the caller wanted.
4077
227533ac
DE
40782014-05-20 Doug Evans <dje@google.com>
4079
4080 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4081 instead of get_current_arch.
4082
936d2992
PA
40832014-05-20 Pedro Alves <palves@redhat.com>
4084
4085 * NEWS: Mention that compare-sections now works with all targets.
4086
4087 * remote.c (PACKET_qCRC): New enum value.
4088 (remote_verify_memory): Don't send qCRC if the target has no
4089 execution. Use packet_support/packet_ok. If the target doesn't
4090 support the qCRC packet, fallback to a deep memory copy.
4091 (compare_sections_command): Say "target image" instead of "remote
4092 executable".
4093 (_initialize_remote): Add PACKET_qCRC to the list of config
4094 packets that have no associated command. Extend comment.
4095 * target.c (simple_verify_memory, default_verify_memory): New
4096 function.
4097 * target.h (struct target_ops) <to_verify_memory>: Default to
4098 default_verify_memory.
4099 (simple_verify_memory): New declaration.
4100 * target-delegates.c: Regenerate.
4101
e59fa00f
MM
41022014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4103
4104 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4105
f2205de0
HZ
41062014-05-20 Hui Zhu <hui@codesourcery.com>
4107 Yao Qi <yao@codesourcery.com>
4108
4109 PR backtrace/16558
4110 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4111 and change address of sp and pc.
4112
c4e54771
TT
41132014-05-19 Tom Tromey <tromey@redhat.com>
4114
4115 * gdbtypes.c (rank_function): Use XNEWVEC.
4116 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4117
73051182
DE
41182014-05-19 Doug Evans <dje@google.com>
4119
4120 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4121 build_type_unit_groups and moved closer to only caller. Remove
4122 arguments. All references updated. Remove outdated .gdb_index
4123 comment.
4124 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4125 build_type_psymtabs_1.
4126
8832e7e3
DE
41272014-05-19 Doug Evans <dje@google.com>
4128
4129 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4130 n_type_unit_groups, all_type_unit_groups. All uses removed.
4131 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4132 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4133 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4134 (add_type_unit_group_to_table): Delete.
4135
cd8ae15e
DE
41362014-05-19 Doug Evans <dje@google.com>
4137
4138 * eval.c (evaluate_subexp_standard): Add some comments.
4139
08f4850b
DE
41402014-05-17 Doug Evans <xdje42@gmail.com>
4141
4142 * progspace.c (remove_program_space): Delete, unused.
4143 * progspace.h (remove_program_space): Ditto.
4144
bed8455c
DE
41452014-05-17 Doug Evans <xdje42@gmail.com>
4146
4147 * inferior.c (prune_inferiors): Fix comment.
4148 (remove_inferior_command): Call prune_program_spaces.
4149
8d551b02
DE
41502014-05-16 Doug Evans <dje@google.com>
4151
4152 New command line option -D.
4153 * NEWS: Mention it.
4154 * main.c (set_gdb_data_directory): New function.
4155 (captured_main): Recognize -D. Flag error for --data-directory "".
4156 Call set_gdb_data_directory.
4157 (print_gdb_help): Print --data-directory, -D.
4158 * main.h (set_gdb_data_directory): Declare.
4159 * top.c (staged_gdb_datadir): New static global.
4160 (set_gdb_datadir): Call set_gdb_data_directory
4161 (show_gdb_datadir): New function.
4162 (init_main): Update init of data-directory parameter.
4163
18848e28
GF
41642014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4165
4166 Import the "dirfd" gnulib module.
4167 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4168 * gnulib/aclocal.m4: Update.
4169 * gnulib/config.in: Update.
4170 * gnulib/configure: Update.
4171 * gnulib/import/Makefile.am: Update.
4172 * gnulib/import/Makefile.in: Update.
4173 * gnulib/import/dirfd.c: New.
4174 * gnulib/import/m4/dirfd.m4: New.
4175 * gnulib/import/m4/gnulib-cache.m4: Update.
4176 * gnulib/import/m4/gnulib-comp.m4: Update.
4177
95c64f92
YQ
41782014-05-16 Pierre Muller <muller@sourceware.org>
4179 Yao Qi <yao@codesourcery.com>
4180
4181 * valprint.c (print_wchar): Move the code on checking whether
4182 W is a printable wide char to the default branch of switch
4183 statement below. Call wchar_printable instead of gdb_iswprint.
4184
cac395ea
TM
41852014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4186
19679eca 4187 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4188 ldr.w and ldrd instructions.
4189
83655187
DE
41902014-05-15 Doug Evans <dje@google.com>
4191
4192 * dwarf2read.c (read_structure_type): Delete outdated comments.
4193
dd756689
TT
41942014-05-14 Tom Tromey <tromey@redhat.com>
4195
4196 * macrocmd.c (print_macro_definition): Reindent.
4197
75ddda77
DE
41982014-05-13 Doug Evans <xdje42@gmail.com>
4199
4200 * python/py-cmd.c (cmdpy_completer): Add comment.
4201 (completers): Make const.
4202
b0f16a3e
SM
42032014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4204
4205 * infrun.c (resume): Remove should_resume (unused). Move up
4206 declaration of resume_ptid.
4207
033c3379
TT
42082014-05-13 Tom Tromey <tromey@redhat.com>
4209
4210 * language.h (unop_type_check): Remove.
4211 (binop_type_check): Don't declare.
4212
9b44a3a5
AA
42132014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4214
4215 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4216 call to regcache_raw_collect.
4217
303a33fa
SM
42182014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4219
4220 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4221 mi_console->quote as the quoting character.
4222
196100a0
SM
42232014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4224
4225 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4226
f989a1c8
TT
42272014-04-29 Tom Tromey <tromey@redhat.com>
4228
4229 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4230 "show debug varobj".
4231
9404b58f
KM
42322014-05-07 Kyle McMartin <kyle@redhat.com>
4233
4234 Pushed by Joel Brobecker <brobecker@adacore.com>.
4235 * aarch64-tdep.c (aarch64_software_single_step): New function.
4236 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4237 with aarch64_software_single_step.
4238
5e49ba57
JB
42392014-05-05 Joel Brobecker <brobecker@adacore.com>
4240
4241 GDB 7.7.1 released.
4242
c888a17d
KS
42432014-05-05 Keith Seitz <keiths@redhat.com>
4244
4245 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4246 variable or history value is successfully parsed.
4247
290a839c
YQ
42482014-05-05 Yao Qi <yao@codesourcery.com>
4249 Pedro Alves <palves@redhat.com>
4250
4251 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4252 address of blocks that intersects the requested range. Trim
4253 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4254 sections.
4255 * ctf.c (ctf_xfer_partial): Likewise.
4256
91256dc2
YQ
42572014-05-05 Yao Qi <yao@codesourcery.com>
4258
4259 * printcmd.c (display_command): Remove the check to
4260 target_has_execution.
4261
07284463
MK
42622014-05-03 Mark Kettenis <kettenis@gnu.org>
4263
4264 * ppcobsd-nat.c: Include "obsd-nat.h".
4265 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4266 add_target.
4267 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4268
30a1e6cc
SDJ
42692014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4270
4271 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4272 and 16-bit signed and unsigned arguments. Update comment.
4273 (stap_parse_probe_arguments): Extend code to handle such
4274 arguments. Use warning instead of complaint to notify about
4275 unrecognized bitness.
4276
f33da99a
SDJ
42772014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4278
4279 PR breakpoints/16889
4280 * stap-probe.c (stap_parse_probe_arguments): Simplify
4281 check for non-prefixed probes (i.e., probes whose
4282 arguments do not start with "N@"). Always set the
4283 argument type to a sane value.
4284
95cf3b38
DT
42852014-05-01 David Taylor <dtaylor@emc.com>
4286
4287 * remote.c (compare_sections_command): Add -r option to compare
4288 all loadable read-only sections.
4289
1cfdf534
SC
42902014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4291
4292 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4293 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4294 Update all callers.
4295 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4296 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4297 Remove unused CORE_ADDR argument. Update all callers.
4298
ca4f7f8b
PA
42992014-04-29 Pedro Alves <palves@redhat.com>
4300
4301 * remote.c (struct packet_config) <detect>: Extend comment.
4302 (add_packet_config_cmd): Don't set the config's detect or support
4303 fields here.
4304 (init_all_packet_configs): Also initialize the config's 'detect'
4305 field.
4306 (reset_all_packet_configs_support): New function.
4307 (remote_open_1): Call reset_all_packet_configs_support instead of
4308 init_all_packet_configs.
4309 (_initialize_remote): Initialize all packet configs. Assert that
4310 all packets have an associated command, except a few known
4311 outliers.
4312
11c1ba78
JB
43132014-04-28 Joel Brobecker <brobecker@adacore.com>
4314
4315 * dwarf2read.c (read_subrange_type): Handle dynamic
4316 DW_AT_lower_bound attributes.
4317
8739bc53
JB
43182014-04-28 Joel Brobecker <brobecker@adacore.com>
4319
4320 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4321 dynamic bounds before computing its upper bound.
4322 (ada_discrete_type_low_bound): Same as above with the lower bound.
4323
6f8a3220
JB
43242014-04-28 Joel Brobecker <brobecker@adacore.com>
4325
4326 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4327 range types. Adjust the array handling implementation to
4328 take advantage of this change.
4329 (resolve_dynamic_range): New function, mostly extracted from
4330 resolve_dynamic_bounds.
4331 (resolve_dynamic_array): New function, mostly extracted from
4332 resolve_dynamic_bounds.
4333 (resolve_dynamic_bounds): Delete.
4334 (resolve_dynamic_type): Reimplement. Add handling of
4335 TYPE_CODE_RANGE types.
4336
4d072ce4
JB
43372014-04-28 Joel Brobecker <brobecker@adacore.com>
4338
4339 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4340 handling of parallel ___XA types.
4341
52865325
JB
43422014-04-28 Joel Brobecker <brobecker@adacore.com>
4343
4344 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4345 unnecessary second call to static_unwrap_type.
4346
433e77fa
HZ
43472014-04-27 Hui Zhu <hui@codesourcery.com>
4348
4349 * stack.c (print_frame_info): Call do_gdb_disassembly with
4350 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4351
b51a69ee
DE
43522014-04-26 Doug Evans <xdje42@gmail.com>
4353
4354 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4355
7ae1a6a6
PA
43562014-04-25 Pedro Alves <palves@redhat.com>
4357
4358 PR server/16255
4359 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4360 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4361 and newline from built string.
4362 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4363 (linux_ptrace_attach_fail_reason): ... this.
4364 * linux-nat.c (linux_nat_attach): Adjust to use
4365 linux_ptrace_attach_fail_reason.
4366
4082afcc
PA
43672014-04-25 Pedro Alves <palves@redhat.com>
4368
4369 * remote.c (struct remote_state): Remove multi_process_aware,
4370 non_stop_aware, cond_tracepoints, cond_breakpoints,
4371 breakpoint_commands, fast_tracepoints, static_tracepoints,
4372 install_in_trace, disconnected_tracing,
4373 enable_disable_tracepoints, string_tracing, and
4374 augmented_libraries_svr4_read fields.
4375 (remote_multi_process_p): Move further below in the file.
4376 (struct packet_config): Add comments.
4377 (update_packet_config): Delete function.
4378 (show_packet_config_cmd): Use packet_config_support.
4379 (add_packet_config_cmd): Use NULL as set callback.
4380 (packet_ok): "set remote foo-packet"-style commands no longer
4381 change config->supported -- adjust.
4382 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4383 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4384 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4385 (PACKET_QNonStop, PACKET_multiprocess_feature)
4386 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4387 (PACKET_DisconnectedTracing_feature)
4388 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4389 (set_remote_protocol_packet_cmd): Delete function.
4390 (packet_config_support, packet_support): New functions.
4391 (set_remote_protocol_Z_packet_cmd): Don't call
4392 update_packet_config.
4393 (remote_query_attached, remote_pass_signals)
4394 (remote_program_signals, remote_threads_info)
4395 (remote_threads_extra_info, remote_start_remote): Use
4396 packet_support.
4397 (remote_start_remote): Use packet_config_support and
4398 packet_support.
4399 (init_all_packet_configs): Set all packets to unknown support,
4400 instead of calling update_packet_config.
4401 (remote_check_symbols): Use packet_support.
4402 (remote_supported_packet): Unconditionally set the packet config's
4403 support status.
4404 (remote_multi_process_feature, remote_non_stop_feature)
4405 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4406 (remote_breakpoint_commands_feature)
4407 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4408 (remote_install_in_trace_feature)
4409 (remote_disconnected_tracing_feature)
4410 (remote_enable_disable_tracepoint_feature)
4411 (remote_string_tracing_feature)
4412 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4413 (remote_protocol_features): Adjust to use remote_supported_packet
4414 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4415 "ConditionalTracepoints", "ConditionalBreakpoints",
4416 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4417 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4418 "EnableDisableTracepoints", and "tracenz".
4419 (remote_query_supported): Use packet_support.
4420 (remote_open_1): Adjust.
4421 (extended_remote_attach_1): Use packet_support. Switch on the
4422 result of packet_ok instead of checking whether the packet ended
4423 up disabled.
4424 (remote_vcont_resume): Use packet_support.
4425 (remote_resume, remote_stop_ns, fetch_register_using_p)
4426 (remote_prepare_to_store, store_register_using_P)
4427 (check_binary_download, remote_write_bytes): Use packet_support.
4428 (remote_vkill): Use packet_support. Switch on the result of
4429 packet_ok instead of checking whether the packet ended up
4430 disabled.
4431 (extended_remote_supports_disable_randomization): Use
4432 packet_support.
4433 (extended_remote_run): Switch on the result of packet_ok instead
4434 of checking whether the packet ended up disabled.
4435 (remote_insert_breakpoint, remote_remove_breakpoint)
4436 (remote_insert_watchpoint, remote_remove_watchpoint)
4437 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4438 packet_support.
4439 (remote_search_memory): Use packet_config_support.
4440 (remote_get_thread_local_address, remote_get_tib_address)
4441 (remote_hostio_send_command, remote_can_execute_reverse): Use
4442 packet_support.
4443 (remote_supports_cond_tracepoints)
4444 (remote_supports_cond_breakpoints)
4445 (remote_supports_fast_tracepoints)
4446 (remote_supports_static_tracepoints)
4447 (remote_supports_install_in_trace)
4448 (remote_supports_enable_disable_tracepoint)
4449 (remote_supports_string_tracing)
4450 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4451 the packet config says the feature is enabled or disabled.
4452 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4453 (remote_get_trace_status): Use packet_support.
4454 (remote_set_disconnected_tracing): Adjust to check whether the
4455 feature is enabled with packet_support.
4456 (remote_set_trace_buffer_size, remote_use_agent)
4457 (remote_can_use_agent, remote_supports_btrace): Use
4458 packet_support.
4459 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4460 Use packet_config_support.
4461 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4462 the packet config says the feature is enabled or disabled.
4463 (set_range_stepping): Use packet_support.
4464
bdb52a22
TT
44652014-04-25 Tom Tromey <tromey@redhat.com>
4466
4467 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4468 argument.
4469
e9475ead
SA
44702014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4471
4472 * NEWS: Mention support for C99 variable length arrays.
4473
82eacd52
JB
44742014-04-24 Joel Brobecker <brobecker@adacore.com>
4475
4476 * ada-lang.c (standard_exc): Expand introductory comment.
4477
01f9f808
MS
44782014-04-24 Michael Sturm <michael.sturm@mintel.com>
4479 Walfred Tedeschi <walfred.tedeschi@intel.com>
4480
4481 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4482 AVX512 registers.
4483 (amd64_linux_read_description): Add code to handle AVX512 xstate
4484 mask and return respective tdesc.
4485 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4486 and features/i386/x32-avx512-linux.c.
4487 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4488 (amd64_linux_core_read_description): Add code to handle AVX512
4489 xstate mask and return respective tdesc.
4490 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4491 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4492 calculation.
4493 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4494 (tdesc_amd64_avx512_linux): New prototype.
4495 (tdesc_x32_avx512_linux): Likewise.
4496 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4497 features/i386/x32-avx512.c.
4498 (amd64_ymm_avx512_names): New register names for pseudo
4499 registers YMM16-31.
4500 (amd64_ymmh_avx512_names): New register names for raw registers
4501 YMMH16-31.
4502 (amd64_k_names): New register names for K registers.
4503 (amd64_zmmh_names): New register names for ZMM raw registers.
4504 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4505 (amd64_xmm_avx512_names): New register names for XMM16-31
4506 registers.
4507 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4508 registers.
4509 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4510 if feature is present.
4511 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4512 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4513 (AMD64_NUM_REGS): Adjust to new number of registers.
4514 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4515 registers supplied via XSTATE by AVX512 registers.
4516 (i386_linux_read_description): Add case for AVX512.
4517 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4518 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4519 (i386_linux_core_read_description): Add case for AVX512.
4520 (i386_linux_init_abi): Install supported register note section
4521 for AVX512.
4522 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4523 AVX512.
4524 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4525 registers to be number of zmm7h + 1.
4526 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4527 * i386-tdep.c: Include features/i386/i386-avx512.c.
4528 (i386_zmm_names): Add ZMM pseudo register names array.
4529 (i386_zmmh_names): Add ZMM raw register names array.
4530 (i386_k_names): Add K raw register names array.
4531 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4532 registers. AVX512 has 16 more ZMM registers than there are YMM
4533 registers.
4534 (i386_zmmh_regnum_p): Add function to look up register number of
4535 ZMM raw registers.
4536 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4537 (i386_k_regnum_p): Likewise for K raw registers.
4538 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4539 registers added by AVX512.
4540 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4541 registers added by AVX512.
4542 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4543 added by AVX512.
4544 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4545 (i386_pseudo_register_name): Add ZMM pseudo registers.
4546 (i386_zmm_type): Construct and return vector registers type for ZMM
4547 registers.
4548 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4549 ZMM0-31 pseudo registers and K registers.
4550 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4551 and YMM16-31 registers from register cache.
4552 (i386_pseudo_register_write): Add code to write K, ZMM and
4553 YMM16-31 registers.
4554 (i386_register_reggroup_p): Add code to include/exclude AVX512
4555 registers in/from respective register groups.
4556 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4557 registers if feature is present in xcr0.
4558 (i386_gdbarch_init): Add code to initialize AVX512 feature
4559 variables in tdep structure, wire in pseudo registers and call
4560 initialize_tdesc_i386_avx512.
4561 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4562 variables.
4563 (i386_regnum): Add AVX512 registers.
4564 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4565 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4566 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4567 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4568 512 bits wide.
4569 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4570 (i386_ymm_avx512_regnum_p): Likewise.
4571 (i386_k_regnum_p): Likewise.
4572 (i386_zmm_regnum_p): Likewise.
4573 (i386_zmmh_regnum_p): Likewise.
4574 * i387-tdep.c : Update year in copyright notice.
4575 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4576 XSAVE buffer.
4577 (XSAVE_YMM_AVX512_ADDR): New macro.
4578 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4579 XSAVE buffer.
4580 (XSAVE_XMM_AVX512_ADDR): New macro.
4581 (xsave_avx512_k_offset): New table for K register offsets in
4582 XSAVE buffer.
4583 (XSAVE_AVX512_K_ADDR): New macro.
4584 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4585 in XSAVE buffer.
4586 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4587 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4588 buffer.
4589 (i387_collect_xsave): Add code to collect AVX512 registers from
4590 XSAVE buffer.
4591 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4592 of XMM16-31 registers.
4593 (I387_NUM_K_REGS): New define for number of K registers.
4594 (I387_K0_REGNUM): New define for K0 register number.
4595 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4596 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4597 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4598 registers.
4599 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4600 (I387_XMM16_REGNUM): New define for XMM16 register number.
4601 (I387_YMM0_REGNUM): New define for YMM0 register number.
4602 (I387_KEND_REGNUM): New define for last K register number.
4603 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4604 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4605 number.
4606 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4607 number.
4608 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4609 size.
4610 * features/Makefile: Add AVX512 related files.
4611 * features/i386/32bit-avx512.xml: New file.
4612 * features/i386/64bit-avx512.xml: Likewise.
4613 * features/i386/amd64-avx512-linux.c: Likewise.
4614 * features/i386/amd64-avx512-linux.xml: Likewise.
4615 * features/i386/amd64-avx512.c: Likewise.
4616 * features/i386/amd64-avx512.xml: Likewise.
4617 * features/i386/i386-avx512-linux.c: Likewise.
4618 * features/i386/i386-avx512-linux.xml: Likewise.
4619 * features/i386/i386-avx512.c: Likewise.
4620 * features/i386/i386-avx512.xml: Likewise.
4621 * features/i386/x32-avx512-linux.c: Likewise.
4622 * features/i386/x32-avx512-linux.xml: Likewise.
4623 * features/i386/x32-avx512.c: Likewise.
4624 * features/i386/x32-avx512.xml: Likewise.
4625 * regformats/i386/amd64-avx512-linux.dat: New file.
4626 * regformats/i386/amd64-avx512.dat: Likewise.
4627 * regformats/i386/i386-avx512-linux.dat: Likewise.
4628 * regformats/i386/i386-avx512.dat: Likewise.
4629 * regformats/i386/x32-avx512-linux.dat: Likewise.
4630 * regformats/i386/x32-avx512.dat: Likewise.
4631 * NEWS: Add note about new support for AVX512.
4632
4633
08351840
PA
46342014-04-23 Pedro Alves <palves@redhat.com>
4635
4636 * breakpoint.c (insert_bp_location): Tolerate errors if the
4637 breakpoint is set in a user-loaded objfile.
4638 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4639 location is marked shlib_disabled. If the breakpoint is set in a
4640 user-loaded objfile is a GDB-side memory breakpoint, validate it
4641 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4642 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4643 flag.
4644 * mem-break.c (memory_validate_breakpoint): New function.
4645 * objfiles.c (userloaded_objfile_contains_address_p): New
4646 function.
4647 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4648 * target.h (memory_validate_breakpoint): New declaration.
4649
076855f9
PA
46502014-04-23 Pedro Alves <palves@redhat.com>
4651
4652 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4653 the breakpoint is set in a shared library, only suppress
4654 errors for software breakpoints, not hardware breakpoints.
4655
483805cf
PA
46562014-04-22 Pedro Alves <palves@redhat.com>
4657
4658 * infrun.c (schedlock_applies): New function, factored out from
4659 find_thread_needs_step_over.
4660 (find_thread_needs_step_over): Use it.
4661 (switch_back_to_stepped_thread): Always clear trap_expected if the
4662 step over is finished. Return early if scheduler locking applies.
4663 Look for the stepping thread and a potential step-over thread with
4664 a single loop.
4665 (currently_stepping_or_nexting_callback): Delete.
4666
a75fef0e
NC
46672014-04-22 Nick Clifton <nickc@redhat.com>
4668
4669 * NEWS: Mention that ARM sim now supports tracing.
4670
48b6e87e
YQ
46712014-04-22 Yao Qi <yao@codesourcery.com>
4672
4673 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4674 to ...
4675 * tracefile.c (tracefile_fetch_registers): ... it. New
4676 function.
4677 * tracefile.h (tracefile_fetch_registers): Declare.
4678 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4679 tracefile_fetch_registers.
4680
17617f2d
EZ
46812014-04-19 Eli Zaretskii <eliz@gnu.org>
4682
4683 PR gdb/14018
4684 * windows-nat.c (thread_rec): Don't display a warning when
4685 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4686 fails for any reason, set th->suspended to -1, so that we don't
4687 try to resume such a thread. Also, don't return NULL in these
4688 cases, to avoid completely ruin the session due to "PC register is
4689 not available" error.
4690 (do_windows_fetch_inferior_registers): Check errors in
4691 GetThreadContext call.
4692 (windows_continue): Accept an additional argument KILLED; if not
4693 zero, ignore errors in the SetThreadContext call, since the
4694 inferior was killed and is shutting down.
4695 (windows_resume, get_windows_debug_event)
4696 (windows_create_inferior, windows_mourn_inferior)
4697 (windows_kill_inferior): All callers of windows_continue changed
4698 to adjust to its new calling sequence.
4699
5723a6fd
YQ
47002014-04-19 Yao Qi <yao@codesourcery.com>
4701
4702 * ctf.c (ctf_open): Call post_create_inferior.
4703
614d5099
YQ
47042014-04-19 Yao Qi <yao@codesourcery.com>
4705
4706 * ctf.c (handle_id): New static variable.
4707 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4708 value. Get the declaration of event "register" and get length
4709 of field "contents".
4710
dac3e710
YQ
47112014-04-19 Yao Qi <yao@codesourcery.com>
4712
4713 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4714
2bca57ba
SC
47152014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4716
4717 * valops.c (oload_method_static): Remove unnecessary argument
4718 METHOD. Update all callers.
4719
51d48146
PA
47202014-04-18 Pedro alves <palves@redhat.com>
4721 Tom Tromey <tromey@redhat.com>
4722
4723 PR backtrace/15558
4724 * frame.c (get_prev_frame_1): Rename to ...
4725 (get_prev_frame_always): ... this, and make extern. Adjust.
4726 (skip_artificial_frames): Use get_prev_frame_always.
4727 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4728 (get_frame_unwind_stop_reason): Adjust to rename.
4729 * frame.h (get_prev_frame_always): Declare.
4730 * inline-frame.c: Include frame.h.
4731 (inline_frame_this_id): Use get_prev_frame_always.
4732
1bdad2e0
TG
47332014-04-18 Tristan Gingold <gingold@adacore.com>
4734
4735 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4736 code by using bfd_mach_o_get_base_address.
4737
7ce16bd4
UW
47382014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4739
4740 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4741 (spu_ax_pseudo_register_collect): New function.
4742 (spu_ax_pseudo_register_push_stack): Likewise.
4743 (spu_dwarf_reg_to_regnum): Likewise.
4744 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4745
2ed3c037
UW
47462014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4747
4748 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4749 Replace FRAME argument with FRAME_ID.
4750 * gdbarch.c, gdbarch.h: Regenerate.
4751 * findvar.c (default_value_from_register): Add GDBARCH argument;
4752 replace FRAME by FRAME_ID. No longer call get_frame_id.
4753 (value_from_register): Update call to gdbarch_value_from_register.
4754 * value.h (default_value_from_register): Update prototype.
4755 * s390-linux-tdep.c (s390_value_from_register): Update interface
4756 and call to default_value_from_register.
4757 * spu-tdep.c (spu_value_from_register): Likewise.
4758
4759 * findvar.c (address_from_register): Remove TYPE argument.
4760 Do not call value_from_register; use gdbarch_value_from_register
4761 with null_frame_id instead.
4762 * value.h (address_from_register): Update prototype.
4763 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4764 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4765 address_from_register interface change.
4766
71e50e83
YQ
47672014-04-17 Yao Qi <yao@codesourcery.com>
4768
4769 * gdbtypes.h: Update comments to link to types and macros'
4770 definitions.
4771
7a23c549
SC
47722014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4773
4774 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4775
22869d73
KS
47762014-04-16 Keith Seitz <keiths@redhat.com>
4777
4778 PR gdb/15827
4779 * dwarf2read.c (skip_one_die): Check that all relative-offset
4780 sibling DIEs fall within range of the current reader's buffer.
4781 (read_partial_die): Likewise.
4782
c4f87ca6
KS
47832014-04-16 Keith Seitz <keiths@redhat.com>
4784
4785 PR c++/16597
4786 * cp-namespace.c (lookup_symbol_file): If the type name of
4787 `this' is NULL, return immediately.
4788
b50c8614
KS
47892014-04-14 Keith Seitz <keiths@redhat.com>
4790
4791 PR c++/16253
4792 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4793 from symbol_matches_domain in symtab.c. All local callers
4794 of symbol_matches_domain updated.
4795 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4796 search STRUCT_DOMAIN.
4797 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4798 independently. standard_lookup will do that automatically.
4799 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4800 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4801 (cp_lookup_symbol_in_namespace): Likewise.
4802 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4803 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4804 may return a STRUCT_DOMAIN match.
4805 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4806 * cp-support.c: Include language.h.
4807 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4808 VAR_DOMAIN.
4809 * psymtab.c (match_partial_symbol): Compare the requested
4810 domain with the symbol's domain directly.
4811 (lookup_partial_symbol): Likewise.
4812 * symtab.c (lookup_symbol_in_language): Explain when/why
4813 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4814 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4815 appropriate languages.
4816 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4817 and moved to ada-lang.c
4818 (lookup_block_symbol): Explain that this function only returns
4819 symbol matching the requested DOMAIN.
4820 Compare the requested domain with the symbol's domain directly.
4821 (iterate_over_symbols): Compare the requested domain with the
4822 symbol's domain directly.
4823 * symtab.h (symbol_matches_domain): Remove.
4824
3d567982
TT
48252014-04-14 Tom Tromey <tromey@redhat.com>
4826
4827 PR c++/15246:
4828 * c-exp.y (type_aggregate_p): New function.
4829 (qualified_name, classify_inner_name): Use it.
4830 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4831 and TYPE_TARGET_TYPE of an enum type.
4832 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4833 an enum type.
4834 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4835 handle TYPE_DECLARED_CLASS.
4836 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4837 types.
4838 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4839 * valops.c (enum_constant_from_type): New function.
4840 (value_aggregate_elt): Use it.
4841 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4842 TYPE_CODE_ENUM.
4843
c848d642
TT
48442014-04-14 Tom Tromey <tromey@redhat.com>
4845
4846 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4847 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4848 const.
4849 * value.h (value_aggregate_elt): Update.
4850
0626fc76
TT
48512014-04-14 Tom Tromey <tromey@redhat.com>
4852
4853 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4854
5ecaaa66
SA
48552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4856
4857 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4858 (evaluate_subexp_standard): Pass noside argument.
4859 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4860 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4861 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4862 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4863 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4864
1612e0c0
SA
48652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4866
4867 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4868 points to a constant blob.
4869
c451ebe5
SA
48702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4871
4872 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4873 property and store it as the high bound and flag the range accordingly.
4874 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4875 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4876 * gdbtypes.h (enum range_flags): New enum.
4877 (struct range_bounds): Add flags member.
4878
1d42e4c4
SA
48792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4880
4881 * c-typeprint.c (c_type_print_varspec_suffix): Added
4882 check for not yet resolved high bound. If unresolved, print
4883 "variable length" string to the console instead of random
4884 length.
4885
9f1f738a
SA
48862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4887
4888 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4889 value.
4890 (ada_template_to_fixed_record_type_1): Likewise.
4891 (ada_to_fixed_type_1): Likewise.
4892 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4893 (cp_print_value): Likewise.
4894 * d-valprint.c (dynamic_array_type): Likewise.
4895 * findvar.c (address_of_variable): Likewise.
4896 * jv-valprint.c (java_value_print): Likewise.
4897 * valops.c (value_ind): Likewise.
4898 * value.c (coerce_ref): Likewise.
4899
3c8452d4
SA
49002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4901
4902 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4903 value and retrieve the dynamic type size.
4904
4ad88275
SA
49052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4906
4907 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4908 passed to sizeof is dynamic evaluate the argument to compute the length.
4909
80180f79
SA
49102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4911 Joel Brobecker <brobecker@adacore.com>
4912
4913 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4914 (dwarf2_evaluate_property): New function.
4915 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4916 * dwarf2read.c (attr_to_dynamic_prop): New function.
4917 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4918 attribute.
4919 * gdbtypes.c: Include dwarf2loc.h.
4920 (is_dynamic_type): New function.
4921 (resolve_dynamic_type): New function.
4922 (resolve_dynamic_bounds): New function.
4923 (get_type_length): New function.
4924 (check_typedef): Use get_type_length to compute type length.
4925 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4926 (TYPE_LOW_BOUND_KIND): New macro.
4927 (is_dynamic_type): New function prototype.
4928 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4929 to resolve dynamic properties of the type. Update comment.
4930 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4931
a1556843
RH
49322014-04-14 Richard Henderson <rth@redhat.com>
4933
4934 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4935
0be03e84
DE
49362014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4937 Doug Evans <xdje42@gmail.com>
4938
4939 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4940 dereference TYPE_CODE_REF values.
4941
6b662e19
JB
49422014-04-11 Joel Brobecker <brobecker@adacore.com>
4943
4944 Revert the following changes due to regressions:
4945
4946 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4947 (dwarf2_evaluate_property): New function.
4948 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4949 * dwarf2read.c (attr_to_dynamic_prop): New function.
4950 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4951 attribute.
4952 * gdbtypes.c: Include dwarf2loc.h.
4953 (is_dynamic_type): New function.
4954 (resolve_dynamic_type): New function.
4955 (resolve_dynamic_bounds): New function.
4956 (get_type_length): New function.
4957 (check_typedef): Use get_type_length to compute type length.
4958 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4959 (TYPE_LOW_BOUND_KIND): New macro.
4960 (is_dynamic_type): New function prototype.
4961 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4962 to resolve dynamic properties of the type. Update comment.
4963 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4964
4965 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4966 passed to sizeof is dynamic evaluate the argument to compute the length.
4967
4968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4969 value and retrieve the dynamic type size.
4970
4971 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4972 (ada_template_to_fixed_record_type_1): Likewise.
4973 (ada_to_fixed_type_1): Likewise.
4974 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4975 (cp_print_value): Likewise.
4976 * d-valprint.c (dynamic_array_type): Likewise.
4977 * eval.c (evaluate_subexp_with_coercion): Likewise.
4978 * findvar.c (address_of_variable): Likewise.
4979 * jv-valprint.c (java_value_print): Likewise.
4980 * valops.c (value_ind): Likewise.
4981 * value.c (coerce_ref): Likewise.
4982
4983 * c-typeprint.c (c_type_print_varspec_suffix): Added
4984 check for not yet resolved high bound. If unresolved, print
4985 "variable length" string to the console instead of random
4986 length.
4987
4988 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4989 property and store it as the high bound and flag the range accordingly.
4990 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4991 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4992 * gdbtypes.h (enum range_flags): New enum.
4993 (struct range_bounds): Add flags member.
4994
4995 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4996 points to a constant blob.
4997
4998 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4999 (evaluate_subexp_standard): Pass noside argument.
5000 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5001 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5002 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5003 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5004 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5005
245a5f0b
KS
50062014-04-11 Keith Seitz <keiths@redhat.com>
5007
5008 PR c++/16675
5009 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5010 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5011 reference types.
5012
3bce8237
SA
50132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5014
5015 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5016 (evaluate_subexp_standard): Pass noside argument.
5017 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5018 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5019 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5020 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5021 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5022
92b09522
SA
50232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5024
5025 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5026 points to a constant blob.
5027
e1969afb
SA
50282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5029
5030 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5031 property and store it as the high bound and flag the range accordingly.
5032 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5033 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5034 * gdbtypes.h (enum range_flags): New enum.
5035 (struct range_bounds): Add flags member.
5036
b86138fb
SA
50372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5038
5039 * c-typeprint.c (c_type_print_varspec_suffix): Added
5040 check for not yet resolved high bound. If unresolved, print
5041 "variable length" string to the console instead of random
5042 length.
5043
bcd629a4
SA
50442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5045
5046 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5047 (ada_template_to_fixed_record_type_1): Likewise.
5048 (ada_to_fixed_type_1): Likewise.
5049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5050 (cp_print_value): Likewise.
5051 * d-valprint.c (dynamic_array_type): Likewise.
5052 * eval.c (evaluate_subexp_with_coercion): Likewise.
5053 * findvar.c (address_of_variable): Likewise.
5054 * jv-valprint.c (java_value_print): Likewise.
5055 * valops.c (value_ind): Likewise.
5056 * value.c (coerce_ref): Likewise.
5057
04b19544
SA
50582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5059
5060 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5061 value and retrieve the dynamic type size.
5062
26cb189f
SA
50632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5064
5065 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5066 passed to sizeof is dynamic evaluate the argument to compute the length.
5067
37c1ab67
SA
50682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5069
5070 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5071 (dwarf2_evaluate_property): New function.
5072 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5073 * dwarf2read.c (attr_to_dynamic_prop): New function.
5074 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5075 attribute.
5076 * gdbtypes.c: Include dwarf2loc.h.
5077 (is_dynamic_type): New function.
5078 (resolve_dynamic_type): New function.
5079 (resolve_dynamic_bounds): New function.
5080 (get_type_length): New function.
5081 (check_typedef): Use get_type_length to compute type length.
5082 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5083 (TYPE_LOW_BOUND_KIND): New macro.
5084 (is_dynamic_type): New function prototype.
5085 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5086 to resolve dynamic properties of the type. Update comment.
5087 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5088
729efb13
SA
50892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5090
5091 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5092 declaring high/low bounds and change uses accordingly. Call
5093 create_range_type instead of create_static_range_type.
5094 * gdbtypes.c (create_range_type): New function.
5095 (create_range_type): Convert bounds into struct bound_prop and pass
5096 them to create_range_type.
5097 * gdbtypes.h (struct bound_prop): New struct.
5098 (create_range_type): New function prototype.
5099 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5100 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5101 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5102 part of the bound.
5103 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5104
0c9c3474
SA
51052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5106
5107 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5108 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5109 * ada-lang.c: All uses of create_range_type updated.
5110 * coffread.c: All uses of create_range_type updated.
5111 * dwarf2read.c: All uses of create_range_type updated.
5112 * f-exp.y: All uses of create_range_type updated.
5113 * m2-valprint.c: All uses of create_range_type updated.
5114 * mdebugread.c: All uses of create_range_type updated.
5115 * stabsread.c: All uses of create_range_type updated.
5116 * valops.c: All uses of create_range_type updated.
5117 * valprint.c: All uses of create_range_type updated.
5118
9d497a19
PA
51192014-04-10 Pedro Alves <palves@redhat.com>
5120
5121 * breakpoint.c (single_step_breakpoints)
5122 (single_step_gdbarch): Move up in the file.
5123 (one_breakpoint_xfer_memory): New function, factored out from ...
5124 (breakpoint_xfer_memory): ... here. Also process single-step
5125 breakpoints.
5126
15a9128a
TG
51272014-04-09 Tristan Gingold <gingold@adacore.com>
5128
5129 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5130 comments.
5131 (darwin_decode_exception_message): Free port only after use.
5132
9c97a070
PL
51332014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5134
5135 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5136 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5137 when setting the size of call_length.
5138
7af389b8
SC
51392014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5140
5141 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5142 dereference TYPE_CODE_REF values.
5143
86ad98c3
JB
51442014-04-07 Joel Brobecker <brobecker@adacore.com>
5145
5146 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5147 end of warning message.
5148
b0aeadb3
DE
51492014-04-03 Doug Evans <dje@google.com>
5150
5151 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5152 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5153
5979d6b6
AM
51542014-04-02 Alan Modra <amodra@gmail.com>
5155
5156 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5157 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5158 (struct symbol_file_add_from_memory_args): Add size field.
5159 (find_vdso_size): New function.
5160 (add_vsyscall_page): Attempt to find vdso size.
5161
0d60c288
DE
51622014-04-01 Doug Evans <dje@google.com>
5163
5164 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5165
a41f2563
TG
51662014-04-01 Tristan Gingold <gingold@adacore.com>
5167
5168 * darwin-nat.c (darwin_encode_reply): Add prototype.
5169 (darwin_decode_exception_message): Reply to unknown inferiors.
5170 (darwin_decode_message): Handle message by id. Ignore message
5171 to unknown inferior.
5172 (darwin_wait): Discard unknown messages, add debug trace.
5173
11a865c8
DE
51742014-03-31 Doug Evans <dje@google.com>
5175
5176 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5177 comp_dir_string.
5178
770e7fc7
DE
51792014-03-31 Doug Evans <dje@google.com>
5180
5181 New option "set print symbol-loading".
5182 * NEWS: Mention it.
5183 * solib.c (solib_read_symbols): Only print symbol loading messages
5184 if requested.
5185 (solib_add): If symbol loading is in "brief" mode, notify user
5186 symbols are being loaded.
5187 (reload_shared_libraries_1): Ditto.
5188 * symfile.c (print_symbol_loading_off): New static global.
5189 (print_symbol_loading_brief): New static global.
5190 (print_symbol_loading_full): New static global.
5191 (print_symbol_loading_enums): New static global.
5192 (print_symbol_loading): New static global.
5193 (print_symbol_loading_p): New function.
5194 (symbol_file_add_with_addrs): Only print symbol loading messages
5195 if requested.
5196 (_initialize_symfile): Register "print symbol-loading" set/show
5197 command.
5198 * symfile.h (print_symbol_loading_p): Declare.
5199
c32c64b7
DE
52002014-03-30 Doug Evans <xdje42@gmail.com>
5201
5202 * infrun.c (set_last_target_status): New function.
5203 (handle_inferior_event): Call it.
5204
7c0bc051
DE
52052014-03-30 Doug Evans <xdje42@gmail.com>
5206
5207 * inferior.h (enum stop_kind): Improve comment.
5208
8776cfe9
JB
52092014-03-28 Joel Brobecker <brobecker@adacore.com>
5210
5211 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5212 a reference, strip the reference layer before calling
5213 the lang_ops value_has_mutated callback.
5214
410a0ff2
SDJ
52152014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5216
5217 Remove some globals from our parser.
5218 * language.c (unk_lang_parser): Add "struct parser_state"
5219 argument.
5220 * language.h (struct language_defn) <la_parser>: Likewise.
5221 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5222 (initialize_expout): Add "struct parser_state" argument.
5223 Rewrite function to use the parser state.
5224 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5225 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5226 write_exp_elt_longcst, write_exp_elt_dblcst,
5227 write_exp_elt_decfloatcst, write_exp_elt_type,
5228 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5229 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5230 write_dollar_variable): Likewise.
5231 (parse_exp_in_context_1): Use parser state.
5232 (insert_type_address_space): Add "struct parser_state" argument.
5233 Use parser state.
5234 (increase_expout_size): New function.
5235 * parser-defs.h: Forward declare "struct language_defn" and
5236 "struct parser_state".
5237 (expout, expout_size, expout_ptr): Remove extern declarations.
5238 (parse_gdbarch, parse_language): Rewrite macro declarations to
5239 accept the parser state.
5240 (struct parser_state): New struct.
5241 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5242 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5243 write_exp_elt_decfloatcst, write_exp_elt_type,
5244 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5245 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5246 write_exp_msymbol, write_dollar_variable,
5247 mark_struct_expression, insert_type_address_space): Add "struct
5248 parser_state" argument.
5249 (increase_expout_size): New function.
5250 * utils.c (do_clear_parser_state): New function.
5251 (make_cleanup_clear_parser_state): Likewise.
5252 * utils.h (make_cleanup_clear_parser_state): New function
5253 prototype.
5254 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5255 Update calls to write_exp* in order to pass the parser state.
5256 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5257 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5258 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5259 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5260 * stap-probe.c (stap_parse_register_operand): Likewise.
5261 (stap_parse_single_operand): Likewise.
5262 (stap_parse_argument_1): Likewise.
5263 (stap_parse_argument): Use parser state.
5264 * stap-probe.h: Include "parser-defs.h".
5265 (struct stap_parse_info) <pstate>: New field.
5266 * c-exp.y (parse_type): Rewrite to use parser state.
5267 (yyparse): Redefine to c_parse_internal.
5268 (pstate): New global variable.
5269 (parse_number): Add "struct parser_state" argument.
5270 (write_destructor_name): Likewise.
5271 (type_exp): Update calls to write_exp* and similars in order to
5272 use parser state.
5273 (exp1, exp, variable, qualified_name, space_identifier,
5274 typename, typebase): Likewise.
5275 (write_destructor_name, parse_number, lex_one_token,
5276 classify_name, classify_inner_name, c_parse): Add "struct
5277 parser_state" argument. Update function to use parser state.
5278 * c-lang.h: Forward declare "struct parser_state".
5279 (c_parse): Add "struct parser_state" argument.
5280 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5281 (yyparse): Redefine macro to ada_parse_internal.
5282 (pstate): New variable.
5283 (write_int, write_object_renaming, write_var_or_type,
5284 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5285 type_int, type_long, type_long_long, type_float, type_double,
5286 type_long_double, type_char, type_boolean, type_system_address):
5287 Add "struct parser_state" argument.
5288 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5289 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5290 var_or_type, aggregate, aggregate_component_list,
5291 positional_list, others, component_group,
5292 component_associations): Update calls to write_exp* and similar
5293 functions in order to use parser state.
5294 (ada_parse, write_var_from_sym, write_int,
5295 write_exp_op_with_string, write_object_renaming,
5296 find_primitive_type, write_selectors, write_ambiguous_var,
5297 write_var_or_type, write_name_assoc, type_int, type_long,
5298 type_long_long, type_float, type_double, type_long_double,
5299 type_char, type_boolean, type_system_address): Add "struct
5300 parser_state" argument. Adjust function to use parser state.
5301 * ada-lang.c (parse): Likewise.
5302 * ada-lang.h: Forward declare "struct parser_state".
5303 (ada_parse): Add "struct parser_state" argument.
5304 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5305 calls to both functions.
5306 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5307 parser state.
5308 (yyparse): Redefine macro to f_parse_internal.
5309 (pstate): New variable.
5310 (parse_number): Add "struct parser_state" argument.
5311 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5312 and similars in order to use parser state.
5313 (parse_number): Adjust code to use parser state.
5314 (yylex): Likewise.
5315 (f_parse): New function.
5316 * f-lang.h: Forward declare "struct parser_state".
5317 (f_parse): Add "struct parser_state" argument.
5318 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5319 parser state.
5320 (yyparse): Redefine macro for java_parse_internal.
5321 (pstate): New variable.
5322 (push_expression_name, push_expression_name, insert_exp): Add
5323 "struct parser_state" argument.
5324 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5325 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5326 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5327 PostIncrementExpression, PostDecrementExpression,
5328 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5329 UnaryExpressionNotPlusMinus, CastExpression,
5330 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5331 RelationalExpression, EqualityExpression, AndExpression,
5332 ExclusiveOrExpression, InclusiveOrExpression,
5333 ConditionalAndExpression, ConditionalOrExpression,
5334 ConditionalExpression, Assignment, LeftHandSide): Update
5335 calls to write_exp* and similars in order to use parser state.
5336 (parse_number): Ajust code to use parser state.
5337 (yylex): Likewise.
5338 (java_parse): New function.
5339 (push_variable): Add "struct parser_state" argument. Adjust
5340 code to user parser state.
5341 (push_fieldnames, push_qualified_expression_name,
5342 push_expression_name, insert_exp): Likewise.
5343 * jv-lang.h: Forward declare "struct parser_state".
5344 (java_parse): Add "struct parser_state" argument.
5345 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5346 parser state.
5347 (yyparse): Redefine macro to m2_parse_internal.
5348 (pstate): New variable.
5349 (type_exp, exp, fblock, variable, type): Update calls to
5350 write_exp* and similars to use parser state.
5351 (yylex): Likewise.
5352 (m2_parse): New function.
5353 * m2-lang.h: Forward declare "struct parser_state".
5354 (m2_parse): Add "struct parser_state" argument.
5355 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5356 * objc-lang.h: Forward declare "struct parser_state".
5357 (end_msglist): Add "struct parser_state" argument.
5358 * p-exp.y (parse_type): Rewrite macro to use parser state.
5359 (yyparse): Redefine macro to pascal_parse_internal.
5360 (pstate): New variable.
5361 (parse_number): Add "struct parser_state" argument.
5362 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5363 write_exp* and similars in order to use parser state.
5364 (parse_number, yylex): Adjust code to use parser state.
5365 (pascal_parse): New function.
5366 * p-lang.h: Forward declare "struct parser_state".
5367 (pascal_parse): Add "struct parser_state" argument.
5368 * go-exp.y (parse_type): Rewrite macro to use parser state.
5369 (yyparse): Redefine macro to go_parse_internal.
5370 (pstate): New variable.
5371 (parse_number): Add "struct parser_state" argument.
5372 (type_exp, exp1, exp, variable, type): Update calls to
5373 write_exp* and similars in order to use parser state.
5374 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5375 to use parser state.
5376 (go_parse): Likewise.
5377 * go-lang.h: Forward declare "struct parser_state".
5378 (go_parse): Add "struct parser_state" argument.
5379
342587c4
DE
53802014-03-27 Doug Evans <dje@google.com>
5381
5382 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5383
33e80786
DE
53842014-03-27 Doug Evans <dje@google.com>
5385
5386 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5387 Remove argument abbrev_section. All callers updated.
5388
1dbab08b
DE
53892014-03-27 Doug Evans <dje@google.com>
5390
5391 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5392 addr_base, ranges_base.
5393
318d3177
KS
53942014-03-26 Keith Seitz <keiths@redhat.com>
5395
5396 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5397 types, not VAR_DOMAIN.
5398
1e54db15
SL
53992014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5400
5401 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5402 "ra" registers.
5403 * features/nios2-linux.c: Regenerated.
5404 * features/nios2.c: Regenerated.
5405
d3839ede
PA
54062014-03-25 Pedro Alves <palves@redhat.com>
5407
5408 * cli/cli-script.c (script_from_file): Force the interpreter to
5409 sync mode.
5410
7588d2ec
PL
54112014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5412
5413 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5414 small stack allocation.
5415
a6290449
TG
54162014-03-24 Tristan Gingold <gingold@adacore.com>
5417
5418 * darwin-nat.c (exc_server): Remove unused prototype.
5419 (darwin_dump_message): Correctly display data on x86_64.
5420 (darwin_encode_reply): Fix style.
5421 Add comments and fix indentation.
5422
31ae9d24 54232014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5424
5425 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5426
6339bfc4
DE
54272014-03-22 Doug Evans <xdje42@gmail.com>
5428
5429 * infcmd.c: Whitespace fixes.
5430 (interrupt_command): Merge two function comments into one.
5431
0a07590b
DE
54322014-03-22 Doug Evans <xdje42@gmail.com>
5433
5434 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5435 All uses updated.
5436
b55fbac4
YQ
54372014-03-22 Yao Qi <yao@codesourcery.com>
5438
5439 * remote.c (target_read_live_memory): Remove.
5440 (memory_xfer_live_readonly_partial): Rename it to
5441 remote_xfer_live_readonly_partial. Remove argument 'object'.
5442 All callers updated. Call remote_read_bytes_1
5443 instead of target_read_live_memory.
5444 * tracepoint.c (set_traceframe_number): Remove.
5445 (make_cleanup_restore_traceframe_number): Likewise .
5446 * tracepoint.h (set_traceframe_number): Remove declaration.
5447 (make_cleanup_restore_traceframe_number): Likewise.
5448
9217e74e
YQ
54492014-03-22 Yao Qi <yao@codesourcery.com>
5450
5451 * remote.c (remote_read_bytes): Move code on reading from the
5452 remote stub to ...
5453 (remote_read_bytes_1): ... here. New function.
5454
8acf9577
YQ
54552014-03-22 Yao Qi <yao@codesourcery.com>
5456
5457 * ctf.c (ctf_xfer_partial): Check the return value of
5458 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5459 return TARGET_XFER_UNAVAILABLE.
5460 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5461 * target.c (target_read_live_memory): Move it to remote.c.
5462 (memory_xfer_live_readonly_partial): Likewise.
5463 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5464 * remote.c (target_read_live_memory): Moved from target.c.
5465 (memory_xfer_live_readonly_partial): Likewise.
5466 (remote_read_bytes): Factored out from
5467 memory_xfer_partial_1.
5468
feef67ab
DE
54692014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5470
5471 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5472 NULL pointer.
5473
b65dc60b
PA
54742014-03-21 Pedro Alves <palves@redhat.com>
5475
5476 * infrun.c (normal_stop): Extend comment.
5477
b4ab256d
HZ
54782014-03-21 Hui Zhu <hui@codesourcery.com>
5479 Pedro Alves <palves@redhat.com>
5480
5481 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5482 static buffer.
5483 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5484 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5485 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5486
deba7593
MR
54872014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5488
5489 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5490 `z' formatted output modifier.
5491
1bff71c3
SDJ
54922014-03-20 Tom Tromey <tromey@redhat.com>
5493 Sergio Durigan Junior <sergiodj@redhat.com>
5494
5495 * probe.c (parse_probes): Turn assert into an ordinary error.
5496 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5497 exceptions when parsing probes. Rearrange the code for clarity.
5498
90e28950
TT
54992014-03-20 Tom Tromey <tromey@redhat.com>
5500
5501 PR gdb/14135
5502 * top.c (execute_command): Only dispatch events if the command
5503 started the target.
5504
beb460e8
PA
55052014-03-20 Tom Tromey <tromey@redhat.com>
5506
5507 PR cli/15718
5508 * infcall.c: Include event-top.h.
5509 (run_inferior_call): Call async_disable_stdin if needed.
5510
99619bea
PA
55112014-03-20 Pedro Alves <palves@redhat.com>
5512
5513 * infrun.c (prepare_to_proceed): Delete.
5514 (thread_still_needs_step_over): New function.
5515 (find_thread_needs_step_over): New function.
5516 (proceed): If the current thread needs a step-over, set its
5517 steping_over_breakpoint flag. Adjust to use
5518 find_thread_needs_step_over instead of prepare_to_proceed.
5519 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5520 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5521 breakpoint.
5522 (switch_back_to_stepped_thread): Step over breakpoints of all
5523 threads not the stepping thread, before switching back to the
5524 stepping thread.
5525
2adfaa28
PA
55262014-03-20 Pedro Alves <palves@redhat.com>
5527
5528 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5529 extern.
5530 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5531 * infrun.c (saved_singlestep_ptid)
5532 (stepping_past_singlestep_breakpoint): Delete.
5533 (resume): Remove stepping_past_singlestep_breakpoint handling.
5534 (proceed): Store the prev_pc of the stepping thread too.
5535 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5536 singlestep_pc.
5537 (enum infwait_states): Delete infwait_thread_hop_state.
5538 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5539 field.
5540 (handle_inferior_event): Adjust.
5541 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5542 handling and the thread-hop code. Before removing single-step
5543 breakpoints, check whether the thread hit a single-step breakpoint
5544 of another thread. If it did, the trap is not a random signal.
5545 (switch_back_to_stepped_thread): If the event thread hit a
5546 single-step breakpoint, unblock it before switching to the
5547 stepping thread. Handle the case of the stepped thread having
5548 advanced already.
5549 (keep_going): Handle the case of the current thread moving past a
5550 single-step breakpoint.
5551
31e77af2
PA
55522014-03-20 Pedro Alves <palves@redhat.com>
5553
5554 PR breakpoints/7143
5555 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5556 are being stepped over.
5557 (breakpoint_address_match): Make extern.
5558 * breakpoint.h (breakpoint_address_match): New declaration.
5559 * inferior.h (stepping_past_instruction_at): New declaration.
5560 * infrun.c (struct step_over_info): New type.
5561 (step_over_info): New global.
5562 (set_step_over_info, clear_step_over_info)
5563 (stepping_past_instruction_at): New functions.
5564 (handle_inferior_event): Clear the step-over info when
5565 trap_expected is cleared.
5566 (resume): Remove now stale comment.
5567 (clear_proceed_status): Clear step-over info.
5568 (proceed): Adjust step-over handling to set or clear the step-over
5569 info instead of removing all breakpoints.
5570 (handle_signal_stop): When setting up a thread-hop, don't remove
5571 breakpoints here.
5572 (stop_stepping): Clear step-over info.
5573 (keep_going): Adjust step-over handling to set or clear step-over
5574 info and then always inserting breakpoints, instead of removing
5575 all breakpoints when stepping over one.
5576
b9f437de
PA
55772014-03-20 Pedro Alves <palves@redhat.com>
5578
5579 * infrun.c (previous_inferior_ptid): Adjust comment.
5580 (deferred_step_ptid): Delete.
5581 (infrun_thread_ptid_changed, prepare_to_proceed)
5582 (init_wait_for_inferior): Adjust.
5583 (handle_signal_stop): Delete deferred_step_ptid handling.
5584
06c868a8
JK
55852014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5586
5587 PR gdb/15358
5588 * defs.h (sync_quit_force_run): New declaration.
5589 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5590 * event-top.c (async_sigterm_handler): New declaration.
5591 (async_sigterm_token): New variable.
5592 (async_init_signals): Create also async_sigterm_token.
5593 (async_sigterm_handler): New function.
5594 (sync_quit_force_run): New variable.
5595 (handle_sigterm): Replace quit_force call by other calls.
5596 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5597
dea80df0
MR
55982014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5599
5600 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5601 offset into SPE pseudo registers.
5602
0c7e1a46
PA
56032014-03-18 Pedro Alves <palves@redhat.com>
5604
5605 PR gdb/13860
5606 * inferior.h (print_stop_event): Declare.
5607 * infrun.c (print_stop_event): New, factored out from ...
5608 (normal_stop): ... this.
5609 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5610 of bpstat_print/print_stack_frame.
5611
9c1fcd01
TT
56122014-03-17 Tom Tromey <tromey@redhat.com>
5613
5614 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5615
11aa919a
PMR
56162014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5617
5618 * ada-lang.c (decode_constrained_packed_array): Perform a
5619 minimal coercion for reference with coerce_ref instead of
5620 ada_coerce_ref.
5621
d4ccb5e0
TG
56222014-03-17 Tristan Gingold <gingold@adacore.com>
5623
5624 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5625 (darwin_solib_create_inferior_hook): Emit a warning if version
5626 is unhandled.
5627
49840f2a
UW
56282014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5629
5630 * python/py-value.c (get_field_flag): Cast flag_name argument to
5631 PyObject_GetAttrString to support Python 2.4.
5632
ed4123e5
JK
56332014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5634
5635 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5636 (Global Maintainers): Remove Jan Kratochvil.
5637
d6b64346
PA
56382014-03-14 Pedro Alves <palves@redhat.com>
5639
5640 * inferior.h (terminal_ours_for_output): Rename to ...
5641 (child_terminal_ours_for_output): ... this.
5642 (terminal_save_ours): Rename to ...
5643 (child_terminal_save_ours): ... this.
5644 (terminal_ours): Rename to ...
5645 (child_terminal_ours): ... this.
5646 (terminal_inferior): Rename to ...
5647 (child_terminal_inferior): ... this.
5648 (terminal_init_inferior): Rename to ...
5649 (child_terminal_init_inferior): ... this.
5650 (terminal_init_inferior_with_pgrp): Rename to ...
5651 (child_terminal_init_inferior_with_pgrp): ... this.
5652 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5653 (child_terminal_init_with_pgrp): ... this.
5654 (terminal_save_ours): Rename to ...
5655 (child_terminal_save_ours): ... this.
5656 (terminal_init_inferior): Rename to ...
5657 (child_terminal_init): ... this. Adjust.
5658 (terminal_inferior): Rename to ...
5659 (child_terminal_inferior): ... this.
5660 (terminal_ours_for_output): Rename to ...
5661 (child_terminal_ours_for_output): ... this. Adjust.
5662 (terminal_ours): Rename to ...
5663 (child_terminal_ours): ... this.
5664 (terminal_ours_1): Rename to ...
5665 (child_terminal_ours_1): ... this. Adjust.
5666 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5667 * windows-nat.c (do_initial_windows_stuff): Adjust.
5668 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5669 (gnu_terminal_init): ... this. Adjust.
5670 (gnu_target): Adjust.
5671 * inf-child.c (inf_child_target): Adjust.
5672
5a1e8c7a
DE
56732014-03-13 Doug Evans <xdje42@gmail.com>
5674
5675 PR guile/16612
5676 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5677 new eq?-hashtab.
5678
350e1a76
DE
56792014-03-13 Doug Evans <xdje42@gmail.com>
5680
5681 * value.c (record_latest_value): Call release_value_or_incref
5682 instead of release_value.
5683
a69900ae
PA
56842014-03-13 Pedro Alves <palves@redhat.com>
5685
5686 * procfs.c (procfs_target): Don't override to_shortname,
5687 to_longname or to_doc.
5688
5db9f0bd
PA
56892014-03-13 Pedro Alves <palves@redhat.com>
5690
5691 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5692 Unix in user visible strings.
5693
5e3a2c38
SS
56942014-03-12 Stan Shebs <stan@codesourcery.com>
5695
5696 * gdbtypes.h: Annotate comments for Doxygen, add a page
5697 block comment with some general info.
5698
8bc2fe48
PA
56992014-03-12 Pedro Alves <palves@redhat.com>
5700
5701 * infcmd.c (prepare_execution_command): New function, factored out
5702 from several execution commands.
5703 (run_command_1, continue_command, step_1, jump_command)
5704 (signal_command, until_command, advance_command, finish_command)
5705 (attach_command): Use prepare_execution_command.
5706
638c5f49
OJ
57072014-03-12 Omair Javaid <omair.javaid@linaro.org>
5708
5709 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5710 (MAX_BPTS): Define.
5711 (MAX_WPTS): Define.
5712 (struct arm_linux_thread_points): Removed.
5713 (struct arm_linux_process_info): New.
5714 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5715 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5716 (arm_linux_find_breakpoints_by_tid): Removed.
5717 (struct arch_lwp_info): New.
5718 (arm_linux_find_process_pid): New functions.
5719 (arm_linux_add_process): New functions.
5720 (arm_linux_process_info_get): New functions.
5721 (arm_linux_forget_process): New function.
5722 (arm_linux_get_debug_reg_state): New function.
5723 (struct update_registers_data): New.
5724 (update_registers_callback): New function.
5725 (arm_linux_insert_hw_breakpoint1): Updated.
5726 (arm_linux_remove_hw_breakpoint1): Updated.
5727 (arm_linux_insert_hw_breakpoint): Updated.
5728 (arm_linux_remove_hw_breakpoint): Updated.
5729 (arm_linux_insert_watchpoint): Updated.
5730 (arm_linux_remove_watchpoint): Updated.
5731 (arm_linux_new_thread): Updated.
5732 (arm_linux_prepare_to_resume): New function.
5733 (arm_linux_new_fork): New function.
5734 (_initialize_arm_linux_nat): Updated.
5735
6d03af93
PA
57362014-03-12 Pedro Alves <palves@redhat.com>
5737
5738 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5739
b3ccfe11
TT
57402014-03-12 Tom Tromey <tromey@redhat.com>
5741
5742 * inf-child.c (return_zero): New function.
5743 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5744 * aix-thread.c (aix_thread_inferior_created): New function.
5745 (aix_thread_attach): Remove.
5746 (init_aix_thread_ops): Don't set to_attach.
5747 (_initialize_aix_thread): Register inferior_created observer.
5748 * corelow.c (init_core_ops): Don't set to_attach or
5749 to_create_inferior.
5750 * exec.c (init_exec_ops): Don't set to_attach or
5751 to_create_inferior.
5752 * infcmd.c (run_command_1): Use find_run_target. Make direct
5753 target calls.
5754 (attach_command): Use find_attach_target. Make direct target
5755 calls.
5756 * record-btrace.c (init_record_btrace_ops): Don't set
5757 to_create_inferior.
5758 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5759 Remove.
5760 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5761 set to_create_inferior.
5762 * target.c (complete_target_initialization): Add assertion.
5763 (target_create_inferior): Remove.
5764 (find_default_attach, find_default_create_inferior): Remove.
5765 (find_attach_target, find_run_target): New functions.
5766 (find_default_is_async_p, find_default_can_async_p)
5767 (target_supports_non_stop, target_attach): Remove.
5768 (init_dummy_target): Don't set to_create_inferior or
5769 to_supports_non_stop.
5770 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5771 TARGET_DEFAULT_FUNC.
5772 <to_create_inferior>: Add comment.
5773 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5774 TARGET_DEFAULT_RETURN.
5775 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5776 (find_attach_target, find_run_target): Declare.
5777 (target_create_inferior): Remove.
5778 (target_has_execution_1): Update comment.
5779 (target_supports_non_stop): Remove.
5780 * target-delegates.c: Rebuild.
5781
91f83b02
PA
57822014-03-12 Pedro Alves <palves@redhat.com>
5783
5784 * inf-child.h: Update comment to not mention Unix.
5785
f1aea813
PA
57862014-03-12 Pedro Alves <palves@redhat.com>
5787
5788 * inf-child.c: Update top comment to not mention Unix. Add
5789 generic comment describing how this target is meant to be used.
5790 (inf_child_post_attach, inf_child_post_startup_inferior)
5791 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5792 Unix in comment.
5793
ee8e9165
PA
57942014-03-12 Pedro Alves <palves@redhat.com>
5795
5796 * nto-procfs.c: Include inf-child.h.
5797 (procfs_ops): Delete global.
5798 (procfs_can_run): Delete method.
5799 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5800 target pointer instead of referencing procfs_ops.
5801 (procfs_prepare_to_store): Delete.
5802 (init_procfs_ops): Delete function.
5803 (procfs_target): New function, based on init_procfs_ops, but
5804 inherit inf_child_target.
5805 (_initialize_procfs): Use procfs_target.
5806
51a9c8c5
PA
58072014-03-12 Pedro Alves <palves@redhat.com>
5808
5809 * windows-nat.c: Include inf-child.h.
5810 (windows_ops): Delete global.
5811 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5812 methods.
5813 (init_windows_ops): Delete function.
5814 (windows_target): New function, based on init_windows_ops, but
5815 inherit inf_child_target.
5816 (_initialize_windows_nat): Use windows_target. Install x86
5817 specific target methods here.
5818
c1966e26
DE
58192014-03-10 Doug Evans <xdje42@gmail.com>
5820
5821 * guile/guile.c (call_initialize_gdb_module): New function.
5822 (initialize_guile): Replace call to scm_init_guile with call to
5823 scm_with_guile.
5824
023db19c
JB
58252014-03-10 Joel Brobecker <brobecker@adacore.com>
5826
5827 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5828 in call to TYPE_CODE macro.
5829
5ec18f2b
JG
58302014-03-10 Jerome Guitton <guitton@adacore.com>
5831
8668be63
JB
5832 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5833 Resolve tagged types to full view.
5ec18f2b 5834
7d03f2eb
HZ
58352014-03-10 Hui Zhu <hui@codesourcery.com>
5836
5837 * target.h (target_insert_breakpoint): Remove "hardware" from its
5838 comments.
5839
c5164cbc
DE
58402014-03-07 Doug Evans <dje@google.com>
5841
5842 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5843
c4a3fee2
DE
58442014-03-07 Doug Evans <dje@google.com>
5845
5846 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5847 Remove unused local comp_dir_attr. Assert exactly one of
5848 stub_comp_unit_die, stub_comp_dir is non-NULL.
5849
3156469c
JB
58502014-03-07 Joel Brobecker <brobecker@adacore.com>
5851
5852 * target.h (complete_target_initialization, add_target):
5853 Add comment.
5854
c1a7b7c6
PA
58552014-03-07 Pedro Alves <palves@redhat.com>
5856
5857 * go32-nat.c: Include inf-child.h.
5858 (go32_ops): Delete global.
5859 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5860 Delete methods.
5861 (go32_create_inferior): Push the passed in target pointer instead
5862 of referencing go32_ops.
5863 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5864 (go32_target): New function, based on init_go32_ops, but inherit
5865 inf_child_target.
5866 (_initialize_go32_nat): Use go32_target. Move parts of
5867 init_go32_ops here.
5868
d3c1a85f
JB
58692014-03-06 Joel Brobecker <brobecker@adacore.com>
5870
5871 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5872 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5873 SYMBOL_VALUE_ADDRESS.
5874 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5875
5fa1d40e
YQ
58762014-03-06 Yao Qi <yao@codesourcery.com>
5877
5878 * breakpoint.c (get_tracepoint_by_number): Remove argument
5879 optional_p. All callers updated. Adjust comments. Update
5880 output message.
5881 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5882
0c13193f
YQ
58832014-03-06 Yao Qi <yao@codesourcery.com>
5884
5885 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5886 early if get_number returns zero. Use 'p' instead of 'args'.
5887
2217da06
YQ
58882014-03-06 Yao Qi <yao@codesourcery.com>
5889
5890 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5891 message.
5892
cc3da688
YQ
58932014-03-06 Yao Qi <yao@codesourcery.com>
5894
5895 PR breakpoints/16508
5896 * tracepoint.c (check_trace_running): New function.
5897 (trace_find_command): Move code to check_trace_running and
5898 call check_trace_running.
5899 (trace_find_pc_command): Likewise.
5900 (trace_find_tracepoint_command): Likewise.
5901 (trace_find_line_command): Likewise.
5902 (trace_find_range_command): Likewise.
5903 * tracepoint.h (check_trace_running): Likewise.
5904 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5905
6a5f844b
YQ
59062014-03-06 Yao Qi <yao@codesourcery.com>
5907
5908 * target.h (struct target_ops) <to_traceframe_info>: Use
5909 TARGET_DEFAULT_NORETURN (tcomplain ()).
5910 * target-delegates.c: Regenerated.
5911
0f26cec1
PA
59122014-03-05 Pedro Alves <palves@redhat.com>
5913
5914 PR gdb/16575
5915 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5916 void. Update comment.
5917 (dcache_xfer_memory): Delete.
5918 (dcache_read_memory_partial): New, based on the read bits of
5919 dcache_xfer_memory.
5920 (dcache_update): Add status parameter. Use ULONGEST for len, and
5921 adjust. Discard cache lines if the reason for the update was
5922 error.
5923 * dcache.h (dcache_xfer_memory): Delete declaration.
5924 (dcache_read_memory_partial): New declaration.
5925 (dcache_update): Update prototype.
5926 * target.c (raw_memory_xfer_partial): Update the dcache here.
5927 (memory_xfer_partial_1): Don't handle dcache writes here.
5928
b2b255bd
MF
59292014-03-05 Mike Frysinger <vapier@gentoo.org>
5930
5931 * remote-sim.c (gdbsim_load): Add const to prog.
5932
5d9cf8a4
TT
59332014-03-03 Tom Tromey <tromey@redhat.com>
5934
5935 * elfread.c (probe_key): Change to bfd_data.
5936 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5937 now per-BFD, not per-objfile.
5938 * stap-probe.c (stap_probe_destroy): Update comment.
5939 (handle_stap_probe): Allocate on the per-BFD obstack.
5940
729662a5
TT
59412014-03-03 Tom Tromey <tromey@redhat.com>
5942
5943 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5944 * breakpoint.c (create_longjmp_master_breakpoint): Use
5945 get_probe_address.
5946 (add_location_to_breakpoint, bkpt_probe_insert_location)
5947 (bkpt_probe_remove_location): Update.
5948 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5949 * elfread.c (elf_symfile_relocate_probe): Remove.
5950 (elf_probe_fns): Update.
5951 (insert_exception_resume_breakpoint): Change type of "probe"
5952 parameter to bound_probe.
5953 (check_exception_resume): Update.
5954 * objfiles.c (objfile_relocate1): Don't relocate probes.
5955 * probe.c (bound_probe_s): New typedef.
5956 (parse_probes): Use get_probe_address. Set sal's objfile.
5957 (find_probe_by_pc): Return a bound_probe.
5958 (collect_probes): Return a VEC(bound_probe_s).
5959 (compare_probes): Update.
5960 (gen_ui_out_table_header_info): Change type of "probes"
5961 parameter. Update.
5962 (info_probes_for_ops): Update.
5963 (get_probe_address): New function.
5964 (probe_safe_evaluate_at_pc): Update.
5965 * probe.h (struct probe_ops) <get_probe_address>: New field.
5966 <set_semaphore, clear_semaphore>: Add objfile parameter.
5967 (struct probe) <objfile>: Remove field.
5968 <arch>: New field.
5969 <address>: Update comment.
5970 (struct bound_probe): New.
5971 (find_probe_by_pc): Return a bound_probe.
5972 (get_probe_address): Declare.
5973 * solib-svr4.c (struct probe_and_action) <address>: New field.
5974 (hash_probe_and_action, equal_probe_and_action): Update.
5975 (register_solib_event_probe): Add address parameter.
5976 (solib_event_probe_at): Update.
5977 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5978 get_probe_address.
5979 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5980 (stap_get_probe_address): New function.
5981 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5982 (compile_probe_arg): Update.
5983 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5984 address.
5985 (handle_stap_probe): Don't relocate the probe.
5986 (stap_relocate): Remove.
5987 (stap_gen_info_probes_table_values): Update.
5988 (stap_probe_ops): Remove stap_relocate.
5989 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5990 (debug_sym_probe_fns): Update.
5991 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5992 * symtab.c (init_sal): Use memset.
5993 * symtab.h (struct symtab_and_line) <objfile>: New field.
5994 * tracepoint.c (start_tracing, stop_tracing): Update.
5995
ff887920
TT
59962014-03-03 Tom Tromey <tromey@redhat.com>
5997
5998 * probe.h (parse_probes, find_probe_by_pc)
5999 (find_probes_in_objfile): Fix comments.
6000
f0407826
DE
60012014-03-02 Doug Evans <xdje42@gmail.com>
6002
6003 * infrun.c (handle_signal_stop): Replace test for
6004 TARGET_WAITKIND_STOPPED with an assert.
6005
35e6a711
DE
60062014-03-02 Doug Evans <xdje42@gmail.com>
6007
6008 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6009
667f9d0b
DE
60102014-03-02 Doug Evans <xdje42@gmail.com>
6011
6012 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6013
dc92ace0
MK
60142014-03-01 Mark Kettenis <kettenis@gnu.org>
6015
6016 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6017
a900370f
MK
60182014-03-01 Mark Kettenis <kettenis@gnu.org>
6019
6020 * i386obsd-nat.c: Include "obsd-nat.h".
6021 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6022 add_target.
6023 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6024
b72a7981
MK
60252014-03-01 Mark Kettenis <kettenis@gnu.org>
6026
6027 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6028
96c70aba
MK
60292014-03-01 Mark Kettenis <kettenis@gnu.org>
6030
6031 * mips64obsd-nat.c: Include "obsd-nath".
6032 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6033 add_target
6034 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6035
874a80af
MK
60362014-03-01 Mark Kettenis <kettenis@gnu.org>
6037
8fd408f1
MK
6038 * amd64obsd-nat.c: Include "obsd-nat,h.
6039 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6040 add_target.
874a80af
MK
6041 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6042
9cf95373
SC
60432014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6044
6045 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6046 (find_overload_match): Update call to find_oload_champ.
6047 (find_oload_champ_namespace_loop): Likewise
6048
863e4da4
MK
60492014-02-28 Mark Kettenis <kettenis@gnu.org>
6050
025cac40
MK
6051 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6052
1ed586ce
MK
6053 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6054 * config/sparc/obsd64.mh: New file.
6055 * sparc64obsd-nat.c: New file.
6056
863e4da4
MK
6057 * obsd-nat.h: New file.
6058 * obsd-nat.c: New file.
6059 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6060 (ALLDEPFILES): Add obsd-nat.c.
6061
89de4da4
TT
60622014-02-28 Tom Tromey <tromey@redhat.com>
6063
6064 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6065 * cli-out.h (cli_ui_out_impl): Now const.
6066 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6067 * ui-out.c (struct ui_out) <impl>: Now const.
6068 (default_ui_out_impl): Now const.
6069 (ui_out_new): Make 'impl' parameter const.
6070 * ui-out.h (ui_out_new): Update.
6071
c725e7b6
MK
60722014-02-27 Mark Kettenis <kettenis@gnu.org>
6073
6074 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6075
670b46b3
MK
60762014-02-27 Mark Kettenis <kettenis@gnu.org>
6077
6078 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6079
c91550fc
JK
60802014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6081
6082 Additional PR 8882 fix.
6083 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6084
2fa0369e
PA
60852014-02-27 Pedro Alves <palves@redhat.com>
6086
6087 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6088 isn't set.
6089
d632a097
PA
60902014-02-27 Pedro Alves <palves@redhat.com>
6091
6092 PR 12702
6093 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6094 * nat/linux-waitpid.c: Include string.h.
6095 (status_to_str): Moved here and made extern.
6096 * nat/linux-waitpid.h (status_to_str): New declaration.
6097
2ebd5a35
HZ
60982014-02-27 Hui Zhu <hui@codesourcery.com>
6099
6100 PR 12702
6101 * infrun.c (ptid_match): Move ...
6102 * common/ptid.c (ptid_match): ... here.
6103 * inferior.h (ptid_match): Move ...
6104 * common/ptid.h (ptid_match): ... here.
6105
3cdd631f
MK
61062014-02-27 Mark Kettenis <kettenis@gnu.org>
6107
6108 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6109 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6110 gdb_target_obs.
6111
bee30a64
MK
61122014-02-27 Mark Kettenis <kettenis@gnu.org>
6113
6114 * obsd-tdep.c (obsd_auxv_parse): New function.
6115 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6116
6117 * gdbarch.sh (auxv_parse): New.
6118 * gdbarch.h: Regenerated.
6119 * gdbarch.c: Regenerated.
6120 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6121
7a5a839f
LC
61222014-02-26 Ludovic Courtès <ludo@gnu.org>
6123
6124 * guile/scm-value.c (gdbscm_history_append_x): New function.
6125 (value_functions): Add it.
6126
31aa7e4e
JB
61272014-02-27 Joel Brobecker <brobecker@adacore.com>
6128
6129 * dwarf2read.c (attr_value_as_address): New function.
6130 (dwarf2_find_base_address, read_call_site_scope): Use
6131 attr_value_as_address in place of DW_ADDR.
6132 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6133 the low and high addresses. Slight rework of the handling
6134 of the high pc being a constant form, and limit it to
6135 DWARF verson 4 or higher.
6136 (dwarf2_record_block_ranges): Likewise.
6137 (read_partial_die): Likewise.
6138 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6139
9b333ba3
TT
61402014-02-26 Tom Tromey <tromey@redhat.com>
6141
6142 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6143
5f6cac40
TT
61442014-02-26 Tom Tromey <tromey@redhat.com>
6145
6146 * elfread.c (elf_read_minimal_symbols): Return early if
6147 minimal symbols have already been read. Add "ei" parameter.
6148 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6149 * minsyms.c (prim_record_minimal_symbol_full): Update.
6150 * objfiles.h (struct objstats) <n_minsyms>: Move...
6151 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6152 * symmisc.c (print_objfile_statistics): Update.
6153
2750ef27
TT
61542014-02-26 Tom Tromey <tromey@redhat.com>
6155
6156 * elfread.c (elf_read_minimal_symbols): New function, from
6157 elf_symfile_read.
6158 (elf_symfile_read): Call it.
6159
34643a32
TT
61602014-02-26 Tom Tromey <tromey@redhat.com>
6161
6162 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6163 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6164 (lookup_minimal_symbol_solib_trampoline)
6165 (lookup_minimal_symbol_by_pc_section_1)
6166 (lookup_minimal_symbol_and_objfile): Update.
6167 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6168 Don't allocate a minimal symbol if minsyms have already been read.
6169 (build_minimal_symbol_hash_tables): Update.
6170 (install_minimal_symbols): Do nothing if minsyms already read.
6171 Use the per-BFD obstack.
6172 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6173 * objfiles.c (allocate_objfile): Call
6174 terminate_minimal_symbol_table later.
6175 (have_minimal_symbols): Update.
6176 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6177 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6178 Move from struct objfile.
6179 <minsyms_read>: New field.
6180 (struct objfile) <msymbols, minimal_symbol_count,
6181 msymbol_hash, msymbol_demangled_hash>: Move.
6182 (ALL_OBJFILE_MSYMBOLS): Update.
6183 * symfile.c (read_symbols): Set minsyms_read.
6184 (reread_symbols): Update.
6185 * symmisc.c (dump_objfile, dump_msymbols): Update.
6186
2273f0ac
TT
61872014-02-26 Tom Tromey <tromey@redhat.com>
6188
6189 * minsyms.c (msymbols_sort): Remove.
6190 * minsyms.h (msymbols_sort): Remove.
6191 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6192 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6193 * elfread.c (elf_symtab_read): Don't add section offsets.
6194 * xcoffread.c (record_minimal_symbol): Don't add section offset
6195 to minimal symbol address.
6196 * somread.c (text_offset, data_offset): Remove.
6197 (som_symtab_read): Don't add section offsets to minimal symbol
6198 addresses.
6199 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6200 Don't add section offsets to minimal symbols.
6201 * coffread.c (coff_symtab_read): Don't add section offsets
6202 to minimal symbol addresses.
6203 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6204 to minimal symbol addresses.
6205 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6206 section offset to minimal symbol addresses.
6207 * mdebugread.c (parse_partial_symbols): Don't add section
6208 offset to minimal symbol addresses.
6209 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6210 offset to minimal symbol addresses.
6211
77e371c0
TT
62122014-02-26 Tom Tromey <tromey@redhat.com>
6213
6214 * ada-lang.c (ada_main_name): Update.
6215 (ada_add_standard_exceptions): Update.
6216 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6217 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6218 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6219 * auxv.c (ld_so_xfer_auxv): Update.
6220 * avr-tdep.c (avr_scan_prologue): Update.
6221 * ax-gdb.c (gen_var_ref): Update.
6222 * blockframe.c (get_pc_function_start)
6223 (find_pc_partial_function_gnu_ifunc): Update.
6224 * breakpoint.c (create_overlay_event_breakpoint)
6225 (create_longjmp_master_breakpoint)
6226 (create_std_terminate_master_breakpoint)
6227 (create_exception_master_breakpoint): Update.
6228 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6229 * c-valprint.c (c_val_print): Update.
6230 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6231 * common/agent.c (agent_look_up_symbols): Update.
6232 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6233 * dwarf2loc.c (call_site_to_target_addr): Update.
6234 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6235 * elfread.c (elf_gnu_ifunc_record_cache)
6236 (elf_gnu_ifunc_resolve_by_got): Update.
6237 * findvar.c (default_read_var_value): Update.
6238 * frame.c (inside_main_func): Update.
6239 * frv-tdep.c (frv_frame_this_id): Update.
6240 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6241 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6242 Update.
6243 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6244 (hppa_hpux_find_dummy_bpaddr): Update.
6245 * hppa-tdep.c (hppa_symbol_address): Update.
6246 * infcmd.c (until_next_command): Update.
6247 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6248 Update.
6249 * linespec.c (minsym_found, add_minsym): Update.
6250 * linux-nat.c (get_signo): Update.
6251 * linux-thread-db.c (inferior_has_bug): Update.
6252 * m32c-tdep.c (m32c_return_value)
6253 (m32c_m16c_address_to_pointer): Update.
6254 * m32r-tdep.c (m32r_frame_this_id): Update.
6255 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6256 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6257 * maint.c (maintenance_translate_address): Update.
6258 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6259 (frob_address): New function.
6260 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6261 frob_address. Rename parameter to "pc_in".
6262 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6263 addresses.
6264 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6265 Update.
6266 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6267 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6268 * objc-lang.c (find_objc_msgsend): Update.
6269 * objfiles.c (objfile_relocate1): Update.
6270 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6271 * p-valprint.c (pascal_val_print): Update.
6272 * parse.c (write_exp_msymbol): Update.
6273 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6274 (ppc_elfv2_skip_entrypoint): Update.
6275 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6276 * printcmd.c (build_address_symbolic, msym_info)
6277 (address_info): Update.
6278 * proc-service.c (ps_pglobal_lookup): Update.
6279 * psymtab.c (find_pc_sect_psymtab_closer)
6280 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6281 Change msymbol parameter to bound_minimal_symbol.
6282 * ravenscar-thread.c (get_running_thread_id): Update.
6283 * remote.c (remote_check_symbols): Update.
6284 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6285 address.
6286 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6287 * solib-dsbt.c (lm_base): Update.
6288 * solib-frv.c (lm_base, main_got): Update.
6289 * solib-irix.c (locate_base): Update.
6290 * solib-som.c (som_solib_create_inferior_hook)
6291 (link_map_start): Update.
6292 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6293 * solib-svr4.c (elf_locate_base, enable_break): Update.
6294 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6295 (flush_ea_cache): Update.
6296 * stabsread.c (define_symbol, scan_file_globals): Update.
6297 * stack.c (find_frame_funname): Update.
6298 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6299 (debug_qf_find_pc_sect_symtab): Update.
6300 * symfile.c (simple_read_overlay_table)
6301 (simple_overlay_update): Update.
6302 * symfile.h (struct quick_symbol_functions)
6303 <find_pc_sect_symtab>: Change type of msymbol to
6304 bound_minimal_symbol.
6305 * symmisc.c (dump_msymbols): Update.
6306 * symtab.c (find_pc_sect_symtab_via_partial)
6307 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6308 (search_symbols, print_msymbol_info): Update.
6309 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6310 (MSYMBOL_VALUE_ADDRESS): Redefine.
6311 (BMSYMBOL_VALUE_ADDRESS): New macro.
6312 * tracepoint.c (scope_info): Update.
6313 * tui/tui-disasm.c (tui_find_disassembly_address)
6314 (tui_get_begin_asm_address): Update.
6315 * valops.c (find_function_in_inferior): Update.
6316 * value.c (value_static_field, value_fn_field): Update.
6317
3b7344d5
TT
63182014-02-26 Tom Tromey <tromey@redhat.com>
6319
6320 * ada-lang.c (ada_update_initial_language): Update.
6321 (ada_main_name, ada_has_this_exception_support): Update.
6322 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6324 * arm-tdep.c (arm_skip_stub): Update.
6325 * auxv.c (ld_so_xfer_auxv): Update.
6326 * avr-tdep.c (avr_scan_prologue): Update.
6327 * ax-gdb.c (gen_var_ref): Update.
6328 * breakpoint.c (struct breakpoint_objfile_data)
6329 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6330 type to bound_minimal_symbol.
6331 (create_overlay_event_breakpoint)
6332 (create_longjmp_master_breakpoint)
6333 (create_std_terminate_master_breakpoint)
6334 (create_exception_master_breakpoint): Update.
6335 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6336 * c-exp.y (classify_name): Update.
6337 * coffread.c (coff_symfile_read): Update.
6338 * common/agent.c (agent_look_up_symbols): Update.
6339 * d-lang.c (d_main_name): Update.
6340 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6341 * dec-thread.c (enable_dec_thread): Update.
6342 * dwarf2loc.c (call_site_to_target_addr): Update.
6343 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6344 * eval.c (evaluate_subexp_standard): Update.
6345 * findvar.c (struct minsym_lookup_data) <result>: Change type
6346 to bound_minimal_symbol.
6347 <objfile>: Remove.
6348 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6349 * frame.c (inside_main_func): Update.
6350 * frv-tdep.c (frv_frame_this_id): Update.
6351 * gcore.c (call_target_sbrk): Update.
6352 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6353 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6354 Update.
6355 * go-lang.c (go_main_name): Update.
6356 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6357 (hppa_hpux_find_import_stub_for_addr): Update.
6358 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6359 Update. Change return type.
6360 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6361 type.
6362 * jit.c (jit_breakpoint_re_set_internal): Update.
6363 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6364 Update.
6365 * linux-nat.c (get_signo): Update.
6366 * linux-thread-db.c (inferior_has_bug): Update
6367 * m32c-tdep.c (m32c_return_value)
6368 (m32c_m16c_address_to_pointer): Update.
6369 * m32r-tdep.c (m32r_frame_this_id): Update.
6370 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6371 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6372 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6373 lookup_minimal_symbol. Change return type.
6374 (lookup_minimal_symbol): Remove.
6375 (lookup_bound_minimal_symbol): Update.
6376 (lookup_minimal_symbol_text): Change return type.
6377 (lookup_minimal_symbol_solib_trampoline): Change return type.
6378 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6379 (lookup_minimal_symbol_solib_trampoline): Change return type.
6380 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6381 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6382 (value_nsstring, find_imps): Update.
6383 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6384 * p-lang.c (pascal_main_name): Update.
6385 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6386 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6387 * proc-service.c (ps_pglobal_lookup): Update.
6388 * ravenscar-thread.c (get_running_thread_msymbol): Change
6389 return type.
6390 (has_ravenscar_runtime, get_running_thread_id): Update.
6391 * remote.c (remote_check_symbols): Update.
6392 * sol-thread.c (ps_pglobal_lookup): Update.
6393 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6394 * solib-dsbt.c (lm_base): Update.
6395 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6396 Update.
6397 * solib-irix.c (locate_base): Update.
6398 * solib-som.c (som_solib_create_inferior_hook)
6399 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6400 Update.
6401 * solib-spu.c (spu_enable_break): Update.
6402 * solib-svr4.c (elf_locate_base, enable_break): Update.
6403 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6404 (flush_ea_cache): Update.
6405 * stabsread.c (define_symbol): Update.
6406 * symfile.c (simple_read_overlay_table): Update.
6407 * symtab.c (find_pc_sect_line): Update.
6408 * tracepoint.c (scope_info): Update.
6409 * tui-disasm.c (tui_get_begin_asm_address): Update.
6410 * value.c (value_static_field): Update.
6411
40c1a007
TT
64122014-02-26 Tom Tromey <tromey@redhat.com>
6413
6414 * minsyms.c (prim_record_minimal_symbol_full): Use
6415 SET_MSYMBOL_VALUE_ADDRESS.
6416 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6417 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6418 SET_MSYMBOL_VALUE_ADDRESS.
6419 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6420 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6421
efd66ac6
TT
64222014-02-26 Tom Tromey <tromey@redhat.com>
6423
6424 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6425 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6426 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6427 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6428 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6429 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6430 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6431 * ada-lang.c (ada_main_name): Update.
6432 (ada_lookup_simple_minsym): Update.
6433 (ada_make_symbol_completion_list): Update.
6434 (ada_add_standard_exceptions): Update.
6435 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6436 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6437 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6438 * arm-tdep.c (skip_prologue_function): Update.
6439 (arm_skip_stack_protector, arm_skip_stub): Update.
6440 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6441 (arm_wince_skip_main_prologue): Update.
6442 * auxv.c (ld_so_xfer_auxv): Update.
6443 * avr-tdep.c (avr_scan_prologue): Update.
6444 * ax-gdb.c (gen_var_ref): Update.
6445 * block.c (call_site_for_pc): Update.
6446 * blockframe.c (get_pc_function_start): Update.
6447 (find_pc_partial_function_gnu_ifunc): Update.
6448 * breakpoint.c (create_overlay_event_breakpoint): Update.
6449 (create_longjmp_master_breakpoint): Update.
6450 (create_std_terminate_master_breakpoint): Update.
6451 (create_exception_master_breakpoint): Update.
6452 (resolve_sal_pc): Update.
6453 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6454 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6455 Update.
6456 * c-valprint.c (c_val_print): Update.
6457 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6458 * coffread.c (coff_symfile_read): Update.
6459 * common/agent.c (agent_look_up_symbols): Update.
6460 * dbxread.c (find_stab_function_addr): Update.
6461 (end_psymtab): Update.
6462 * dwarf2loc.c (call_site_to_target_addr): Update.
6463 (func_verify_no_selftailcall): Update.
6464 (tailcall_dump): Update.
6465 (call_site_find_chain_1): Update.
6466 (dwarf_expr_reg_to_entry_parameter): Update.
6467 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6468 (elf_gnu_ifunc_resolve_by_got): Update.
6469 * f-valprint.c (info_common_command): Update.
6470 * findvar.c (read_var_value): Update.
6471 * frame.c (get_prev_frame_1): Update.
6472 (inside_main_func): Update.
6473 * frv-tdep.c (frv_skip_main_prologue): Update.
6474 (frv_frame_this_id): Update.
6475 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6476 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6477 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6478 (gnuv3_skip_trampoline): Update.
6479 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6480 (hppa64_hpux_in_solib_call_trampoline): Update.
6481 (hppa_hpux_skip_trampoline_code): Update.
6482 (hppa64_hpux_search_dummy_call_sequence): Update.
6483 (hppa_hpux_find_import_stub_for_addr): Update.
6484 (hppa_hpux_find_dummy_bpaddr): Update.
6485 * hppa-tdep.c (hppa_symbol_address)
6486 (hppa_lookup_stub_minimal_symbol): Update.
6487 * i386-tdep.c (i386_skip_main_prologue): Update.
6488 (i386_pe_skip_trampoline_code): Update.
6489 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6490 * infcall.c (get_function_name): Update.
6491 * infcmd.c (until_next_command): Update.
6492 * jit.c (jit_breakpoint_re_set_internal): Update.
6493 (jit_inferior_init): Update.
6494 * linespec.c (minsym_found): Update.
6495 (add_minsym): Update.
6496 * linux-fork.c (info_checkpoints_command): Update.
6497 * linux-nat.c (get_signo): Update.
6498 * linux-thread-db.c (inferior_has_bug): Update.
6499 * m32c-tdep.c (m32c_return_value): Update.
6500 (m32c_m16c_address_to_pointer): Update.
6501 (m32c_m16c_pointer_to_address): Update.
6502 * m32r-tdep.c (m32r_frame_this_id): Update.
6503 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6504 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6505 * maint.c (maintenance_translate_address): Update.
6506 * minsyms.c (add_minsym_to_hash_table): Update.
6507 (add_minsym_to_demangled_hash_table): Update.
6508 (msymbol_objfile): Update.
6509 (lookup_minimal_symbol): Update.
6510 (iterate_over_minimal_symbols): Update.
6511 (lookup_minimal_symbol_text): Update.
6512 (lookup_minimal_symbol_by_pc_name): Update.
6513 (lookup_minimal_symbol_solib_trampoline): Update.
6514 (lookup_minimal_symbol_by_pc_section_1): Update.
6515 (lookup_minimal_symbol_and_objfile): Update.
6516 (prim_record_minimal_symbol_full): Update.
6517 (compare_minimal_symbols): Update.
6518 (compact_minimal_symbols): Update.
6519 (build_minimal_symbol_hash_tables): Update.
6520 (install_minimal_symbols): Update.
6521 (terminate_minimal_symbol_table): Update.
6522 (find_solib_trampoline_target): Update.
6523 (minimal_symbol_upper_bound): Update.
6524 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6525 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6526 (mips_skip_pic_trampoline_code): Update.
6527 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6528 * objc-lang.c (selectors_info): Update.
6529 (classes_info): Update.
6530 (find_methods): Update.
6531 (find_imps): Update.
6532 (find_objc_msgsend): Update.
6533 * objfiles.c (objfile_relocate1): Update.
6534 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6535 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6536 * p-valprint.c (pascal_val_print): Update.
6537 * parse.c (write_exp_msymbol): Update.
6538 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6539 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6541 * printcmd.c (build_address_symbolic): Update.
6542 (sym_info): Update.
6543 (address_info): Update.
6544 * proc-service.c (ps_pglobal_lookup): Update.
6545 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6546 (find_pc_sect_psymtab): Update.
6547 * python/py-framefilter.c (py_print_frame): Update.
6548 * ravenscar-thread.c (get_running_thread_id): Update.
6549 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6550 Update.
6551 * remote.c (remote_check_symbols): Update.
6552 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6553 (rs6000_skip_trampoline_code): Update.
6554 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6555 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6556 * solib-dsbt.c (lm_base): Update.
6557 * solib-frv.c (lm_base): Update.
6558 (main_got): Update.
6559 * solib-irix.c (locate_base): Update.
6560 * solib-som.c (som_solib_create_inferior_hook): Update.
6561 (som_solib_desire_dynamic_linker_symbols): Update.
6562 (link_map_start): Update.
6563 * solib-spu.c (spu_enable_break): Update.
6564 (ocl_enable_break): Update.
6565 * solib-svr4.c (elf_locate_base): Update.
6566 (enable_break): Update.
6567 * spu-tdep.c (spu_get_overlay_table): Update.
6568 (spu_catch_start): Update.
6569 (flush_ea_cache): Update.
6570 * stabsread.c (define_symbol): Update.
6571 (scan_file_globals): Update.
6572 * stack.c (find_frame_funname): Update.
6573 (frame_info): Update.
6574 * symfile.c (simple_read_overlay_table): Update.
6575 (simple_overlay_update): Update.
6576 * symmisc.c (dump_msymbols): Update.
6577 * symtab.c (fixup_section): Update.
6578 (find_pc_sect_line): Update.
6579 (skip_prologue_sal): Update.
6580 (search_symbols): Update.
6581 (print_msymbol_info): Update.
6582 (rbreak_command): Update.
6583 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6584 (completion_list_objc_symbol): Update.
6585 (default_make_symbol_completion_list_break_on): Update.
6586 * tracepoint.c (scope_info): Update.
6587 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6588 (tui_get_begin_asm_address): Update.
6589 * valops.c (find_function_in_inferior): Update.
6590 * value.c (value_static_field): Update.
6591 (value_fn_field): Update.
6592
50e65b17
TT
65932014-02-26 Tom Tromey <tromey@redhat.com>
6594
6595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6596 bound minimal symbols. Move code that knows about minsym
6597 table layout...
6598 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6599 function.
6600 * minsyms.h (minimal_symbol_upper_bound): Declare.
6601 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6602 minimal_symbol_upper_bound.
6603
1b588015
JB
66042014-02-27 Joel Brobecker <brobecker@adacore.com>
6605
6606 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6607 Use the type's name if its basic type does not have a tag.
6608
dbb9c2b1
JB
66092014-02-27 Joel Brobecker <brobecker@adacore.com>
6610
6611 * dwarf2read.c (read_subrange_type): Add comment.
6612
55426c9d
JB
66132014-02-27 Joel Brobecker <brobecker@adacore.com>
6614
6615 * dwarf2read.c (update_enumeration_type_from_children): New
6616 function, mostly extracted from process_structure_scope.
6617 (read_enumeration_type): Call update_enumeration_type_from_children.
6618 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6619 and flag_flag_enum fields.
6620
f2fce0ca
PA
66212014-02-26 Pedro Alves <palves@redhat.com>
6622
6623 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6624 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6625 to_xfer_partial method.
6626
7a44e40e
PA
66272014-02-26 Pedro Alves <palves@redhat.com>
6628
6629 * target.c (complete_target_initialization): Don't install
6630 default_xfer_partial as to_xfer_partial hook.
6631 (nomemory): Delete.
6632 (update_current_target): Don't INHERIT nor de_fault
6633 deprecated_xfer_memory. Delete de_fault macro.
6634 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6635 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6636 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6637 field.
6638
bd265cd0
PA
66392014-02-26 Pedro Alves <palves@redhat.com>
6640
6641 * go32-nat.c (my_write_child): New function.
6642 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6643 (go32_xfer_partial): New function.
6644 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6645 Instead install a to_xfer_partial hook.
6646
9d46c4e5
PA
66472014-02-26 Pedro Alves <palves@redhat.com>
6648
6649 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6650 to_xfer_partial helper. Rewrite.
6651 (procfs_xfer_partial): New function.
6652 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6653 Install a to_xfer_partial hook.
6654
a1583b1f
PA
66552014-02-26 Pedro Alves <palves@redhat.com>
6656
6657 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6658 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6659 (m32r_xfer_partial): New function.
6660 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6661 Install a to_xfer_partial hook.
6662
6df1b29f
PA
66632014-02-26 Pedro Alves <palves@redhat.com>
6664
6665 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6666 helper.
6667 (mips_xfer_partial): New function.
6668 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6669 hook. Install a to_xfer_partial hook.
6670
dc53a7ad
JB
66712014-02-26 Joel Brobecker <brobecker@adacore.com>
6672
6673 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6674 * gdbtypes.c (create_array_type_with_stride): New function,
6675 renaming create_array_type, but with an added parameter
6676 called "bit_stride".
6677 (create_array_type): Re-implement using
6678 create_array_type_with_stride.
6679 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6680 and DW_AT_bit_stride attributes.
6681
12ab52e9
PA
66822014-02-26 Pedro Alves <palves@redhat.com>
6683
6684 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6685 task-specific breakpoints.
6686
d16461ae
PA
66872014-02-25 Pedro Alves <palves@redhat.com>
6688
6689 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6690 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6691
a8b16220
SS
66922014-02-25 Stan Shebs <stan@codesourcery.com>
6693
6694 * defs.h: Annotate comments for Doxygen.
6695
b9e795ee
TT
66962014-02-25 Tom Tromey <tromey@redhat.com>
6697
6698 * target.h (target_ignore): Don't declare.
6699 * target.c (target_ignore): Remove.
6700
849c862e
JK
67012014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6702
6703 PR gdb/16626
6704 * auto-load.c (auto_load_objfile_script_1): Change filename to
6705 debugfile.
6706
475109d8
JB
67072014-02-25 Joel Brobecker <brobecker@adacore.com>
6708
6709 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6710 documentation. Adjust prototype to match the target_ops
6711 to_xfer_partial method. Adjust implementation accordingly.
6712
e186c3bd
HZ
67132014-02-25 Hui Zhu <hui@codesourcery.com>
6714
6715 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6716 to_traceframe_info.
6717
6d451942
KB
67182014-02-25 Kevin Buettner <kevinb@redhat.com>
6719
041ab8b4 6720 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6721 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6722 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6723 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6724 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6725 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6726 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6727 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6728 New constants.
6729 (rl78_register_type): Use a data pointer type for SP and
6730 new pseudo registers mentioned above. Use a 16 bit integer
6731 type for all other register pairs.
6732 (rl78_register_name, rl78_g10_register_name): Update for
6733 new pseudo registers.
6734 (rl78_pseudo_register_read): Likewise.
6735 (rl78_pseudo_register_write): Likewise.
6736 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6737 to the newly added pseudo registers.
6738
eddf0bae
DE
67392014-02-24 Doug Evans <dje@google.com>
6740
6741 * value.c (record_latest_value): Fix comment.
6742 * printcmd.c (print_command_1): Remove code to handle -1 return from
6743 record_latest_value.
6744
e96027e0
PA
67452014-02-24 Pedro Alves <palves@redhat.com>
6746
6747 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6748 deprecated_xfer_memory hook.
6749 (procfs_xfer_partial): Call procfs_xfer_memory instead
6750 of the deprecated_xfer_memory target hook.
6751 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6752 helper.
6753
0837c976
YZ
67542014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6755
6756 * windows-nat.c (windows_xfer_shared_libraries): Return
6757 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6758 requested object is TARGET_OBJECT_LIBRARIES.
6759
bc113b4e
YQ
67602014-02-24 Yao Qi <yao@codesourcery.com>
6761
6762 * target.h (enum target_xfer_status)
6763 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6764 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6765 explicitly. New.
6766 * corefile.c (memory_error_message): User updated.
6767 * exec.c (section_table_read_available_memory): Likewise.
6768 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6769 * target.c (target_xfer_status_to_string): Likewise.
6770 (raw_memory_xfer_partial): Likewise.
6771 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6772 * valops.c (read_value_memory): Likewise.
6773 * exec.h: Update comments.
6774
01cb8804
YQ
67752014-02-24 Yao Qi <yao@codesourcery.com>
6776
6777 * target.c (target_xfer_status_to_string): Rename argument err
6778 to status.
6779 * target.h (target_xfer_status_to_string): Update declaration.
6780 Replace target_xfer_error_to_string with
6781 target_xfer_status_to_string in comment.
6782
93063aa6
YQ
67832014-02-24 Yao Qi <yao@codesourcery.com>
6784
6785 * mips-linux-nat.c (super_close): Update its type.
6786 (mips_linux_close): Pass 'self' to super_close.
6787
5c328c05
YQ
67882014-02-24 Yao Qi <yao@codesourcery.com>
6789
6790 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6791 * corefile.c (read_memory): Adjusted.
6792 * target.c (target_write_with_progress): Adjusted.
6793
f73023dd
YQ
67942014-02-23 Yao Qi <yao@codesourcery.com>
6795
6796 Revert two patches:
6797
6798 2013-10-25 Yao Qi <yao@codesourcery.com>
6799
6800 * remote.c (remote_traceframe_info): Return early if
6801 traceframe is not selected.
6802
6803 2013-07-19 Yao Qi <yao@codesourcery.com>
6804
6805 * target.c (update_current_target): Change the default action
6806 of 'to_traceframe_info' from tcomplain to return_zero.
6807 * target.h (struct target_ops) <to_traceframe_info>: Add more
6808 comments.
6809
5a2eb0ef
YQ
68102014-02-23 Yao Qi <yao@codesourcery.com>
6811
6812 * valops.c (read_value_memory): Rewrite it. Call
6813 target_xfer_partial in a loop.
6814 * exec.h (section_table_available_memory): Remove declaration.
6815 Move comments to ...
6816 * exec.c (section_table_available_memory): ... here. Make it
6817 static.
6818
1ee79381
YQ
68192014-02-23 Yao Qi <yao@codesourcery.com>
6820
6821 * exec.c (section_table_read_available_memory): New function.
6822 * exec.h (section_table_read_available_memory): Declare.
6823 * ctf.c (ctf_xfer_partial): Call
6824 section_table_read_available_memory.
6825 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6826
1ca49d37
YQ
68272014-02-23 Yao Qi <yao@codesourcery.com>
6828
6829 * ctf.c (ctf_xfer_partial): Move code to ...
6830 * exec.c (exec_read_partial_read_only): ... it. New function.
6831 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6832 * tracefile.c: Include "exec.h".
6833 * exec.h (exec_read_partial_read_only): Declare.
6834
a283690e
YQ
68352014-02-23 Yao Qi <yao@codesourcery.com>
6836
6837 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6838 (tfile_has_memory): Remove.
6839 (init_tfile_ops): Don't set fields to_has_all_memory and
6840 to_has_memory of tfile_ops.
6841 * tracefile.c (tracefile_has_all_memory): New function.
6842 (tracefile_has_memory): New function.
6843 (init_tracefile_ops): Initialize fields to_has_all_memory and
6844 to_has_memory of 'ops'.
6845
12e03cd0
YQ
68462014-02-23 Yao Qi <yao@codesourcery.com>
6847
6848 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6849 (ctf_thread_alive, ctf_get_trace_status): Remove.
6850 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6851 init_tracefile_ops.
6852 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6853 (tfile_has_stack, tfile_has_registers): Remove.
6854 (tfile_thread_alive): Remove.
6855 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6856 init_tracefile_ops.
6857 * tracefile.c (tracefile_has_stack): New function.
6858 (tracefile_has_registers): New function.
6859 (tracefile_thread_alive): New function.
6860 (tracefile_get_trace_status): New function.
6861 (init_tracefile_ops): New function.
6862 * tracefile.h (init_tracefile_ops): Declare.
6863
11395323
YQ
68642014-02-23 Yao Qi <yao@codesourcery.com>
6865
6866 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6867 (O_LARGEFILE): Likewise.
6868 (tfile_ops): Likewise.
6869 (TRACE_HEADER_SIZE): Likewise.
6870 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6871 (cur_data_size): Likewise.
6872 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6873 (tfile_close, tfile_files_info): Likewise.
6874 (tfile_get_trace_status): Likewise.
6875 (tfile_get_tracepoint_status): Likewise.
6876 (tfile_get_traceframe_address): Likewise.
6877 (tfile_trace_find, match_blocktype): Likewise.
6878 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6879 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6880 (tfile_get_trace_state_variable_value): Likewise.
6881 (tfile_has_all_memory, tfile_has_memory): Likewise.
6882 (tfile_has_stack, tfile_has_registers): Likewise.
6883 (tfile_thread_alive, build_traceframe_info): Likewise.
6884 (tfile_traceframe_info, init_tfile_ops): Likewise.
6885 (_initialize_tracepoint): Don't call init_tfile_ops
6886 and add_target_with_completer.
6887 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6888 exec.h, completer.h and filenames.h.
6889 (_initialize_tracefile_tfile): New function.
6890
7951c4eb
YQ
68912014-02-23 Yao Qi <yao@codesourcery.com>
6892
6893 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6894 tracefile-tfile.o.
6895 (HFILES_NO_SRCDIR): Add tracefile.h.
6896 * ctf.c: Include "tracefile.h".
6897 * tracefile.h: New file.
6898 * tracefile.c: New file
6899 * tracefile-tfile.c: New file.
6900 * tracepoint.c: Include "tracefile.h".
6901 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6902 (stop_reason_names): Add const.
6903 (trace_file_writer_xfree): Move it to tracefile.c.
6904 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6905 (trace_save_ctf): Likewise.
6906 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6907 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6908 (tfile_write_header, tfile_write_regblock_type): Likewise.
6909 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6910 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6911 (tfile_write_raw_data, tfile_end): Likewise.
6912 (tfile_trace_file_writer_new): Likewise.
6913 (free_uploaded_tp): Make it extern.
6914 (free_uploaded_tsv): Make it extern.
6915 (_initialize_tracepoint): Move code to register command 'tsave'
6916 to tracefile.c.
6917 * tracepoint.h (stop_reason_names): Declare.
6918 (struct trace_frame_write_ops): Move it to tracefile.h.
6919 (struct trace_file_write_ops): Likewise.
6920 (struct trace_file_writer): Likewise.
6921 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6922
184cd072
JK
69232014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6924
6925 PR gdb/16594
6926 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6927 process name.
6928 (get_cores_used_by_process): New parameter num_cores, use it.
6929 (linux_xfer_osdata_processes): Pass num_cores to it.
6930 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6931 process name.
6932
c63528fc
AK
69332014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6934
6935 * target.c (memory_xfer_partial): Fix length arg in call to
6936 breakpoint_xfer_memory.
6937
d7b30f67
SDJ
69382014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6939
6940 PR tdep/16397
6941 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6942 number comes after the + or - signs. Adjust length of register
6943 name to be extracted.
6944
8838afaf
TT
69452014-02-20 Tom Tromey <tromey@redhat.com>
6946
6947 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6948 (ada_varobj_ops): Mark "extern".
6949
05227d14
TT
69502014-02-20 Tom Tromey <tromey@redhat.com>
6951
6952 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6953
1254eefc
DE
69542014-02-20 Doug Evans <xdje42@gmail.com>
6955
6956 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6957 All callers updated.
6958 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6959 All callers updated.
6960 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6961 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6962
adde2bff
DE
69632014-02-20 lin zuojian <manjian2006@gmail.com>
6964 Joel Brobecker <brobecker@adacore.com>
6965 Doug Evans <xdje42@gmail.com>
6966
6967 PR symtab/16581
6968 * dwarf2read.c (struct die_info): New member in_process.
6969 (reset_die_in_process): New function.
6970 (process_die): Set it at the start, reset when returning.
6971 (inherit_abstract_dies): Only call process_die if origin_child_die
6972 not already being processed.
6973
3be75f87
JB
69742014-02-20 Joel Brobecker <brobecker@adacore.com>
6975
6976 * windows-nat.c (handle_unload_dll): Add function documentation.
6977 (do_initial_windows_stuff): Add comment explaining why we wait
6978 until after inferior initialization has finished before
6979 processing all DLLs.
6980
47f7ffdb
JB
69812014-02-20 Joel Brobecker <brobecker@adacore.com>
6982
6983 * windows-nat.c (get_module_name): Delete.
6984 (windows_get_exec_module_filename): New function, mostly
6985 inspired from get_module_name.
6986 (windows_pid_to_exec_file): Replace call to get_module_name
6987 by call to windows_get_exec_module_filename.
6988
1cd9feab
JB
69892014-02-20 Joel Brobecker <brobecker@adacore.com>
6990
6991 * windows-nat.c (handle_load_dll): Rewrite this function's
6992 introductory comment. Remove code using get_module_name
6993 to get the DLL's name.
6994
ea39ad35
JB
69952014-02-20 Joel Brobecker <brobecker@adacore.com>
6996
6997 * windows-nat.c (get_windows_debug_event): Ignore
6998 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6999 if windows_initialization_done == 0.
7000 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7001 Adjust implementation to always load all DLLs.
7002 (do_initial_windows_stuff): Replace call to
7003 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7004
95060284
JB
70052014-02-20 Joel Brobecker <brobecker@adacore.com>
7006
7007 * windows-nat.c (_initialize_windows_nat): Deprecate the
7008 "dll-symbols" command. Turn the "add-shared-symbol-files"
7009 and "assf" aliases into commands, and deprecate them as well.
7010 * NEWS: Add entry explaining that "dll-symbols" and its two
7011 aliases are now deprecated.
7012
8d4fdb12
JB
70132014-02-20 Joel Brobecker <brobecker@adacore.com>
7014
7015 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7016 new-line in debug string. Remove trailing spaces.
7017
1b281443
SS
70182014-02-19 Stan Shebs <stan@codesourcery.com>
7019
7020 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7021
f7bd0f78
SC
70222014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7023
7024 * NEWS: Add entry for the new feature
7025 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7026 and class values.
7027
399ebc3d
SS
70282014-02-19 Stan Shebs <stan@codesourcery.com>
7029
7030 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7031
c658158d
PA
70322014-02-19 Pedro Alves <palves@redhat.com>
7033
7034 * common/ptid.h (struct ptid): Mention that process_stratum
7035 targets should prefer ptid.lwp.
7036
ba348170
PA
70372014-02-19 Pedro Alves <palves@redhat.com>
7038
7039 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7040 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7041 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7042 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7043 store remote thread ids rather than ptid.tid.
7044 (_initialize_remote): Adjust.
7045
ac01945b
TT
70462014-02-19 Tom Tromey <tromey@redhat.com>
7047
7048 * target.c (target_get_unwinder): Rewrite.
7049 (target_get_tailcall_unwinder): Rewrite.
7050 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7051 (record_btrace_to_get_tailcall_unwinder): New function.
7052 (init_record_btrace_ops): Update.
7053 * target.h (struct target_ops) <to_get_unwinder,
7054 to_get_tailcall_unwinder>: Now function pointers. Use
7055 TARGET_DEFAULT_RETURN.
7056
8476dc92
TT
70572014-02-19 Tom Tromey <tromey@redhat.com>
7058
7059 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7060 argument.
7061 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7062
c0eca49f
TT
70632014-02-19 Tom Tromey <tromey@redhat.com>
7064
7065 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7066 directly.
7067 * target-delegates.c: Rebuild.
7068 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7069 TARGET_DEFAULT_FUNC.
7070 * target.c (default_target_decr_pc_after_break): Rename from
7071 forward_target_decr_pc_after_break. Simplify.
7072 (target_decr_pc_after_break): Rely on delegation.
7073
596b6b39
TT
70742014-02-19 Tom Tromey <tromey@redhat.com>
7075
7076 * target.c (update_current_target): Do not INHERIT to_doc or
7077 to_magic. Do not de_fault to_open or to_close.
7078
b427c1bc
TT
70792014-02-19 Tom Tromey <tromey@redhat.com>
7080
7081 * gcore.h (objfile_find_memory_regions): Declare.
7082 * gcore.c (objfile_find_memory_regions): No longer static. Add
7083 "self" argument.
7084 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7085 * exec.c: Include gcore.h.
7086 (exec_set_find_memory_regions): Remove.
7087 (exec_find_memory_regions): Remove.
7088 (exec_do_find_memory_regions): Remove.
7089 (init_exec_ops): Update.
7090 * defs.h (exec_set_find_memory_regions): Remove.
7091
9b144037
TT
70922014-02-19 Tom Tromey <tromey@redhat.com>
7093
7094 * target-delegates.c: Rebuild.
7095 * target.h (struct target_ops) <to_extra_thread_info,
7096 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7097 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7098 not 0, in TARGET_DEFAULT_RETURN.
7099
555bbdeb
TT
71002014-02-19 Tom Tromey <tromey@redhat.com>
7101
7102 * target.c (complete_target_initialization): Remove casts. Use
7103 return_zero_has_execution.
7104 (return_zero): Add "ignore" argument.
7105 (return_zero_has_execution): New function.
7106 (init_dummy_target): Remove casts. Use
7107 return_zero_has_execution.
7108
be4ddd36
TT
71092014-02-19 Tom Tromey <tromey@redhat.com>
7110
7111 * target.c (update_current_target): Update comments. Do not
7112 INHERIT to_stratum.
7113
2117c711
TT
71142014-02-19 Tom Tromey <tromey@redhat.com>
7115
7116 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7117 needed.
7118 * corelow.c (core_read_description): Delegate when needed.
7119 * remote.c (remote_read_description): Delegate when needed.
7120 * target-delegates.c: Rebuild.
7121 * target.c (target_read_description): Rewrite.
7122 * target.h (struct target_ops) <to_read_description>: Update
7123 comment. Use TARGET_DEFAULT_RETURN.
7124
e88ef65c
TT
71252014-02-19 Tom Tromey <tromey@redhat.com>
7126
7127 * target-delegates.c: Rebuild.
7128 * target.c (update_current_target): Don't inherit or default
7129 to_can_run.
7130 (find_default_run_target): Check against delegate_can_run.
7131 * target.h (struct target_ops) <to_can_run>: Use
7132 TARGET_DEFAULT_RETURN.
7133
86a0854a
TT
71342014-02-19 Tom Tromey <tromey@redhat.com>
7135
7136 * target-delegates.c: Rebuild.
7137 * target.c (target_disconnect): Unconditionally delegate.
7138 * target.h (struct target_ops) <to_disconnect>: Use
7139 TARGET_DEFAULT_NORETURN.
7140
ee97f592
TT
71412014-02-19 Tom Tromey <tromey@redhat.com>
7142
7143 * record.c (record_stop): Unconditionally delegate.
7144 * target-delegates.c: Rebuild.
7145 * target.c (target_stop_recording): Unconditionally delegate.
7146 * target.h (struct target_ops) <to_stop_recording>: Use
7147 TARGET_DEFAULT_IGNORE.
7148
6dc7fcf4
TT
71492014-02-19 Tom Tromey <tromey@redhat.com>
7150
7151 * target-delegates.c: Rebuild.
7152 * target.c (target_enable_btrace): Unconditionally delegate.
7153 * target.h (struct target_ops) <to_enable_btrace>: Use
7154 TARGET_DEFAULT_NORETURN.
7155
eb5b20d4
TT
71562014-02-19 Tom Tromey <tromey@redhat.com>
7157
7158 * target-delegates.c: Rebuild.
7159 * target.c (target_read_btrace): Unconditionally delegate.
7160 * target.h (struct target_ops) <to_read_btrace>: Use
7161 TARGET_DEFAULT_NORETURN.
7162
9ace480d
TT
71632014-02-19 Tom Tromey <tromey@redhat.com>
7164
7165 * target-delegates.c: Rebuild.
7166 * target.c (target_teardown_btrace): Unconditionally delegate.
7167 * target.h (struct target_ops) <to_teardown_btrace>: Use
7168 TARGET_DEFAULT_NORETURN.
7169
8dc292d3
TT
71702014-02-19 Tom Tromey <tromey@redhat.com>
7171
7172 * target-delegates.c: Rebuild.
7173 * target.c (target_disable_btrace): Unconditionally delegate.
7174 * target.h (struct target_ops) <to_disable_btrace>: Use
7175 TARGET_DEFAULT_NORETURN.
7176
58a5184e
TT
71772014-02-19 Tom Tromey <tromey@redhat.com>
7178
7179 * target-delegates.c: Rebuild.
7180 * target.c (default_search_memory): New function.
7181 (simple_search_memory): Update comment.
7182 (target_search_memory): Unconditionally delegate.
7183 * target.h (struct target_ops) <to_search_memory>: Use
7184 TARGET_DEFAULT_FUNC.
7185
8de71aab
TT
71862014-02-19 Tom Tromey <tromey@redhat.com>
7187
7188 * auxv.c (default_auxv_parse): No longer static.
7189 (target_auxv_parse): Unconditionally delegate.
7190 * auxv.h (default_auxv_parse): Declare.
7191 * target-delegates.c: Rebuild.
7192 * target.c: Include auxv.h.
7193 * target.h (struct target_ops) <to_auxv_parse>: Use
7194 TARGET_DEFAULT_FUNC.
7195
6b2c5a57
TT
71962014-02-19 Tom Tromey <tromey@redhat.com>
7197
7198 * target-delegates.c: Rebuild.
7199 * target.c (target_memory_map): Unconditionally delegate.
7200 * target.h (struct target_ops) <to_memory_map>: Use
7201 TARGET_DEFAULT_RETURN.
7202
cbffc065
TT
72032014-02-19 Tom Tromey <tromey@redhat.com>
7204
7205 * target-delegates.c: Rebuild.
7206 * target.c (target_thread_alive): Unconditionally delegate.
7207 * target.h (struct target_ops) <to_thread_alive>: Use
7208 TARGET_DEFAULT_RETURN.
7209
f09e2107
TT
72102014-02-19 Tom Tromey <tromey@redhat.com>
7211
7212 * target-delegates.c: Rebuild.
7213 * target.c (target_save_record): Unconditionally delegate.
7214 * target.h (struct target_ops) <to_save_record>: Use
7215 TARGET_DEFAULT_NORETURN.
7216
07366925
TT
72172014-02-19 Tom Tromey <tromey@redhat.com>
7218
7219 * target-delegates.c: Rebuild.
7220 * target.c (target_delete_record): Unconditionally delegate.
7221 * target.h (struct target_ops) <to_delete_record>: Use
7222 TARGET_DEFAULT_NORETURN.
7223
dd2e9d25
TT
72242014-02-19 Tom Tromey <tromey@redhat.com>
7225
7226 * target-delegates.c: Rebuild.
7227 * target.c (target_record_is_replaying): Unconditionally
7228 delegate.
7229 * target.h (struct target_ops) <to_record_is_replaying>: Use
7230 TARGET_DEFAULT_RETURN.
7231
671e76cc
TT
72322014-02-19 Tom Tromey <tromey@redhat.com>
7233
7234 * target-delegates.c: Rebuild.
7235 * target.c (target_goto_record_begin): Unconditionally delegate.
7236 * target.h (struct target_ops) <to_goto_record_begin>: Use
7237 TARGET_DEFAULT_NORETURN.
7238
e9179bb3
TT
72392014-02-19 Tom Tromey <tromey@redhat.com>
7240
7241 * target-delegates.c: Rebuild.
7242 * target.c (target_goto_record_end): Unconditionally delegate.
7243 * target.h (struct target_ops) <to_goto_record_end>: Use
7244 TARGET_DEFAULT_NORETURN.
7245
05969c84
TT
72462014-02-19 Tom Tromey <tromey@redhat.com>
7247
7248 * target-delegates.c: Rebuild.
7249 * target.c (target_goto_record): Unconditionally delegate.
7250 * target.h (struct target_ops) <to_goto_record>: Use
7251 TARGET_DEFAULT_NORETURN.
7252
3679abfa
TT
72532014-02-19 Tom Tromey <tromey@redhat.com>
7254
7255 * target-delegates.c: Rebuild.
7256 * target.c (target_insn_history): Unconditionally delegate.
7257 * target.h (struct target_ops) <to_insn_history>: Use
7258 TARGET_DEFAULT_NORETURN.
7259
8444ab58
TT
72602014-02-19 Tom Tromey <tromey@redhat.com>
7261
7262 * target-delegates.c: Rebuild.
7263 * target.c (target_insn_history_from): Unconditionally delegate.
7264 * target.h (struct target_ops) <to_insn_history_from>: Use
7265 TARGET_DEFAULT_NORETURN.
7266
c29302cc
TT
72672014-02-19 Tom Tromey <tromey@redhat.com>
7268
7269 * target-delegates.c: Rebuild.
7270 * target.c (target_insn_history_range): Unconditionally delegate.
7271 * target.h (struct target_ops) <to_insn_history_range>: Use
7272 TARGET_DEFAULT_NORETURN.
7273
170049d4
TT
72742014-02-19 Tom Tromey <tromey@redhat.com>
7275
7276 * target-delegates.c: Rebuild.
7277 * target.c (target_call_history): Unconditionally delegate.
7278 * target.h (struct target_ops) <to_call_history>: Use
7279 TARGET_DEFAULT_NORETURN.
7280
16fc27d6
TT
72812014-02-19 Tom Tromey <tromey@redhat.com>
7282
7283 * target-delegates.c: Rebuild.
7284 * target.c (target_call_history_from): Unconditionally delegate.
7285 * target.h (struct target_ops) <to_call_history_from>: Use
7286 TARGET_DEFAULT_NORETURN.
7287
115d9817
TT
72882014-02-19 Tom Tromey <tromey@redhat.com>
7289
7290 * target-delegates.c: Rebuild.
7291 * target.c (target_call_history_range): Unconditionally delegate.
7292 * target.h (struct target_ops) <to_call_history_range>: Use
7293 TARGET_DEFAULT_NORETURN.
7294
eb276a6b
TT
72952014-02-19 Tom Tromey <tromey@redhat.com>
7296
7297 * target-delegates.c: Rebuild.
7298 * target.c (target_verify_memory): Unconditionally delegate.
7299 * target.h (struct target_ops) <to_verify_memory>: Use
7300 TARGET_DEFAULT_NORETURN.
7301
9e538d0d
TT
73022014-02-19 Tom Tromey <tromey@redhat.com>
7303
7304 * target-delegates.c: Rebuild.
7305 * target.c (target_core_of_thread): Unconditionally delegate.
7306 * target.h (struct target_ops) <to_core_of_thread>: Use
7307 TARGET_DEFAULT_RETURN.
7308
f6fb2925
TT
73092014-02-19 Tom Tromey <tromey@redhat.com>
7310
7311 * target-delegates.c: Rebuild.
7312 * target.c (target_flash_done): Unconditionally delegate.
7313 * target.h (struct target_ops) <to_flash_done>: Use
7314 TARGET_DEFAULT_NORETURN.
7315
e8a6c6ac
TT
73162014-02-19 Tom Tromey <tromey@redhat.com>
7317
7318 * target-delegates.c: Rebuild.
7319 * target.c (target_flash_erase): Unconditionally delegate.
7320 * target.h (struct target_ops) <to_flash_erase>: Use
7321 TARGET_DEFAULT_NORETURN.
7322
7e35c012
TT
73232014-02-19 Tom Tromey <tromey@redhat.com>
7324
7325 * target-delegates.c: Rebuild.
7326 * target.c (target_get_section_table): Unconditionally delegate.
7327 * target.h (struct target_ops) <to_get_section_table>: Use
7328 TARGET_DEFAULT_RETURN.
7329
770234d3
TT
73302014-02-19 Tom Tromey <tromey@redhat.com>
7331
7332 * target-delegates.c: Rebuild.
7333 * target.c (target_pid_to_str): Unconditionally delegate.
7334 (init_dummy_target): Don't initialize to_pid_to_str.
7335 (default_pid_to_str): Rename from dummy_pid_to_str.
7336 * target.h (struct target_ops) <to_pid_to_str>: Use
7337 TARGET_DEFAULT_FUNC.
7338
09b0dc2b
TT
73392014-02-19 Tom Tromey <tromey@redhat.com>
7340
7341 * target-delegates.c: Rebuild.
7342 * target.c (target_find_new_threads): Unconditionally delegate.
7343 * target.h (struct target_ops) <to_find_new_threads>: Use
7344 TARGET_DEFAULT_RETURN.
7345
7d4f8efa
TT
73462014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target-delegates.c: Rebuild.
7349 * target.c (target_program_signals): Unconditionally delegate.
7350 * target.h (struct target_ops) <to_program_signals>: Use
7351 TARGET_DEFAULT_IGNORE.
7352
035cad7f
TT
73532014-02-19 Tom Tromey <tromey@redhat.com>
7354
7355 * target-delegates.c: Rebuild.
7356 * target.c (target_pass_signals): Unconditionally delegate.
7357 * target.h (struct target_ops) <to_pass_signals>: Use
7358 TARGET_DEFAULT_IGNORE.
7359
8d657035
TT
73602014-02-19 Tom Tromey <tromey@redhat.com>
7361
7362 * target-delegates.c: Rebuild.
7363 * target.c (default_mourn_inferior): New function.
7364 (target_mourn_inferior): Unconditionally delegate.
7365 * target.h (struct target_ops) <to_mourn_inferior>: Use
7366 TARGET_DEFAULT_FUNC.
7367
098dba18
TT
73682014-02-19 Tom Tromey <tromey@redhat.com>
7369
7370 * target-delegates.c: Rebuild.
7371 * target.c (default_follow_fork): New function.
7372 (target_follow_fork): Unconditionally delegate.
7373 * target.h (struct target_ops) <to_follow_fork>: Use
7374 TARGET_DEFAULT_FUNC.
7375
423a4807
TT
73762014-02-19 Tom Tromey <tromey@redhat.com>
7377
7378 * target-delegates.c: Rebuild.
7379 * target.c (target_kill): Unconditionally delegate.
7380 * target.h (struct target_ops) <to_kill>: Use
7381 TARGET_DEFAULT_NORETURN.
7382
6c7e5e5c
TT
73832014-02-19 Tom Tromey <tromey@redhat.com>
7384
7385 * target-delegates.c: Rebuild.
7386 * target.c (target_masked_watch_num_registers): Unconditionally
7387 delegate.
7388 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7389 Use TARGET_DEFAULT_RETURN.
7390
8b1c364c
TT
73912014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_remove_mask_watchpoint): Unconditionally
7395 delegate.
7396 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7397 TARGET_DEFAULT_RETURN.
7398
cd4ae029
TT
73992014-02-19 Tom Tromey <tromey@redhat.com>
7400
7401 * target-delegates.c: Rebuild.
7402 * target.c (target_insert_mask_watchpoint): Unconditionally
7403 delegate.
7404 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7405 TARGET_DEFAULT_RETURN.
7406
a134316b
TT
74072014-02-19 Tom Tromey <tromey@redhat.com>
7408
7409 * target-delegates.c: Rebuild.
7410 * target.c (target_ranged_break_num_registers): Unconditionally
7411 delegate.
7412 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7413 Use TARGET_DEFAULT_RETURN.
7414
ad5989bd
TT
74152014-02-19 Tom Tromey <tromey@redhat.com>
7416
7417 * target-delegates.c: Rebuild.
7418 * target.c (target_fetch_registers): Unconditionally delegate.
7419 * target.h (struct target_ops) <to_fetch_registers>: Use
7420 TARGET_DEFAULT_NORETURN.
7421
46ee7e8d
TT
74222014-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_stop.
7427 * target.h (struct target_ops) <to_stop>: Use
7428 TARGET_DEFAULT_IGNORE.
7429
843f59ed
TT
74302014-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_run_breakpoint_commands.
7435 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7436 Use TARGET_DEFAULT_RETURN.
7437
ccfde2a0
TT
74382014-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_supports_evaluation_of_breakpoint_conditions.
7443 * target.h (struct target_ops)
7444 <to_supports_evaluation_of_breakpoint_conditions>: Use
7445 TARGET_DEFAULT_RETURN.
7446
0de91722
TT
74472014-02-19 Tom Tromey <tromey@redhat.com>
7448
7449 * target-delegates.c: Rebuild.
7450 * target.c (update_current_target): Don't inherit or default
7451 to_augmented_libraries_svr4_read.
7452 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7453 Use TARGET_DEFAULT_RETURN.
7454
9a7d8b48
TT
74552014-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_can_use_agent.
7460 * target.h (struct target_ops) <to_can_use_agent>: Use
7461 TARGET_DEFAULT_RETURN.
7462
d9db5b21
TT
74632014-02-19 Tom Tromey <tromey@redhat.com>
7464
7465 * target-delegates.c: Rebuild.
7466 * target.c (update_current_target): Don't inherit or default
7467 to_use_agent.
7468 * target.h (struct target_ops) <to_use_agent>: Use
7469 TARGET_DEFAULT_NORETURN.
7470
92155eeb
TT
74712014-02-19 Tom Tromey <tromey@redhat.com>
7472
7473 * target-delegates.c: Rebuild.
7474 * target.c (update_current_target): Don't inherit or default
7475 to_traceframe_info.
7476 (return_null): Remove.
7477 * target.h (struct target_ops) <to_traceframe_info>: Use
7478 TARGET_DEFAULT_RETURN.
7479
d6522a22
TT
74802014-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_static_tracepoint_markers_by_strid.
7485 * target.h (struct target_ops)
7486 <to_static_tracepoint_markers_by_strid>: Use
7487 TARGET_DEFAULT_NORETURN.
7488
4c3e4425
TT
74892014-02-19 Tom Tromey <tromey@redhat.com>
7490
7491 * target-delegates.c: Rebuild.
7492 * target.c (update_current_target): Don't inherit or default
7493 to_static_tracepoint_marker_at.
7494 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7495 Use TARGET_DEFAULT_RETURN.
7496
dcd6917f
TT
74972014-02-19 Tom Tromey <tromey@redhat.com>
7498
7499 * target-delegates.c: Rebuild.
7500 * target.c (update_current_target): Don't inherit or default
7501 to_set_permissions.
7502 * target.h (struct target_ops) <to_set_permissions>: Use
7503 TARGET_DEFAULT_IGNORE.
7504
22bcceee
TT
75052014-02-19 Tom Tromey <tromey@redhat.com>
7506
7507 * target-delegates.c: Rebuild.
7508 * target.c (update_current_target): Don't inherit or default
7509 to_get_tib_address.
7510 * target.h (struct target_ops) <to_get_tib_address>: Use
7511 TARGET_DEFAULT_NORETURN.
7512
8586ccaa
TT
75132014-02-19 Tom Tromey <tromey@redhat.com>
7514
7515 * target-delegates.c: Rebuild.
7516 * target.c (update_current_target): Don't inherit or default
7517 to_set_trace_notes.
7518 * target.h (struct target_ops) <to_set_trace_notes>: Use
7519 TARGET_DEFAULT_RETURN.
7520
91df8d1d
TT
75212014-02-19 Tom Tromey <tromey@redhat.com>
7522
7523 * target-delegates.c: Rebuild.
7524 * target.c (update_current_target): Don't initialize
7525 to_set_trace_buffer_size.
7526 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7527 TARGET_DEFAULT_IGNORE.
7528
8d526939
TT
75292014-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_set_circular_trace_buffer.
7534 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7535 TARGET_DEFAULT_IGNORE.
7536
0bcfeddf
TT
75372014-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_set_disconnected_tracing.
7542 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7543 TARGET_DEFAULT_IGNORE.
7544
9249843f
TT
75452014-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_get_min_fast_tracepoint_insn_len.
7550 (return_minus_one): Remove.
7551 * target.h (struct target_ops)
7552 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7553
ace92e7d
TT
75542014-02-19 Tom Tromey <tromey@redhat.com>
7555
7556 * target-delegates.c: Rebuild.
7557 * target.c (update_current_target): Don't inherit or default
7558 to_get_raw_trace_data.
7559 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7560 TARGET_DEFAULT_NORETURN.
7561
08120467
TT
75622014-02-19 Tom Tromey <tromey@redhat.com>
7563
7564 * target-delegates.c: Rebuild.
7565 * target.c (update_current_target): Don't inherit or default
7566 to_upload_trace_state_variables.
7567 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7568 Use TARGET_DEFAULT_RETURN.
7569
1e949b00
TT
75702014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target-delegates.c: Rebuild.
7573 * target.c (update_current_target): Don't inherit or default
7574 to_upload_tracepoints.
7575 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7576 TARGET_DEFAULT_RETURN.
7577
a2e6c147
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * target-delegates.c: Rebuild.
7581 * target.c (update_current_target): Don't inherit or default
7582 to_save_trace_data.
7583 * target.h (struct target_ops) <to_save_trace_data>: Use
7584 TARGET_DEFAULT_NORETURN.
7585
959bcd0b
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target-delegates.c: Rebuild.
7589 * target.c (update_current_target): Don't inherit or default
7590 to_get_trace_state_variable_value.
7591 * target.h (struct target_ops)
7592 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7593
afc94e66
TT
75942014-02-19 Tom Tromey <tromey@redhat.com>
7595
7596 * target-delegates.c: Rebuild.
7597 * target.c (update_current_target): Don't inherit or default
7598 to_trace_find.
7599 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7600
e51c07ea
TT
76012014-02-19 Tom Tromey <tromey@redhat.com>
7602
7603 * target-delegates.c: Rebuild.
7604 * target.c (update_current_target): Don't inherit or default
7605 to_trace_stop.
7606 * target.h (struct target_ops) <to_trace_stop>: Use
7607 TARGET_DEFAULT_NORETURN.
7608
6fea14cd
TT
76092014-02-19 Tom Tromey <tromey@redhat.com>
7610
7611 * target-delegates.c: Rebuild.
7612 * target.c (update_current_target): Don't inherit or default
7613 to_get_tracepoint_status.
7614 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7615 TARGET_DEFAULT_NORETURN.
7616
4072d4ff
TT
76172014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target-delegates.c: Rebuild.
7620 * target.c (update_current_target): Don't inherit or default
7621 to_get_trace_status.
7622 * target.h (struct target_ops) <to_get_trace_status>: Use
7623 TARGET_DEFAULT_RETURN.
7624
25da2e80
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target-delegates.c: Rebuild.
7628 * target.c (update_current_target): Don't inherit or default
7629 to_trace_start.
7630 * target.h (struct target_ops) <to_trace_start>: Use
7631 TARGET_DEFAULT_NORETURN.
7632
86dd181d
TT
76332014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * target-delegates.c: Rebuild.
7636 * target.c (update_current_target): Don't inherit or default
7637 to_trace_set_readonly_regions.
7638 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7639 Use TARGET_DEFAULT_NORETURN.
7640
05c41993
TT
76412014-02-19 Tom Tromey <tromey@redhat.com>
7642
7643 * target-delegates.c: Rebuild.
7644 * target.c (update_current_target): Don't inherit or default
7645 to_disable_tracepoint.
7646 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7647 TARGET_DEFAULT_NORETURN.
7648
151f70f1
TT
76492014-02-19 Tom Tromey <tromey@redhat.com>
7650
7651 * target-delegates.c: Rebuild.
7652 * target.c (update_current_target): Don't inherit or default
7653 to_enable_tracepoint.
7654 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7655 TARGET_DEFAULT_NORETURN.
7656
94eb98b9
TT
76572014-02-19 Tom Tromey <tromey@redhat.com>
7658
7659 * target-delegates.c: Rebuild.
7660 * target.c (update_current_target): Don't inherit or default
7661 to_download_trace_state_variable.
7662 * target.h (struct target_ops) <to_download_trace_state_variable>:
7663 Use TARGET_DEFAULT_NORETURN.
7664
719acc4a
TT
76652014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * target-delegates.c: Rebuild.
7668 * target.c (update_current_target): Don't inherit or default
7669 to_can_download_tracepoint.
7670 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7671 TARGET_DEFAULT_RETURN.
7672
9a980a22
TT
76732014-02-19 Tom Tromey <tromey@redhat.com>
7674
7675 * target-delegates.c: Rebuild.
7676 * target.c (update_current_target): Don't inherit or default
7677 to_download_tracepoint.
7678 * target.h (struct target_ops) <to_download_tracepoint>: Use
7679 TARGET_DEFAULT_NORETURN.
7680
5536135b
TT
76812014-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_trace_init.
7686 * target.h (struct target_ops) <to_trace_init>: Use
7687 TARGET_DEFAULT_RETURN.
7688
9409d39e
TT
76892014-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_supports_string_tracing.
7694 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7695 TARGET_DEFAULT_RETURN.
7696
aab1b22d
TT
76972014-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_supports_enable_disable_tracepoint.
7702 * target.h (struct target_ops)
7703 <to_supports_enable_disable_tracepoint>: Use
7704 TARGET_DEFAULT_RETURN.
7705
a7304748
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target-delegates.c: Rebuild.
7709 * target.c (update_current_target): Don't inherit or default
7710 to_supports_multi_process.
7711 * target.h (struct target_ops) <to_supports_multi_process>: Use
7712 TARGET_DEFAULT_RETURN.
7713
4229b31d
TT
77142014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (update_current_target): Don't inherit or default
7718 to_get_ada_task_ptid.
7719 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7720 TARGET_DEFAULT_FUNC.
7721
43eba180
TT
77222014-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_thread_architecture.
7727 * target.h (struct target_ops) <to_thread_architecture>: Use
7728 TARGET_DEFAULT_FUNC.
7729
fe31bf5b
TT
77302014-02-19 Tom Tromey <tromey@redhat.com>
7731
7732 * target-delegates.c: Rebuild.
7733 * target.c (update_current_target): Don't inherit or default
7734 to_execution_direction.
7735 * target.h (struct target_ops) <to_execution_direction>: Use
7736 TARGET_DEFAULT_FUNC.
7737
53e1cfc7
TT
77382014-02-19 Tom Tromey <tromey@redhat.com>
7739
7740 * target-delegates.c: Rebuild.
7741 * target.c (update_current_target): Don't inherit or default
7742 to_can_execute_reverse.
7743 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7744 TARGET_DEFAULT_RETURN.
7745 (target_can_execute_reverse): Unconditionally delegate.
7746
9bb9d61d
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (update_current_target): Don't inherit or default
7751 to_goto_bookmark.
7752 (dummy_goto_bookmark): Remove.
7753 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7754 * target.h (struct target_ops) <to_goto_bookmark>: Use
7755 TARGET_DEFAULT_NORETURN.
7756
3dbafbbb
TT
77572014-02-19 Tom Tromey <tromey@redhat.com>
7758
7759 * target-delegates.c: Rebuild.
7760 * target.c (update_current_target): Don't inherit or default
7761 to_get_bookmark.
7762 (dummy_get_bookmark): Remove.
7763 (init_dummy_target): Don't inherit or default to_get_bookmark.
7764 * target.h (struct target_ops) <to_get_bookmark>: Use
7765 TARGET_DEFAULT_NORETURN
7766
16f796b1
TT
77672014-02-19 Tom Tromey <tromey@redhat.com>
7768
7769 * target-delegates.c: Rebuild.
7770 * target.c (update_current_target): Don't inherit or default
7771 to_make_corefile_notes.
7772 (init_dummy_target): Don't initialize to_make_corefile_notes.
7773 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7774 TARGET_DEFAULT_FUNC.
7775
0b5a2719
TT
77762014-02-19 Tom Tromey <tromey@redhat.com>
7777
7778 * target-delegates.c: Rebuild.
7779 * target.c (update_current_target): Don't inherit or default
7780 to_find_memory_regions.
7781 (init_dummy_target): Don't initialize to_find_memory_regions.
7782 * target.h (struct target_ops) <to_find_memory_regions>: Use
7783 TARGET_DEFAULT_FUNC.
7784
d9cb0195
TT
77852014-02-19 Tom Tromey <tromey@redhat.com>
7786
7787 * target-delegates.c: Rebuild.
7788 * target.c (update_current_target): Don't inherit or default
7789 to_log_command.
7790 * target.h (struct target_ops) <to_log_command>: Use
7791 TARGET_DEFAULT_IGNORE.
7792 (target_log_command): Unconditionally delegate.
7793
830ca330
TT
77942014-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_pid_to_exec_file.
7799 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7800 TARGET_DEFAULT_RETURN.
7801
825828fc
TT
78022014-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_thread_name.
7807 (target_thread_name): Unconditionally delegate.
7808 * target.h (struct target_ops) <to_thread_name>: Use
7809 TARGET_DEFAULT_RETURN.
7810
4a7e6dda
TT
78112014-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_extra_thread_info.
7816 * target.h (struct target_ops) <to_extra_thread_info>: Use
7817 TARGET_DEFAULT_RETURN.
7818
0db88c1d
TT
78192014-02-19 Tom Tromey <tromey@redhat.com>
7820
7821 * target-delegates.c: Rebuild.
7822 * target.c (update_current_target): Don't inherit or default
7823 to_has_exited.
7824 * target.h (struct target_ops) <to_has_exited>: Use
7825 TARGET_DEFAULT_RETURN..
7826
6a9fa051
TT
78272014-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_set_syscall_catchpoint.
7832 (return_one): Remove.
7833 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7834 TARGET_DEFAULT_RETURN.
7835
62f64d7a
TT
78362014-02-19 Tom Tromey <tromey@redhat.com>
7837
7838 * target-delegates.c: Rebuild.
7839 * target.c (update_current_target): Don't inherit or default
7840 to_insert_exec_catchpoint.
7841 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7842 TARGET_DEFAULT_RETURN.
7843
cda0f38c
TT
78442014-01-08 Tom Tromey <tromey@redhat.com>
7845
7846 * target-delegates.c: Rebuild.
7847 * target.c (update_current_target): Don't inherit or default
7848 to_insert_exec_catchpoint.
7849 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7850 TARGET_DEFAULT_RETURN.
7851
95c3375e
TT
78522014-02-19 Tom Tromey <tromey@redhat.com>
7853
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7856 to_remove_vfork_catchpoint.
7857 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7858 TARGET_DEFAULT_RETURN.
7859
7e18a8dc
TT
78602014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * target-delegates.c: Rebuild.
7863 * target.c (update_current_target): Don't inherit or default
7864 to_insert_vfork_catchpoint.
7865 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7866 TARGET_DEFAULT_RETURN.
7867
e1a21fb7
TT
78682014-02-19 Tom Tromey <tromey@redhat.com>
7869
7870 * target-delegates.c: Rebuild.
7871 * target.c (update_current_target): Don't inherit or default
7872 to_remove_fork_catchpoint.
7873 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7874 TARGET_DEFAULT_RETURN.
7875
5958ebeb
TT
78762014-02-19 Tom Tromey <tromey@redhat.com>
7877
7878 * target-delegates.c: Rebuild.
7879 * target.c (update_current_target): Don't inherit or default
7880 to_insert_fork_catchpoint.
7881 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7882 TARGET_DEFAULT_RETURN.
7883
340ba4bf
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target-delegates.c: Rebuild.
7887 * target.c (update_current_target): Don't inherit or default
7888 to_post_startup_inferior.
7889 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7890 TARGET_DEFAULT_IGNORE.
7891
7634da87
TT
78922014-02-19 Tom Tromey <tromey@redhat.com>
7893
7894 * target-delegates.c: Rebuild.
7895 * target.c (update_current_target): Don't inherit or default
7896 to_load.
7897 * target.h (struct target_ops) <to_load>: Use
7898 TARGET_DEFAULT_NORETURN.
7899
e19e919f
TT
79002014-02-19 Tom Tromey <tromey@redhat.com>
7901
7902 * target-delegates.c: Rebuild.
7903 * target.c (update_current_target): Don't inherit or default
7904 to_terminal_info.
7905 * target.h (struct target_ops) <to_terminal_info>: Use
7906 TARGET_DEFAULT_FUNC.
7907
c6ea8f79
TT
79082014-02-19 Tom Tromey <tromey@redhat.com>
7909
7910 * target-delegates.c: Rebuild.
7911 * target.c (update_current_target): Don't inherit or default
7912 to_terminal_save_ours.
7913 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7914 TARGET_DEFAULT_IGNORE.
7915
e4a733f1
TT
79162014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target-delegates.c: Rebuild.
7919 * target.c (update_current_target): Don't inherit or default
7920 to_terminal_ours.
7921 * target.h (struct target_ops) <to_terminal_ours>: Use
7922 TARGET_DEFAULT_IGNORE.
7923
74fcbef9
TT
79242014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * target-delegates.c: Rebuild.
7927 * target.c (update_current_target): Don't inherit or default
7928 to_terminal_ours_for_output.
7929 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7930 TARGET_DEFAULT_IGNORE.
7931
ddeaacc9
TT
79322014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * target-delegates.c: Rebuild.
7935 * target.c (update_current_target): Don't inherit or default
7936 to_terminal_inferior.
7937 * target.h (struct target_ops) <to_terminal_inferior>: Use
7938 TARGET_DEFAULT_IGNORE.
7939
0343661d
TT
79402014-02-19 Tom Tromey <tromey@redhat.com>
7941
7942 * target-delegates.c: Rebuild.
7943 * target.c (update_current_target): Don't inherit or default
7944 to_terminal_init.
7945 * target.h (struct target_ops) <to_terminal_init>: Use
7946 TARGET_DEFAULT_IGNORE.
7947
77cdffe9
TT
79482014-02-19 Tom Tromey <tromey@redhat.com>
7949
7950 * target-delegates.c: Rebuild.
7951 * target.c (update_current_target): Don't inherit or default
7952 to_can_accel_watchpoint_condition.
7953 * target.h (struct target_ops)
7954 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7955
d03655e4
TT
79562014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target-delegates.c: Rebuild.
7959 * target.c (update_current_target): Don't inherit or default
7960 to_region_ok_for_hw_watchpoint.
7961 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7962 Use TARGET_DEFAULT_FUNC.
7963
65f160a9
TT
79642014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * target-delegates.c: Rebuild.
7967 * target.c (update_current_target): Don't inherit or default
7968 to_watchpoint_addr_within_range.
7969 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7970 Use TARGET_DEFAULT_FUNC.
7971
61dd109f
TT
79722014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * target-delegates.c: Rebuild.
7975 * target.c (update_current_target): Don't inherit or default
7976 to_remove_watchpoint.
7977 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7978 TARGET_DEFAULT_NORETURN.
7979
016facd4
TT
79802014-02-19 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (update_current_target): Don't inherit or default
7984 to_insert_watchpoint.
7985 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7986 TARGET_DEFAULT_RETURN.
7987
418dabac
TT
79882014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_remove_hw_breakpoint.
7993 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7994 TARGET_DEFAULT_RETURN.
7995
61b371f9
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8000 to_insert_hw_breakpoint.
8001 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8002 TARGET_DEFAULT_RETURN.
8003
52b51d06
TT
80042014-02-19 Tom Tromey <tromey@redhat.com>
8005
8006 * target-delegates.c: Rebuild.
8007 * target.c (update_current_target): Don't inherit or default
8008 to_can_use_hw_breakpoint.
8009 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8010 TARGET_DEFAULT_RETURN.
8011
f86e59b2
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_files_info.
8017 * target.h (struct target_ops) <to_files_info>: Use
8018 TARGET_DEFAULT_IGNORE.
8019
6c628163
TT
80202014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_store.
8025 * target.h (struct target_ops) <to_store>: Use
8026 TARGET_DEFAULT_NORETURN.
8027
bebd3233
TT
80282014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_post_attach.
8033 * target.h (struct target_ops) <to_post_attach>: Use
8034 TARGET_DEFAULT_IGNORE.
8035
a53f3625
TT
80362014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_rcmd.
8041 (default_rcmd): New function.
8042 (do_monitor_command): Unconditionally delegate.
8043 * target.h (struct target_ops) <to_rmcd>: Use
8044 TARGET_DEFAULT_FUNC.
8045
e9a29200
TT
80462014-02-19 Tom Tromey <tromey@redhat.com>
8047
8048 * target-delegates.c: Rebuild.
8049 * target.c (init_dummy_target): Don't initialize to_attach.
8050 (target_attach): Unconditionally delegate.
8051 * target.h (struct target_ops) <to_attach>: Use
8052 TARGET_DEFAULT_FUNC.
8053
09da0d0a
TT
80542014-02-19 Tom Tromey <tromey@redhat.com>
8055
8056 * target-delegates.c: Rebuild.
8057 * target.c (target_detach): Unconditionally delegate.
8058 (init_dummy_target): Don't initialize to_detach.
8059 * target.h (struct target_ops) <to_detach>: Use
8060 TARGET_DEFAULT_IGNORE.
8061
5436ff03
TT
80622014-02-19 Tom Tromey <tromey@redhat.com>
8063
8064 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8065 Add argument.
8066 (target_augmented_libraries_svr4_read): Add argument.
8067 * target.c (update_current_target): Update.
8068 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8069 argument.
8070
f0d960ea
TT
80712014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target.h (struct target_ops) <to_call_history_range>: Add
8074 argument.
8075 * target.c (target_call_history_range): Add argument.
8076 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8077 argument.
8078 (record_btrace_call_history_from): Update.
8079
ec0aea04
TT
80802014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target.h (struct target_ops) <to_call_history_from>: Add
8083 argument.
8084 * target.c (target_call_history_from): Add argument.
8085 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8086 argument.
8087
5df2fcba
TT
80882014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * target.h (struct target_ops) <to_call_history>: Add argument.
8091 * target.c (target_call_history): Add argument.
8092 * record-btrace.c (record_btrace_call_history): Add 'self'
8093 argument.
8094
4e99c6b7
TT
80952014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target.h (struct target_ops) <to_insn_history_range>: Add
8098 argument.
8099 * target.c (target_insn_history_range): Add argument.
8100 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8101 argument.
8102 (record_btrace_insn_history_from): Update.
8103
9abc3ff3
TT
81042014-02-19 Tom Tromey <tromey@redhat.com>
8105
8106 * target.h (struct target_ops) <to_insn_history_from>: Add
8107 argument.
8108 * target.c (target_insn_history_from): Add argument.
8109 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8110 argument.
8111
7a6c5609
TT
81122014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * target.h (struct target_ops) <to_insn_history>: Add argument.
8115 * target.c (target_insn_history): Add argument.
8116 * record-btrace.c (record_btrace_insn_history): Add 'self'
8117 argument.
8118
606183ac
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target.h (struct target_ops) <to_goto_record>: Add argument.
8122 * target.c (target_goto_record): Add argument.
8123 * record-full.c (record_full_goto): Add 'self' argument.
8124 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8125
307a1b91
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8129 * target.c (target_goto_record_end): Add argument.
8130 * record-full.c (record_full_goto_end): Add 'self' argument.
8131 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8132
08475817
TT
81332014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target.h (struct target_ops) <to_goto_record_begin>: Add
8136 argument.
8137 * target.c (target_goto_record_begin): Add argument.
8138 * record-full.c (record_full_goto_begin): Add 'self' argument.
8139 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8140 argument.
8141
1c63c994
TT
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target.h (struct target_ops) <to_record_is_replaying>: Add
8145 argument.
8146 * target.c (target_record_is_replaying): Add argument.
8147 * record-full.c (record_full_is_replaying): Add 'self' argument.
8148 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8149 argument.
8150 (record_btrace_xfer_partial, record_btrace_store_registers)
8151 (record_btrace_prepare_to_store, record_btrace_resume)
8152 (record_btrace_wait, record_btrace_decr_pc_after_break)
8153 (record_btrace_find_new_threads, record_btrace_thread_alive):
8154 Update.
8155
d1b55219
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target.h (struct target_ops) <to_delete_record>: Add argument.
8159 * target.c (target_delete_record): Add argument.
8160 * record-full.c (record_full_delete): Add 'self' argument.
8161
1390f529
TT
81622014-02-19 Tom Tromey <tromey@redhat.com>
8163
8164 * target.h (struct target_ops) <to_save_record>: Add argument.
8165 * target.c (target_save_record): Add argument.
8166 * record-full.c (record_full_save): Add 'self' argument.
8167 (record_full_save): Add 'self' argument.
8168
630d6a4a
TT
81692014-02-19 Tom Tromey <tromey@redhat.com>
8170
8171 * target.h (struct target_ops) <to_info_record>: Add argument.
8172 * target.c (target_info_record): Add argument.
8173 * record.c (info_record_command): Add argument.
8174 * record-full.c (record_full_info): Add 'self' argument.
8175 * record-btrace.c (record_btrace_info): Add 'self' argument.
8176
c6cd7c02
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8180 * target.c (target_stop_recording): Add argument.
8181 * record.c (record_stop): Add argument.
8182 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8183 argument.
8184
39c49f83
TT
81852014-02-19 Tom Tromey <tromey@redhat.com>
8186
8187 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8188 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8189 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8190 argument.
8191 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8192 (_initialize_amd64_linux_nat): Use it.
8193 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8194 (_initialize_i386_linux_nat): Use it.
8195
1777056d
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8199 * target.c (target_teardown_btrace): Add argument.
8200 * remote.c (remote_teardown_btrace): Add 'self' argument.
8201 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8202 argument.
8203 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8204 argument.
8205
25e95349
TT
82062014-02-19 Tom Tromey <tromey@redhat.com>
8207
8208 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8209 * target.c (target_disable_btrace): Add argument.
8210 * remote.c (remote_disable_btrace): Add 'self' argument.
8211 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8212 argument.
8213 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8214 argument.
8215
e3c49f88
TT
82162014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8219 * target.c (target_enable_btrace): Add argument.
8220 * remote.c (remote_enable_btrace): Add 'self' argument.
8221 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8222 argument.
8223 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8224 argument.
8225
fe38f897
TT
82262014-02-19 Tom Tromey <tromey@redhat.com>
8227
8228 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8229 (target_can_use_agent): Add argument.
8230 * target.c (update_current_target): Update.
8231 * remote.c (remote_can_use_agent): Add 'self' argument.
8232 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8233
2c152180
TT
82342014-02-19 Tom Tromey <tromey@redhat.com>
8235
8236 * target.h (struct target_ops) <to_use_agent>: Add argument.
8237 (target_use_agent): Add argument.
8238 * target.c (update_current_target): Update.
8239 * remote.c (remote_use_agent): Add 'self' argument.
8240 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8241
a893e81f
TT
82422014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8245 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8246 (target_traceframe_info): Add argument.
8247 * target.c (update_current_target): Update.
8248 * remote.c (remote_traceframe_info): Add 'self' argument.
8249 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8250
c686c57f
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target.h (target_static_tracepoint_markers_by_strid): Add
8254 argument.
8255 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8256 'self' argument.
8257 * target.c (update_current_target): Update.
8258 * remote.c (struct target_ops)
8259 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8260 * linux-nat.c (struct target_ops)
8261 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8262
61fc905d
TT
82632014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8266 Add argument.
8267 (target_static_tracepoint_marker_at): Add argument.
8268 * target.c (update_current_target): Update.
8269 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8270 argument.
8271
c378d69d
TT
82722014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8275 (target_set_permissions): Add argument.
8276 * target.c (update_current_target): Update.
8277 * remote.c (remote_set_permissions): Add 'self' argument.
8278 (remote_start_remote): Update.
8279
bd7ae0f5
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8283 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8284 (target_get_tib_address): Add argument.
8285 * target.c (update_current_target): Update.
8286 * remote.c (remote_get_tib_address): Add 'self' argument.
8287
d9e68a2c
TT
82882014-02-19 Tom Tromey <tromey@redhat.com>
8289
8290 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8291 (target_set_trace_notes): Add argument.
8292 * target.c (update_current_target): Update.
8293 * remote.c (remote_set_trace_notes): Add 'self' argument.
8294
4da384be
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8298 argument.
8299 (target_set_trace_buffer_size): Add argument.
8300 * target.c (update_current_target): Update.
8301 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8302
736d5b1f
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8306 argument.
8307 (target_set_circular_trace_buffer): Add argument.
8308 * target.c (update_current_target): Update.
8309 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8310 argument.
8311
37b25738
TT
83122014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8315 argument.
8316 (target_set_disconnected_tracing): Add argument.
8317 * target.c (update_current_target): Update.
8318 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8319
0e67620a
TT
83202014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target.h (struct target_ops)
8323 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8324 (target_get_min_fast_tracepoint_insn_len): Add argument.
8325 * target.c (update_current_target): Update.
8326 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8327 argument.
8328
88ee6f45
TT
83292014-02-19 Tom Tromey <tromey@redhat.com>
8330
8331 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8332 argument.
8333 (target_get_raw_trace_data): Add argument.
8334 * target.c (update_current_target): Update.
8335 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8336
181e3713
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8340 Add argument.
8341 (target_upload_trace_state_variables): Add argument.
8342 * target.c (update_current_target): Update.
8343 * remote.c (remote_upload_trace_state_variables): Add 'self'
8344 argument.
8345 (remote_start_remote): Update.
8346
ab6617cc
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8350 argument.
8351 (target_upload_tracepoints): Add argument.
8352 * target.c (update_current_target): Update.
8353 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8354 (remote_start_remote): Update.
8355
dc3decaf
TT
83562014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8359 (target_save_trace_data): Add argument.
8360 * target.c (update_current_target): Update.
8361 * remote.c (remote_save_trace_data): Add 'self' argument.
8362
4011015b
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8366 argument.
8367 * target.h (struct target_ops)
8368 <to_get_trace_state_variable_value>: Add argument.
8369 (target_get_trace_state_variable_value): Add argument.
8370 * target.c (update_current_target): Update.
8371 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8372 argument.
8373 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8374
bd4c6793
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8378 * target.h (struct target_ops) <to_trace_find>: Add argument.
8379 (target_trace_find): Add argument.
8380 * target.c (update_current_target): Update.
8381 * remote.c (remote_trace_find): Add 'self' argument.
8382 * ctf.c (ctf_trace_find): Add 'self' argument.
8383
74499f1b
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8387 (target_trace_stop): Add argument.
8388 * target.c (update_current_target): Update.
8389 * remote.c (remote_trace_stop): Add 'self' argument.
8390
db90e85c
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8394 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8395 argument.
8396 (target_get_tracepoint_status): Add argument.
8397 * target.c (update_current_target): Update.
8398 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8399
8bd200f1
TT
84002014-02-19 Tom Tromey <tromey@redhat.com>
8401
8402 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8403 * target.h (struct target_ops) <to_get_trace_status>: Add
8404 argument.
8405 (target_get_trace_status): Add argument.
8406 * target.c (update_current_target): Update.
8407 * remote.c (remote_get_trace_status): Add 'self' argument.
8408 (remote_start_remote, remote_can_download_tracepoint): Update.
8409 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8410
e2d1aae3
TT
84112014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * target.h (struct target_ops) <to_trace_start>: Add argument.
8414 (target_trace_start): Add argument.
8415 * target.c (update_current_target): Update.
8416 * remote.c (remote_trace_start): Add 'self' argument.
8417
583f9a86
TT
84182014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8421 Add argument.
8422 (target_trace_set_readonly_regions): Add argument.
8423 * target.c (update_current_target): Update.
8424 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8425 argument.
8426
780b049c
TT
84272014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8430 argument.
8431 (target_disable_tracepoint): Add argument.
8432 * target.c (update_current_target): Update.
8433 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8434
46670d57
TT
84352014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8438 argument.
8439 (target_enable_tracepoint): Add argument.
8440 * target.c (update_current_target): Update.
8441 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8442
559d2b81
TT
84432014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target.h (struct target_ops) <to_download_trace_state_variable>:
8446 Add argument.
8447 (target_download_trace_state_variable): Add argument.
8448 * target.c (update_current_target): Update.
8449 * remote.c (remote_download_trace_state_variable): Add 'self'
8450 argument.
8451
a52a8357
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8455 argument.
8456 (target_can_download_tracepoint): Add argument.
8457 * target.c (update_current_target): Update.
8458 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8459
548f7808
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target.h (struct target_ops) <to_download_tracepoint>: Add
8463 argument.
8464 (target_download_tracepoint): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_download_tracepoint): Add 'self' argument.
8467
ecae04e1
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target.h (struct target_ops) <to_trace_init>: Add argument.
8471 (target_trace_init): Add argument.
8472 * target.c (update_current_target): Update.
8473 * remote.c (remote_trace_init): Add 'self' argument.
8474
fab5aa7c
TT
84752014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8478 * target.c (target_fileio_readlink): Add argument.
8479 * remote.c (remote_hostio_readlink): Add 'self' argument.
8480 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8481
dbbca37d
TT
84822014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8485 * target.c (target_fileio_unlink): Add argument.
8486 * remote.c (remote_hostio_unlink): Add 'self' argument.
8487 (remote_file_delete): Update.
8488 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8489
df39ea25
TT
84902014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8493 * target.c (target_fileio_close): Add argument.
8494 * remote.c (remote_hostio_close): Add 'self' argument.
8495 (remote_hostio_close_cleanup): Update.
8496 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8497 Update.
8498 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8499
a3be983c
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8503 * target.c (target_fileio_pread): Add argument.
8504 * remote.c (remote_hostio_pread): Add 'self' argument.
8505 (remote_bfd_iovec_pread, remote_file_get): Update.
8506 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8507
0d866f62
TT
85082014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8511 * target.c (target_fileio_pwrite): Add argument.
8512 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8513 (remote_file_put): Update.
8514 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8515
cd897586
TT
85162014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8519 * target.c (target_fileio_open): Add argument.
8520 * remote.c (remote_hostio_open): Add 'self' argument.
8521 (remote_bfd_iovec_open): Add 'self' argument.
8522 (remote_file_put): Add 'self' argument.
8523 (remote_file_get): Add 'self' argument.
8524 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8525
78eff0ec
TT
85262014-02-19 Tom Tromey <tromey@redhat.com>
8527
8528 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8529 Add argument.
8530 (target_can_run_breakpoint_commands): Add argument.
8531 * target.c (update_current_target): Update.
8532 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8533 argument.
8534 (remote_insert_breakpoint): Add 'self' argument.
8535 (remote_insert_hw_breakpoint): Add 'self' argument.
8536 (remote_can_run_breakpoint_commands): Add 'self' argument.
8537
efcc2da7
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target.h (struct target_ops)
8541 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8542 (target_supports_evaluation_of_breakpoint_conditions): Add
8543 argument.
8544 * target.c (update_current_target): Update.
8545 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8546 argument.
8547 (remote_insert_breakpoint): Add 'self' argument.
8548 (remote_insert_hw_breakpoint): Add 'self' argument.
8549 (remote_supports_cond_breakpoints): Add 'self' argument.
8550
6de37a3a
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8554 argument.
8555 (target_supports_string_tracing): Add argument.
8556 * target.c (update_current_target): Update.
8557 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8558
2bfc0540
TT
85592014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target.h (struct target_ops)
8562 <to_supports_disable_randomization>: Add argument.
8563 * target.c (find_default_supports_disable_randomization): Add
8564 argument.
8565 (target_supports_disable_randomization): Add argument.
8566 (find_default_supports_disable_randomization): Add 'self'
8567 argument.
8568 * remote.c (extended_remote_supports_disable_randomization): Add
8569 'self' argument.
8570 (remote_supports_disable_randomization): Add 'self' argument.
8571 (extended_remote_create_inferior): Update.
8572 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8573 'self' argument.
8574
7d178d6a
TT
85752014-02-19 Tom Tromey <tromey@redhat.com>
8576
8577 * target.h (struct target_ops)
8578 <to_supports_enable_disable_tracepoint>: Add argument.
8579 (target_supports_enable_disable_tracepoint): Add argument.
8580 * target.c (update_current_target): Update.
8581 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8582 argument.
8583
86ce2668
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target.h (struct target_ops) <to_supports_multi_process>: Add
8587 argument.
8588 (target_supports_multi_process): Add argument.
8589 * target.c (update_current_target): Update.
8590 * remote.c (remote_supports_multi_process): Add 'self' argument.
8591 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8592 argument.
8593 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8594 argument.
8595
4c612759
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_execution_direction>: Add
8599 argument.
8600 (target_execution_direction): Add argument.
8601 * target.c (default_execution_direction): Add 'self' argument.
8602 * record-full.c (record_full_execution_direction): Add 'self'
8603 argument.
8604
19db3e69
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8608 argument.
8609 (target_can_execute_reverse): Add argument.
8610 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8611 * record-full.c (record_full_can_execute_reverse): Add 'self'
8612 argument.
8613 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8614 argument.
8615
1e6b91a4
TT
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8619 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8620 argument.
8621 (target_get_ada_task_ptid): Add argument.
8622 * target.c (update_current_target): Update.
8623 (default_get_ada_task_ptid): Add 'self' argument.
8624 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8625 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8626 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8627 argument.
8628 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8629 argument.
8630 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8631 argument.
8632 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8633 argument.
8634 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8635 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8636 argument.
8637
3c80fb48
TT
86382014-02-19 Tom Tromey <tromey@redhat.com>
8639
8640 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8641 (target_goto_bookmark): Add argument.
8642 * target.c (dummy_goto_bookmark): Add 'self' argument.
8643 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8644
dd0e2830
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8648 (target_get_bookmark): Add argument.
8649 * target.c (dummy_get_bookmark): Add 'self' argument.
8650 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8651
fc6691b2
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8655 argument.
8656 (target_make_corefile_notes): Add argument.
8657 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8658 * procfs.c (procfs_make_note_section): Add 'self' argument.
8659 (procfs_make_note_section): Add 'self' argument.
8660 (procfs_make_note_section): Add 'self' argument.
8661 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8662 argument.
8663 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8664 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8665 * exec.c (exec_make_note_section): Add 'self' argument.
8666 (exec_make_note_section): Add 'self' argument.
8667
2e73927c
TT
86682014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target.h (struct target_ops) <to_find_memory_regions>: Add
8671 argument.
8672 (target_find_memory_regions): Add argument.
8673 * target.c (dummy_find_memory_regions): Add 'self' argument.
8674 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8675 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8676 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8677 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8678 * exec. (exec_do_find_memory_regions): New global.
8679 (exec_set_find_memory_regions): Rewrite.
8680 (exec_find_memory_regions): New function.
8681 (init_exec_ops): Use exec_find_memory_regions.
8682
2a9a2795
TT
86832014-02-19 Tom Tromey <tromey@redhat.com>
8684
8685 * target.h (struct target_ops) <to_supports_non_stop>: Add
8686 argument.
8687 * target.c (find_default_supports_non_stop): Add argument.
8688 (target_supports_non_stop): Add argument.
8689 (find_default_supports_non_stop): Add 'self' argument.
8690 * remote.c (remote_supports_non_stop): Add 'self' argument.
8691 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8692
4ab76ea3
TT
86932014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target.h (struct target_ops) <to_log_command>: Add argument.
8696 (target_log_command): Add argument.
8697 * serial.h (serial_log_command): Add 'self' argument.
8698 * serial.c (serial_log_command): Add 'self' argument.
8699
8dd27370
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8703 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8704 argument.
8705 (target_pid_to_exec_file): Add argument.
8706 * target.c (debug_to_pid_to_exec_file): Add argument.
8707 (update_current_target): Update.
8708 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8709 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8710 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8711 (linux_handle_extended_wait): Update.
8712 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8713 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8714 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8715 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8716
1aac633b
TT
87172014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target.h (struct target_ops) <to_rcmd>: Add argument.
8720 (target_rcmd): Add argument.
8721 * target.c (debug_to_rcmd): Add argument.
8722 (update_current_target, do_monitor_command): Update.
8723 * remote.c (remote_rcmd): Add 'self' argument.
8724 * monitor.c (monitor_rcmd): Add 'self' argument.
8725
1eab8a48
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * windows-nat.c (windows_stop): Add 'self' argument.
8729 * target.h (struct target_ops) <to_stop>: Add argument.
8730 * target.c (target_stop): Add argument.
8731 (debug_to_stop): Add argument.
8732 (update_current_target): Update.
8733 * remote.c (remote_stop): Add 'self' argument.
8734 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8735 (gdbsim_cntrl_c): Update.
8736 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8737 * procfs.c (procfs_stop): Add 'self' argument.
8738 * nto-procfs.c (procfs_stop): Add 'self' argument.
8739 * monitor.c (monitor_stop): Add 'self' argument.
8740 (monitor_open): Update.
8741 * linux-nat.c (linux_nat_stop): Add argument.
8742 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8743 * gnu-nat.c (gnu_stop): Add 'self' argument.
8744 * darwin-nat.c (darwin_stop): Add 'self' argument.
8745
503a628d
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target.h (struct target_ops) <to_thread_name>: Add argument.
8749 * target.c (target_thread_name): Add argument.
8750 (update_current_target): Update.
8751 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8752
c15906d8
TT
87532014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target.h (struct target_ops) <to_extra_thread_info>: Add
8756 argument.
8757 (target_extra_thread_info): Add argument.
8758 * target.c (update_current_target): Update.
8759 * remote.c (remote_threads_extra_info): Add 'self' argument.
8760 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8761 argument.
8762 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8763 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8764 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8765 argument.
8766 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8767 argument.
8768 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8769 argument.
8770 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8771 argument.
8772
daf5e9b6
TT
87732014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target.h (struct target_ops) <to_program_signals>: Add argument.
8776 * target.c (target_program_signals): Add argument.
8777 * remote.c (remote_program_signals): Add 'self' argument.
8778
94bedb42
TT
87792014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8782 * target.c (target_pass_signals): Add argument.
8783 * remote.c (remote_pass_signals): Add 'self' argument.
8784 (remote_start_remote): Update.
8785 * procfs.c (procfs_pass_signals): Add 'self' argument.
8786 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8787 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8788 (linux_nat_create_inferior, linux_nat_attach): Update.
8789
da82bd6b
TT
87902014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * windows-nat.c (windows_can_run): Add 'self' argument.
8793 * target.h (struct target_ops) <to_can_run>: Add argument.
8794 (target_can_run): Add argument.
8795 * target.c (debug_to_can_run): Add argument.
8796 (update_current_target): Update.
8797 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8798 * inf-child.c (inf_child_can_run): Add 'self' argument.
8799 * go32-nat.c (go32_can_run): Add 'self' argument.
8800
d796e1d6
TT
88012014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target.h (struct target_ops) <to_has_exited>: Add argument.
8804 (target_has_exited): Add argument.
8805 * target.c (debug_to_has_exited): Add argument.
8806 (update_current_target): Update.
8807
ff214e67
TT
88082014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8811 argument.
8812 (target_set_syscall_catchpoint): Add argument.
8813 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8814 argument.
8815 * target.c (update_current_target): Update.
8816
758e29d2
TT
88172014-02-19 Tom Tromey <tromey@redhat.com>
8818
8819 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8820 argument.
8821 (target_remove_exec_catchpoint): Add argument.
8822 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8823 (update_current_target): Update.
8824 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8825 argument.
8826
ba025e51
TT
88272014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8830 argument.
8831 (target_insert_exec_catchpoint): Add argument.
8832 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8833 (update_current_target): Update.
8834 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8835 argument.
8836
e98cf0cd
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8840 argument.
8841 (target_remove_vfork_catchpoint): Add argument.
8842 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8843 (update_current_target): Update.
8844 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8845 argument.
8846
3ecc7da0
TT
88472014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8850 argument.
8851 (target_insert_vfork_catchpoint): Add argument.
8852 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8853 (update_current_target): Update.
8854 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8855 argument.
8856
973fc227
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8860 argument.
8861 (target_remove_fork_catchpoint): Add argument.
8862 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8863 (update_current_target): Update.
8864 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8865 argument.
8866
a863b201
TT
88672014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8870 argument.
8871 (target_insert_fork_catchpoint): Add argument.
8872 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8873 (update_current_target): Update.
8874 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8875 argument.
8876
2e97a79e
TT
88772014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8880 argument.
8881 (target_post_startup_inferior): Add argument.
8882 * target.c (debug_to_post_startup_inferior): Add argument.
8883 (update_current_target): Update.
8884 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8885 argument.
8886 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8887 argument.
8888 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8889 argument.
8890 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8891 argument.
8892 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8893 'self' argument.
8894 (super_post_startup_inferior): Likewise.
8895 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8896 'self' argument.
8897 (super_post_startup_inferior): Likewise.
8898 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8899 Add 'self' argument.
8900 (super_post_startup_inferior): Likewise.
8901
71a9f134
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target.h (struct target_ops) <to_load>: Add argument.
8905 * target.c (target_load): Add argument.
8906 (debug_to_load): Add argument.
8907 (update_current_target): Update.
8908 * remote.c (remote_load): Add 'self' argument.
8909 * remote-sim.c (gdbsim_load): Add 'self' argument.
8910 * remote-mips.c (mips_load): Add 'self' argument.
8911 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8912 * monitor.c (monitor_load): Add 'self' argument.
8913 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8914
0a4f40a2
TT
89152014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8918 (target_terminal_info): Add argument.
8919 * target.c (debug_to_terminal_info): Add argument.
8920 (default_terminal_info): Likewise.
8921 * inflow.c (child_terminal_info): Add 'self' argument.
8922 * inferior.h (child_terminal_info): Add 'self' argument.
8923 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8924
ae3bd431
TT
89252014-02-19 Tom Tromey <tromey@redhat.com>
8926
8927 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8928 argument.
8929 (target_terminal_save_ours): Add argument.
8930 * target.c (debug_to_terminal_save_ours): Add argument.
8931 (update_current_target): Update.
8932 * inflow.c (terminal_save_ours): Add 'self' argument.
8933 * inferior.h (terminal_save_ours): Add 'self' argument.
8934
e3594fd1
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8938 (target_terminal_ours): Add argument.
8939 * target.c (debug_to_terminal_ours): Add argument.
8940 (update_current_target): Update.
8941 * remote.c (remote_terminal_ours): Add 'self' argument.
8942 (remote_close): Update.
8943 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8944 * inflow.c (terminal_ours): Add 'self' argument.
8945 * inferior.h (terminal_ours): Add 'self' argument.
8946 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8947
2e1e1a19
TT
89482014-02-19 Pedro Alves <palves@redhat.com>
8949 Tom Tromey <tromey@redhat.com>
8950
8951 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8952 argument.
8953 (target_terminal_ours_for_output): Add argument.
8954 * target.c (debug_to_terminal_ours_for_output): Add argument.
8955 (update_current_target): Update.
8956 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8957 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8958 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8959
d2f640d4
TT
89602014-02-19 Tom Tromey <tromey@redhat.com>
8961
8962 * target.h (struct target_ops) <to_terminal_inferior>: Add
8963 argument.
8964 * target.c (target_terminal_inferior): Add argument.
8965 (update_current_target): Update.
8966 * remote.c (remote_terminal_inferior): Add 'self' argument.
8967 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8968 * inflow.c (terminal_inferior): Add 'self' argument.
8969 * inferior.h (terminal_inferior): Add 'self' argument.
8970 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8971 (go32_terminal_inferior): Add 'self' argument.
8972
c42bf286
TT
89732014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8976 (target_terminal_init): Add argument.
8977 * target.c (debug_to_terminal_init): Add argument.
8978 (update_current_target): Update.
8979 * inflow.c (terminal_init_inferior): Add 'self' argument.
8980 * inferior.h (terminal_init_inferior): Add 'self' argument.
8981 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8982 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8983
c3a5ff89
TT
89842014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target.h (struct target_ops)
8987 <to_can_accel_watchpoint_condition>: Add argument.
8988 (target_can_accel_watchpoint_condition): Add argument.
8989 * target.c (debug_to_can_accel_watchpoint_condition): Add
8990 argument.
8991 (update_current_target): Update.
8992 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8993 'self' argument.
8994
31568a15
TT
89952014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8998 Add argument.
8999 (target_region_ok_for_hw_watchpoint): Add argument.
9000 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9001 (default_region_ok_for_hw_watchpoint): Add argument.
9002 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9003 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9004 argument.
9005 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9006 argument.
9007 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9008 argument.
9009 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9010 'self' argument.
9011 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9012 'self' argument.
9013 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9014 'self' argument.
9015 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9016 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9017 'self' argument.
9018 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9019 Add 'self' argument.
9020
7bb99c53
TT
90212014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9024 argument.
9025 (target_insert_watchpoint): Add argument.
9026 * target.c (debug_to_insert_watchpoint): Add argument.
9027 (update_current_target): Update.
9028 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9029 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9030 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9031 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9032 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9033 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9034 argument.
9035 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9036 (procfs_insert_hw_watchpoint): Add 'self' argument.
9037 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9038 argument.
9039 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9040 argument.
9041 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9042 argument.
9043 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9044 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9045 argument.
9046 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9047 'self' argument.
9048
11b5219a
TT
90492014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9052 argument.
9053 (target_remove_watchpoint): Add argument.
9054 * target.c (debug_to_remove_watchpoint): Add argument.
9055 (update_current_target): Update.
9056 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9057 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9058 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9059 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9060 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9061 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9062 argument.
9063 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9064 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9065 argument.
9066 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9067 argument.
9068 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9069 argument.
9070 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9071 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9072 argument.
9073 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9074 'self' argument.
9075
a64dc96c
TT
90762014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9079 argument.
9080 (target_remove_hw_breakpoint): Add argument.
9081 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9082 (update_current_target): Update.
9083 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9084 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9085 argument.
9086 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9087 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9088 argument.
9089 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9090 'self' argument.
9091
23a26771
TT
90922014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9095 argument.
9096 (target_insert_hw_breakpoint): Add argument.
9097 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9098 (update_current_target): Update.
9099 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9100 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9101 argument.
9102 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9103 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9104 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9105 argument.
9106 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9107 'self' argument.
9108
5461485a
TT
91092014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9112 argument.
9113 (target_can_use_hardware_watchpoint): Add argument.
9114 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9115 (update_current_target): Update.
9116 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9117 argument.
9118 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9119 argument.
9120 * remote.c (remote_check_watch_resources): Add 'self' argument.
9121 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9122 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9123 argument.
9124 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9125 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9126 argument.
9127 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9128 argument.
9129 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9130 argument.
9131 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9132 argument.
9133 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9134 argument.
9135 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9136 argument.
9137 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9138 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9139 argument.
9140 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9141 'self' argument.
9142
f045800c
TT
91432014-02-19 Tom Tromey <tromey@redhat.com>
9144
9145 * target.h (struct target_ops) <to_post_attach>: Add argument.
9146 (target_post_attach): Add argument.
9147 * target.c (debug_to_post_attach): Add argument.
9148 (update_current_target): Update.
9149 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9150 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9151 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9152 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9153 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9154
de90e03d
TT
91552014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * windows-nat.c (windows_close): Add 'self' argument.
9158 * tracepoint.c (tfile_close): Add 'self' argument.
9159 * target.h (struct target_ops) <to_close>: Add argument.
9160 * target.c (target_close): Add argument.
9161 (update_current_target): Update.
9162 * remote.c (remote_close): Add 'self' argument.
9163 * remote-sim.c (gdbsim_close): Add 'self' argument.
9164 * remote-mips.c (mips_close): Add 'self' argument.
9165 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9166 * record-full.c (record_full_close): Add 'self' argument.
9167 * record-btrace.c (record_btrace_close): Add 'self' argument.
9168 * monitor.h (monitor_close): Add 'self' argument.
9169 * monitor.c (monitor_close): Add 'self' argument.
9170 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9171 * linux-nat.c (linux_nat_close): Add argument.
9172 * go32-nat.c (go32_close): Add 'self' argument.
9173 * exec.c (exec_close_1): Add 'self' argument.
9174 * ctf.c (ctf_close): Add 'self' argument.
9175 * corelow.c (core_close): Add 'self' argument.
9176 (core_close_cleanup): Update.
9177 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9178 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9179
9dd130a0
TT
91802014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * remote.c (remote_load): New function.
9183 (init_remote_ops): Use it.
9184
46917d26
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9188 argument.
9189 * common/linux-btrace.h (linux_supports_btrace): Update.
9190 * remote.c (remote_supports_btrace): Add "self" argument.
9191 * target-delegates.c: Rebuild.
9192 * target.c (target_supports_btrace): Remove.
9193 * target.h (struct target_ops) <to_supports_btrace>: Add
9194 target_ops argument.
9195 (target_supports_btrace): New define.
9196
6b84065d
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * record-full.c (record_full_beneath_to_resume_ops)
9200 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9201 (record_full_beneath_to_wait)
9202 (record_full_beneath_to_store_registers_ops)
9203 (record_full_beneath_to_store_registers)
9204 (record_full_beneath_to_xfer_partial_ops)
9205 (record_full_beneath_to_xfer_partial)
9206 (record_full_beneath_to_insert_breakpoint_ops)
9207 (record_full_beneath_to_insert_breakpoint)
9208 (record_full_beneath_to_remove_breakpoint_ops)
9209 (record_full_beneath_to_remove_breakpoint)
9210 (record_full_beneath_to_stopped_by_watchpoint)
9211 (record_full_beneath_to_stopped_data_address)
9212 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9213 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9214 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9215 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9216 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9217 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9218 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9219 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9220 (record_full_resume, record_full_wait_1)
9221 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9222 (record_full_store_registers, record_full_xfer_partial)
9223 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9224 (record_full_async, record_full_core_xfer_partial): Use target
9225 delegation.
9226 * target-delegates.c: Rebuild.
9227 * target.c (current_xfer_partial): Remove.
9228 (update_current_target): Do not INHERIT or de_fault
9229 to_insert_breakpoint, to_remove_breakpoint,
9230 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9231 to_is_async_p, to_async. Do not set to_xfer_partial field.
9232 (default_xfer_partial): Simplify.
9233 (current_xfer_partial): Remove.
9234 (target_wait, target_resume): Simplify.
9235 (find_default_can_async_p, find_default_is_async_p): Update.
9236 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9237 to_xfer_partial, to_stopped_by_watchpoint,
9238 to_stopped_data_address.
9239 (target_store_registers): Simplify.
9240 (forward_target_remove_breakpoint)
9241 (forward_target_insert_breakpoint): Remove.
9242 (target_remove_breakpoint, target_insert_breakpoint)
9243 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9244 * target.h (struct target_ops) <to_resume, to_wait,
9245 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9246 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9247 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9248 markup.
9249 (forward_target_remove_breakpoint)
9250 (forward_target_insert_breakpoint): Remove.
9251 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9252 directly.
9253 (record_btrace_insert_breakpoint): Delegate directly.
9254
1101cb7b
TT
92552014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 PR build/7701:
9258 * target-delegates.c: New file.
9259 * target.c: Include target-delegates.c.
9260 (init_dummy_target): Call install_dummy_methods.
9261 (complete_target_initialization): Call install_delegators.
9262 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9263 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9264 * make-target-delegates: New file.
9265
8b06beed
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * record.c (find_record_target): Use find_target_at.
9269 * target.c (find_target_at): New function.
9270 * target.h (find_target_at): Declare.
9271
6a109b6b
TT
92722014-02-19 Tom Tromey <tromey@redhat.com>
9273
9274 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9275 Add 'ops' argument.
9276 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9277 'ops' argument.
9278 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9279 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9280 'ops' argument.
9281 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9282 argument.
9283 * linux-nat.c (save_sigtrap): Update.
9284 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9285 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9286 (linux_nat_close): Update.
9287 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9288 argument.
9289 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9290 argument.
9291 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9292 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9293 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9294 (tmp_to_async): Add 'ops' argument.
9295 (record_full_stopped_by_watchpoint, record_full_async)
9296 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9297 argument.
9298 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9299 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9300 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9301 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9302 (remote_is_async_p, remote_async): Add 'ops' argument.
9303 (remote_stopped_data_address): Update.
9304 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9305 * target.c (update_current_target)
9306 (find_default_can_async_p, find_default_is_async_p): Update.
9307 (init_dummy_target): Update.
9308 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9309 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9310 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9311 (target_can_async_p, target_is_async_p, target_async)
9312 (target_stopped_by_watchpoint): Update.
9313
e095146b
YQ
93142014-02-19 Yao Qi <yao@codesourcery.com>
9315
9316 PR gdb/16220
9317 * gdbarch.sh: Remove startup_gdbarch.
9318 * gdbarch.c: Regenerated.
9319 * gdbarch.h: Likewise.
9320
bc3c6b36
KB
93212014-02-17 Kevin Buettner <kevinb@redhat.com>
9322
9323 * rl78-tdep.c (rl78_g10_register_name): New function.
9324 (rl78_return_value): Add g10 support.
9325 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9326 g10.
9327
98dc0167 93282014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9329
9330 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9331 (SUBDIR_GUILE_SRCS): Ditto.
9332 (scm-gsmob.o): Ditto.
9333
842c05cd
YQ
93342014-02-17 Yao Qi <yao@codesourcery.com>
9335
9336 * gnu-nat.c (ILL_RPC): Declare defined function.
9337
25c0bd04
YQ
93382014-02-17 Yao Qi <yao@codesourcery.com>
9339
9340 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9341 mach_msg_type_number_t.
9342 (gnu_write_inferior): Likewise.
9343
a9a758e3
YQ
93442014-02-17 Yao Qi <yao@codesourcery.com>
9345
9346 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9347 in format string.
9348 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9349 (inf_validate_procs, inf_signal): Likewise.
9350 (S_exception_raise_request): Likewise.
9351 (do_mach_notify_dead_name): Likewise.
9352 (steal_exc_port): Likewise.
9353 (gnu_read_inferior): Change 'copy_count''s type to
9354 mach_msg_type_number_t.
9355 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9356 format string.
9357
bae8023e
TS
93582014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9359
c82f56d9
TS
9360 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9361 flag. Adjust all users; in particular...
9362 (gnu_wait): ..., don't decrement its value in here...
9363 (gnu_create_inferior): ..., and instead set the flag in here,
9364 around the startup_inferior call, and call that one with
9365 START_INFERIOR_TRAPS_EXPECTED.
9366
3398af6a
TS
9367 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9368 (ILL_RPC): ... new macro.
9369 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9370 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9371 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9372 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9373 functions with ILL_RPC macro.
9374 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9375 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9376 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9377 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9378 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9379 (S_proc_getlogin_reply, S_proc_getsid_reply)
9380 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9381 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9382 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9383 (S_proc_getnports_reply, S_proc_is_important_reply)
9384 (S_proc_get_code_reply): New stub functions, generated with
9385 ILL_RPC macro.
9386
d47642c9
TS
9387 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9388 collected the type check structures.
9389
bae8023e
TS
9390 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9391
8a55ffb0
DE
93922014-02-14 Doug Evans <dje@google.com>
9393
9394 * target.c (target_write_partial): Fix result type.
9395
c2853f3d
JM
93962014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9397
9398 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9399 the proper offsets to access fpregset_t.
9400
ac61d2db
SA
94012014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9402
9403 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9404 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9405 * h8300-tdep.c (setmachinelist): Remove global.
9406 * hppa-tdep.c (hppa_sigtramp): Remove global.
9407 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9408 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9409 * ravenscar-thread.c (update_target_observer): Remove global.
9410 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9411
9d2d0b8b
TT
94122014-02-12 Tom Tromey <tromey@redhat.com>
9413
9414 * common/rsp-low.c: Update comments.
9415 * common/rsp-low.h: Update comments.
9416
a7191e8b
TT
94172014-02-12 Tom Tromey <tromey@redhat.com>
9418
9419 * common/rsp-low.c (convert_ascii_to_int): Remove.
9420 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9421
ff0e980e
TT
94222014-02-12 Tom Tromey <tromey@redhat.com>
9423
9424 * common/rsp-low.h (unhexify): Don't declare.
9425 * common/rsp-low.c (unhexify): Remove.
9426
e9371aff
TT
94272014-02-12 Tom Tromey <tromey@redhat.com>
9428
9429 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9430 * common/rsp-low.c (convert_int_to_ascii): Remove.
9431
971dc0b8
TT
94322014-02-12 Tom Tromey <tromey@redhat.com>
9433
9434 * common/rsp-low.h (hexify): Don't declare.
9435 * common/rsp-low.c (hexify): Remove.
9436
0a822afb
TT
94372014-02-12 Tom Tromey <tromey@redhat.com>
9438
9439 * common/rsp-low.c (hexify): Never take strlen of argument.
9440
9f1b45b0
TT
94412014-02-12 Tom Tromey <tromey@redhat.com>
9442
9443 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9444 * remote.c (extended_remote_run, remote_rcmd)
9445 (remote_download_trace_state_variable, remote_save_trace_data)
9446 (remote_set_trace_notes): Update.
9447 * tracepoint.c (encode_source_string, tfile_write_status)
9448 (tfile_write_uploaded_tsv): Update.
9449
9c3d6531
TT
94502014-02-12 Tom Tromey <tromey@redhat.com>
9451
9452 * tracepoint.c: Include rsp-low.h.
9453 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9454 * remote.c: Include rsp-low.h.
9455 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9456 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9457 (remote_unescape_input): Move to common/rsp-low.c.
9458 * common/rsp-low.h: New file.
9459 * common/rsp-low.c: New file.
9460 * Makefile.in (SFILES): Add common/rsp-low.c.
9461 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9462 (COMMON_OBS): Add rsp-low.o.
9463 (rsp-low.o): New target.
9464
01fd3ea5
TT
94652014-02-12 Tom Tromey <tromey@redhat.com>
9466
9467 * utils.h: Include print-utils.h.
9468 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9469 (int_string, core_addr_to_string, core_addr_to_string_nz)
9470 (hex_string, hex_string_custom): Don't declare.
9471 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9472 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9473 (hex_string_custom, int_string, core_addr_to_string)
9474 (core_addr_to_string_nz, host_address_to_string): Move to
9475 common/print-utils.c.
9476 * common/print-utils.h: New file.
9477 * common/print-utils.c: New file
9478 * Makefile.in (SFILES): Add common/print-utils.c.
9479 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9480 (COMMON_OBS): Add print-utils.o.
9481 (print-utils.o): New target.
9482
9fb50108
TT
94832014-02-12 Tom Tromey <tromey@redhat.com>
9484
9485 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9486
0548b5db
MK
94872014-02-12 Mark Kettenis <kettenis@gnu.org>
9488
9489 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9490
493443a4
MK
94912014-02-12 Mark Kettenis <kettenis@gnu.org>
9492
9493 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9494 if a PT_IO ptrace request returns sucessfully but indicates that 0
9495 bytes were transferred.
9496
706d0883
PA
94972014-02-12 Pedro Alves <palves@redhat.com>
9498 Kevin Buettner <kevinb@redhat.com>
9499
9500 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9501 TYPE_INSTANCE_FLAG_CODE_SPACE.
9502
5caa2f0b
PA
95032014-02-12 Pedro Alves <palves@redhat.com>
9504
9505 * h8300-tdep.c (pseudo_from_raw_register)
9506 (raw_from_pseudo_register): New functions.
9507 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9508 them.
9509
76fd5f74
PA
95102014-02-12 Pedro Alves <palves@redhat.com>
9511
9512 * h8300-tdep.c (h8300_register_sim_regno): New function.
9513 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9514 gdbarch_register_sim_regno hook.
9515
8f008406
SA
95162014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9517
9518 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9519
195abc10
SA
95202014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9521
9522 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9523
93ffa5b9
MK
95242014-02-12 Mark Kettenis <kettenis@gnu.org>
9525
9526 * obsd-tdep.h (obsd_init_abi): New prototype.
9527 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9528 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9529 (obsd_init_abi): New functions.
9530 * i386obsd-tdep.c: Include "obsd-tdep.h".
9531 (i386obsd_init_abi): Call obsd_init_abi.
9532 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9533 (amd64obsd_init_abi): Call obsd_init_abi.
9534 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9535 obsd-tdep.c to gdb_target_obs.
9536
49caec94
JM
95372014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9538
9539 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9540 double float arguments to 16-byte in the argument slots.
9541
e1402065
DE
95422014-02-11 Doug Evans <xdje42@gmail.com>
9543
9544 * configure.ac: Don't crash if pkg-config is not found and guile
9545 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9546 in guile checks.
9547 * configure: Regenerate.
9548
edcc890f
YQ
95492014-02-11 Yao Qi <yao@codesourcery.com>
9550
9551 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9552 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9553 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9554 * gnu-nat.c (gnu_xfer_memory): Likewise.
9555 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9556 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9557 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9558 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9559
9b409511
YQ
95602014-02-11 Yao Qi <yao@codesourcery.com>
9561
9562 * target.h (enum target_xfer_error): Rename to ...
9563 (enum target_xfer_status): ... it. New. All users updated.
9564 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9565 New.
9566 (TARGET_XFER_STATUS_ERROR_P): New macro.
9567 (target_xfer_error_to_string): Remove declaration.
9568 (target_xfer_status_to_string): Declare.
9569 (target_xfer_partial_ftype): Adjust it.
9570 (struct target_ops) <to_xfer_partial>: Return
9571 target_xfer_status. Add argument xfered_len. Update
9572 comments.
9573 * target.c (target_xfer_error_to_string): Rename to ...
9574 (target_xfer_status_to_string): ... it. New. All callers
9575 updated.
9576 (target_read_live_memory): Likewise. Call target_xfer_partial
9577 instead of target_read.
9578 (memory_xfer_live_readonly_partial): Return
9579 target_xfer_status. Add argument xfered_len.
9580 (raw_memory_xfer_partial): Likewise.
9581 (memory_xfer_partial_1): Likewise.
9582 (memory_xfer_partial): Likewise.
9583 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9584 properly. Update debug message.
9585 (default_xfer_partial, current_xfer_partial): Likewise.
9586 (target_write_partial): Likewise.
9587 (target_read_partial): Likewise. All callers updated.
9588 (read_whatever_is_readable): Likewise.
9589 (target_write_with_progress): Likewise.
9590 (target_read_alloc_1): Likewise.
9591
9592 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9593 * auxv.c (procfs_xfer_auxv): Likewise.
9594 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9595 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9596 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9597 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9598 * corefile.c (read_memory): Adjust.
9599 * corelow.c (core_xfer_partial): Likewise.
9600 * ctf.c (ctf_xfer_partial): Likewise.
9601 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9602 updated.
9603 (darwin_xfer_partial): Likewise.
9604 * exec.c (section_table_xfer_memory_partial): Likewise. All
9605 callers updated.
9606 (exec_xfer_partial): Likewise.
9607 * exec.h (section_table_xfer_memory_partial): Update
9608 declaration.
9609 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9610 negative.
9611 (gnu_xfer_partial): Likewise.
9612 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9613 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9614 (ia64_hpux_xfer_solib_got): Likewise.
9615 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9616 type of 'partial_len' to ULONGEST.
9617 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9618 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9619 (linux_nat_xfer_partial): Likewise.
9620 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9621 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9622 * monitor.c (monitor_xfer_memory): Likewise.
9623 (monitor_xfer_partial): Likewise.
9624 * procfs.c (procfs_xfer_partial): Likewise.
9625 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9626 * record-full.c (record_full_xfer_partial): Likewise.
9627 (record_full_core_xfer_partial): Likewise.
9628 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9629 (gdbsim_xfer_partial): Likewise.
9630 * remote.c (remote_write_bytes_aux): Likewise. All callers
9631 updated.
9632 (remote_write_bytes, remote_read_bytes): Likewise. All
9633 callers updated.
9634 (remote_flash_erase): Likewise. All callers updated.
9635 (remote_write_qxfer): Likewise. All callers updated.
9636 (remote_read_qxfer): Likewise. All callers updated.
9637 (remote_xfer_partial): Likewise.
9638 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9639 (rs6000_xfer_shared_libraries): Likewise.
9640 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9641 (sol_thread_xfer_partial): Likewise.
9642 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9643 (sparc_xfer_partial): Likewise.
9644 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9645 updated.
9646 (spu_xfer_partial): Likewise.
9647 * spu-multiarch.c (spu_xfer_partial): Likewise.
9648 * tracepoint.c (tfile_xfer_partial): Likewise.
9649 * windows-nat.c (windows_xfer_memory): Likewise.
9650 (windows_xfer_shared_libraries): Likewise.
9651 (windows_xfer_partial): Likewise.
9652 * valprint.c: Replace 'target_xfer_error' with
9653 'target_xfer_status' in comments.
9654
a8e63083
JB
96552014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9656
9657 Checked in by Joel Brobecker <brobecker@adacore.com>.
9658 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9659
e86b67d3
JB
96602014-02-11 Joel Brobecker <brobecker@adacore.com>
9661
9662 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9663 function parameters.
9664
4b7d1f7f
WN
96652014-02-10 Will Newton <will.newton@linaro.org>
9666
9667 * elfread.c (elf_rel_plt_read): Look for a .got section if
9668 looking up .got.plt fails.
9669 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9670 on address passed to elf_gnu_ifunc_record_cache.
9671 (elf_gnu_ifunc_resolve_addr): Likewise.
9672 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9673
961842b2
JM
96742014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9675
9676 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9677 (X_RETTURN): New macro.
9678 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9679
9680 * sparc64-tdep.c (sparc64_init_abi): Hook
9681 sparc_in_function_epilogue_p.
9682
3f03e7b1
GB
96832014-02-10 Gary Benson <gbenson@redhat.com>
9684
9685 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9686 Rename name_matcher to symbol_matcher.
9687
96f861ef
GB
96882014-02-10 Gary Benson <gbenson@redhat.com>
9689
9690 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9691 Use expand_symtabs_file_matcher_ftype and
9692 expand_symtabs_symbol_matcher_ftype.
9693
ee01b665
JB
96942014-02-10 Joel Brobecker <brobecker@adacore.com>
9695
9696 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9697 (struct ada_symbol_cache): New.
9698 (ada_free_symbol_cache): Forward declare.
9699 (struct ada_pspace_data): New.
9700 (ada_pspace_data_handle): New static global.
9701 (get_ada_pspace_data, ada_pspace_data_cleanup)
9702 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9703 (cache_space, cache): Delete, now folded inside struct
9704 ada_pspace_data.
9705 (ada_get_symbol_cache): New function.
9706 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9707 implementation.
9708 (_initialize_ada_language): Remove initialization of cache_space.
9709 Move call to observer_attach_inferior_exit up, grouping it
9710 with the other observer registrations inside this function.
9711 Rename command to be more general. Add call to
9712 register_program_space_data_with_cleanup.
9713
143adbbf
JB
97142014-02-10 Joel Brobecker <brobecker@adacore.com>
9715
9716 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9717 ada_new_objfile_observer.
9718 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9719 (_initialize_tasks): Update uses of ada_new_objfile_observer
9720 and ada_tasks_normal_stop_observer.
9721
aa4fb036
JB
97222014-02-10 Joel Brobecker <brobecker@adacore.com>
9723
9724 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9725 returned by the 'Length attribute to integer.
9726
9dee8cc6
JB
97272014-02-10 Joel Brobecker <brobecker@adacore.com>
9728
9729 * ada-lang.c (_initialize_ada_language): Initialize
9730 cache_space obstack.
9731
3d9434b5
JB
97322014-02-10 Joel Brobecker <brobecker@adacore.com>
9733
9734 * ada-lang.c (HASH_SIZE): New macro.
9735 (struct cache_entry): New type.
9736 (cache_space, cache): New static globals.
9737 (ada_clear_symbol_cache, find_entry): New functions.
9738 (lookup_cached_symbol, cache_symbol): Implement.
9739 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9740 (_initialize_ada_language): Attach ada_new_objfile_observer
9741 and ada_free_objfile_observer.
9742
f0c5f9b2
JB
97432014-02-10 Joel Brobecker <brobecker@adacore.com>
9744
9745 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9746 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9747 struct block * parameter.
9748 (ada_lookup_symbol_list_worker): Constify local variable "block".
9749 Remove cast which is no longer necessary.
9750
ed3ef339
DE
97512014-02-10 Doug Evans <xdje42@gmail.com>
9752
9753 Add Guile as an extension language.
9754 * NEWS: Mention Guile scripting.
9755 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9756 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9757 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9758 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9759 (CLIBS): Add GUILE_LIBS.
9760 (install-guile): New rule.
9761 (guile.o): New rule.
9762 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9763 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9764 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9765 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9766 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9767 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9768 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9769 * configure.ac: New option --with-guile.
9770 * configure: Regenerate.
9771 * config.in: Regenerate.
9772 * auto-load.c: Remove #include "python/python.h". Add #include
9773 "gdb/section-scripts.h".
9774 (source_section_scripts): Handle Guile scripts.
9775 (_initialize_auto_load): Add name of Guile objfile script to
9776 scripts-directory help text.
9777 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9778 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9779 (struct breakpoint): New member scm_bp_object.
9780 * defs.h (enum command_control_type): New value guile_control.
9781 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9782 "extension.h".
9783 (show_user): Update comment.
9784 (_initialize_cli_cmds): Update help text for "show user". Update help
9785 text for max-user-call-depth.
9786 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9787 "extension.h".
9788 (multi_line_command_p): Add guile_control.
9789 (print_command_lines): Handle guile_control.
9790 (execute_control_command, recurse_read_control_structure): Ditto.
9791 (process_next_line): Recognize "guile" commands.
9792 * disasm.c (gdb_disassemble_info): Make non-static.
9793 * disasm.h: #include "dis-asm.h".
9794 (struct gdbarch): Add forward decl.
9795 (gdb_disassemble_info): Declare.
9796 * extension.c: #include "guile/guile.h".
9797 (extension_languages): Add guile.
9798 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9799 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9800 * gdbtypes.c (get_unsigned_type_max): New function.
9801 (get_signed_type_minmax): New function.
9802 * gdbtypes.h (get_unsigned_type_max): Declare.
9803 (get_signed_type_minmax): Declare.
9804 * guile/README: New file.
9805 * guile/guile-internal.h: New file.
9806 * guile/guile.c: New file.
9807 * guile/guile.h: New file.
9808 * guile/scm-arch.c: New file.
9809 * guile/scm-auto-load.c: New file.
9810 * guile/scm-block.c: New file.
9811 * guile/scm-breakpoint.c: New file.
9812 * guile/scm-disasm.c: New file.
9813 * guile/scm-exception.c: New file.
9814 * guile/scm-frame.c: New file.
9815 * guile/scm-gsmob.c: New file.
9816 * guile/scm-iterator.c: New file.
9817 * guile/scm-lazy-string.c: New file.
9818 * guile/scm-math.c: New file.
9819 * guile/scm-objfile.c: New file.
9820 * guile/scm-ports.c: New file.
9821 * guile/scm-pretty-print.c: New file.
9822 * guile/scm-safe-call.c: New file.
9823 * guile/scm-string.c: New file.
9824 * guile/scm-symbol.c: New file.
9825 * guile/scm-symtab.c: New file.
9826 * guile/scm-type.c: New file.
9827 * guile/scm-utils.c: New file.
9828 * guile/scm-value.c: New file.
9829 * guile/lib/gdb.scm: New file.
9830 * guile/lib/gdb/boot.scm: New file.
9831 * guile/lib/gdb/experimental.scm: New file.
9832 * guile/lib/gdb/init.scm: New file.
9833 * guile/lib/gdb/iterator.scm: New file.
9834 * guile/lib/gdb/printing.scm: New file.
9835 * guile/lib/gdb/types.scm: New file.
9836 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9837 (VPATH): Add $(GUILE_SRCDIR).
9838 (GUILE_DIR): New variable.
9839 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9840 (all): Add stamp-guile dependency.
9841 (stamp-guile): New rule.
9842 (clean-guile, install-guile, uninstall-guile): New rules.
9843 (install-only): Add install-guile dependency.
9844 (uninstall): Add uninstall-guile dependency.
9845 (clean): Add clean-guile dependency.
9846
ac020ec5
DE
98472014-02-09 Doug Evans <xdje42@gmail.com>
9848
9849 Revert this patch (which I approved, mea culpa).
9850
9851 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9852
9853 * Makefile.in (all-lib): Remove.
9854 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9855
2a081c59
JK
98562014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9857
9858 Fix Python stack corruption.
9859 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9860 gdb_py_longest.
9861
0a6bd22d
MK
98622014-02-08 Mark Kettenis <kettenis@gnu.org>
9863
9864 * Makefile.in (all-lib): Remove.
9865 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9866
1a860409
DE
98672014-02-07 Doug Evans <dje@google.com>
9868
9869 * extension-priv.h (extension_language_script_ops): Add comment.
9870 (extension_language_ops): Add comment.
caf5a491 9871 (active_ext_lang_state): Fix typo in comment.
1a860409 9872
d137e6dc
PA
98732014-02-07 Pedro Alves <palves@redhat.com>
9874
0dcb32c3 9875 PR breakpoints/16292
d137e6dc
PA
9876 * infrun.c (handle_signal_stop) <signal arrives while stepping
9877 over a breakpoint>: Switch back to the stepping thread.
9878
ce6d0892
YQ
98792014-02-07 Yao Qi <yao@codesourcery.com>
9880
9881 * target.c (target_xfer_partial): Return zero if LEN is zero.
9882
2ed4b548
YQ
98832014-02-07 Yao Qi <yao@codesourcery.com>
9884
9885 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9886 (ld_so_xfer_auxv): Likewise.
9887 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9888 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9889 * corelow.c (core_xfer_partial): Likewise.
9890 * ctf.c (ctf_xfer_partial): Likewise.
9891 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9892 (darwin_xfer_partial): Likewise.
9893 * exec.c (exec_xfer_partial): Likewise.
9894 * gnu-nat.c (gnu_xfer_partial): Likewise.
9895 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9896 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9897 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9898 * linux-nat.c (linux_xfer_siginfo): Likewise.
9899 (linux_proc_xfer_spu): Likewise.
9900 * procfs.c (procfs_xfer_partial): Likewise.
9901 * record-full.c (record_full_xfer_partial): Likewise.
9902 (record_full_core_xfer_partial): Likewise.
9903 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9904 * remote.c (remote_write_qxfer): Likewise.
9905 (remote_write_qxfer, remote_read_qxfer): Likewise.
9906 (remote_xfer_partial): Likewise.
9907 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9908 (rs6000_xfer_shared_libraries): Likewise.
9909 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9910 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9911 (spu_xfer_partial): Likewise.
9912 * target.c (memory_xfer_partial_1): Likewise.
9913 * tracepoint.c (tfile_xfer_partial): Likewise.
9914 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9915 (windows_xfer_partial): Likewise.
9916
c09f20e4
YQ
99172014-02-07 Yao Qi <yao@codesourcery.com>
9918
9919 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9920 comments.
9921 (core_xfer_shared_libraries_aix): Likewise.
9922 * gdbarch.c, gdbarch.h: Regenerated.
9923 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9924 ULONGEST. Change 'len_avail' type to ULONGEST.
9925 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9926 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9927 declaration.
9928 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9929
8635b3bf
YQ
99302014-02-07 Yao Qi <yao@codesourcery.com>
9931
9932 * corefile.c (memory_error): Get 'exception' from ERR and pass
9933 'exception' to throw_error.
9934
6dddc817
DE
99352014-02-06 Doug Evans <xdje42@gmail.com>
9936
9937 * configure.ac (libpython checking): Remove all but python.o from
9938 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9939 * configure: Regenerate.
9940
9941 * Makefile.in (SFILES): Add extension.c.
9942 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9943 (COMMON_OBS): Add extension.o.
9944 * extension.h: New file.
9945 * extension-priv.h: New file.
9946 * extension.c: New file.
9947
9948 * python/python-internal.h: #include "extension.h".
9949 (gdbpy_auto_load_enabled): Declare.
9950 (gdbpy_apply_val_pretty_printer): Declare.
9951 (gdbpy_apply_frame_filter): Declare.
9952 (gdbpy_preserve_values): Declare.
9953 (gdbpy_breakpoint_cond_says_stop): Declare.
9954 (gdbpy_breakpoint_has_cond): Declare.
9955 (void source_python_script_for_objfile): Delete.
9956 * python/python.c: #include "extension-priv.h".
9957 Delete inclusion of "observer.h".
9958 (extension_language_python): Moved here and renamed from
9959 script_language_python in py-auto-load.c.
9960 Redefined to be of type extension_language_defn.
9961 (python_extension_script_ops): New global.
9962 (python_extension_ops): New global.
9963 (struct python_env): New member previous_active.
9964 (restore_python_env): Call restore_active_ext_lang.
9965 (ensure_python_env): Call set_active_ext_lang.
9966 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9967 New arg extlang.
9968 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9969 New arg extlang.
9970 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9971 New arg extlang.
9972 (gdbpy_eval_from_control_command): Renamed from
9973 eval_python_from_control_command, made static. New arg extlang.
9974 (gdbpy_source_script) Renamed from source_python_script, made static.
9975 New arg extlang.
9976 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9977 result to int. New arg extlang.
9978 (gdbpy_source_objfile_script): Renamed from
9979 source_python_script_for_objfile, made static. New arg extlang.
9980 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9981 static. New args extlang, extlang_printers. Change result type to
9982 "void".
9983 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9984 static. New arg extlang. Rename arg printers to extlang_printers
9985 and change type to ext_lang_type_printers *.
9986 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9987 static. Replace argument arg with extlang, extlang_printers.
9988 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9989 (!HAVE_PYTHON, source_python_script): Delete.
9990 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9991 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9992 (!HAVE_PYTHON, start_type_printers): Delete.
9993 (!HAVE_PYTHON, apply_type_printers): Delete.
9994 (!HAVE_PYTHON, free_type_printers): Delete.
9995 (_initialize_python): Delete call to observer_attach_before_prompt.
9996 (finalize_python): Set/restore active extension language.
9997 (gdbpy_finish_initialization) Renamed from
9998 finish_python_initialization, made static. New arg extlang.
9999 (gdbpy_initialized): New function.
10000 * python/python.h: #include "extension.h". Delete #include
10001 "value.h", "mi/mi-cmds.h".
10002 (extension_language_python): Declare.
10003 (GDBPY_AUTO_FILE_NAME): Delete.
10004 (enum py_bt_status): Moved to extension.h and renamed to
10005 ext_lang_bt_status.
10006 (enum frame_filter_flags): Moved to extension.h.
10007 (enum py_frame_args): Moved to extension.h and renamed to
10008 ext_lang_frame_args.
10009 (finish_python_initialization): Delete.
10010 (eval_python_from_control_command): Delete.
10011 (source_python_script): Delete.
10012 (apply_val_pretty_printer): Delete.
10013 (apply_frame_filter): Delete.
10014 (preserve_python_values): Delete.
10015 (gdbpy_script_language_defn): Delete.
10016 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10017 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10018
10019 * auto-load.c: #include "extension.h".
10020 (GDB_AUTO_FILE_NAME): Delete.
10021 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10022 (script_language_gdb): Delete, moved to extension.c and renamed to
10023 extension_language_gdb.
10024 (source_gdb_script_for_objfile): Delete.
10025 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10026 (loaded_script): Change type of language member to
10027 struct extension_language_defn *.
10028 (init_loaded_scripts_info): Initialize
10029 unsupported_script_warning_printed.
10030 (maybe_add_script): Make static. Change type of language arg to
10031 struct extension_language_defn *.
10032 (clear_section_scripts): Reset unsupported_script_warning_printed.
10033 (auto_load_objfile_script_1): Rewrite to use extension language API.
10034 (auto_load_objfile_script): Make public. Remove support-compiled-in
10035 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10036 (source_section_scripts): Rewrite to use extension language API.
10037 (load_auto_scripts_for_objfile): Rewrite to use
10038 auto_load_scripts_for_objfile.
10039 (collect_matching_scripts_data): Change type of language member to
10040 struct extension_language_defn *.
10041 (auto_load_info_scripts): Change type of language arg to
10042 struct extension_language_defn *.
10043 (unsupported_script_warning_print): New function.
10044 (script_not_found_warning_print): Make static.
10045 (_initialize_auto_load): Rewrite construction of scripts-directory
10046 help.
10047 * auto-load.h (struct objfile): Add forward decl.
10048 (struct script_language): Delete.
10049 (struct auto_load_pspace_info): Add forward decl.
10050 (struct extension_language_defn): Add forward decl.
10051 (maybe_add_script): Delete.
10052 (auto_load_objfile_script): Declare.
10053 (script_not_found_warning_print): Delete.
10054 (auto_load_info_scripts): Update prototype.
10055 (auto_load_gdb_scripts_enabled): Declare.
10056 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10057 auto_load_python_scripts_enabled and made public.
10058 (script_language_python): Delete, moved to python.c.
10059 (gdbpy_script_language_defn): Delete.
10060 (info_auto_load_python_scripts): Update to use
10061 extension_language_python.
10062
10063 * breakpoint.c (condition_command): Replace call to
10064 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10065 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10066 with call to breakpoint_ext_lang_cond_says_stop.
10067 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10068 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10069 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10070 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10071 New arg slang.
10072 (local_setattro): Print name of extension language with existing
10073 stop condition.
10074
10075 * valprint.c (val_print, value_print): Update to call
10076 apply_ext_lang_val_pretty_printer.
10077 * cp-valprint.c (cp_print_value): Update call to
10078 apply_ext_lang_val_pretty_printer.
10079 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10080 (gdbpy_apply_val_pretty_printer): Renamed from
10081 apply_val_pretty_printer. New arg extlang.
10082 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10083
10084 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10085 extension language API.
10086 * cli/cli-script.c (execute_control_command): Update to call
10087 eval_ext_lang_from_control_command.
10088
10089 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10090 enum ext_lang_bt_status values. Update call to
10091 apply_ext_lang_frame_filter.
10092 (mi_cmd_stack_list_locals): Ditto.
10093 (mi_cmd_stack_list_args): Ditto.
10094 (mi_cmd_stack_list_variables): Ditto.
10095 * mi/mi-main.c: Delete #include "python/python-internal.h".
10096 Add #include "extension.h".
10097 (mi_cmd_list_features): Replace reference to python internal variable
10098 gdb_python_initialized with call to ext_lang_initialized_p.
10099
10100 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10101 Update to use enum ext_lang_frame_args. Update to call
10102 apply_ext_lang_frame_filter.
10103 * python/py-framefilter.c (extract_sym): Update to use enum
10104 ext_lang_bt_status.
10105 (extract_value, py_print_type, py_print_value): Ditto.
10106 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10107 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10108 (py_print_frame): Ditto.
10109 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10110 New arg extlang. Update to use enum ext_lang_bt_status.
10111
10112 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10113 finish_python_initialization. Replace with call to
10114 finish_ext_lang_initialization.
10115
10116 * typeprint.c (do_free_global_table): Update to call
10117 free_ext_lang_type_printers.
10118 (create_global_typedef_table): Update to call
10119 start_ext_lang_type_printers.
10120 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10121 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10122 (type_print_options): Change type of global_printers from "void *"
10123 to "struct ext_lang_type_printers *".
10124
10125 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10126 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10127 (gdbpy_preserve_values): Renamed from preserve_python_values.
10128 New arg extlang.
10129 (!HAVE_PYTHON, preserve_python_values): Delete.
10130
10131 * utils.c (quit_flag): Delete, moved to extension.c.
10132 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10133 extension.c.
10134
10135 * eval.c: Delete #include "python/python.h".
10136 * main.c: Delete #include "python/python.h".
10137
10138 * defs.h: Update comment.
10139
6af79985
JB
101402014-02-06 Joel Brobecker <brobecker@adacore.com>
10141
10142 GDB 7.7 released.
10143
12c5175d
MK
101442014-02-05 Mark Kettenis <kettenis@gnu.org>
10145
10146 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10147 defined.
10148
8dc5b319
YQ
101492014-02-05 Yao Qi <yao@codesourcery.com>
10150
10151 * remote.c (remote_pass_signals): Remove local 'buf' and use
10152 rs->buf.
10153 (remote_program_signals): Likewise.
10154
de7b2893
YQ
101552014-02-05 Yao Qi <yao@codesourcery.com>
10156
10157 * ctf.c: Include "inferior.h" and "gdbthread.h".
10158 (CTF_PID): A new macro.
10159 (ctf_open): Call inferior_appeared and add_thread_silent.
10160 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10161 (ctf_thread_alive): New function.
10162 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10163
66d032ac
YQ
101642014-02-05 Yao Qi <yao@codesourcery.com>
10165
10166 Revert this patch:
10167
10168 2013-05-24 Yao Qi <yao@codesourcery.com>
10169
10170 * tracepoint.c (TFILE_PID): Remove.
10171 (tfile_open): Don't add thread and inferior.
10172 (tfile_close): Don't set 'inferior_ptid'. Don't call
10173 exit_inferior_silent.
10174 (tfile_thread_alive): Remove.
10175 (init_tfile_ops): Don't set field 'to_thread_alive' of
10176 tfile_ops.
10177
f4ccffad
CE
101782014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10179
10180 * remote.c (remote_start_remote): Call remote_check_symbols even
10181 if only symbol-file (not file) has been given.
10182
591a12a1
UW
101832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10184
10185 * gdbarch.sh (skip_entrypoint): New callback.
10186 * gdbarch.c, gdbarch.h: Regenerate.
10187 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10188 * infrun.c (fill_in_stop_func): Likewise.
10189 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10190 (ppc_elfv2_elf_make_msymbol_special): New function.
10191 (ppc_elfv2_skip_entrypoint): Likewise.
10192 (ppc_linux_init_abi): Install them for ELFv2.
10193
cc0e89c5
UW
101942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10195
10196 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10197 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10198 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10199 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10200 structures returned in GPRs.
10201
52f548e4
UW
102022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10203
10204 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10205 offset to the stack parameter list for the ELFv2 ABI.
10206
d4094b6a
UW
102072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10208
10209 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10210 set_gdbarch_convert_from_func_ptr_addr and
10211 set_gdbarch_elf_make_msymbol_special for ELFv1.
10212 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10213 function descriptors on ELFv1.
10214 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10215 set up r12 at function entry.
10216
cd453cd0
UW
102172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10218
10219 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10220 (struct gdbarch_tdep): New member elf_abi.
10221
10222 * rs6000-tdep.c: Include "elf/ppc64.h".
10223 (rs6000_gdbarch_init): Detect ELF ABI version.
10224
0ff3e01f
UW
102252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10226
10227 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10228 within a register pair holding a DFP 128-bit value on little-endian.
10229 (ppc64_sysv_abi_return_value_base): Likewise.
10230 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10231 (dfp_pseudo_register_write): Likewise.
10232
5b757e5d
UW
102332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10234
10235 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10236 offset on little-endian when passing _Decimal32.
10237 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10238
084ee545
UW
102392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10240
10241 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10242 of the overlapped FP register within the VSX register on little-
10243 endian platforms.
10244 (efpr_pseudo_register_write): Likewise.
10245
d63167af
UW
102462014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10247
10248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10249 offset on little-endian when passing small structures.
10250
e765b44c
UW
102512014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10252
10253 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10254 (struct ppc64_sysv_argpos): New data structure.
10255 (ppc64_sysv_abi_push_float): Remove.
10256 (ppc64_sysv_abi_push_val): New function.
10257 (ppc64_sysv_abi_push_integer): Likewise.
10258 (ppc64_sysv_abi_push_freg): Likewise.
10259 (ppc64_sysv_abi_push_vreg): Likewise.
10260 (ppc64_sysv_abi_push_param): Likewise.
10261 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10262 (ppc64_sysv_abi_return_value_base): New function.
10263 (ppc64_sysv_abi_return_value): Refactor to use it.
10264
36c24d95
UW
102652014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10266
10267 * NEWS: Document new target powerpc64le-*-linux*.
10268
26fd9228
MK
102692014-02-04 Mark Kettenis <kettenis@gnu.org>
10270
10271 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10272 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10273 core dumps.
10274 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10275 register set used in ELF core dumps. Add floating-point register set.
10276
c5bb7362
KB
102772014-02-03 Kevin Buettner <kevinb@redhat.com>
10278
74228e77 10279 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10280 dwarf2_to_gdb[] table using symbolic constants. Adjust
10281 penultimate entry from number representing the PC register
10282 to symbolic constant representing the MDR register. Add
10283 constant for the PC register to the end of the table.
10284
af09351e
MK
102852014-02-03 Mark Kettenis <kettenis@gnu.org>
10286
10287 * bsd-kvm.c: Include <sys/param.h>
10288
8507e05d
MK
102892014-02-03 Mark Kettenis <kettenis@gnu.org>
10290
10291 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10292
ae56bfb8
JB
102932014-01-31 Joel Brobecker <brobecker@adacore.com>
10294
10295 * ada-lang.h (clear_ada_sym_cache): Delete.
10296
718ee4dc
UW
102972014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10298
10299 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10300
401e27fd
JM
103012014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10302
10303 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10304 the sigreturn register save area only if the syscall is
10305 sigreturn.
10306
a7c88acd
JB
103072014-01-29 Joel Brobecker <brobecker@adacore.com>
10308
10309 * valops.c (value_slice): Minor reformatting.
10310
fa0079ea
UW
103112014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10312
10313 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10314
c6044dd1
JB
103152014-01-28 Joel Brobecker <brobecker@adacore.com>
10316
10317 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10318 New static globals.
10319 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10320 (ada_ignore_descriptive_types_p): New static global.
10321 (find_parallel_type_by_descriptive_type): Return immediately
10322 if ada_ignore_descriptive_types_p is set.
10323 (_initialize_ada_language): Register new commands "maintenance
10324 set ada", "maintenance show ada", "maintenance set ada
10325 ignore-descriptive-types" and "maintenance show ada
10326 ignore-descriptive-types".
10327 * NEWS: Add entry for new "maint ada set/show
10328 ignore-descriptive-types" commands.
10329
568e808b
MM
103302014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10331
10332 * record-btrace.c (record_btrace_close): Call btrace_teardown
10333 for all threads.
10334
467d141b
JB
103352014-01-27 Joel Brobecker <brobecker@adacore.com>
10336
10337 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10338 "ui-out.h".
10339
fb151210
JB
103402014-01-27 Joel Brobecker <brobecker@adacore.com>
10341
10342 * ada-typeprint (type_is_full_subrange_of_target_type):
10343 New function.
10344 (print_range): Add parameter bounds_prefered_p. If not set,
10345 try printing range types using the name of their base type.
10346 (print_range_type): Add parameter bounds_prefered_p.
10347 Use it in call to print_range.
10348 (print_array_type, ada_print_type): Update calls to print_range
10349 and print_range_type.
10350
aba02109
JB
103512014-01-27 Joel Brobecker <brobecker@adacore.com>
10352
10353 * ada-typeprint.c (print_array_type, print_choices, print_range)
10354 (print_range_bound, print_dynamic_range_bound, print_range_type):
10355 Remove declaration.
10356
e62e21fd
JB
103572014-01-27 Joel Brobecker <brobecker@adacore.com>
10358
10359 * ada-typeprint.c (print_range): Add missing empty line
10360 after local declaration.
10361
859cf5d1
JB
103622014-01-27 Joel Brobecker <brobecker@adacore.com>
10363
10364 * ada-valprint.c (print_optional_low_bound): Get index_type's
10365 target type for as long as it is a TYPE_CODE_RANGE.
10366
25790f6f
JB
103672014-01-27 Joel Brobecker <brobecker@adacore.com>
10368
10369 * procfs.c (procfs_make_note_section): Remove assertion and
10370 associated comment.
10371
6b6aa828
YQ
103722014-01-24 Yao Qi <yao@codesourcery.com>
10373
10374 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10375 * corelow.c (get_core_siginfo): Likewise.
10376
5d6df423
YQ
103772014-01-24 Yao Qi <yao@codesourcery.com>
10378
10379 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10380 ULONGEST. Don't check 'len' is negative.
10381 (remote_write_bytes): Change type of 'len' to ULONGEST.
10382
83b645b8
TT
103832014-01-23 Tom Tromey <tromey@redhat.com>
10384
10385 PR python/16485:
10386 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10387 Handle exception from frame.block.
10388 (FrameVars.fetch_frame_locals): Likewise.
10389
0740f8d8
TT
103902014-01-23 Tom Tromey <tromey@redhat.com>
10391
10392 PR python/16487:
10393 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10394 on a NULL pointer. Move "goto error" to correct place.
10395
21909fa1
TT
103962014-01-23 Tom Tromey <tromey@redhat.com>
10397
10398 PR python/16491:
10399 * python/py-framefilter.c (apply_frame_filter): Call
10400 ensure_python_env after computing gdbarch.
10401
17fde6d0
YQ
104022014-01-23 Yao Qi <yao@codesourcery.com>
10403
10404 * target.c (raw_memory_xfer_partial): Change argument type
10405 from void * to gdb_byte *.
10406 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10407
87ce2a04
DE
104082014-01-22 Doug Evans <dje@google.com>
10409
10410 New gdbserver option --debug-format=timestamp.
10411 * NEWS: Mention it.
10412
237b092b
AA
104132014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10414
10415 * syscalls/s390x-linux.xml: New file.
10416 * syscalls/s390-linux.xml: New file.
10417 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10418 (XML_SYSCALL_FILENAME_S390X): Likewise.
10419 (op_svc): New enum value for SVC opcode.
10420 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10421 (s390_linux_get_syscall_number): New function.
10422 (s390_gdbarch_init): Register '*get_syscall_number' and the
10423 syscall xml file name.
10424 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10425 "s390-linux.xml" and "s390x-linux.xml".
10426 * NEWS: Announce new feature.
10427
54bff650
BS
104282014-01-22 Baruch Siach <baruch@tkos.co.il>
10429
10430 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10431
14e361d7
PA
104322014-01-22 Pedro Alves <palves@redhat.com>
10433
10434 * xtensa-config.c: Include defs.h.
10435
46bbb3ed
JB
104362014-01-22 Joel Brobecker <brobecker@adacore.com>
10437
10438 * common/common-utils.h: Add "ARI:" comment beside __func__
10439 reference.
10440
3a80edfc
JB
104412014-01-22 Joel Brobecker <brobecker@adacore.com>
10442
10443 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10444 documentation a bit.
10445
4869db5e
RM
104462014-01-21 Roland McGrath <mcgrathr@google.com>
10447
10448 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10449 * configure: Regenerate.
10450 * aclocal.m4: Regenerate.
10451 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10452 New substituted variables.
10453 (install-strip): New target.
10454 (INSTALL_SCRIPT): New substituted variable.
10455 (FLAGS_TO_PASS): Add it.
10456 (install-only): Use $(INSTALL_SCRIPT) rather than
10457 $(INSTALL_PROGRAM) for gcore.
10458
9ea4267d
TT
104592014-01-20 Tom Tromey <tromey@redhat.com>
10460
10461 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10462 together.
10463
1f2bdf09
TT
104642014-01-20 Tom Tromey <tromey@redhat.com>
10465
10466 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10467 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10468 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10469 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10470 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10471 (struct cmd_list_element) <flags>: Remove.
10472 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10473 doc_allocated>: New fields.
10474 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10475 bitfields.
10476 * maint.c (maintenance_do_deprecate): Update.
10477 * top.c (execute_command): Update.
10478
e671835b
BS
104792014-01-20 Baruch Siach <baruch@tkos.co.il>
10480
10481 * xtensa-linux-nat.c: Include asm/ptrace.h.
10482
50367cd2
IB
104832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10484
10485 * Makefile.in (SFILES): Add d-support.c.
10486 (COMMON_OBS): Add d-support.o.
10487 * d-lang.h (d_parse_symbol): Add comment, now defined in
10488 d-support.c.
10489 * d-lang.c (parse_call_convention)
10490 (parse_attributes, parse_function_types)
10491 (parse_function_args, parse_type, parse_identifier)
10492 (call_convention_p, d_parse_symbol): Move functions to ...
10493 * d-support.c: ... New file.
10494
ec9f644a
IB
104952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10496
10497 * d-lang.h (d_parse_symbol): Add declaration.
10498 * d-lang.c (extract_identifiers)
10499 (extract_type_info): Remove functions.
10500 (parse_call_convention, parse_attributes)
10501 (parse_function_types, parse_function_args)
10502 (parse_type, parse_identifier, call_convention_p)
10503 (d_parse_symbol): New functions.
10504 (d_demangle): Use d_parse_symbol to demangle D symbols.
10505
94b1b47e
IB
105062014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10507
10508 * d-lang.h (struct builtin_d_type): New data type.
10509 (builtin_d_type): Add declaration.
10510 * d-lang.c (d_language_arch_info, build_d_types)
10511 (builtin_d_type): New functions.
10512 (enum d_primitive_types): New data type.
10513 (d_language_defn): Change c_language_arch_info to
10514 d_language_arch_info.
10515 (d_type_data): New static variable.
10516 (_initialize_d_language): Initialize d_type_data.
10517
63778547
IB
105182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10519
10520 * d-lang.h (d_main_name): Add declaration.
10521 * d-lang.c (d_main_name): New function.
10522 * symtab.c (find_main_name): Add call to d_main_name.
10523
3271ba66
IB
105242014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10525
10526 * d-lang.c (d_language_defn): Change macro_expansion_c to
10527 macro_expansion_no.
10528
d36b3012
IB
105292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10530
10531 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10532
c90a6fb7
SDJ
105332014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10534
10535 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10536 gdb_exception" declaration.
10537 * remote.c (getpkt_or_notif_sane): Likewise.
10538
749234e5
DE
105392014-01-17 Doug Evans <dje@google.com>
10540
10541 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10542 function, contents of dirnames_to_char_ptr_vec_append moved here.
10543 (delim_string_to_char_ptr_vec): New function.
10544 (dirnames_to_char_ptr_vec_append): Rewrite.
10545 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10546
df049a58
DE
105472014-01-17 Doug Evans <dje@google.com>
10548
10549 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10550 and moved here ...
10551 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10552 #include "common-utils.h".
10553 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10554 * common/vec.h (VEC_ASSERT_PASS): Update.
10555 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10556 (MACH_CHECK_ERROR): Update.
10557
69f97648
SM
105582014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10559
10560 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10561 comments.
10562 * gdbarch.h: Regenerate.
10563
98b1cfdc
TT
105642014-01-16 Tom Tromey <tromey@redhat.com>
10565
10566 * value.c (struct value) <regnum>: Move earlier.
10567
77a19445
TT
105682014-01-16 Tom Tromey <tromey@redhat.com>
10569
10570 * remote.c (extended_remote_create_inferior): Rename from
10571 extended_remote_create_inferior_1. Add "ops" argument. Remove
10572 old implementation.
10573
62261490
PA
105742014-01-16 Pedro Alves <palves@redhat.com>
10575
10576 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10577 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10578 the backchain.
10579
4d65956b
DE
105802014-01-16 Doug Evans <dje@google.com>
10581
10582 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10583
52834460
MM
105842014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10585
10586 * btrace.h (btrace_thread_flag): New.
10587 (struct btrace_thread_info) <flags>: New.
10588 * record-btrace.c (record_btrace_resume_thread)
10589 (record_btrace_find_thread_to_move, btrace_step_no_history)
10590 (btrace_step_stopped, record_btrace_start_replaying)
10591 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10592 (record_btrace_find_resume_thread): New.
10593 (record_btrace_resume, record_btrace_wait): Extend.
10594 (record_btrace_can_execute_reverse): New.
10595 (record_btrace_open): Fail in non-stop mode.
10596 (record_btrace_set_replay): Split into this, ...
10597 (record_btrace_stop_replaying): ... this, ...
10598 (record_btrace_clear_histories): ... and this.
10599 (init_record_btrace_ops): Init to_can_execute_reverse.
10600 * NEWS: Announce it.
10601
118e6252
MM
106022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10603
10604 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10605 (forward_target_decr_pc_after_break)
10606 (target_decr_pc_after_break): New.
10607 * target.c (forward_target_decr_pc_after_break)
10608 (target_decr_pc_after_break): New.
10609 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10610 instead of gdbarch_decr_pc_after_break.
10611 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10612 instead of gdbarch_decr_pc_after_break.
10613 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10614 instead of gdbarch_decr_pc_after_break.
10615 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10616 instead of gdbarch_decr_pc_after_break.
10617 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10618 instead of gdbarch_decr_pc_after_break.
10619 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10620 instead of gdbarch_decr_pc_after_break.
10621
6e07b1d2
MM
106222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10623
10624 * btrace.c: Include regcache.h.
10625 (btrace_add_pc): New.
10626 (btrace_enable): Call btrace_add_pc.
10627 (btrace_is_empty): New.
10628 * btrace.h (btrace_is_empty): New.
10629 * record-btrace.c (require_btrace, record_btrace_info): Call
10630 btrace_is_empty.
10631
969c39fb
MM
106322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10633
10634 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10635 Support delta reads.
10636 (linux_disable_btrace): Change return type.
10637 * common/linux-btrace.h (linux_read_btrace): Change parameters
10638 and return type to allow error reporting. Update users.
10639 (linux_disable_btrace): Change return type. Update users.
10640 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10641 New.
10642 (btrace_error): New.
10643 (btrace_block) <begin>: Comment on BEGIN == 0.
10644 * btrace.c (btrace_compute_ftrace): Start from the end of
10645 the current trace.
10646 (btrace_stitch_trace, btrace_clear_history): New.
10647 (btrace_fetch): Read delta trace, return if replaying.
10648 (btrace_clear): Move clear history code to btrace_clear_history.
10649 (parse_xml_btrace): Throw an error if parsing failed.
10650 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10651 and return type to allow error reporting.
10652 (target_read_btrace): Change parameters and return type to allow
10653 error reporting.
10654 * target.c (target_read_btrace): Update.
10655 * remote.c (remote_read_btrace): Support delta reads. Pass
10656 errors on.
10657 * NEWS: Announce it.
10658
0b722aec
MM
106592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10660
10661 * record.h (record_btrace_frame_unwind)
10662 (record_btrace_tailcall_frame_unwind): New declarations.
10663 * dwarf2-frame: Include record.h
10664 (dwarf2_frame_cfa): Throw an error for btrace frames.
10665 * record-btrace.c: Include hashtab.h.
10666 (btrace_get_bfun_name): New.
10667 (btrace_call_history): Call btrace_get_bfun_name.
10668 (struct btrace_frame_cache): New.
10669 (bfcache): New.
10670 (bfcache_hash, bfcache_eq, bfcache_new): New.
10671 (btrace_get_frame_function): New.
10672 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10673 (record_btrace_frame_this_id): Compute own id.
10674 (record_btrace_frame_prev_register): Provide PC, throw_error
10675 for all other registers.
10676 (record_btrace_frame_sniffer): Detect btrace frames.
10677 (record_btrace_tailcall_frame_sniffer): New.
10678 (record_btrace_frame_dealloc_cache): New.
10679 (record_btrace_frame_unwind): Add new functions.
10680 (record_btrace_tailcall_frame_unwind): New.
10681 (_initialize_record_btrace): Allocate cache.
10682 * btrace.c (btrace_clear): Call reinit_frame_cache.
10683 * NEWS: Announce it.
10684
066ce621
MM
106852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10686
10687 * record-btrace.c (record_btrace_set_replay)
10688 (record_btrace_goto_begin, record_btrace_goto_end)
10689 (record_btrace_goto): New.
10690 (init_record_btrace_ops): Initialize them.
10691 * NEWS: Announce it.
10692
e2887aa3
MM
106932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10694
10695 * record-btrace.c (record_btrace_find_new_threads)
10696 (record_btrace_thread_alive): New.
10697 (init_record_btrace_ops): Initialize to_find_new_threads and
10698 to_thread_alive.
10699
b2f4cfde
MM
107002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10701
10702 * record-btrace.c (record_btrace_resume): New.
10703 (record_btrace_wait): New.
10704 (init_record_btrace_ops): Initialize to_wait and to_resume.
10705
633785ff
MM
107062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10707
10708 * record-btrace.c (record_btrace_xfer_partial)
10709 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10710 (record_btrace_allow_memory_access): New.
10711 (init_record_btrace_ops): Initialize new methods.
10712 * target.c (raw_memory_xfer_partial): Bail out if target reports
10713 that this memory is not available.
10714
3db08215
MM
107152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10716
10717 * target.h (target_ops) <to_insert_breakpoint>
10718 <to_remove_breakpoint>: Add target_ops parameter.
10719 (forward_target_insert_breakpoint): New.
10720 (forward_target_remove_breakpoint): New.
10721 (memory_remove_breakpoint, memory_insert_breakpoint):
10722 Add target_ops parameter.
10723 * target.c (target_insert_breakpoint): Split into this and ...
10724 (forward_target_insert_breakpoint): ... this.
10725 (target_remove_breakpoint): Split into this and ...
10726 (forward_target_remove_breakpoint): ... this.
10727 (debug_to_insert_breakpoint): Add target_ops parameter.
10728 Call forward_target_insert_breakpoint.
10729 (debug_to_remove_breakpoint): Add target_ops parameter.
10730 Call forward_target_remove_breakpoint.
10731 (update_current_target): Do not inherit or default to_insert_breakpoint
10732 and to_remove_breakpoint.
10733 * corelow.c (ignore): Add target_ops parameter.
10734 * exec.c (ignore): Add target_ops parameter.
10735 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10736 Add target_ops parameter.
10737 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10738 Add target_ops parameter.
10739 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10740 Add target_ops parameter.
10741 * record-full.c (record_full_beneath_to_insert_breakpoint)
10742 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10743 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10744 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10745 (record_full_core_remove_breakpoint): Add target_ops parameter.
10746 Update users.
10747 (record_full_beneath_to_insert_breakpoint_ops)
10748 (record_full_beneath_to_remove_breakpoint_ops)
10749 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10750 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10751 tmp_to_remove_breakpoint_ops,
10752 record_full_beneath_to_insert_breakpoint_ops, and
10753 record_full_beneath_to_remove_breakpoint_ops.
10754 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10755 (m32r_remove_breakpoint): Add target_ops parameter.
10756 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10757 Add target_ops parameter.
10758 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10759 Add target_ops parameter.
10760
cecac1ab
MM
107612014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10762 Markus Metzger <markus.t.metzger@intel.com>
10763
10764 * record-btrace.c: Include frame-unwind.h.
10765 (record_btrace_frame_unwind_stop_reason)
10766 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10767 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10768 New.
10769 (init_record_btrace_ops): Install it.
10770
824344ca
MM
107712014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10774 get_prev_frame_1.
10775
32261e52
MM
107762014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10777
10778 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10779 earlier.
10780
ea001bdc
MM
107812014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10782
10783 * frame-unwind.c: Include target.h.
10784 (frame_unwind_try_unwinder): New function with code from ...
10785 (frame_unwind_find_by_frame): ... here. New variable
10786 unwinder_from_target, call also target_get_unwinder)
10787 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10788 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10789 * target.h (struct target_ops): New fields to_get_unwinder and
10790 to_get_tailcall_unwinder.
10791 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10792
1f3ef581
MM
107932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10794
10795 * record-btrace.c (record_btrace_fetch_registers)
10796 (record_btrace_store_registers)
10797 (record_btrace_to_prepare_to_store): New.
10798 (init_record_btrace_ops): Add the above.
10799
f32dbf8c
MM
108002014-01-16 Tom Tromey <tromey@redhat.com>
10801
10802 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10803 * target.h (struct target_ops) <to_prepare_to_store>: Add
10804 argument.
10805 (target_prepare_to_store): Add argument.
10806 * target.c (debug_to_prepare_to_store): Add argument.
10807 (update_current_target): Update.
10808 * remote.c (remote_prepare_to_store): Add 'self' argument.
10809 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10810 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10811 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10812 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10813 argument.
10814 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10815 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10816 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10817 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10818 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10819
07bbe694
MM
108202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10821
10822 * btrace.h (replay) <replay>: New.
10823 (btrace_is_replaying): New.
10824 * btrace.c (btrace_clear): Free replay iterator.
10825 (btrace_is_replaying): New.
10826 * record-btrace.c (record_btrace_is_replaying): New.
10827 (record_btrace_info): Print insn number if replaying.
10828 (record_btrace_insn_history): Start at replay position.
10829 (record_btrace_call_history): Start at replay position.
10830 (init_record_btrace_ops): Init to_record_is_replaying.
10831
0688d04e
MM
108322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10833
10834 * record-btrace.c (record_btrace_insn_history_range): Include
10835 end.
10836 (record_btrace_insn_history_from): Adjust range.
10837 (record_btrace_call_history_range): Include
10838 end.
10839 (record_btrace_call_history_from): Adjust range.
10840 * NEWS: Announce changes.
10841
8710b709
MM
108422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10843
10844 * record.h (enum record_print_flag)
10845 <record_print_indent_calls>: New.
10846 * record.c (get_call_history_modifiers): Recognize /c modifier.
10847 (_initialize_record): Document /c modifier.
10848 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10849 Reorder fields. Optionally indent the function name. Update
10850 all users.
10851 * NEWS: Announce changes.
10852
d0fa7535
MM
108532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10854
10855 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10856
5de9129b
MM
108572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10858
10859 * btrace.c (ftrace_new_function): Start counting at one.
10860 * record-btrace.c (record_btrace_info): Adjust number of calls
10861 and insns.
10862 * NEWS: Announce it.
10863
7acbe133
MM
108642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10865
10866 * record-btrace.c (btrace_call_history_insn_range): Print
10867 insn range as [begin, end].
10868
23a7fe75
MM
108692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10870
10871 * btrace.h (struct btrace_func_link): New.
10872 (enum btrace_function_flag): New.
10873 (struct btrace_inst): Rename to ...
10874 (struct btrace_insn): ...this. Update all users.
10875 (struct btrace_func) <ibegin, iend>: Remove.
10876 (struct btrace_func_link): New.
10877 (struct btrace_func): Rename to ...
10878 (struct btrace_function): ...this. Update all users.
10879 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10880 (number, level, flags>: New.
10881 (struct btrace_insn_iterator): Rename to ...
10882 (struct btrace_insn_history): ...this.
10883 Update all users.
10884 (struct btrace_insn_iterator, btrace_call_iterator): New.
10885 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10886 (struct btrace_target_info) <begin, end, level>
10887 <insn_history, call_history>: New.
10888 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10889 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10890 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10891 (btrace_call_number, btrace_call_begin, btrace_call_end)
10892 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10893 (btrace_find_function_by_number, btrace_set_insn_history)
10894 (btrace_set_call_history): New.
10895 * btrace.c (btrace_init_insn_iterator)
10896 (btrace_init_func_iterator, compute_itrace): Remove.
10897 (ftrace_print_function_name, ftrace_print_filename)
10898 (ftrace_skip_file): Change
10899 parameter to const.
10900 (ftrace_init_func): Remove.
10901 (ftrace_debug): Use new btrace_function fields.
10902 (ftrace_function_switched): Also consider gaining and
10903 losing symbol information).
10904 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10905 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10906 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10907 New.
10908 (ftrace_new_function): Move. Remove debug print.
10909 (ftrace_update_lines, ftrace_update_insns): New.
10910 (ftrace_update_function): Check for call, ret, and jump.
10911 (compute_ftrace): Renamed to ...
10912 (btrace_compute_ftrace): ...this. Rewritten to compute call
10913 stack.
10914 (btrace_fetch, btrace_clear): Updated.
10915 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10916 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10917 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10918 (btrace_call_number, btrace_call_begin, btrace_call_end)
10919 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10920 (btrace_find_function_by_number, btrace_set_insn_history)
10921 (btrace_set_call_history): New.
10922 * record-btrace.c (require_btrace): Use new btrace thread
10923 info fields.
10924 (record_btrace_info, btrace_insn_history)
10925 (record_btrace_insn_history, record_btrace_insn_history_range):
10926 Use new btrace thread info fields and new iterator.
10927 (btrace_func_history_src_line): Rename to ...
10928 (btrace_call_history_src_line): ...this. Use new btrace
10929 thread info fields.
10930 (btrace_func_history): Rename to ...
10931 (btrace_call_history): ...this. Use new btrace thread info
10932 fields and new iterator.
10933 (record_btrace_call_history, record_btrace_call_history_range):
10934 Use new btrace thread info fields and new iterator.
10935
8372a7cb
MM
109362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10937
10938 * frame.h (frame_id_build_unavailable_stack_special): New.
10939 * frame.c (frame_id_build_unavailable_stack_special): New.
10940
c2170eef
MM
109412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10942
10943 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10944 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10945 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10946 to gdbarch.
10947 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10948 (i386_insn_is_jump, i386_jmp_p): New.
10949 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10950 insn_is_jump to gdbarch.
10951 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10952 * gdbarch.h: Regenerated.
10953 * gdbarch.c: Regenerated.
10954 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10955 (default_insn_is_jump): New.
10956 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10957 (default_insn_is_jump): New.
10958
864089d2
MM
109592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10960
10961 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10962 Change to ...
10963 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10964 (btrace_read_type) <btrace_read_new>: Change to ...
10965 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10966
ed9edfb5
MM
109672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10968
10969 * common/linux-btrace.c (linux_read_btrace): Free trace from
10970 previous iteration.
10971
fbcbc3fd
DE
109722014-01-15 Doug Evans <dje@google.com>
10973
10974 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10975 uint32_t.
10976
3d548a53
TT
109772014-01-15 Tom Tromey <tromey@redhat.com>
10978
10979 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10980 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10981 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10982 (set_objfile_main_name): New function.
10983 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10984 language_of_main>: New fields.
10985 (set_objfile_main_name): Declare.
10986 * symtab.c (find_main_name): Loop over objfiles to find the main
10987 name and language.
10988 (set_main_name): Now static.
10989 (get_main_info): Add comment.
10990 * symtab.h (set_main_name): Don't declare.
10991
32ac0d11
TT
109922014-01-15 Tom Tromey <tromey@redhat.com>
10993
10994 * symtab.c (main_progspace_key): New global.
10995 (struct main_info): New.
10996 (name_of_main, language_of_main): Remove.
10997 (get_main_info, main_info_cleanup): New function.
10998 (set_main_name, main_name, main_language): Use get_main_info.
10999 (_initialize_symtab): Initialize main_progspace_key.
11000
9e6c82ad
TT
110012014-01-15 Tom Tromey <tromey@redhat.com>
11002
11003 * dbxread.c (process_one_symbol): Update.
11004 * dwarf2read.c (read_partial_die): Update.
11005 * symfile.c (set_initial_language): Call main_language.
11006 * symtab.c (language_of_main): Now static.
11007 (set_main_name): Add 'lang' parameter.
11008 (find_main_name): Update.
11009 (main_language): New function.
11010 (symtab_observer_executable_changed): Update.
11011 * symtab.h (set_main_name): Update.
11012 (language_of_main): Remove.
11013 (main_language): Declare.
11014
6ef55de7
TT
110152014-01-15 Tom Tromey <tromey@redhat.com>
11016
11017 * symfile.c (init_entry_point_info): Use new "initialized" field.
11018 Update.
11019 * objfiles.h (struct entry_point) <initialized>: New field.
11020 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11021 (struct objfile) <ei>: ...here. Remove.
11022 * objfiles.c (entry_point_address_query): Update.
11023
53eddfa6
TT
110242014-01-15 Tom Tromey <tromey@redhat.com>
11025
11026 * objfiles.c (entry_point_address_query): Relocate entry point
11027 address.
11028 (objfile_relocate1): Do not relocate entry point address.
11029 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11030 <the_bfd_section_index>: New field.
11031 * symfile.c (init_entry_point_info): Find the entry point's
11032 section.
11033
d56e56aa
TT
110342014-01-15 Tom Tromey <tromey@redhat.com>
11035
11036 * solib-frv.c (enable_break): Use entry_point_address_query.
11037
33a97bbe
OJ
110382014-01-15 Omair Javaid <omair.javaid@linaro.org>
11039
11040 * NEWS: Add note on improved process record-replay on
11041 arm*-linux* targets.
11042
c6ec2b30
OJ
110432014-01-15 Omair Javaid <omair.javaid@linaro.org>
11044
11045 * arm-tdep.c (enum arm_record_result): New enum.
11046 (arm_record_unsupported_insn): New function.
11047 (arm_record_coproc_data_proc): Removed.
11048 (thumb2_record_ld_st_multiple): New function.
11049 (thumb2_record_ld_st_dual_ex_tbb): New function.
11050 (thumb2_record_data_proc_sreg_mimm): New function.
11051 (thumb2_record_ps_dest_generic): New function.
11052 (thumb2_record_branch_misc_cntrl): New function.
11053 (thumb2_record_str_single_data): New function.
11054 (thumb2_record_ld_mem_hints): New function.
11055 (thumb2_record_ld_word): New function.
11056 (thumb2_record_lmul_lmla_div): New function.
11057 (thumb2_record_decode_insn_handler): New function.
11058 (decode_insn): Add thumb32 instruction handlers.
11059
97dfe206
OJ
110602014-01-15 Omair Javaid <omair.javaid@linaro.org>
11061
11062 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11063 (struct arm_linux_record_tdep): Declare.
11064 (arm_canonicalize_syscall): New function.
11065 (arm_all_but_pc_registers_record): New function.
11066 (arm_linux_syscall_record): New function.
11067 (arm_linux_init_abi): Add syscall recording constructs.
11068 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11069 decoding. (arm_record_coproc_data_proc): Update arm syscall
11070 decoding.
11071 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11072 <arm_syscall_record>: New field.
11073 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11074 gdb_target_obs.
11075
9904a494
OJ
110762014-01-15 Omair Javaid <omair.javaid@linaro.org>
11077
11078 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11079 register for push instruction recording.
11080
f969241e
OJ
110812014-01-15 Omair Javaid <omair.javaid@linaro.org>
11082
11083 * arm-tdep.c (thumb_record_misc): Update to correct logical
11084 error while recording ldm, ldmia and pop instructions.
11085
bfbbec00
OJ
110862014-01-15 Omair Javaid <omair.javaid@linaro.org>
11087
11088 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11089
e40adcc9
PA
110902014-01-15 Pedro Alves <palves@redhat.com>
11091
11092 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11093 (go32_resume, go32_fetch_registers, store_register)
11094 (go32_store_registers, go32_prepare_to_store)
11095 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11096 (go32_create_inferior, go32_can_run, go32_terminal_init)
11097 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11098 declarations.
11099
b0a16e66
TT
111002014-01-15 Tom Tromey <tromey@redhat.com>
11101
11102 * target.h (async_callback_ftype): New typedef.
11103 (struct target_ops) <to_async>: Use it.
11104
bf7105a4
JB
111052014-01-15 Joel Brobecker <brobecker@adacore.com>
11106
11107 * python/py-value.c (get_field_type): Remove unnecessary curly
11108 braces for single-statement if block.
11109
a8f35c2e
JB
111102014-01-15 Joel Brobecker <brobecker@adacore.com>
11111
11112 * python/py-type.c (convert_field): Add missing empty line
11113 after declarations.
11114
bb4142cf
DE
111152014-01-14 Doug Evans <dje@google.com>
11116
11117 * symfile.h (expand_symtabs_matching): Renamed from
11118 expand_partial_symbol_names. Update prototype.
11119 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11120 * symfile.c (expand_symtabs_matching): Renamed from
11121 expand_partial_symbol_names. New args file_matcher, kind.
11122 Rename arg fun to symbol_matcher.
11123 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11124 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11125 ada_expand_partial_symbol_name.
11126 (ada_make_symbol_completion_list): Update to call
11127 expand_symtabs_matching.
11128 (ada_add_global_exceptions): Call expand_symtabs_matching.
11129 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11130 call map_symbol_filenames.
11131 * symtab.c (sources_info): Update to call map_symbol_filenames.
11132 (search_symbols): Call expand_symtabs_matching.
11133 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11134 (default_make_symbol_completion_list_break_on): Update to call
11135 expand_symtabs_matching.
11136 (make_source_files_completion_list): Update to call
11137 map_symbol_filenames.
11138
206f2a57
DE
111392014-01-14 Doug Evans <dje@google.com>
11140
11141 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11142 (expand_symtabs_symbol_matcher_ftype): New typedef.
11143 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11144 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11145 * symfile.c (expand_partial_symbol_names): Update to use
11146 expand_symtabs_symbol_matcher_ftype.
11147 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11148 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11149 Arg name_matcher renamed to symbol_matcher.
11150 * psymtab.c (recursively_search_psymtabs): Update to use
11151 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11152 sym_matcher.
11153 (expand_symtabs_matching_via_partial): Update to use
11154 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11155 Arg name_matcher renamed to symbol_matcher.
11156
540c2971
DE
111572014-01-14 Doug Evans <dje@google.com>
11158
11159 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11160 (map_partial_symbol_filenames): Ditto.
11161 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11162 (map_partial_symbol_filenames): Ditto.
11163 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11164 (map_partial_symbol_filenames): Ditto.
11165 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11166 (map_partial_symbol_filenames): Ditto.
11167 * symtab.c: Delete #include "psymtab.h".
11168
8213266a
PA
111692014-01-14 Pedro Alves <palves@redhat.com>
11170 Tom Tromey <tromey@redhat.com>
11171
11172 * infrun.c (use_displaced_stepping): Use find_record_target
11173 instead of RECORD_IS_USED.
11174 (adjust_pc_after_break): Use record_full_is_used instead of
11175 RECORD_IS_USED.
11176 * record-btrace.c (record_btrace_open): Call record_preopen
11177 instead of checking RECORD_IS_USED.
11178 * record-full.c (record_full_shortname)
11179 (record_full_core_shortname): New globals.
11180 (record_full_is_used): New function.
11181 (find_full_open): Call record_preopen instead of checking
11182 RECORD_IS_USED.
11183 (init_record_full_ops): Set the target's shortname to
11184 record_full_shortname.
11185 (init_record_full_core_ops): Set the target's shortname to
11186 record_full_core_shortname.
11187 * record-full.h (record_full_is_used): Declare.
11188 * record.c (find_record_target): Make extern.
11189 (record_preopen): New function.
11190 * record.h (RECORD_IS_USED): Delete macro.
11191 (find_record_target, record_preopen): Declare functions.
11192
7ec1862d
YQ
111932014-01-14 Yao Qi <yao@codesourcery.com>
11194
11195 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11196 'len''s type to ULONGEST.
11197 (core_xfer_shared_libraries_aix): Likewise.
11198 * gdbarch.c, gdbarch.h: Regenerated.
11199 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11200 Change type of 'len' to ULONGEST.
11201 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11202 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11203
dea80a27
YQ
112042014-01-14 Yao Qi <yao@codesourcery.com>
11205
11206 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11207 type of 'len' to ULONGEST.
11208 (linux_xfer_osdata_processgroups): Likewise.
11209 (linux_xfer_osdata_threads): Likewise.
11210 (linux_xfer_osdata_fds): Likewise.
11211 (linux_xfer_osdata_isockets): Likewise.
11212 (linux_xfer_osdata_shm): Likewise.
11213 (linux_xfer_osdata_sem): Likewise.
11214 (linux_xfer_osdata_msg): Likewise.
11215 (linux_common_xfer_osdata): Likewise.
11216 (struct osdata_type) <getter>: Likewise.
11217 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11218 the declaration.
11219
b55e14c7
YQ
112202014-01-14 Yao Qi <yao@codesourcery.com>
11221
11222 * target.h (target_xfer_partial_ftype): Update.
11223 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11224 ULONGEST.
11225 * aix-thread.c (aix_thread_xfer_partial): Change type of
11226 argument 'len' to ULONGEST.
11227 * auxv.c (procfs_xfer_auxv): Likewise.
11228 (ld_so_xfer_auxv): Likewise.
11229 (memory_xfer_auxv): Likewise.
11230 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11231 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11232 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11233 * corelow.c (core_xfer_partial): Likewise.
11234 * ctf.c (ctf_xfer_partial): Likewise.
11235 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11236 '%u'.
11237 (darwin_read_dyld_info): Likewise.
11238 (darwin_xfer_partial): Likewise.
11239 * exec.c (section_table_xfer_memory_partial): Likewise.
11240 (exec_xfer_partial): Likewise.
11241 * exec.h (section_table_xfer_memory_partial): Update
11242 declaration.
11243 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11244 instead of plongest.
11245 (gnu_xfer_partial): Likewise.
11246 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11247 (ia64_hpux_xfer_solib_got): Likewise.
11248 (ia64_hpux_xfer_partial): Likewise.
11249 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11250 * inf-ptrace.c (inf_ptrace_xfer_partial):
11251 * inf-ttrace.c (inf_ttrace_xfer_partial):
11252 * linux-nat.c (linux_xfer_siginfo): Likewise.
11253 (linux_nat_xfer_partial): Likewise.
11254 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11255 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11256 * monitor.c (monitor_xfer_memory): Likewise.
11257 (monitor_xfer_partial): Likewise.
11258 * procfs.c (procfs_xfer_partial): Likewise.
11259 * record-full.c (record_full_xfer_partial): Likewise.
11260 (record_full_core_xfer_partial): Likewise.
11261 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11262 instead of plongest.
11263 (gdbsim_xfer_partial): Likewise.
11264 * remote.c (remote_xfer_partial): Likewise.
11265 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11266 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11267 declaration.
11268 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11269 (rs6000_xfer_shared_libraries): Likewise.
11270 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11271 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11272 (sparc_xfer_partial): Likewise.
11273 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11274 (spu_xfer_partial): Likewise.
11275 * spu-multiarch.c (spu_xfer_partial): Likewise.
11276 * target.c (target_read_live_memory): Likewise.
11277 (memory_xfer_live_readonly_partial): Likewise.
11278 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11279 (target_xfer_partial, default_xfer_partial): Likewise.
11280 (current_xfer_partial): Likewise.
11281 * tracepoint.c (tfile_xfer_partial): Likewise.
11282 * windows-nat.c (windows_xfer_memory): Likewise. Call
11283 pulongest instead of plongest.
11284 (windows_xfer_partial): Likewise.
11285 (windows_xfer_shared_libraries): Likewise.
11286
05804640
YQ
112872014-01-14 Yao Qi <yao@codesourcery.com>
11288
11289 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11290 target_xfer_partial_ftype.
11291
b5b08fb4
SC
112922014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11293
11294 PR python/15464
11295 PR python/16113
11296 * valops.c (value_struct_elt_bitpos): New function
11297 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11298 object to 'None' if the field name is an empty string ("").
11299 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11300 attribute to look for a field when 'name' is 'None'.
11301 (get_field_type): New function
11302
13aaf454
DE
113032014-01-13 Doug Evans <dje@google.com>
11304
11305 PR symtab/16426
11306 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11307 (try_open_dwop_file): Ditto.
11308 * gdb_bfd.c: #include "vec.h".
11309 (bfdp): New typedef.
11310 (struct gdb_bfd_data): New member included_bfds.
11311 (gdb_bfd_unref): Unref all included bfds.
11312 (gdb_bfd_record_inclusion): New function.
11313 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11314
c2cec97c
TT
113152014-01-13 Tom Tromey <tromey@redhat.com>
11316
11317 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11318
78e5999d
TT
113192014-01-13 Tom Tromey <tromey@redhat.com>
11320
11321 * defs.h (use_windows): Remove.
11322 * gdb.c (main): Update.
11323 * main.c (captured_main, gdb_main): Update.
11324 * main.h (struct captured_main_args) <use_windows>: Remove.
11325 * top.c (use_windows): Remove.
11326
f2052bbe
TT
113272014-01-13 Tom Tromey <tromey@redhat.com>
11328
11329 * defs.h (deprecated_flush_hook): Remove.
11330
fde4f8ed
JK
113312014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11332
11333 PR threads/16216
11334 * linux-thread-db.c (try_thread_db_load): Add parameter
11335 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11336 (try_thread_db_load_from_pdir_1): Move it there from here.
11337 (try_thread_db_load_from_sdir): Update caller.
11338 (try_thread_db_load_from_dir): Move it there from here.
11339
bdf61915
PP
113402014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11341
11342 * regformats/regdat.sh: Always rewrite the register file.
11343
f71e1a8d
PA
113442014-01-13 Pedro Alves <palves@redhat.com>
11345
11346 * Makefile.in (CHECK_HEADERS): New variable.
11347 (check-headers:): New rule.
11348
42c85435
TT
113492014-01-13 Tom Tromey <tromey@redhat.com>
11350
11351 * cli/cli-setshow.c (do_set_command): Update.
11352 * defs.h (deprecated_set_hook): Remove.
11353 * top.c (deprecated_set_hook): Remove.
11354
f8de5129
PA
113552014-01-13 Pedro Alves <palves@redhat.com>
11356
11357 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11358 the tracepoint if the PC is a pseudo-register.
11359
fc270c35
TT
113602014-01-13 Tom Tromey <tromey@redhat.com>
11361
11362 * defs.h (XCALLOC): Remove.
11363 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11364 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11365 * dwarf2loc.c (allocate_piece_closure): Likewise.
11366 * elfread.c (elf_symfile_segments): Likewise.
11367 (elf_symfile_segments): Likewise.
11368 * gdbtypes.c (copy_type_recursive): Likewise.
11369 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11370 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11371 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11372 XCALLOC.
11373 * mt-tdep.c (mt_gdbarch_init): Likewise.
11374 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11375 XCALLOC.
11376 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11377 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11378 * registry.c (registry_alloc_data): Likewise.
11379 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11380 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11381 * serial.c (serial_fdopen_ops): Likewise.
11382 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11383 XCALLOC.
11384 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11385 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11386 not XCALLOC.
11387
70ba0933
TT
113882014-01-13 Tom Tromey <tromey@redhat.com>
11389
11390 * defs.h (XMALLOC): Remove.
11391 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11392 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11393 * cli-out.c (struct ui_out *): Likewise.
11394 * cli/cli-dump.c (add_dump_command): Likewise.
11395 (add_dump_command): Likewise.
11396 * complaints.c (get_complaints): Likewise.
11397 (find_complaint): Likewise.
11398 * dwarf2-frame.c (execute_cfa_program): Likewise.
11399 * dwarf2read.c (abbrev_table_read_table): Likewise.
11400 * gdbarch.sh: Likewise.
11401 * gdbarch.c: Rebuild.
11402 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11403 * interps.c (interp_new): Likewise.
11404 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11405 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11406 * mi/mi-console.c (mi_console_file_new): Likewise.
11407 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11408 * mi/mi-out.c (mi_out_new): Likewise.
11409 * mi/mi-parse.c (mi_parse): Likewise.
11410 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11411 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11412 * observer.c (xalloc_observer_list_node): Likewise.
11413 * regcache.c (regcache_xmalloc_1): Likewise.
11414 * reggroups.c (reggroup_new): Likewise.
11415 (_initialize_reggroup): Likewise.
11416 * registry.c (register_data_with_cleanup): Likewise.
11417 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11418 * ser-base.c (serial_ttystate): Likewise.
11419 * ser-mingw.c (make_pipe_state): Likewise.
11420 * ser-pipe.c (pipe_open): Likewise.
11421 * serial.c (serial_open): Likewise.
11422 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11423 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11424 (tui_alloc_win_info): Likewise.
11425 (tui_add_content_elements): Likewise.
11426 * tui/tui-file.c (tui_file_new): Likewise.
11427 * tui/tui-out.c (tui_out_new): Likewise.
11428 * ui-file.c (mem_file_new): Likewise.
11429 * ui-out.c (push_level): Likewise.
11430 (make_cleanup_ui_out_end): Likewise.
11431 (append_header_to_list): Likewise.
11432 (ui_out_new): Likewise.
11433 * user-regs.c (user_reg_add_builtin): Likewise.
11434
41bf6aca
TT
114352014-01-13 Tom Tromey <tromey@redhat.com>
11436
11437 * defs.h (XZALLOC): Remove.
11438 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11439 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11440 (get_ada_tasks_inferior_data): Likewise.
11441 * auto-load.c (get_auto_load_pspace_data): Likewise.
11442 * auxv.c (get_auxv_inferior_data): Likewise.
11443 * bfd-target.c (target_bfd_reopen): Likewise.
11444 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11445 (deprecated_insert_raw_breakpoint): Likewise.
11446 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11447 * corelow.c (core_open): Likewise.
11448 * darwin-nat.c (darwin_check_new_threads): Likewise.
11449 (darwin_attach_pid): Likewise.
11450 * dummy-frame.c (dummy_frame_push): Likewise.
11451 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11452 * dwarf2loc.c (allocate_piece_closure): Likewise.
11453 * elfread.c (elf_symfile_segments): Likewise.
11454 * eval.c (ptrmath_type_p): Likewise.
11455 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11456 * gdbtypes.c (alloc_type_arch): Likewise.
11457 (alloc_type_instance): Likewise.
11458 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11459 * inf-child.c (inf_child_can_use_agent): Likewise.
11460 * inflow.c (get_inflow_inferior_data): Likewise.
11461 * infrun.c (save_infcall_suspend_state): Likewise.
11462 * jit.c (jit_reader_load): Likewise.
11463 (get_jit_objfile_data): Likewise.
11464 (get_jit_program_space_data): Likewise.
11465 (jit_object_open_impl): Likewise.
11466 (jit_symtab_open_impl): Likewise.
11467 (jit_block_open_impl): Likewise.
11468 (jit_frame_sniffer): Likewise.
11469 * linux-fork.c (add_fork): Likewise.
11470 * maint.c (make_command_stats_cleanup): Likewise.
11471 * objfiles.c (get_objfile_pspace_data): Likewise.
11472 * opencl-lang.c (struct lval_closure): Likewise.
11473 * osdata.c (osdata_start_osdata): Likewise.
11474 * progspace.c (new_address_space): Likewise.
11475 (add_program_space): Likewise.
11476 * remote-sim.c (get_sim_inferior_data): Likewise.
11477 * sh-tdep.c (sh_gdbarch_init): Likewise.
11478 * skip.c (Ignore): Likewise.
11479 (skip_delete_command): Likewise.
11480 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11481 (library_list_start_library): Likewise.
11482 (solib_aix_current_sos): Likewise.
11483 * solib-darwin.c (get_darwin_info): Likewise.
11484 (darwin_current_sos): Likewise.
11485 * solib-dsbt.c (get_dsbt_info): Likewise.
11486 * solib-ia64-hpux.c (new_so_list): Likewise.
11487 (ia64_hpux_get_solib_linkage_addr): Likewise.
11488 * solib-spu.c (append_ocl_sos): Likewise.
11489 (spu_current_sos): Likewise.
11490 * solib-svr4.c (get_svr4_info): Likewise.
11491 (svr4_keep_data_in_core): Likewise.
11492 (library_list_start_library): Likewise.
11493 (svr4_default_sos): Likewise.
11494 (svr4_read_so_list): Likewise.
11495 * solib-target.c (library_list_start_library): Likewise.
11496 (solib_target_current_sos): Likewise.
11497 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11498 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11499 * symfile.c (default_symfile_segments): Likewise.
11500 * target-descriptions.c (tdesc_data_init): Likewise.
11501 (tdesc_create_reg): Likewise.
11502 (struct tdesc_type *): Likewise.
11503 (tdesc_create_vector): Likewise.
11504 (tdesc_set_struct_size): Likewise.
11505 (struct tdesc_type *): Likewise.
11506 (tdesc_free_feature): Likewise.
11507 (tdesc_create_feature): Likewise.
11508 * windows-nat.c (windows_add_thread): Likewise.
11509 (windows_make_so): Likewise.
11510 * xml-support.c (gdb_xml_body_text): Likewise.
11511 (gdb_xml_create_parser_and_cleanup): Likewise.
11512 (xml_process_xincludes): Likewise.
11513 * xml-syscall.c (allocate_syscalls_info): Likewise.
11514 (syscall_create_syscall_desc): Likewise.
11515
5acfdbae
SDJ
115162014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11517
11518 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11519 function, with code from i386_stap_parse_special_token.
11520 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11521 (i386_stap_parse_special_token): Move code to the two functions
11522 above; simplify it.
11523
0000e5cc
PA
115242014-01-09 Pedro Alves <palves@redhat.com>
11525 Hui Zhu <hui@codesourcery.com>
11526
11527 PR gdb/16101
11528 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11529 bp_err_string. Don't mark the location shlib_disabled if the
11530 error thrown wasn't a generic or memory error. Catch errors
11531 thrown while inserting breakpoints in overlayed code. Output
11532 error message of software breakpoints.
11533 * remote.c (remote_insert_breakpoint): If this breakpoint has
11534 target-side commands but this stub doesn't support Z0 packets,
11535 throw NOT_SUPPORTED_ERROR error.
11536 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11537 * target.h (target_insert_breakpoint): Extend comment.
11538 (target_insert_hw_breakpoint): Add comment.
11539
b7ea362b
PA
115402014-01-08 Pedro Alves <palves@redhat.com>
11541
11542 * remote.c (remote_add_thread): Add threads silently if starting
11543 up.
11544 (remote_notice_new_inferior): If in all-stop, and starting up,
11545 don't call notice_new_inferior.
11546 (get_current_thread): New function, factored out from ...
11547 (add_current_inferior_and_thread): ... this. Adjust.
11548 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11549 found any thread, then select the remote's current thread as GDB's
11550 current thread too.
11551
b7bba001
JB
115522014-01-08 Joel Brobecker <brobecker@adacore.com>
11553
11554 * NEWS: Create a new section for the next release branch.
11555 Rename the section of the current branch, now that it has
11556 been cut.
11557
16dfbded
JB
115582014-01-08 Joel Brobecker <brobecker@adacore.com>
11559
11560 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11561 * version.in: Bump version to 7.7.50.DATE-cvs.
11562
22c90ac1
YQ
115632014-01-08 Yao Qi <yao@codesourcery.com>
11564
11565 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11566 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11567 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11568
d64ad97c
YQ
115692014-01-08 Yao Qi <yao@codesourcery.com>
11570
11571 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11572 return value of bfd_get_filename to symbol_file_add_from_bfd.
11573
f93ba80c
PM
115742014-01-08 Pierre Muller <muller@sourceware.org>
11575
11576 Fix PR16201.
11577 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11578 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11579 to prim_record_mininal_symbol_and_info.
11580 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11581 in call to prim_record_minimal_symbol_and_info.
11582 (read_pe_exported_syms): Set index field of section_data.
11583
a4d9ba85
AP
115842014-01-07 Andrew Pinski <apinski@cavium.com>
11585
11586 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11587 * features/aarch64.c: Regenerate.
11588
1b67eb02
AS
115892014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11590
11591 * target.c (return_null): Define.
11592 (update_current_target): Use it instead of return_zero for
11593 functions that return a pointer.
11594
5e3f4fab
EBM
115952014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11596
11597 * source.c (add_path): Fix check for duplicated paths in the previously
11598 included paths.
11599
e2616788
HK
116002014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11601
11602 * ada-lang.c: Remove duplicated include statements.
11603 * alphabsd-nat.c: Ditto.
11604 * amd64-darwin-tdep.c: Ditto.
11605 * amd64fbsd-nat.c: Ditto.
11606 * auto-load.c: Ditto.
11607 * ax-gdb.c: Ditto.
11608 * breakpoint.c: Ditto.
11609 * dbxread.c: Ditto.
11610 * fork-child.c: Ditto.
11611 * gdb_usleep.c: Ditto.
11612 * i386-darwin-tdep.c: Ditto.
11613 * i386fbsd-nat.c: Ditto.
11614 * infcmd.c: Ditto.
11615 * inferior.c: Ditto.
11616 * jv-lang.c: Ditto.
11617 * linux-nat.c: Ditto.
11618 * linux-tdep.c: Ditto.
11619 * m68kbsd-nat.c: Ditto.
11620 * m68klinux-nat.c: Ditto.
11621 * microblaze-tdep.c: Ditto.
11622 * mips-linux-tdep.c: Ditto.
11623 * mn10300-tdep.c: Ditto.
11624 * nto-tdep.c: Ditto.
11625 * opencl-lang.c: Ditto.
11626 * osdata.c: Ditto.
11627 * printcmd.c: Ditto.
11628 * regcache.c: Ditto.
11629 * remote-m32r-sdi.c: Ditto.
11630 * remote.c: Ditto.
11631 * symfile.c: Ditto.
11632 * symtab.c: Ditto.
11633 * tilegx-linux-nat.c: Ditto.
11634 * tilegx-tdep.c: Ditto.
11635 * tracepoint.c: Ditto.
11636 * valops.c: Ditto.
11637 * vaxbsd-nat.c: Ditto.
11638 * windows-nat.c: Ditto.
11639 * xtensa-tdep.c: Ditto.
11640
bd1f7788
YQ
116412014-01-07 Yao Qi <yao@codesourcery.com>
11642
11643 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11644
79301218
JB
116452014-01-07 Yao Qi <yao@codesourcery.com>
11646 Joel Brobecker <brobecker@adacore.com>
11647
11648 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11649 (pdc_write_regs): Likewise.
11650 (fetch_regs_kernel_thread): Likewise.
11651 (store_regs_kernel_thread): Likewise.
11652
116532014-01-07 Joel Brobecker <brobecker@adacore.com>
11654
11655 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11656 tagged type objects to their actual type.
11657
8e355c5d
JB
116582014-01-07 Joel Brobecker <brobecker@adacore.com>
11659
11660 * ada-valprint.c (print_field_values): Add "language" parameter.
11661 Update calls to print_field_values and print_variant_part.
11662 Pass new parameter "language" in call to val_print instead
11663 of "current_language". Replace call to ada_val_print by call
11664 to val_print.
11665 (print_variant_part): Add "language" parameter.
11666 (ada_val_print_struct_union): Update call to print_field_values.
11667
4fbf5aa5
JB
116682014-01-07 Joel Brobecker <brobecker@adacore.com>
11669
11670 * ada-valprint.c (ui_memcpy): Delete.
11671 (ada_print_floating): Update documentation. Add empty line
11672 between between function documentation and implementation.
11673 Delete variable "buffer". Use ui_file_xstrdup in place of
11674 ui_file_put. Minor adjustments following this change.
11675
71855601
JB
116762014-01-07 Joel Brobecker <brobecker@adacore.com>
11677
11678 * ada-valprint.c (ada_val_print_string): New function,
11679 extracted from ada_val_print_array.
11680 (ada_val_print_array): Replace extracted code by call
11681 to ada_val_print_string followed by a return. Move
11682 "else" branch to the function's top block.
11683
4eb27a30
JB
116842014-01-07 Joel Brobecker <brobecker@adacore.com>
11685
11686 * ada-valprint.c (ada_val_print_array): Move implementation
11687 down. Rename parameter "offset" and "val" into "offset_aligned"
11688 and "original_value" respectively. Add parameter "offset".
11689
34b27950
JB
116902014-01-07 Joel Brobecker <brobecker@adacore.com>
11691
11692 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11693 re-organizing the code. Change the "???" message printed
11694 when target type is a TYPE_CODE_UNDEF into
11695 "<ref to undefined type>".
11696
079e4591
JB
116972014-01-07 Joel Brobecker <brobecker@adacore.com>
11698
11699 * ada-valprint.c (print_record): Delete, implementation inlined...
11700 (ada_val_print_struct_union): ... here. Remove call to
11701 ada_check_typedef in inlined implementation.
11702
8004dfd1
JB
117032014-01-07 Joel Brobecker <brobecker@adacore.com>
11704
11705 * ada-valprint.c (ada_val_print_gnat_array): New function,
11706 extracted from ada_val_print_1;
11707 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11708 (ada_val_print_flt, ada_val_print_struct_union)
11709 (ada_val_print_ref): Likewise.
11710 (ada_val_print_1): Delete variables i and elttype.
11711 Replace extracted-out code by call to corresponding
11712 new functions.
11713
760a2db0
JB
117142014-01-07 Joel Brobecker <brobecker@adacore.com>
11715
11716 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11717
3a92c861
JB
117182014-01-07 Joel Brobecker <brobecker@adacore.com>
11719
11720 * ada-valprint.c (ada_val_print_1): Replace calls to
11721 ada_val_print_1 by calls to val_print.
11722
cd1630f9
JB
117232014-01-07 Joel Brobecker <brobecker@adacore.com>
11724
11725 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11726 Update calls to self accordingly. Replace calls to c_val_print
11727 by calls to val_print.
11728
bdf779a0
JB
117292014-01-07 Joel Brobecker <brobecker@adacore.com>
11730
11731 * ada-valprint.c (print_record): Delete declaration.
11732 (adjust_type_signedness, ada_val_print_1): Likewise.
11733 (ada_val_print): Move function implementation down.
11734 (print_variant_part, print_field_values, print_record):
11735 Move function implementation up.
11736
c0d48811
JB
117372014-01-07 Joel Brobecker <brobecker@adacore.com>
11738
11739 * python/py-type.c (typy_get_name): New function.
11740 (type_object_getset): Add entry for attribute "name".
11741 * NEWS: Add entry mentioning this new attribute.
11742
c26e9cbb
YQ
117432014-01-07 Yao Qi <yao@codesourcery.com>
11744
11745 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11746 statement.
11747
0cc6f43d
YQ
117482014-01-07 Yao Qi <yao@codesourcery.com>
11749
11750 * gnu-nat.c (info_port_rights): Add qualifier const to
11751 argument args.
11752
eec03155
YQ
117532014-01-07 Yao Qi <yao@codesourcery.com>
11754
11755 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11756
f04a82ef
YQ
117572014-01-07 Yao Qi <yao@codesourcery.com>
11758
11759 * gnu-nat.c (make_inf) Update declaration.
11760 (make_inf): Make it static.
11761 (inf_set_traced): Likewise.
11762 (inf_port_to_thread, inf_task_died_status): Likewise.
11763
d57dda0a
YQ
117642014-01-07 Yao Qi <yao@codesourcery.com>
11765
11766 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11767
3aa8c969
YQ
117682014-01-07 Yao Qi <yao@codesourcery.com>
11769
11770 * gnu-nat.c (_initialize_gnu_nat): Declare.
11771
94123b4f
YQ
117722014-01-07 Yao Qi <yao@codesourcery.com>
11773
11774 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11775 'enum bfd_endian'.
11776 (struct gdbarch_info) <byte_order>: Change type to
11777 'enum bfd_endian'.
11778 <byte_order_for_code>: Likewise.
11779 * gdbarch.c, gdbarch.h: Regenerated.
11780
dc81d70a
TT
117812014-01-06 Sasha Smundak <asmundak@google.com>
11782
11783 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11784
cc2f3c35
TT
117852014-01-06 Tom Tromey <tromey@redhat.com>
11786
11787 * doublest.c (convert_doublest_to_floatformat): Use const, not
11788 CONST.
11789 * somread.c (som_symtab_read): Likewise.
11790
adcf2eed
HZ
117912014-01-07 Hui Zhu <hui@codesourcery.com>
11792
11793 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11794 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11795 (gdb_bfd_fopen): Ditto.
11796 (gdb_bfd_openr): Ditto.
11797 (gdb_bfd_openw): Ditto.
11798 (gdb_bfd_openr_iovec): Ditto.
11799 (gdb_bfd_fdopenr): Ditto.
11800 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11801 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11802 with xstrdup.
11803 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11804 with xstrdup.
11805 * symfile-mem.c (symbol_file_add_from_memory): Removed
11806 gdb_bfd_stash_filename.
11807
50722198
DE
118082014-01-03 Doug Evans <dje@google.com>
11809
11810 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11811 output.
11812
2fa4b862
JB
118132014-01-01 Joel Brobecker <brobecker@adacore.com>
11814
11815 Update year range in copyright notice of all files.
11816
28498c42
JB
118172014-01-01 Joel Brobecker <brobecker@adacore.com>
11818
11819 * top.c (print_gdb_version): Set copyright year to 2014.
11820
7b6e1046
JB
118212014-01-01 Joel Brobecker <brobecker@adacore.com>
11822
11823 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11824
df96af55 11825For older changes see ChangeLog-2013.
c906108c
SS
11826\f
11827Local Variables:
11828mode: change-log
11829left-margin: 8
11830fill-column: 74
11831version-control: never
57da7796 11832coding: utf-8
c906108c 11833End:
This page took 2.218946 seconds and 4 git commands to generate.