1 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * m68klinux-tdep.c: Include "regset.h".
4 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
5 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
6 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
7 (m68k_linux_regset_from_core_section): New function.
8 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
11 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
13 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
14 function. Move logic to...
15 (tilegx_linux_regmap): ... this new register map.
16 (tilegx_linux_regset): Refer to register map, replace supply
17 method by regcache_supply_regset, and add collect method.
18 * tilegx-tdep.h (enum tilegx_regnum): New enum value
19 TILEGX_FIRST_EASY_REGNUM.
21 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
23 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
24 that calls regcache_supply_regset and handles the EPC register
25 separately. Move main logic to...
26 (score7_linux_gregmap): ... this new register map.
27 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
28 (score7_linux_gregset): Refer to register map. Add collect method.
29 (score7_linux_regset_from_core_section): Replace
30 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
31 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
32 (struct regset): Delete unused forward declaraction.
33 (struct pt_regs): Delete structure definition.
34 (elf_gregset_t): Delete typedef.
36 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
38 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
39 (nios2_core_regset): Add collect method.
41 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
43 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
44 platform-independent and don't write to read-only input buffer.
45 (m32r_linux_collect_gregset): New function.
46 (m32r_linux_gregset): Add collect method.
48 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
50 * hppa-linux-tdep.c (greg_map): Rename to...
51 (hppa_linux_gregmap): ... this. Also convert to
52 regcache_map_entry format.
53 (hppa_linux_supply_regset): Delete function.
54 (hppa_linux_supply_fpregset): Delete function. Move logic to...
55 (hppa_linux_fpregmap): ... this new register map.
56 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
57 register map, replace supply method by regcache_supply_regset, and
58 add collect method regcache_collect_regset.
60 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
62 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
63 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
64 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
65 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
66 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
67 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
68 (frv_linux_supply_gregset): Replace main logic by call to
69 regcache_supply_regset, but keep clearing gr32-gr63.
70 (frv_linux_supply_fpregset): Delete function.
71 (frv_linux_gregset): Refer to appropriate register map and add
72 regcache_collect_regset as the collect method.
73 (frv_linux_fpregset): Likewise. Also exchange the supply method
74 by regcache_supply_regset.
76 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
78 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
79 by call to alpha_supply_int_regs.
80 (alpha_linux_collect_gregset): New function.
81 (alpha_linux_supply_fpregset): Replace logic by call to
83 (alpha_linux_collect_fpregset): New function.
84 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
86 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
88 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
89 by call to regcache_collect_regset.
90 (supply_gregset, supply_fpregset): Call regcache_supply_regset
91 instead of aarch64_linux_supply_gregset/_fpregset.
92 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
93 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
95 (aarch64_linux_supply_gregset, supply_gregset_from_core)
96 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
97 functions. Move logic to ...
98 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
100 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
101 refer to new register maps, replace *_regset_from_core by
102 regcache_supply_regset, and also use regcache_collect_regset.
103 * aarch64-linux-tdep.h: Include "regset.h".
104 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
106 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
107 macros, moved from C source file.
108 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
109 variable declarations.
111 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
113 * s390-linux-nat.c: Include "regset.h".
114 (regmap_gregset): Delete macro.
115 (s390_64_regmap_gregset): New register map for
116 regcache_supply/_collect_regset.
117 (s390_64_gregset): New regset.
118 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
119 (regmap_fpregset): Delete macro.
120 (s390_native_supply, s390_native_collect): Delete functions.
121 (supply_gregset, fill_gregset): Replace s390-specific regmap
122 handling by a call to regcache_supply/_collect_regset.
123 (supply_fpregset, fill_fpregset): Call regcache_supply/
124 _collect_regset instead of s390_native_supply/_collect.
125 (fetch_regset, store_regset): Likewise. Also change the last
126 parameter to a regset instead of a regmap.
127 (s390_linux_fetch_inferior_registers)
128 (390_linux_store_inferior_registers): Adjust last parameter in
129 calls to fetch_regset and store_regset.
130 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
131 (s390_gregmap): ... this. Also make static const and convert to
132 regcache_map_entry format.
133 (s390x_regmap_gregset): Delete.
134 (s390_regmap_fpregset): Rename to...
135 (s390_fpregmap): ... this. Make static const and convert to
136 regcache_map_entry format.
137 (s390_regmap_upper, s390_regmap_last_break)
138 (s390x_regmap_last_break, s390_regmap_system_call)
139 (s390_regmap_tdb): Likewise.
140 (s390_supply_regset, s390_collect_regset): Remove functions.
141 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
143 (s390_gregset, s390_fpregset, s390_upper_regset)
144 (s390_last_break_regset, s390x_last_break_regset)
145 (s390_system_call_regset, s390_tdb_regset): Make global and
146 replace s390_supply/_collect_regset by regcache_supply/
148 (s390x_gregset): Delete.
149 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
150 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
151 (s390_regmap_fpregset, s390_regmap_last_break)
152 (s390x_regmap_last_break, s390_regmap_system_call)
153 (s390_regmap_tdb): Delete global variable declarations.
154 (s390_gregset, s390_fpregset, s390_last_break_regset)
155 (s390x_last_break_regset, s390_system_call_regset)
156 (s390_tdb_regset): New global variable declarations.
158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
160 * regcache.c: Include "regset.h".
161 (regcache_transfer_regset): New local function.
162 (regcache_supply_regset, regcache_collect_regset): New functions.
163 * regcache.h (struct regcache_map_entry): New structure.
164 (REGCACHE_MAP_SKIP): New enum value.
165 (regcache_supply_regset, regcache_collect_regset): New prototypes.
167 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
169 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
170 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
171 (ppc_linux_collect_gregset ): Likewise.
172 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
173 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
174 (ppc_collect_vrregset): Likewise.
175 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
178 2014-08-07 Yao Qi <yao@codesourcery.com>
180 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
181 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
182 * remote.c (remote_read_bytes): Likewise.
184 2014-08-07 Yao Qi <yao@codesourcery.com>
186 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
188 2014-08-07 Yao Qi <yao@codesourcery.com>
191 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
192 TARGET_XFER_OK instead of 0.
194 2014-08-07 Gary Benson <gbenson@redhat.com>
196 * common/common-defs.h: Include errno.h.
197 * defs.h: Do not include errno.h.
198 * ada-typeprint.c: Likewise.
199 * c-typeprint.c: Likewise.
200 * core-regset.c: Likewise.
201 * corefile.c: Likewise.
202 * corelow.c: Likewise.
203 * event-loop.c: Likewise.
204 * f-typeprint.c: Likewise.
205 * gnu-nat.c: Likewise.
206 * go32-nat.c: Likewise.
207 * i386gnu-nat.c: Likewise.
208 * m2-typeprint.c: Likewise.
209 * nat/linux-btrace.c: Likewise.
210 * p-typeprint.c: Likewise.
211 * procfs.c: Likewise.
212 * remote-sim.c: Likewise.
213 * rs6000-nat.c: Likewise.
214 * target.c: Likewise.
215 * typeprint.c: Likewise.
216 * ui-file.c: Likewise.
217 * valops.c: Likewise.
218 * valprint.c: Likewise.
220 2014-08-07 Gary Benson <gbenson@redhat.com>
222 * common/common-defs.h: Include string.h.
223 * aarch64-tdep.c: Do not include string.h.
224 * ada-exp.y: Likewise.
225 * ada-lang.c: Likewise.
226 * ada-lex.l: Likewise.
227 * ada-typeprint.c: Likewise.
228 * ada-valprint.c: Likewise.
229 * aix-thread.c: Likewise.
230 * alpha-linux-tdep.c: Likewise.
231 * alpha-mdebug-tdep.c: Likewise.
232 * alpha-nat.c: Likewise.
233 * alpha-osf1-tdep.c: Likewise.
234 * alpha-tdep.c: Likewise.
235 * alphanbsd-tdep.c: Likewise.
236 * amd64-dicos-tdep.c: Likewise.
237 * amd64-linux-tdep.c: Likewise.
238 * amd64-nat.c: Likewise.
239 * amd64-sol2-tdep.c: Likewise.
240 * amd64fbsd-tdep.c: Likewise.
241 * amd64obsd-tdep.c: Likewise.
242 * arch-utils.c: Likewise.
243 * arm-linux-nat.c: Likewise.
244 * arm-linux-tdep.c: Likewise.
245 * arm-tdep.c: Likewise.
246 * arm-wince-tdep.c: Likewise.
247 * armbsd-tdep.c: Likewise.
248 * armnbsd-nat.c: Likewise.
249 * armnbsd-tdep.c: Likewise.
250 * armobsd-tdep.c: Likewise.
251 * avr-tdep.c: Likewise.
252 * ax-gdb.c: Likewise.
253 * ax-general.c: Likewise.
254 * bcache.c: Likewise.
255 * bfin-tdep.c: Likewise.
256 * breakpoint.c: Likewise.
257 * build-id.c: Likewise.
258 * buildsym.c: Likewise.
260 * c-lang.c: Likewise.
261 * c-typeprint.c: Likewise.
262 * c-valprint.c: Likewise.
263 * charset.c: Likewise.
264 * cli-out.c: Likewise.
265 * cli/cli-cmds.c: Likewise.
266 * cli/cli-decode.c: Likewise.
267 * cli/cli-dump.c: Likewise.
268 * cli/cli-interp.c: Likewise.
269 * cli/cli-logging.c: Likewise.
270 * cli/cli-script.c: Likewise.
271 * cli/cli-setshow.c: Likewise.
272 * cli/cli-utils.c: Likewise.
273 * coffread.c: Likewise.
274 * common/agent.c: Likewise.
275 * common/buffer.c: Likewise.
276 * common/buffer.h: Likewise.
277 * common/common-utils.c: Likewise.
278 * common/filestuff.c: Likewise.
279 * common/filestuff.c: Likewise.
280 * common/format.c: Likewise.
281 * common/print-utils.c: Likewise.
282 * common/rsp-low.c: Likewise.
283 * common/signals.c: Likewise.
284 * common/vec.h: Likewise.
285 * common/xml-utils.c: Likewise.
286 * core-regset.c: Likewise.
287 * corefile.c: Likewise.
288 * corelow.c: Likewise.
289 * cp-abi.c: Likewise.
290 * cp-name-parser.y: Likewise.
291 * cp-support.c: Likewise.
292 * cp-valprint.c: Likewise.
293 * cris-tdep.c: Likewise.
295 * darwin-nat.c: Likewise.
296 * dbxread.c: Likewise.
297 * dcache.c: Likewise.
298 * demangle.c: Likewise.
299 * dicos-tdep.c: Likewise.
300 * disasm.c: Likewise.
301 * doublest.c: Likewise.
303 * dummy-frame.c: Likewise.
304 * dwarf2-frame.c: Likewise.
305 * dwarf2loc.c: Likewise.
306 * dwarf2read.c: Likewise.
307 * elfread.c: Likewise.
308 * environ.c: Likewise.
310 * event-loop.c: Likewise.
311 * exceptions.c: Likewise.
313 * expprint.c: Likewise.
315 * f-lang.c: Likewise.
316 * f-typeprint.c: Likewise.
317 * f-valprint.c: Likewise.
318 * fbsd-nat.c: Likewise.
319 * findcmd.c: Likewise.
320 * findvar.c: Likewise.
321 * fork-child.c: Likewise.
323 * frv-linux-tdep.c: Likewise.
324 * frv-tdep.c: Likewise.
326 * gdb_bfd.c: Likewise.
327 * gdbarch.c: Likewise.
328 * gdbarch.sh: Likewise.
329 * gdbtypes.c: Likewise.
330 * gnu-nat.c: Likewise.
331 * gnu-v2-abi.c: Likewise.
332 * gnu-v3-abi.c: Likewise.
333 * go-exp.y: Likewise.
334 * go-lang.c: Likewise.
335 * go32-nat.c: Likewise.
336 * guile/guile.c: Likewise.
337 * guile/scm-auto-load.c: Likewise.
338 * hppa-hpux-tdep.c: Likewise.
339 * hppa-linux-nat.c: Likewise.
340 * hppanbsd-tdep.c: Likewise.
341 * hppaobsd-tdep.c: Likewise.
342 * i386-cygwin-tdep.c: Likewise.
343 * i386-dicos-tdep.c: Likewise.
344 * i386-linux-tdep.c: Likewise.
345 * i386-nto-tdep.c: Likewise.
346 * i386-sol2-tdep.c: Likewise.
347 * i386-tdep.c: Likewise.
348 * i386bsd-tdep.c: Likewise.
349 * i386gnu-nat.c: Likewise.
350 * i386nbsd-tdep.c: Likewise.
351 * i386obsd-tdep.c: Likewise.
352 * i387-tdep.c: Likewise.
353 * ia64-libunwind-tdep.c: Likewise.
354 * ia64-linux-nat.c: Likewise.
355 * inf-child.c: Likewise.
356 * inf-ptrace.c: Likewise.
357 * inf-ttrace.c: Likewise.
358 * infcall.c: Likewise.
359 * infcmd.c: Likewise.
360 * inflow.c: Likewise.
361 * infrun.c: Likewise.
362 * interps.c: Likewise.
363 * iq2000-tdep.c: Likewise.
364 * irix5-nat.c: Likewise.
365 * jv-exp.y: Likewise.
366 * jv-lang.c: Likewise.
367 * jv-typeprint.c: Likewise.
368 * jv-valprint.c: Likewise.
369 * language.c: Likewise.
370 * linux-fork.c: Likewise.
371 * linux-nat.c: Likewise.
372 * lm32-tdep.c: Likewise.
373 * m2-exp.y: Likewise.
374 * m2-typeprint.c: Likewise.
375 * m32c-tdep.c: Likewise.
376 * m32r-linux-nat.c: Likewise.
377 * m32r-linux-tdep.c: Likewise.
378 * m32r-rom.c: Likewise.
379 * m32r-tdep.c: Likewise.
380 * m68hc11-tdep.c: Likewise.
381 * m68k-tdep.c: Likewise.
382 * m68kbsd-tdep.c: Likewise.
383 * m68klinux-nat.c: Likewise.
384 * m68klinux-tdep.c: Likewise.
385 * m88k-tdep.c: Likewise.
386 * machoread.c: Likewise.
387 * macrocmd.c: Likewise.
389 * mdebugread.c: Likewise.
390 * mem-break.c: Likewise.
391 * memattr.c: Likewise.
392 * memory-map.c: Likewise.
393 * mep-tdep.c: Likewise.
394 * mi/mi-cmd-break.c: Likewise.
395 * mi/mi-cmd-disas.c: Likewise.
396 * mi/mi-cmd-env.c: Likewise.
397 * mi/mi-cmd-stack.c: Likewise.
398 * mi/mi-cmd-var.c: Likewise.
399 * mi/mi-cmds.c: Likewise.
400 * mi/mi-console.c: Likewise.
401 * mi/mi-getopt.c: Likewise.
402 * mi/mi-interp.c: Likewise.
403 * mi/mi-main.c: Likewise.
404 * mi/mi-parse.c: Likewise.
405 * microblaze-rom.c: Likewise.
406 * microblaze-tdep.c: Likewise.
407 * mingw-hdep.c: Likewise.
408 * minidebug.c: Likewise.
409 * minsyms.c: Likewise.
410 * mips-irix-tdep.c: Likewise.
411 * mips-linux-tdep.c: Likewise.
412 * mips-tdep.c: Likewise.
413 * mips64obsd-tdep.c: Likewise.
414 * mipsnbsd-tdep.c: Likewise.
415 * mipsread.c: Likewise.
416 * mn10300-linux-tdep.c: Likewise.
417 * mn10300-tdep.c: Likewise.
418 * monitor.c: Likewise.
419 * moxie-tdep.c: Likewise.
420 * mt-tdep.c: Likewise.
421 * nat/linux-btrace.c: Likewise.
422 * nat/linux-osdata.c: Likewise.
423 * nat/linux-procfs.c: Likewise.
424 * nat/linux-ptrace.c: Likewise.
425 * nat/linux-waitpid.c: Likewise.
426 * nbsd-tdep.c: Likewise.
427 * nios2-linux-tdep.c: Likewise.
428 * nto-procfs.c: Likewise.
429 * nto-tdep.c: Likewise.
430 * objc-lang.c: Likewise.
431 * objfiles.c: Likewise.
432 * opencl-lang.c: Likewise.
434 * osdata.c: Likewise.
436 * p-lang.c: Likewise.
437 * p-typeprint.c: Likewise.
439 * posix-hdep.c: Likewise.
440 * ppc-linux-nat.c: Likewise.
441 * ppc-sysv-tdep.c: Likewise.
442 * ppcfbsd-tdep.c: Likewise.
443 * ppcnbsd-tdep.c: Likewise.
444 * ppcobsd-tdep.c: Likewise.
445 * printcmd.c: Likewise.
446 * procfs.c: Likewise.
447 * prologue-value.c: Likewise.
448 * python/py-auto-load.c: Likewise.
449 * python/py-gdb-readline.c: Likewise.
450 * ravenscar-thread.c: Likewise.
451 * regcache.c: Likewise.
452 * registry.c: Likewise.
453 * remote-fileio.c: Likewise.
454 * remote-m32r-sdi.c: Likewise.
455 * remote-mips.c: Likewise.
456 * remote-notif.c: Likewise.
457 * remote-sim.c: Likewise.
458 * remote.c: Likewise.
459 * reverse.c: Likewise.
460 * rs6000-aix-tdep.c: Likewise.
461 * ser-base.c: Likewise.
462 * ser-go32.c: Likewise.
463 * ser-mingw.c: Likewise.
464 * ser-pipe.c: Likewise.
465 * ser-tcp.c: Likewise.
466 * ser-unix.c: Likewise.
467 * serial.c: Likewise.
468 * sh-tdep.c: Likewise.
469 * sh64-tdep.c: Likewise.
470 * shnbsd-tdep.c: Likewise.
472 * sol-thread.c: Likewise.
473 * solib-dsbt.c: Likewise.
474 * solib-frv.c: Likewise.
475 * solib-osf.c: Likewise.
476 * solib-som.c: Likewise.
477 * solib-spu.c: Likewise.
478 * solib-target.c: Likewise.
480 * somread.c: Likewise.
481 * source.c: Likewise.
482 * sparc-nat.c: Likewise.
483 * sparc-sol2-tdep.c: Likewise.
484 * sparc-tdep.c: Likewise.
485 * sparc64-tdep.c: Likewise.
486 * sparc64fbsd-tdep.c: Likewise.
487 * sparc64nbsd-tdep.c: Likewise.
488 * sparcnbsd-tdep.c: Likewise.
489 * spu-linux-nat.c: Likewise.
490 * spu-multiarch.c: Likewise.
491 * spu-tdep.c: Likewise.
492 * stabsread.c: Likewise.
494 * std-regs.c: Likewise.
495 * symfile.c: Likewise.
496 * symmisc.c: Likewise.
497 * symtab.c: Likewise.
498 * target.c: Likewise.
499 * thread.c: Likewise.
500 * tilegx-linux-nat.c: Likewise.
501 * tilegx-tdep.c: Likewise.
503 * tracepoint.c: Likewise.
504 * tui/tui-command.c: Likewise.
505 * tui/tui-data.c: Likewise.
506 * tui/tui-disasm.c: Likewise.
507 * tui/tui-file.c: Likewise.
508 * tui/tui-layout.c: Likewise.
509 * tui/tui-out.c: Likewise.
510 * tui/tui-regs.c: Likewise.
511 * tui/tui-source.c: Likewise.
512 * tui/tui-stack.c: Likewise.
513 * tui/tui-win.c: Likewise.
514 * tui/tui-windata.c: Likewise.
515 * tui/tui-winsource.c: Likewise.
516 * typeprint.c: Likewise.
517 * ui-file.c: Likewise.
518 * ui-out.c: Likewise.
519 * user-regs.c: Likewise.
521 * v850-tdep.c: Likewise.
522 * valarith.c: Likewise.
523 * valops.c: Likewise.
524 * valprint.c: Likewise.
526 * varobj.c: Likewise.
527 * vax-tdep.c: Likewise.
528 * vaxnbsd-tdep.c: Likewise.
529 * vaxobsd-tdep.c: Likewise.
530 * windows-nat.c: Likewise.
531 * xcoffread.c: Likewise.
532 * xml-support.c: Likewise.
533 * xstormy16-tdep.c: Likewise.
534 * xtensa-linux-nat.c: Likewise.
536 2014-08-07 Gary Benson <gbenson@redhat.com>
538 * common/common-defs.h: Include gdb_assert.h.
539 * aarch64-tdep.c: Do not include gdb_assert.h.
540 * addrmap.c: Likewise.
541 * aix-thread.c: Likewise.
542 * alpha-linux-tdep.c: Likewise.
543 * alpha-mdebug-tdep.c: Likewise.
544 * alphanbsd-tdep.c: Likewise.
545 * amd64-nat.c: Likewise.
546 * amd64-tdep.c: Likewise.
547 * amd64bsd-nat.c: Likewise.
548 * amd64fbsd-nat.c: Likewise.
549 * amd64fbsd-tdep.c: Likewise.
550 * amd64nbsd-nat.c: Likewise.
551 * amd64nbsd-tdep.c: Likewise.
552 * amd64obsd-nat.c: Likewise.
553 * amd64obsd-tdep.c: Likewise.
554 * arch-utils.c: Likewise.
555 * arm-tdep.c: Likewise.
556 * armbsd-tdep.c: Likewise.
558 * bcache.c: Likewise.
559 * bfin-tdep.c: Likewise.
560 * blockframe.c: Likewise.
561 * breakpoint.c: Likewise.
562 * bsd-kvm.c: Likewise.
563 * bsd-uthread.c: Likewise.
564 * buildsym.c: Likewise.
566 * c-lang.c: Likewise.
567 * charset.c: Likewise.
568 * cleanups.c: Likewise.
569 * cli-out.c: Likewise.
570 * cli/cli-decode.c: Likewise.
571 * cli/cli-dump.c: Likewise.
572 * cli/cli-logging.c: Likewise.
573 * cli/cli-script.c: Likewise.
574 * cli/cli-utils.c: Likewise.
575 * coffread.c: Likewise.
576 * common/common-utils.c: Likewise.
577 * common/queue.h: Likewise.
578 * common/signals.c: Likewise.
579 * common/vec.h: Likewise.
580 * complaints.c: Likewise.
581 * completer.c: Likewise.
582 * corelow.c: Likewise.
583 * cp-abi.c: Likewise.
584 * cp-name-parser.y: Likewise.
585 * cp-namespace.c: Likewise.
586 * cp-support.c: Likewise.
587 * cris-tdep.c: Likewise.
588 * dbxread.c: Likewise.
589 * dictionary.c: Likewise.
590 * doublest.c: Likewise.
592 * dummy-frame.c: Likewise.
593 * dwarf2-frame-tailcall.c: Likewise.
594 * dwarf2-frame.c: Likewise.
595 * dwarf2expr.c: Likewise.
596 * dwarf2loc.c: Likewise.
597 * dwarf2read.c: Likewise.
599 * event-loop.c: Likewise.
600 * exceptions.c: Likewise.
601 * expprint.c: Likewise.
602 * f-valprint.c: Likewise.
603 * fbsd-nat.c: Likewise.
604 * findvar.c: Likewise.
605 * frame-unwind.c: Likewise.
607 * frv-tdep.c: Likewise.
609 * gdb-dlfcn.c: Likewise.
610 * gdb_bfd.c: Likewise.
611 * gdbarch.c: Likewise.
612 * gdbarch.sh: Likewise.
613 * gdbtypes.c: Likewise.
614 * gnu-nat.c: Likewise.
615 * gnu-v3-abi.c: Likewise.
616 * go-lang.c: Likewise.
617 * guile/scm-exception.c: Likewise.
618 * guile/scm-gsmob.c: Likewise.
619 * guile/scm-lazy-string.c: Likewise.
620 * guile/scm-math.c: Likewise.
621 * guile/scm-pretty-print.c: Likewise.
622 * guile/scm-safe-call.c: Likewise.
623 * guile/scm-utils.c: Likewise.
624 * guile/scm-value.c: Likewise.
625 * h8300-tdep.c: Likewise.
626 * hppa-hpux-nat.c: Likewise.
627 * hppa-tdep.c: Likewise.
628 * hppanbsd-tdep.c: Likewise.
629 * hppaobsd-tdep.c: Likewise.
630 * i386-darwin-nat.c: Likewise.
631 * i386-darwin-tdep.c: Likewise.
632 * i386-nto-tdep.c: Likewise.
633 * i386-tdep.c: Likewise.
634 * i386bsd-nat.c: Likewise.
635 * i386fbsd-tdep.c: Likewise.
636 * i386gnu-nat.c: Likewise.
637 * i386nbsd-tdep.c: Likewise.
638 * i386obsd-tdep.c: Likewise.
639 * i387-tdep.c: Likewise.
640 * ia64-libunwind-tdep.c: Likewise.
641 * ia64-tdep.c: Likewise.
642 * inf-ptrace.c: Likewise.
643 * inf-ttrace.c: Likewise.
644 * infcall.c: Likewise.
645 * infcmd.c: Likewise.
646 * infrun.c: Likewise.
647 * inline-frame.c: Likewise.
648 * interps.c: Likewise.
649 * jv-lang.c: Likewise.
650 * jv-typeprint.c: Likewise.
651 * linux-fork.c: Likewise.
652 * linux-nat.c: Likewise.
653 * linux-thread-db.c: Likewise.
654 * m32c-tdep.c: Likewise.
655 * m32r-linux-nat.c: Likewise.
656 * m32r-tdep.c: Likewise.
657 * m68k-tdep.c: Likewise.
658 * m68kbsd-nat.c: Likewise.
659 * m68kbsd-tdep.c: Likewise.
660 * m88k-tdep.c: Likewise.
661 * machoread.c: Likewise.
662 * macroexp.c: Likewise.
663 * macrotab.c: Likewise.
665 * mdebugread.c: Likewise.
666 * memory-map.c: Likewise.
667 * mep-tdep.c: Likewise.
668 * mi/mi-common.c: Likewise.
669 * microblaze-tdep.c: Likewise.
670 * mingw-hdep.c: Likewise.
671 * mips-linux-nat.c: Likewise.
672 * mips-linux-tdep.c: Likewise.
673 * mips-tdep.c: Likewise.
674 * mips64obsd-tdep.c: Likewise.
675 * mipsnbsd-tdep.c: Likewise.
676 * mn10300-linux-tdep.c: Likewise.
677 * mn10300-tdep.c: Likewise.
678 * moxie-tdep.c: Likewise.
679 * mt-tdep.c: Likewise.
680 * nat/linux-btrace.c: Likewise.
681 * nat/linux-osdata.c: Likewise.
682 * nat/linux-ptrace.c: Likewise.
683 * nat/mips-linux-watch.c: Likewise.
684 * nios2-linux-tdep.c: Likewise.
685 * nios2-tdep.c: Likewise.
686 * objc-lang.c: Likewise.
687 * objfiles.c: Likewise.
688 * obsd-nat.c: Likewise.
689 * opencl-lang.c: Likewise.
692 * ppc-linux-nat.c: Likewise.
693 * ppc-sysv-tdep.c: Likewise.
694 * ppcfbsd-nat.c: Likewise.
695 * ppcfbsd-tdep.c: Likewise.
696 * ppcnbsd-nat.c: Likewise.
697 * ppcnbsd-tdep.c: Likewise.
698 * ppcobsd-nat.c: Likewise.
699 * ppcobsd-tdep.c: Likewise.
700 * printcmd.c: Likewise.
701 * procfs.c: Likewise.
702 * prologue-value.c: Likewise.
703 * psymtab.c: Likewise.
704 * python/py-lazy-string.c: Likewise.
705 * python/py-value.c: Likewise.
706 * regcache.c: Likewise.
707 * reggroups.c: Likewise.
708 * registry.c: Likewise.
709 * remote-sim.c: Likewise.
710 * remote.c: Likewise.
711 * rs6000-aix-tdep.c: Likewise.
712 * rs6000-tdep.c: Likewise.
713 * s390-linux-tdep.c: Likewise.
714 * score-tdep.c: Likewise.
715 * ser-base.c: Likewise.
716 * ser-mingw.c: Likewise.
717 * sh-tdep.c: Likewise.
718 * sh64-tdep.c: Likewise.
719 * solib-darwin.c: Likewise.
720 * solib-spu.c: Likewise.
721 * solib-svr4.c: Likewise.
722 * source.c: Likewise.
723 * sparc-nat.c: Likewise.
724 * sparc-sol2-tdep.c: Likewise.
725 * sparc-tdep.c: Likewise.
726 * sparc64-sol2-tdep.c: Likewise.
727 * sparc64-tdep.c: Likewise.
728 * sparc64fbsd-tdep.c: Likewise.
729 * sparc64nbsd-tdep.c: Likewise.
730 * sparc64obsd-tdep.c: Likewise.
731 * sparcnbsd-tdep.c: Likewise.
732 * sparcobsd-tdep.c: Likewise.
733 * spu-multiarch.c: Likewise.
734 * spu-tdep.c: Likewise.
735 * stabsread.c: Likewise.
737 * symfile.c: Likewise.
738 * symtab.c: Likewise.
739 * target-descriptions.c: Likewise.
740 * target-memory.c: Likewise.
741 * target.c: Likewise.
742 * tic6x-linux-tdep.c: Likewise.
743 * tic6x-tdep.c: Likewise.
744 * tilegx-linux-nat.c: Likewise.
745 * tilegx-tdep.c: Likewise.
747 * tramp-frame.c: Likewise.
748 * tui/tui-out.c: Likewise.
749 * tui/tui-winsource.c: Likewise.
750 * ui-out.c: Likewise.
751 * user-regs.c: Likewise.
753 * v850-tdep.c: Likewise.
754 * valops.c: Likewise.
756 * varobj.c: Likewise.
757 * vax-nat.c: Likewise.
758 * xml-syscall.c: Likewise.
759 * xml-tdesc.c: Likewise.
760 * xstormy16-tdep.c: Likewise.
761 * xtensa-linux-nat.c: Likewise.
762 * xtensa-tdep.c: Likewise.
764 2014-08-07 Gary Benson <gbenson@redhat.com>
766 * common/common-defs.h: Include common-utils.h.
767 * defs.h: Do not include common-utils.h.
768 * common/gdb_assert.h: Likewise.
769 * darwin-nat.h: Likewise.
770 * nat/linux-btrace.c: Likewise.
771 * target/waitstatus.h: Likewise.
773 2014-08-07 Gary Benson <gbenson@redhat.com>
775 * common/common-defs.h: Include ptid.h.
776 * defs.h: Do not include ptid.h.
777 * inferior.h: Likewise.
778 * infrun.h: Likewise.
779 * nat/linux-btrace.h: Likewise.
780 * nat/linux-osdata.h: Likewise.
781 * target/waitstatus.h: Likewise.
783 2014-08-07 Gary Benson <gbenson@redhat.com>
785 * common/common-defs.h: Include gdb_locale.h.
786 * defs.h: Do not include gdb_locale.h.
788 2014-08-07 Gary Benson <gbenson@redhat.com>
790 * common/common-defs.h: Include gdb/signals.h.
791 * defs.h: Do not include gdb/signals.h.
793 2014-08-07 Gary Benson <gbenson@redhat.com>
795 * common/common-defs.h: Include pathmax.h.
796 * defs.h: Do not include pathmax.h.
798 2014-08-07 Gary Benson <gbenson@redhat.com>
800 * common/common-defs.h: Include libiberty.h.
801 * defs.h: Do not include libiberty.h.
802 * common/queue.h: Likewise.
803 * cp-name-parser.y: Likewise.
804 * mi/mi-cmd-catch.c: Likewise.
805 * python/python.c: Likewise.
807 2014-08-07 Gary Benson <gbenson@redhat.com>
809 * common/common-defs.h: Include ansidecl.h.
810 * defs.h: Do not include ansidecl.h.
811 * common/buffer.h: Likewise.
812 * common/common-utils.h: Likewise.
814 2014-08-07 Gary Benson <gbenson@redhat.com>
816 * common/common-defs.h: Include stddef.h.
817 * defs.h: Do not include stddef.h.
818 * common/common-utils.h: Likewise.
819 * amd64fbsd-nat.c: Likewise.
820 * bcache.c: Likewise.
821 * charset.c: Likewise.
822 * common/buffer.h: Likewise.
823 * common/vec.h: Likewise.
824 * i386bsd-nat.c: Likewise.
825 * nat/linux-btrace.h: Likewise.
826 * ppcfbsd-nat.c: Likewise.
827 * ppcnbsd-tdep.h: Likewise.
828 * ppcobsd-nat.c: Likewise.
829 * ppcobsd-tdep.h: Likewise.
830 * python/py-gdb-readline.c: Likewise.
832 2014-08-07 Gary Benson <gbenson@redhat.com>
834 * common/common-defs.h: Include stdarg.h.
835 * defs.h: Do not include stdarg.h.
836 * ada-lang.c: Likewise.
837 * common/common-utils.h: Likewise.
838 * guile/scm-string.c: Likewise.
839 * guile/scm-utils.c: Likewise.
840 * m32c-tdep.c: Likewise.
842 2014-08-07 Gary Benson <gbenson@redhat.com>
844 * common/common-defs.h: Include stdlib.h.
845 * defs.h: Do not include stdlib.h.
846 * addrmap.c: Likewise.
847 * bcache.c: Likewise.
848 * common/buffer.c: Likewise.
849 * common/common-utils.c: Likewise.
850 * cp-name-parser.y: Likewise.
851 * go32-nat.c: Likewise.
852 * mn10300-linux-tdep.c: Likewise.
853 * nat/linux-osdata.c: Likewise.
854 * tui/tui.c: Likewise.
855 * windows-nat.c: Likewise.
857 2014-08-07 Gary Benson <gbenson@redhat.com>
859 * common/common-defs.h: Include stdio.h.
860 * defs.h: Do not include stdio.h.
861 * ada-lang.c: Likewise.
862 * common/buffer.c: Likewise.
863 * common/common-utils.c: Likewise.
864 * cp-name-parser.y: Likewise.
865 * gnu-nat.c: Likewise.
866 * go32-nat.c: Likewise.
867 * i386gnu-nat.c: Likewise.
868 * proc-api.c: Likewise.
869 * proc-events.c: Likewise.
870 * proc-flags.c: Likewise.
871 * proc-why.c: Likewise.
872 * python/python-internal.h: Likewise.
873 * target-memory.c: Likewise.
874 * tui/tui-io.c: Likewise.
875 * tui/tui.c: Likewise.
877 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
879 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
880 (scan_dyntag_auxv): Same.
882 2014-08-06 Yao Qi <yao@codesourcery.com>
884 * amd64-linux-nat.c: Remove duplicated include
886 * i386-linux-nat.c: Likewise.
888 2014-08-06 Yao Qi <yao@codesourcery.com>
890 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
891 operand" with "Special opcode" in comments.
893 2014-08-05 Gary Benson <gbenson@redhat.com>
895 * interps.c (initialize_interps): Remove prototype.
896 (interpreter_initialized): Remove static global.
897 (interp_add): Do not call initialize_interps.
898 (initialize_interps): Remove function.
900 2014-08-05 Gary Benson <gbenson@redhat.com>
902 * utils.c (vwarning): Remove spurious va_end.
904 2014-08-05 Alan Modra <amodra@gmail.com>
906 * charset.c (convert_between_encodings): Cast result of obstack_base.
907 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
908 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
909 (read_unwind_info): Use size_t for some locals.
910 * jit.c (finalize_symtab): Likewise.
911 * utils.c (hashtab_obstack_allocate): Likewise.
912 * symmisc.c (print_objfile_statistics): Update format strings.
914 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
916 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
917 (Changes in GDB 7.8): ... here.
919 2014-08-04 Tom Tromey <tromey@redhat.com>
921 * target.c (set_targetdebug): New function.
922 (initialize_targets): Pass set_targetdebug when creating "set
925 2014-08-01 Joel Brobecker <brobecker@adacore.com>
927 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
928 if detecting a variable-sized field that is not the last field.
929 Fix struct type length computation.
931 2014-08-01 Joel Brobecker <brobecker@adacore.com>
933 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
936 2014-08-01 Joel Brobecker <brobecker@adacore.com>
938 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
939 Remove "+ 8" offset in computation of CHAIN_VMA.
941 2014-07-31 Doug Evans <dje@google.com>
943 * inflow.c (child_terminal_inferior): Add comment.
944 (child_terminal_ours_for_output): Add comment.
945 (child_terminal_ours): Add comment.
946 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
947 (linux_nat_terminal_ours): Add comment.
949 2014-07-31 Gary Benson <gbenson@redhat.com>
951 * common/btrace-common.h: Do not include defs.h or server.h.
952 * nat/mips-linux-watch.h: Likewise.
953 * gdb-dlfcn.h: Do not include defs.h.
954 * tracefile.h: Likewise.
956 2014-07-30 Roland McGrath <mcgrathr@google.com>
958 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
960 2014-07-30 Tom Tromey <tromey@redhat.com>
962 * bsd-kvm.c (bsd_kvm_open): Constify.
963 * corelow.c (core_open): Constify.
964 * ctf.c (ctf_open): Constify.
965 * dbug-rom.c (dbug_open): Constify.
966 * exec.c (exec_open): Constify.
967 * m32r-rom.c (m32r_open, mon2000_open): Constify.
968 * microblaze-rom.c (picobug_open): Constify.
969 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
971 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
972 * record-btrace.c (record_btrace_open): Constify.
973 * record-full.c (record_full_core_open_1, record_full_open_1)
974 (record_full_open): Constify.
975 * remote-m32r-sdi.c (m32r_open): Constify.
976 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
977 (rockhopper_open, lsi_open): Constify.
978 * remote-sim.c (gdbsim_open): Constify.
979 * remote.c (remote_open, extended_remote_open, remote_open_1):
981 * target.h (struct target_ops) <to_open>: Make "arg" const.
982 * tracefile-tfile.c (tfile_open): Constify.
984 2014-07-30 Tom Tromey <tromey@redhat.com>
986 * breakpoint.c (map_breakpoint_numbers): Update.
987 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
988 (get_number_const): New function.
989 (get_number): Rewrite using get_number_const.
990 (init_number_or_range): Make "string" const.
991 (number_is_in_list): Make "list" const.
992 * cli/cli-utils.h (get_number_const): Declare.
993 (struct get_number_or_range_state) <string, end_ptr>: Now const.
994 (init_number_or_range, number_is_in_list): Update.
995 * printcmd.c (map_display_numbers): Update.
996 * value.c (value_from_history_ref): Constify.
997 * value.h (value_from_history_ref): Update.
999 2014-07-30 Tom Tromey <tromey@redhat.com>
1001 * corefile.c (hook_type, call_extra_exec_file_hooks)
1002 (specify_exec_file_hook): Constify.
1003 * exec.c (exec_file_attach): Make "filename" const.
1004 * gdbcore.h (deprecated_exec_file_display_hook)
1005 (specify_exec_file_hook, exec_file_attach): Constify.
1006 * main.c (captured_main): Use catch_command_errors_const.
1008 2014-07-30 Tom Tromey <tromey@redhat.com>
1010 * target.c (open_target): New function.
1011 (add_target_with_completer, add_deprecated_target_alias): Use
1012 set_cmd_sfunc, set_cmd_context.
1013 (debug_to_open): Remove.
1014 (setup_target_debug): Update.
1016 2014-07-30 Yao Qi <yao@codesourcery.com>
1018 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1020 * parse.c (exp_iterate): Update comments.
1022 2014-07-30 Gary Benson <gbenson@redhat.com>
1024 * common/common-defs.h: New file.
1025 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1026 * defs.h: Include common-defs.h.
1027 Do not include config.h or build-gnulib/config.h.
1029 2014-07-30 Gary Benson <gbenson@redhat.com>
1031 * common/common-utils.h: Do not include config.h.
1032 * nat/linux-btrace.h: Likewise.
1034 2014-07-30 Gary Benson <gbenson@redhat.com>
1036 * btrace.c: Include defs.h.
1037 * common/ptid.c: Include defs.h or server.h as appropriate.
1038 * nat/mips-linux-watch.c: Likewise.
1040 2014-07-29 Tom Tromey <tromey@redhat.com>
1042 * target.c (target_is_pushed): Simplify.
1044 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1048 2014-07-29 Yao Qi <yao@codesourcery.com>
1051 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1053 2014-07-28 Doug Evans <xdje42@gmail.com>
1056 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1057 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1060 2014-07-28 Will Newton <will.newton@linaro.org>
1062 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1063 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1064 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1065 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1066 (THUMB2_EABI_SYSCALL): Likewise.
1067 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1069 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1070 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1072 2014-07-27 Doug Evans <xdje42@gmail.com>
1074 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1076 2014-07-27 Doug Evans <xdje42@gmail.com>
1078 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1080 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1081 Doug Evans <xdje42@gmail.com>
1084 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1085 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1086 * configure.ac: Try to use guild to compile an scm file, if it fails
1087 then disable guile support.
1088 * configure: Regenerate.
1089 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1091 (GUILE_COMPILED_FILES): New variable.
1092 (GUILE_FILES) Update.
1093 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1094 (stamp-guile): Compile scm files.
1095 * guile/guile.c (boot_guile_support): New function.
1096 (standard_throw_args_p): New function.
1097 (print_standard_throw_error, print_throw_error): New functions.
1098 (handle_boot_error): New function.
1099 (initialize_scheme_side): Rewrite to call boot_guile_support.
1100 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1101 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1103 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1104 Doug Evans <xdje42@gmail.com>
1107 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1108 * guile/lib/gdb/support.scm: New file.
1109 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1110 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1112 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1114 (%assert-type): Ditto, and renamed to assert-type.
1115 (%exception-print-style): Delete.
1117 2014-07-26 Doug Evans <xdje42@gmail.com>
1120 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1121 * configure: Regenerate.
1122 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1124 (PYTHON_FILES): New variable.
1125 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1126 (GUILE_FILES): New variable.
1127 (stamp-python, install-python, uninstall-python): Handle empty
1129 (stamp-guile, install-guile, uninstall-guile): Ditto.
1131 2014-07-26 Doug Evans <xdje42@gmail.com>
1134 * guile/lib/gdb.scm (pretty-printers): Export.
1135 (set-pretty-printers!): Export.
1136 * guile/lib/gdb/printing.scm (gdb module): Update.
1137 (prepend-pretty-printer!, append-pretty-printer!): Update.
1138 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1139 (pretty_printer_list_var): Delete.
1140 (pretty_printer_list): New static global.
1141 (gdbscm_pretty_printers): New function.
1142 (gdbscm_set_pretty_printers_x): New function.
1143 (ppscm_find_pretty_printer_from_gdb): Update.
1144 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1145 (gdbscm_initialize_pretty_printers): Update.
1147 2014-07-26 Doug Evans <xdje42@gmail.com>
1150 * configure.ac: Add check for header gc/gc.h.
1151 Add check for function setenv.
1152 * configure: Regenerate.
1153 * config.in: Regenerate.
1154 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1156 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1158 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1159 variation in gdbarch matching.
1161 2014-07-25 Tom Tromey <tromey@redhat.com>
1163 * exec.c (using_exec_ops): Remove.
1164 (exec_close_1): Update. Remove extraneous block, reindent.
1165 (add_target_sections): Use target_is_pushed.
1167 2014-07-25 Pedro Alves <palves@redhat.com>
1169 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1170 * monitor.c (monitor_create_inferior): Likewise.
1171 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1172 * remote-sim.c (gdbsim_create_inferior): Likewise.
1173 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1174 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1175 * windows-nat.c (do_initial_windows_stuff): Likewise.
1177 2014-07-25 Pedro Alves <palves@redhat.com>
1179 * NEWS: Mention signal passing and "signal" command changes.
1180 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1182 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1184 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1185 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1186 (jump_command): Adjust clear_proceed_status call.
1187 (signal_command): Warn if other thread that are resumed have
1188 signals that will be delivered. Adjust clear_proceed_status call.
1189 (until_next_command, finish_command)
1190 (proceed_after_attach_callback, attach_command_post_wait)
1191 (attach_command): Adjust clear_proceed_status call.
1192 * infrun.c (proceed_after_vfork_done): Likewise.
1193 (proceed_after_attach_callback): Adjust comment.
1194 (clear_proceed_status_thread): Clear stop_signal if not in pass
1196 (clear_proceed_status_callback): Delete.
1197 (clear_proceed_status): New 'step' parameter. Only clear the
1198 proceed status of threads the command being prepared is about to
1200 (proceed): If passed in an explicit signal, override stop_signal
1201 with it. Don't pass the last stop signal to the thread we're
1203 (init_wait_for_inferior): Adjust clear_proceed_status call.
1204 (switch_back_to_stepped_thread): Clear the signal if it should not
1206 * infrun.h (clear_proceed_status): New 'step' parameter.
1207 (user_visible_resume_ptid): Add comment.
1208 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1209 signal is in pass state.
1210 * remote.c (append_pending_thread_resumptions): Likewise.
1211 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1213 2014-07-25 Tom Tromey <tromey@redhat.com>
1215 * target.h (target_stopped_data_address)
1216 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1219 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1221 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1223 (avr_pointer_to_address): Likewise.
1225 2014-07-24 Tom Tromey <tromey@redhat.com>
1227 * monitor.c (compile_pattern): Update.
1228 * target.h (struct target_ops) <to_shortname, to_longname,
1231 2014-07-24 Tom Tromey <tromey@redhat.com>
1233 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1234 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1235 (add_info_alias, add_com): Make "doc" const.
1236 (print_doc_line): Make "str" const.
1237 (delete_cmd): Update.
1238 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1239 (print_doc_line): Update.
1240 * cli/cli-script.c (document_command): Update.
1241 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1242 (add_com, add_info, add_info_alias): Update.
1243 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1244 * python/py-cmd.c (cmdpy_destroyer): Update.
1246 2014-07-24 Tom Tromey <tromey@redhat.com>
1248 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1249 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1250 (help_cmd_list): Constify.
1251 (lookup_cmd): Update.
1252 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1254 (help_cmd_list, apropos_cmd): Update.
1255 * cli/cli-script.c (show_user): Update.
1256 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1257 * cli/cli-setshow.h (cmd_show_list): Update.
1258 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1259 (cmd_show_list): Update.
1260 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1261 * python/py-cmd.c (cmdpy_destroyer): Update.
1263 2014-07-24 Tom Tromey <tromey@redhat.com>
1265 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1266 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1268 * command.h (deprecate_cmd): Update.
1269 * maint.c (maintenance_do_deprecate): Add casts.
1271 2014-07-24 Tom Tromey <tromey@redhat.com>
1273 * cli/cli-decode.c (help_cmd): Make parameter "const".
1274 * cli/cli-decode.h (help_cmd): Update.
1276 2014-07-24 Tom Tromey <tromey@redhat.com>
1278 * stack.c (up_silently_base, down_silently_base): Make argument
1281 2014-07-24 Tom Tromey <tromey@redhat.com>
1283 * solib.c (solib_add): Make "pattern" const.
1284 * solib.h (solib_add): Update.
1286 2014-07-24 Tom Tromey <tromey@redhat.com>
1288 * remote.c (remote_serial_open, print_packet, putpkt)
1289 (putpkt_binary): Constify.
1290 * remote.h (putpkt): Update.
1292 2014-07-24 Tom Tromey <tromey@redhat.com>
1294 * monitor.c (monitor_open): Make "args" const.
1295 * monitor.h (monitor_open): Update.
1297 2014-07-24 Tom Tromey <tromey@redhat.com>
1299 * maint.c (match_bfd_flags): Make "string" const.
1300 (print_bfd_section_info): Remove casts.
1301 (print_objfile_section_info): Make "string" const.
1303 2014-07-24 Tom Tromey <tromey@redhat.com>
1305 * inf-child.c (inf_child_open_target): Make "arg" const.
1306 * inf-child.h (inf_child_open_target): Update.
1308 2014-07-24 Tom Tromey <tromey@redhat.com>
1310 * environ.c (unset_in_environ): Make "var" const.
1311 * environ.h (unset_in_environ): Update.
1313 2014-07-24 Tom Tromey <tromey@redhat.com>
1315 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1317 (scan_filename_with_cleanup): Likewise.
1318 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1319 Make arguments const.
1320 (restore_command): Update.
1322 2014-07-24 Pedro Alves <palves@redhat.com>
1324 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1326 2014-07-24 Tom Tromey <tromey@redhat.com>
1327 Gary Benson <gbenson@redhat.com>
1329 * nat/linux-ptrace.c (additional_flags): New global.
1330 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1331 additional_flags; don't check GDBSERVER.
1332 (linux_ptrace_set_additional_flags): New function.
1333 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1335 * linux-nat.c (_initialize_linux_nat): Call
1336 linux_ptrace_set_additional_flags.
1338 2014-07-24 Tom Tromey <tromey@redhat.com>
1340 * make-target-delegates (munge_type, write_debugmethod): New
1342 (debug_names): New global.
1343 ($TARGET_DEBUG_PRINTER): New global.
1344 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1346 Write debug methods. Generate init_debug_target.
1347 * target-debug.h: New file.
1348 * target-delegates.c: Rebuild.
1349 * target.c: Include target-debug.h.
1350 (debug_target): Hoist definition.
1351 (target_kill, target_get_section_table, target_memory_map)
1352 (target_flash_erase, target_flash_done, target_detach)
1353 (target_disconnect, target_wait, target_resume)
1354 (target_pass_signals, target_program_signals, target_follow_fork)
1355 (target_mourn_inferior, target_search_memory)
1356 (target_thread_address_space, target_close)
1357 (target_find_new_threads, target_core_of_thread)
1358 (target_verify_memory, target_insert_mask_watchpoint)
1359 (target_remove_mask_watchpoint): Remove targetdebug code.
1360 (debug_to_post_attach, debug_to_prepare_to_store)
1361 (debug_to_files_info, debug_to_insert_breakpoint)
1362 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1363 (debug_to_region_ok_for_hw_watchpoint)
1364 (debug_to_can_accel_watchpoint_condition)
1365 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1366 (debug_to_watchpoint_addr_within_range)
1367 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1368 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1369 (debug_to_terminal_init, debug_to_terminal_inferior)
1370 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1371 (debug_to_terminal_save_ours, debug_to_terminal_info)
1372 (debug_to_load, debug_to_post_startup_inferior)
1373 (debug_to_insert_fork_catchpoint)
1374 (debug_to_remove_fork_catchpoint)
1375 (debug_to_insert_vfork_catchpoint)
1376 (debug_to_remove_vfork_catchpoint)
1377 (debug_to_insert_exec_catchpoint)
1378 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1379 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1380 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1381 (setup_target_debug): Call init_debug_target.
1382 * target.h (TARGET_DEBUG_PRINTER): New macro.
1383 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1384 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1386 2014-07-24 Gary Benson <gbenson@redhat.com>
1388 * exceptions.h (throw_vfatal): Renamed to...
1389 (throw_vquit): New declaration.
1390 (throw_quit): Likewise.
1391 * exceptions.c (throw_vfatal): Renamed to...
1392 (throw_vquit): New function.
1393 (throw_quit): Likewise.
1394 (throw_error): Call throw_verror rather than throw_it.
1395 * utils.h (vfatal): Removed.
1397 * utils.c (vfatal): Removed.
1399 (internal_verror): Replaced call to fatal with call to throw_quit.
1400 (quit): Replaced calls to fatal with calls to throw_quit.
1402 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1404 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1407 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1409 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1410 less than zero in conditional expression.
1412 2014-07-23 Tom Tromey <tromey@redhat.com>
1414 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1415 ($INTRO_PART): Don't match whitespace.
1416 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1418 ($METHOD): Add $METHOD_TRAILER.
1420 (scan_target_h): New sub.
1421 Change main loop not to collect state.
1422 * target-delegates.c: Rebuild.
1424 2014-07-23 Gary Benson <gbenson@redhat.com>
1426 * cp-support.c (gdb_demangle): Fix build on systems without
1429 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1431 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1432 for reference entry value target data value.
1434 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1436 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1437 value_available_contents_eq.
1439 2014-07-22 Pedro Alves <palves@redhat.com>
1441 * value.c (allocate_optimized_out_value): Don't mark value as
1444 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1446 * MAINTAINERS (Write After Approval): Update my email address.
1448 2014-07-20 Doug Evans <dje@google.com>
1451 * remote.c (putpkt_binary): Add text to error message.
1453 2014-07-20 Yao Qi <yao@codesourcery.com>
1455 * eval.c: Remove "Chill" from comments.
1456 * gdbtypes.h: Likewise.
1457 * symtab.h: Likewise.
1459 2014-07-20 Yao Qi <yao@codesourcery.com>
1461 * std-operator.def: Update comments to TERNOP_SLICE.
1463 2014-07-20 Yao Qi <yao@codesourcery.com>
1465 * std-operator.def: Remove BINOP_RANGE.
1466 * breakpoint.c (watchpoint_exp_is_const): Update.
1467 * expprint.c (dump_subexp_body_standard): Likewise.
1468 * eval.c (init_array_element): Remove dead code.
1469 (evaluate_subexp_standard): Likewise.
1471 2014-07-20 Yao Qi <yao@codesourcery.com>
1473 * std-operator.def: Remove BINOP_IN.
1474 * breakpoint.c (watchpoint_exp_is_const): Update.
1475 * eval.c (evaluate_subexp_standard): Likewise.
1476 * expprint.c (dump_subexp_body_standard): Likewise.
1478 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1480 * microblaze-tdep.c (microblaze_register_names): Add
1481 the rshr and rslr register names.
1482 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1483 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1484 Use of tdesc_numbered_register. Use of
1485 microblaze_register_g_packet_guesses. Use of
1486 tdesc_use_registers. Use of set_gdbarch_register_type.
1487 (microblaze_register_g_packet_guesses): New.
1488 * microblaze-tdep.h (microblaze_reg_num): Add
1489 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1490 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1491 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1492 * features/microblaze-core.xml: New file.
1493 * features/microblaze-stack-protect.xml: New file.
1494 * features/microblaze-with-stack-protect.c: New file.
1495 * features/microblaze-with-stack-protect.xml: New file.
1496 * features/microblaze.xml: New file.
1497 * features/microblaze.c: New file.
1498 * features/Makefile (microblaze-with-stack-protect): Add
1499 microblaze-with-stack-protect microblaze and microblaze-expedite.
1500 * regformats/microblaze-with-stack-protect.dat: New file.
1501 * regformats/microblaze.dat: New file.
1502 * doc/gdb.texinfo (MicroBlaze Features): Added.
1504 2014-07-18 Tom Tromey <tromey@redhat.com>
1506 * exec.c (exec_ops): Now static.
1507 * exec.h (exec_ops): Don't declare.
1509 2014-07-18 Tom Tromey <tromey@redhat.com>
1511 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1512 to find_target_beneath.
1513 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1514 find_target_beneath.
1515 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1517 2014-07-18 Tom Tromey <tromey@redhat.com>
1520 * utils.c (quit): Use target_supports_terminal_ours.
1521 * target.h (target_supports_terminal_ours): Declare.
1522 * target.c (target_supports_delete_record): Don't check
1523 to_delete_record against NULL.
1524 (target_supports_terminal_ours): New function.
1526 2014-07-18 Tom Tromey <tromey@redhat.com>
1529 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1530 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1531 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1532 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1533 * windows-nat.c (windows_xfer_partial): Always delegate.
1534 * record-btrace.c (record_btrace_xfer_partial): Simplify
1536 (record_btrace_fetch_registers, record_btrace_store_registers)
1537 (record_btrace_prepare_to_store, record_btrace_resume)
1538 (record_btrace_wait, record_btrace_find_new_threads)
1539 (record_btrace_thread_alive): Likewise.
1540 * procfs.c (procfs_xfer_partial): Always delegate.
1541 * corelow.c (core_xfer_partial): Always delegate.
1542 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1544 2014-07-18 Tom Tromey <tromey@redhat.com>
1546 * exec.c (exec_make_note_section): Move earlier.
1548 2014-07-17 Doug Evans <dje@google.com>
1551 * maint.c (count_symtabs_and_blocks): Handle NULL
1552 current_program_space.
1553 (report_command_stats): Check global enabled flag in addition to
1554 recorded enabled flag.
1555 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1557 2014-07-16 Pedro Alves <palves@redhat.com>
1559 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1561 2014-07-16 Tom Tromey <tromey@redhat.com>
1563 * target.h (struct target_ops) <to_delete_record>: Reformat
1566 2014-07-16 Tom Tromey <tromey@redhat.com>
1568 * target-delegates.c: Rebuild.
1570 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1572 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1573 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1574 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1575 (avr_pointer_to_address): Likewise.
1576 (avr_address_class_type_flags): New function.
1577 (avr_address_class_type_flags_to_name): Likewise.
1578 (avr_address_class_name_to_type_flags): Likewise.
1579 (avr_gdbarch_init): Set address_class_type_flags,
1580 address_class_type_flags_to_name and
1581 address_class_name_to_type_flags.
1583 2014-07-15 Pedro Alves <palves@redhat.com>
1585 * linux-nat.c (kill_callback): Save errno and work with saved
1588 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1590 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1592 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1594 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1595 breakpoint support correctly.
1597 2014-07-14 Pedro Alves <palves@redhat.com>
1599 * utils.c (prompt_for_continue): Call target_terminal_ours.
1601 2014-07-14 Pedro Alves <palves@redhat.com>
1603 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1604 catch_errors. Don't re-enable stdin or notify observers where,
1606 (fetch_inferior_event_wrapper): Delete.
1608 2014-07-14 Pedro Alves <palves@redhat.com>
1611 * top.c: Include "inf-loop.h".
1612 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1614 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1616 (gdb_readline_wrapper): Store whether the target is async, and
1619 2014-07-14 Pedro Alves <palves@redhat.com>
1622 * top.c (gdb_readline_wrapper_line): Tweak comment.
1623 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1624 the input handler callback.
1626 2014-07-14 Pedro Alves <palves@redhat.com>
1629 * main.c: Include event-top.h.
1630 (handle_command_errors): New function.
1631 (catch_command_errors, catch_command_errors_const): Use it.
1633 2014-07-14 Pedro Alves <palves@redhat.com>
1635 * exceptions.c (catch_command_errors, catch_command_errors_const):
1637 * exceptions.h (catch_command_errors_ftype)
1638 (catch_command_errors_const_ftype): Moved to main.c.
1639 (catch_command_errors, catch_command_errors_const): Delete
1641 * main.c (catch_command_errors_ftype)
1642 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1643 (catch_command_errors, catch_command_errors_const)): Moved here
1644 from exceptions.c and make static.
1646 2014-07-14 Pedro Alves <palves@redhat.com>
1648 * exceptions.c (print_any_exception): Delete.
1649 (catch_exceptions_with_msg): Use exception_print instead of
1650 print_any_exception.
1651 (catch_errors): Use exception_fprintf instead of
1652 print_any_exception.
1653 (catch_command_errors, catch_command_errors_const): Use
1654 exception_print instead of print_any_exception.
1656 2014-07-14 Pedro Alves <palves@redhat.com>
1658 * infcall.c (run_inferior_call): Set 'sync_execution' while
1659 running the inferior call.
1661 2014-07-14 Pedro Alves <palves@redhat.com>
1663 * value.c (value_contents_equal): Delete function.
1664 * value.h (value_contents_equal): Delete declaration.
1666 2014-07-14 Tom Tromey <tromey@redhat.com>
1669 * gdbtypes.c (is_dynamic_type_internal): New function, from
1671 (is_dynamic_type): Rewrite.
1672 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1673 (resolve_dynamic_struct): Likewise.
1674 (resolve_dynamic_type_internal): New function, from
1675 resolve_dynamic_type.
1676 (resolve_dynamic_type): Rewrite.
1678 2014-07-14 Tom Tromey <tromey@redhat.com>
1680 * target.c (target_require_runnable): Also check record_stratum.
1683 2014-07-11 Yao Qi <yao@codesourcery.com>
1685 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1686 thumb_instruction_restores_sp return true.
1688 2014-07-11 Yao Qi <yao@codesourcery.com>
1690 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1691 (thumb_in_function_epilogue_p): Call
1692 thumb_instruction_restores_sp.
1694 2014-07-11 Yao Qi <yao@codesourcery.com>
1696 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1698 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1700 2014-07-11 Gary Benson <gbenson@redhat.com>
1702 * amd64-linux-nat.c (gdbcore.h): Remove include.
1703 (regset.h): Likewise.
1704 (nat/linux-btrace.h): Likewise.
1705 (btrace.h): Likewise.
1706 (gdb_assert.h): Likewise.
1707 (string.h): Likewise.
1708 (sys/uio.h): Likewise.
1709 (sys/debugreg.h): Likewise.
1710 (sys/syscall.h): Likewise.
1711 (sys/procfs.h): Likewise.
1712 (sys/user.h): Likewise.
1713 (asm/ptrace.h): Likewise.
1714 (i386-nat.h): Likewise.
1715 * i386-linux-nat.c (i386-nat.h): Likewise.
1716 (regset.h): Likewise.
1717 (target.h): Likewise.
1718 (linux-nat.h): Likewise.
1719 (nat/linux-btrace.h): Likewise.
1720 (btrace.h): Likewise.
1721 (gdb_assert.h): Likewise.
1722 (string.h): Likewise.
1723 (sys/uio.h): Likewise.
1724 (sys/user.h): Likewise.
1725 (sys/procfs.h): Likewise.
1726 (sys/reg.h): Likewise.
1727 (sys/debugreg.h): Likewise.
1728 (ORIG_EAX): Remove definition.
1730 2014-07-11 Gary Benson <gbenson@redhat.com>
1732 * i386-linux-nat.h: New file.
1733 * x86-linux-nat.h: Likewise.
1734 * x86-linux-nat.c: Likewise.
1735 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1736 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1737 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1738 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1739 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1740 (PTRACE_SETREGSET): Likewise.
1741 (arch_lwp_info): Now in x86-linux-nat.c.
1742 (have_ptrace_getregset): Now in x86-linux-nat.h.
1743 (x86_linux_dr_get): Now in x86-linux-nat.c.
1744 (x86_linux_dr_set): Likewise.
1745 (x86_linux_dr_get_addr): Likewise.
1746 (x86_linux_dr_get_control): Likewise.
1747 (x86_linux_dr_get_status): Likewise.
1748 (update_debug_registers_callback): Likewise.
1749 (x86_linux_dr_set_control): Likewise.
1750 (x86_linux_dr_set_addr): Likewise.
1751 (x86_linux_prepare_to_resume): Likewise.
1752 (x86_linux_new_thread): Likewise.
1753 (x86_linux_new_fork): Likewise.
1754 (x86_linux_get_thread_area): Likewise.
1755 (super_post_startup_inferior): Likewise.
1756 (x86_linux_child_post_startup_inferior): Likewise.
1757 (AMD64_LINUX_USER64_CS): Likewise.
1758 (AMD64_LINUX_X32_DS): Likewise.
1759 (x86_linux_read_description): Likewise.
1760 (x86_linux_enable_btrace): Likewise.
1761 (x86_linux_disable_btrace): Likewise.
1762 (x86_linux_teardown_btrace): Likewise.
1763 (x86_linux_read_btrace): Likewise.
1764 (x86_linux_create_target): Likewise.
1765 (x86_linux_add_target): Likewise.
1766 * i386-linux-nat.c (x86-linux-nat.h): New include.
1767 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1768 (PTRACE_SETREGSET): Likewise.
1769 (arch_lwp_info): Now in x86-linux-nat.c.
1770 (have_ptrace_getregset): Now in x86-linux-nat.h.
1771 (x86_linux_dr_get): Now in x86-linux-nat.c.
1772 (x86_linux_dr_set): Likewise.
1773 (x86_linux_dr_get_addr): Likewise.
1774 (x86_linux_dr_get_control): Likewise.
1775 (x86_linux_dr_get_status): Likewise.
1776 (update_debug_registers_callback): Likewise.
1777 (x86_linux_dr_set_control): Likewise.
1778 (x86_linux_dr_set_addr): Likewise.
1779 (x86_linux_prepare_to_resume): Likewise.
1780 (x86_linux_new_thread): Likewise.
1781 (x86_linux_new_fork): Likewise.
1782 (x86_linux_get_thread_area): Likewise.
1783 (super_post_startup_inferior): Likewise.
1784 (x86_linux_child_post_startup_inferior): Likewise.
1785 (AMD64_LINUX_USER64_CS): Likewise.
1786 (AMD64_LINUX_X32_DS): Likewise.
1787 (x86_linux_read_description): Likewise.
1788 (x86_linux_enable_btrace): Likewise.
1789 (x86_linux_disable_btrace): Likewise.
1790 (x86_linux_teardown_btrace): Likewise.
1791 (x86_linux_read_btrace): Likewise.
1792 (x86_linux_create_target): Likewise.
1793 (x86_linux_add_target): Likewise.
1795 2014-07-11 Gary Benson <gbenson@redhat.com>
1797 * amd64-linux-nat.c: Comment and whitespace changes.
1798 * i386-linux-nat.c: Comment and whitespace changes.
1800 2014-07-11 Gary Benson <gbenson@redhat.com>
1802 * amd64-linux-nat.c (x86_linux_create_target): New function.
1803 (x86_linux_add_target): Likewise.
1804 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1805 * i386-linux-nat.c (x86_linux_create_target): New function.
1806 (x86_linux_add_target): Likewise.
1807 (_initialize_i386_linux_nat): Delegate to the above new functions.
1809 2014-07-11 Gary Benson <gbenson@redhat.com>
1811 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1812 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1813 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1814 (ps_get_thread_area): Delegate to the above.
1816 2014-07-11 Gary Benson <gbenson@redhat.com>
1818 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1819 x86_linux_read_description. All uses updated. amd64-specific
1820 code conditionalized. Conditionalized i386-specific code added.
1821 Redundant cast removed.
1822 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1823 x86_linux_read_description. All uses updated. i386-specific
1824 code conditionalized. Conditionalized amd64-specific code added.
1825 One sizeof replaced with the actual type it is describing.
1827 2014-07-11 Gary Benson <gbenson@redhat.com>
1829 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1830 x86_linux_dr_get. All uses updated.
1831 (amd64_linux_dr_set): Renamed to
1832 x86_linux_dr_set. All uses updated.
1833 (amd64_linux_dr_get_addr): Renamed to
1834 x86_linux_dr_get_addr. All uses updated.
1835 (amd64_linux_dr_get_control): Renamed to
1836 x86_linux_dr_get_control. All uses updated.
1837 (amd64_linux_dr_get_status): Renamed to
1838 x86_linux_dr_get_status. All uses updated.
1839 (amd64_linux_dr_set_control): Renamed to
1840 x86_linux_dr_set_control. All uses updated.
1841 (amd64_linux_dr_set_addr): Renamed to
1842 x86_linux_dr_set_addr. All uses updated.
1843 (amd64_linux_prepare_to_resume): Renamed to
1844 x86_linux_prepare_to_resume. All uses updated.
1845 (amd64_linux_new_thread): Renamed to
1846 x86_linux_new_thread. All uses updated.
1847 (amd64_linux_new_fork): Renamed to
1848 x86_linux_new_fork. All uses updated.
1849 (amd64_linux_child_post_startup_inferior): Renamed to
1850 x86_linux_child_post_startup_inferior. All uses updated.
1851 (amd64_linux_enable_btrace): Renamed to
1852 x86_linux_enable_btrace. All uses updated.
1853 (amd64_linux_disable_btrace): Renamed to
1854 x86_linux_disable_btrace. All uses updated.
1855 (amd64_linux_teardown_btrace): Renamed to
1856 x86_linux_teardown_btrace. All uses updated.
1857 (amd64_linux_read_btrace): Renamed to
1858 x86_linux_read_btrace. All uses updated.
1859 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1860 x86_linux_dr_get. All uses updated.
1861 (i386_linux_dr_set): Renamed to
1862 x86_linux_dr_set. All uses updated.
1863 (i386_linux_dr_get_addr): Renamed to
1864 x86_linux_dr_get_addr. All uses updated.
1865 (i386_linux_dr_get_control): Renamed to
1866 x86_linux_dr_get_control. All uses updated.
1867 (i386_linux_dr_get_status): Renamed to
1868 x86_linux_dr_get_status. All uses updated.
1869 (i386_linux_dr_set_control): Renamed to
1870 x86_linux_dr_set_control. All uses updated.
1871 (i386_linux_dr_set_addr): Renamed to
1872 x86_linux_dr_set_addr. All uses updated.
1873 (i386_linux_prepare_to_resume): Renamed to
1874 x86_linux_prepare_to_resume. All uses updated.
1875 (i386_linux_new_thread): Renamed to
1876 x86_linux_new_thread. All uses updated.
1877 (i386_linux_new_fork): Renamed to
1878 x86_linux_new_fork. All uses updated.
1879 (i386_linux_child_post_startup_inferior): Renamed to
1880 x86_linux_child_post_startup_inferior. All uses updated.
1881 (i386_linux_enable_btrace): Renamed to
1882 x86_linux_enable_btrace. All uses updated.
1883 (i386_linux_disable_btrace): Renamed to
1884 x86_linux_disable_btrace. All uses updated.
1885 (i386_linux_teardown_btrace): Renamed to
1886 x86_linux_teardown_btrace. All uses updated.
1887 (i386_linux_read_btrace): Renamed to
1888 x86_linux_read_btrace. All uses updated.
1890 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1892 * remote.c (extended_remote_post_attach): New function.
1893 (init_extended_remote_ops): Install it as to_post_attach method.
1895 2014-07-09 Pedro Alves <palves@redhat.com>
1897 * infcmd.c (attach_command_post_wait): Don't call
1898 target_terminal_inferior here.
1899 (attach_command): Call it here instead.
1901 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1903 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1905 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1906 from varobj.c, with additional checks.
1907 (c_varobj_ops): Fill in is_path_expr_parent field.
1908 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1909 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1911 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1913 (varobj_default_is_path_expr_parent): New function.
1914 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1915 (varobj_default_is_path_expr_parent): Declare new function.
1917 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1919 * infcmd.c (finish_backward): Turn internal error into normal error.
1921 2014-07-07 Pedro Alves <palves@redhat.com>
1924 * remote.c (async_handle_remote_sigint)
1925 (async_handle_remote_sigint_twice): Call
1926 gdb_call_async_signal_handler instead of
1927 mark_async_signal_handler.
1929 2014-07-07 Tom Tromey <tromey@redhat.com>
1931 * target-delegates.c: Rebuild.
1932 * target.c (target_info_record): Remove.
1933 * record.c (info_record_command): Unconditionally call
1935 * target.h (struct target_ops) <to_info_record>: Use
1936 TARGET_DEFAULT_IGNORE.
1937 (target_info_record): Remove.
1939 2014-07-07 Tom Tromey <tromey@redhat.com>
1941 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1942 TARGET_DEFAULT_NORETURN.
1943 * target.c (generic_tls_error): New function.
1944 (target_translate_tls_address): Don't search target stack.
1945 * target-delegates.c: Rebuild.
1946 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1948 * linux-thread-db.c (thread_db_get_thread_local_address):
1949 Unconditionally call beneath target.
1951 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1953 * cli/cli-logging.c (pop_output_files): Assign targerr to
1956 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1958 * MAINTAINERS (Write After Approval): Update my email address.
1960 2014-07-02 Gary Benson <gbenson@redhat.com>
1962 * proc-service.c (ps_xfer_memory): Update comment.
1963 (ps_pstop): Remove unused function.
1964 (ps_pcontinue): Likewise.
1965 (ps_lstop): Likewise.
1966 (ps_lcontinue): Likewise.
1967 (ps_lgetxregsize): Likewise.
1968 (ps_lgetxregs): Likewise.
1969 (ps_lsetxregs): Likewise.
1970 (ps_plog): Likewise.
1971 (ps_ptread): Likewise.
1972 (ps_ptwrite): Likewise.
1974 2014-07-01 Mark Wielaard <mjw@redhat.com>
1976 * dwarf2read.c (add_array_cv_type): New function.
1977 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1978 (read_tag_volatile_type): Likewise.
1980 2014-07-01 Tom Tromey <tromey@redhat.com>
1982 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1983 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1984 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1985 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1986 * command.h (cmd_cfunc_ftype): Move earlier.
1987 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1988 (add_com, add_info): Use cmd_cfunc_ftype.
1990 2014-06-30 Tom Tromey <tromey@redhat.com>
1992 * symtab.c (operator_chars): Make parameters and return type
1994 (file_matches): Make "files" const.
1995 (struct search_symbols_data) <files>: Now const.
1996 (search_symbols): Make "regexp" and "files" parameters const.
1998 (symtab_symbol_info): Remove cast.
1999 (rbreak_command): Update.
2000 * symtab.h (search_symbols): Update.
2002 2014-06-27 Yao Qi <yao@codesourcery.com>
2004 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2005 Change parameter type to 'struct thread_info *'. Caller
2007 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2009 * dummy-frame.c (struct dummy_frame_id): New.
2010 (dummy_frame_id_eq): New function.
2011 (struct dummy_frame) <id>: Change its type to 'struct
2013 (dummy_frame_push): Add parameter ptid and save it in
2015 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2017 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2019 (lookup_dummy_frame): Change parameter type to 'struct
2020 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2021 instead of frame_id_eq.
2022 (dummy_frame_pop): Add parameter ptid. Callers updated.
2023 Update comments. Compose dummy_frame_id and pass it to
2025 (dummy_frame_discard): Add parameter ptid.
2026 (dummy_frame_sniffer): Compose dummy_frame_id and call
2027 dummy_frame_id_eq instead of frame_id_eq.
2028 (fprint_dummy_frames): Print ptid.
2029 * dummy-frame.h: Remove comments.
2030 (dummy_frame_push): Add ptid in declaration.
2031 (dummy_frame_pop, dummy_frame_discard): Likewise.
2033 2014-06-26 Tom Tromey <tromey@redhat.com>
2035 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2036 * command.h (error_no_arg): Update.
2038 2014-06-26 Tom Tromey <tromey@redhat.com>
2040 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2041 (do_show_command): Make "arg" const.
2042 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2044 2014-06-26 Tom Tromey <tromey@redhat.com>
2046 * record-full.c (record_full_get_bookmark): Make "args" const.
2047 (record_full_goto_bookmark): Make "raw_bookmark" const.
2048 * record.c (record_goto): New function.
2049 (cmd_record_goto): Use it. Now static.
2050 * record.h (record_goto): Declare.
2051 (cmd_record_goto): Remove declaration.
2052 * target-delegates.c: Rebuild.
2053 * target.h (struct target_ops) <to_get_bookmark,
2054 to_goto_bookmark>: Make parameter const.
2056 2014-06-26 Tom Tromey <tromey@redhat.com>
2058 * defs.h (generic_load): Update.
2059 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2060 * monitor.c (monitor_load): Make "args" const.
2061 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2062 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2064 (mips_load): Make "file" const.
2065 * remote-sim.c (gdbsim_load): Make "args" const.
2066 * remote.c (remote_load): Make "name" const.
2067 * symfile.c (generic_load): Make "args" const.
2068 * target-delegates.c: Rebuild.
2069 * target.c (target_load): Make "arg" const.
2070 (debug_to_load): Make "args" const.
2071 * target.h (struct target_ops) <to_load>: Make parameter const.
2072 (target_load): Update.
2074 2014-06-26 Tom Tromey <tromey@redhat.com>
2077 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2078 (dwarf2_physname, read_partial_die)
2079 (guess_partial_die_structure_name, fixup_partial_die)
2080 (guess_full_die_structure_name, anonymous_struct_prefix)
2081 (dwarf2_name): Use per-BFD obstack.
2083 2014-06-26 Yao Qi <yao@codesourcery.com>
2085 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2086 dummyframe and this_id into inner block below.
2088 2014-06-26 Yao Qi <yao@codesourcery.com>
2090 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2091 with "signal_pass[0]" in the initialization of signal_pass.
2093 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2095 * record-btrace.c (record_btrace_generating_corefile)
2096 (record_btrace_prepare_to_generate_core)
2097 (record_btrace_done_generating_core): New.
2098 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2099 (record_btrace_store_registers, record_btrace_prepare_to_store):
2100 Forward request when generating a core file.
2101 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2102 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2103 to_done_generating_core.
2105 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2107 * target.h (target_ops) <to_prepare_to_generate_core>
2108 <to_done_generating_core>: New.
2109 (target_prepare_to_generate_core, target_done_generating_core): New.
2110 * target.c (target_prepare_to_generate_core)
2111 (target_done_generating_core): New.
2112 * target-delegates.c: Regenerate.
2113 * gcore.c: (write_gcore_file): Rename to ...
2114 (write_gcore_file_1): ...this.
2115 (write_gcore_file): Call target_prepare_to_generate_core
2116 and target_done_generating_core.
2118 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2120 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2121 * gcore.c (write_gcore_file): Free memory returned from
2122 make_corefile_notes.
2123 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2124 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2126 2014-06-24 Yao Qi <yao@codesourcery.com>
2128 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2129 (arm_linux_init_abi): Set skip_trampoline_code with
2130 gdbarch_skip_trampoline_code instead of
2131 find_solib_trampoline_target.
2133 2014-06-24 Yao Qi <yao@codesourcery.com>
2135 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2136 arm_skip_bx_reg returns non-zero.
2138 2014-06-24 Yao Qi <yao@codesourcery.com>
2140 * arm-tdep.c (arm_skip_bx_reg): New function.
2141 (arm_skip_stub): Call arm_skip_bx_reg.
2143 2014-06-23 Don Breazeal <donb@codesourcery.com>
2145 * MAINTAINERS: Add myself as write-after-approval maintainer.
2147 2014-06-23 Pedro Alves <palves@redhat.com>
2149 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2150 DR_CONTROL before setting DR0..DR3.
2151 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2152 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2153 bits of DR_CONTROL related to the debug register slot being
2154 disabled. If all slots are vacant, clear local slowdown as well,
2155 and assert DR_CONTROL is 0.
2157 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2159 * python/lib/gdb/command/xmethods.py
2160 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2161 current progspace only if the string "progspace" matches LOCUS_RE.
2163 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2165 Fix --with-system-readline with readline-6.3 patch 5.
2166 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2167 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2170 2014-06-20 Tom Tromey <tromey@redhat.com>
2172 * dwarf2read.c (dw2_get_real_path): Use correct type in
2174 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2176 2014-06-20 Gary Benson <gbenson@redhat.com>
2178 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2179 * common/glibc_thread_db.h: Likewise.
2180 * common/i386-cpuid.h: Likewise.
2181 * common/i386-gcc-cpuid.h: Likewise.
2182 * common/linux-btrace.h: Likewise.
2183 * common/linux-osdata.h: Likewise.
2184 * common/linux-procfs.h: Likewise.
2185 * common/linux-ptrace.h: Likewise.
2186 * common/mips-linux-watch.h: Likewise.
2187 * common/linux-btrace.c: Moved to nat.
2188 * common/linux-osdata.c: Likewise.
2189 * common/linux-procfs.c: Likewise.
2190 * common/linux-ptrace.c: Likewise.
2191 * common/mips-linux-watch.c: Likewise.
2192 * nat/gdb_thread_db.h: Moved from common.
2193 * nat/glibc_thread_db.h: Likewise.
2194 * nat/i386-cpuid.h: Likewise.
2195 * nat/i386-gcc-cpuid.h: Likewise.
2196 * nat/linux-btrace.c: Likewise.
2197 * nat/linux-btrace.h: Likewise.
2198 * nat/linux-osdata.c: Likewise.
2199 * nat/linux-osdata.h: Likewise.
2200 * nat/linux-procfs.c: Likewise.
2201 * nat/linux-procfs.h: Likewise.
2202 * nat/linux-ptrace.c: Likewise.
2203 * nat/linux-ptrace.h: Likewise.
2204 * nat/mips-linux-watch.c: Likewise.
2205 * nat/mips-linux-watch.h: Likewise.
2206 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2207 (object file files): Reordered.
2208 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2209 of glibc_thread_db.h.
2211 2014-06-20 Gary Benson <gbenson@redhat.com>
2213 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2214 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2215 (i386_dr_low): Likewise.
2216 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2217 (i386_dr_low_set_addr): Likewise.
2218 (i386_dr_low_get_addr): Likewise.
2219 (i386_dr_low_can_set_control): Likewise.
2220 (i386_dr_low_set_control): Likewise.
2221 (i386_dr_low_get_control): Likewise.
2222 (i386_dr_low_get_status): Likewise.
2223 (i386_get_debug_register_length): Likewise.
2224 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2225 (i386_dr_low): Likewise.
2226 * nat/i386-dregs.c (i386-low.h): Remove include.
2227 (i386-nat.h): Likewise.
2228 (nat/i386-dregs.h): New include.
2229 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2230 (i386_dr_low_set_addr): Likewise.
2231 (i386_dr_low_get_addr): Likewise.
2232 (i386_dr_low_can_set_control): Likewise.
2233 (i386_dr_low_set_control): Likewise.
2234 (i386_dr_low_get_control): Likewise.
2235 (i386_dr_low_get_status): Likewise.
2236 (i386_get_debug_register_length): Likewise.
2237 (debug_hw_points): Likewise.
2239 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2241 * Makefile.in (SFILES): Add d-exp.y.
2242 (YYFILES): Add d-exp.c.
2243 (YYOBJ): Add d-exp.o.
2244 (local-maintainer-clean): Delete d-exp.c.
2245 * d-exp.y: New file.
2246 * d-lang.h (d_parse): New declaration.
2247 (d_error): New declaration.
2248 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2249 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2250 PREC_ORDER operators.
2251 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2253 2014-06-19 Yao Qi <yao@codesourcery.com>
2255 * gdbthread.h (any_running): Remove the declaration.
2256 * thread.c (any_running): Remove.
2258 2014-06-19 Yao Qi <yao@codesourcery.com>
2260 * gdbthread.h (struct thread_info) <state>: Change its type to
2261 'enum thread_state'. Update comments.
2263 2014-06-19 Pedro Alves <palves@redhat.com>
2265 * gdbthread.h (ALL_THREADS): Delete.
2266 (ALL_NON_EXITED_THREADS): New macro.
2267 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2268 instead of ALL_THREADS.
2269 * infrun.c (find_thread_needs_step_over)
2270 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2271 instead of ALL_THREADS.
2272 * record-btrace.c (record_btrace_open)
2273 (record_btrace_stop_recording, record_btrace_close)
2274 (record_btrace_is_replaying, record_btrace_resume)
2275 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2276 * remote.c (append_pending_thread_resumptions): Likewise.
2277 * thread.c (thread_apply_all_command): Likewise.
2279 2014-06-19 Gary Benson <gbenson@redhat.com>
2281 * i386-nat.c (i386_stopped_by_watchpoint):
2282 Use i386_dr_stopped_by_watchpoint.
2283 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2284 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2286 2014-06-19 Gary Benson <gbenson@redhat.com>
2288 * nat/i386-dregs.c: New file.
2289 * Makefile.in (i386-dregs.o): New rule.
2290 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2291 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2292 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2293 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2294 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2295 * config/i386/go32.mh (NATDEPFILES): Likewise.
2296 * config/i386/linux.mh (NATDEPFILES): Likewise.
2297 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2298 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2299 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2300 * i386-nat.h (debug_hw_points): New declaration.
2301 * i386-nat.c (breakpoint.h): Remove include.
2302 (command.h): Likewise.
2303 (target.h): Likewise.
2304 (gdb_assert.h): Likewise.
2305 (debug_hw_points): Made nonstatic.
2306 (debug_printf): Now in i386-dregs.c.
2307 (TARGET_HAS_DR_LEN_8): Likewise.
2308 (DR_CONTROL_SHIFT): Likewise.
2309 (DR_CONTROL_SIZE): Likewise.
2310 (DR_RW_EXECUTE): Likewise.
2311 (DR_RW_WRITE): Likewise.
2312 (DR_RW_READ): Likewise.
2313 (DR_RW_IORW): Likewise.
2314 (DR_LEN_1): Likewise.
2315 (DR_LEN_2): Likewise.
2316 (DR_LEN_4): Likewise.
2317 (DR_LEN_8): Likewise.
2318 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2319 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2320 (DR_ENABLE_SIZE): Likewise.
2321 (DR_LOCAL_SLOWDOWN): Likewise.
2322 (DR_GLOBAL_SLOWDOWN): Likewise.
2323 (DR_CONTROL_RESERVED): Likewise.
2324 (I386_DR_CONTROL_MASK): Likewise.
2325 (I386_DR_VACANT): Likewise.
2326 (I386_DR_LOCAL_ENABLE): Likewise.
2327 (I386_DR_GLOBAL_ENABLE): Likewise.
2328 (I386_DR_DISABLE): Likewise.
2329 (I386_DR_SET_RW_LEN): Likewise.
2330 (I386_DR_GET_RW_LEN): Likewise.
2331 (I386_DR_WATCH_HIT): Likewise.
2332 (i386_wp_op_t): Likewise.
2333 (i386_show_dr): Likewise.
2334 (i386_length_and_rw_bits): Likewise.
2335 (i386_insert_aligned_watchpoint): Likewise.
2336 (i386_remove_aligned_watchpoint): Likewise.
2337 (i386_handle_nonaligned_watchpoint): Likewise.
2338 (i386_update_inferior_debug_regs): Likewise.
2339 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2340 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2341 (i386_region_ok_for_watchpoint):
2342 Use i386_dr_region_ok_for_watchpoint.
2343 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2345 2014-06-19 Gary Benson <gbenson@redhat.com>
2347 * i386-nat.c (i386_insert_hw_breakpoint): Use
2348 i386_insert_watchpoint.
2349 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2351 2014-06-19 Gary Benson <gbenson@redhat.com>
2353 * i386-nat.c (i386_dr_show): Renamed to
2354 i386_show_dr and made static. All uses updated.
2355 (i386_dr_length_and_rw_bits): Renamed to
2356 i386_length_and_rw_bits and made static.
2358 (i386_dr_insert_aligned_watchpoint): Renamed to
2359 i386_insert_aligned_watchpoint and made static.
2361 (i386_dr_remove_aligned_watchpoint): Renamed to
2362 i386_remove_aligned_watchpoint and made static.
2364 (i386_dr_update_inferior_debug_regs): Renamed to
2365 i386_update_inferior_debug_regs and made static.
2367 * nat/i386-dregs.h (i386_dr_show): Removed.
2368 (i386_dr_length_and_rw_bits): Likewise.
2369 (i386_dr_insert_aligned_watchpoint): Likewise.
2370 (i386_dr_remove_aligned_watchpoint): Likewise.
2371 (i386_dr_update_inferior_debug_regs): Likewise.
2373 2014-06-19 Gary Benson <gbenson@redhat.com>
2375 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2376 * configure: Regenerate.
2377 * config.in: Likewise.
2378 * main.c (signal.h): New include.
2379 (setup_alternate_signal_stack): New function.
2380 (captured_main): Call the above.
2381 * cp-support.c (signal.h): New include.
2382 (catch_demangler_crashes): New flag.
2383 (SIGJMP_BUF): New define.
2384 (SIGSETJMP): Likewise.
2385 (SIGLONGJMP): Likewise.
2386 (gdb_demangle_jmp_buf): New static global.
2387 (gdb_demangle_attempt_core_dump): Likewise.
2388 (gdb_demangle_signal_handler): New function.
2389 (gdb_demangle): If catch_demangler_crashes is set, install the
2390 above signal handler before calling bfd_demangle, and restore
2391 the original signal handler afterwards. Display the offending
2392 symbol and call demangler_warning the first time a segmentation
2394 (_initialize_cp_support): New maint set/show command.
2396 2014-06-19 Gary Benson <gbenson@redhat.com>
2398 * utils.h (resource_limit_kind): New enum.
2399 (can_dump_core): New declaration.
2400 (warn_cant_dump_core): Likewise.
2401 (dump_core): Likewise.
2402 * utils.c (dump_core): Made nonstatic. Added new
2403 parameter "limit_kind".
2404 (can_dump_core): Made nonstatic. Moved printing code to...
2405 (warn_cant_dump_core): New function.
2406 (can_dump_core_warn): Likewise.
2407 (internal_vproblem): Replace calls to can_dump_core with
2408 calls to can_dump_core_warn. Supply new argument to each.
2410 2014-06-19 Gary Benson <gbenson@redhat.com>
2412 * utils.h (demangler_vwarning): New declaration.
2413 (demangler_warning): Likewise.
2414 * utils.c (struct internal_problem)
2415 <user_settable_should_quit>: New field.
2416 <user_settable_should_dump_core>: Likewise
2417 (internal_error_problem): Add values for above new fields.
2418 (internal_warning_problem): Likewise.
2419 (demangler_warning_problem): New static global.
2420 (demangler_vwarning): New function.
2421 (demangler_warning): Likewise.
2422 (add_internal_problem_command): Selectively add commands.
2423 (_initialize_utils): New internal problem command.
2424 * maint.c (maintenance_demangler_warning): New function.
2425 (_initialize_maint_cmds): New command.
2427 2014-06-18 Tom Tromey <tromey@redhat.com>
2429 * f-valprint.c (info_common_command_for_block): Update.
2430 * symtab.h (struct general_symbol_info) <common_block>: Now
2433 2014-06-18 Tom Tromey <tromey@redhat.com>
2435 * symtab.h (struct symtab) <blockvector>: Now const.
2436 * ada-lang.c (ada_add_global_exceptions): Update.
2437 * buildsym.c (augment_type_symtab): Update.
2438 * dwarf2read.c (dw2_lookup_symbol): Update.
2439 * jit.c (finalize_symtab): Update.
2440 * jv-lang.c (add_class_symtab_symbol): Update.
2441 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2443 * objfiles.c (objfile_relocate1): Update.
2444 * psymtab.c (lookup_symbol_aux_psymtabs)
2445 (maintenance_check_psymtabs): Update.
2446 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2448 * spu-tdep.c (spu_catch_start): Update.
2449 * symmisc.c (dump_symtab_1): Update.
2450 * symtab.c (lookup_global_symbol_from_objfile)
2451 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2452 (basic_lookup_transparent_type_quick)
2453 (basic_lookup_transparent_type, find_pc_sect_symtab)
2454 (find_pc_sect_line, search_symbols): Update.
2455 * block.c (find_block_in_blockvector): Make "bl" const.
2456 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2458 (blockvector_contains_pc): Make "bv" const.
2459 (block_for_pc_sect): Update.
2460 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2461 (blockvector_contains_pc): Update.
2462 * breakpoint.c (resolve_sal_pc): Update.
2463 * inline-frame.c (block_starting_point_at): Update.
2465 2014-06-18 Tom Tromey <tromey@redhat.com>
2467 * completer.c (complete_line): Make "line_buffer" const.
2468 * completer.h (complete_line): Update.
2470 2014-06-18 Tom Tromey <tromey@redhat.com>
2472 * symtab.c (add_macro_name): Remove unneeded cast.
2474 2014-06-18 Tom Tromey <tromey@redhat.com>
2476 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2477 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2479 2014-06-18 Tom Tromey <tromey@redhat.com>
2481 * probe.c (info_probes_for_ops): Make "arg" const.
2482 * probe.h (info_probes_for_ops): Update.
2484 2014-06-18 Tom Tromey <tromey@redhat.com>
2486 * varobj.c (varobj_create): Update.
2487 * valops.c (value_of_this): Update.
2488 * tracepoint.c (add_local_symbols, scope_info): Update.
2489 * symtab.h (struct general_symbol_info) <block>: Now const.
2490 * symtab.c (skip_prologue_sal)
2491 (default_make_symbol_completion_list_break_on)
2492 (skip_prologue_using_sal): Update.
2493 * stack.h (iterate_over_block_locals)
2494 (iterate_over_block_local_vars): Update.
2495 * stack.c (print_frame_args): Update.
2496 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2498 (get_selected_block): Make return type const.
2499 * python/py-frame.c (frapy_block): Update.
2500 * python/py-block.c (gdbpy_block_for_pc): Update.
2501 * p-exp.y (%union) <bval>: Now const.
2502 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2503 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2504 * m2-exp.y (%union) <bval>: Now const.
2505 * linespec.c (get_current_search_block): Make return type const.
2506 (create_sals_line_offset, find_label_symbols): Update.
2507 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2509 (block_starting_point_at): Make "block" const.
2510 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2511 (check_exception_resume): Update.
2512 * guile/scm-frame.c (gdbscm_frame_block): Update.
2513 * guile/scm-block.c (gdbscm_lookup_block): Update.
2514 * frame.h (get_frame_block): Update.
2515 (get_selected_block): Make return type const.
2516 * frame.c (frame_id_inner): Update.
2517 * f-valprint.c (info_common_command_for_block)
2518 (info_common_command): Update.
2519 * dwarf2loc.c (dwarf2_find_location_expression)
2520 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2521 (locexpr_describe_location_piece): Update.
2522 * c-exp.y (%union) <bval>: Now const.
2523 * breakpoint.c (resolve_sal_pc): Update.
2524 * blockframe.c (get_frame_block):Make return type const.
2525 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2526 (block_innermost_frame): Update.
2527 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2528 (block_for_pc, block_for_pc_sect): Update.
2529 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2531 (block_for_pc_sect, block_for_pc): Make return type const.
2532 * ax-gdb.c (gen_expr): Update.
2533 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2534 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2535 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2536 (ada_read_var_value): Update.
2537 * ada-exp.y (struct name_info) <block>: Now const.
2539 (block_lookup): Constify.
2541 2014-06-18 Gary Benson <gbenson@redhat.com>
2543 * nat/i386-dregs.h: New file.
2544 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2545 * i386-nat.h (i386-dregs.h): New include.
2546 (DR_FIRSTADDR): Now in i386-dregs.h.
2547 (DR_LASTADDR): Likewise.
2548 (DR_NADDR): Likewise.
2549 (DR_STATUS): Likewise.
2550 (DR_CONTROL): Likewise.
2551 (i386_debug_reg_state): Likewise.
2552 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2554 2014-06-18 Don Breazeal <donb@codesourcery.com>
2556 * breakpoint.c (set_longjmp_breakpoint): Call
2557 momentary_breakpoint_from_master with additional argument.
2558 (set_longjmp_breakpoint_for_call_dummy): Call
2559 momentary_breakpoint_from_master with additional argument.
2560 (set_std_terminate_breakpoint): Call
2561 momentary_breakpoint_from_master with additional argument.
2562 (momentary_breakpoint_from_master): Add argument to function
2563 definition and use it to initialize structure member flag.
2564 (clone_momentary_breakpoint): Call
2565 momentary_breakpoint_from_master with additional argument.
2566 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2567 member flags set in momentary_breakpoint_from_master.
2569 2014-06-18 Gary Benson <gbenson@redhat.com>
2571 * i386-nat.c (i386_show_dr): Renamed to
2572 i386_dr_show and made nonstatic. All uses updated.
2573 (i386_length_and_rw_bits): Renamed to
2574 i386_dr_length_and_rw_bits and made nonstatic.
2576 (i386_insert_aligned_watchpoint): Renamed to
2577 i386_dr_insert_aligned_watchpoint and made nonstatic.
2579 (i386_remove_aligned_watchpoint): Renamed to
2580 i386_dr_remove_aligned_watchpoint and made nonstatic.
2582 (i386_update_inferior_debug_regs): Renamed to
2583 i386_dr_update_inferior_debug_regs and made nonstatic.
2586 2014-06-18 Gary Benson <gbenson@redhat.com>
2588 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2589 (i386_dr_low_can_set_control): Likewise.
2590 (i386_dr_low_set_addr): Likewise.
2591 (i386_dr_low_set_control): Likewise.
2592 (i386_dr_low_get_addr): Likewise.
2593 (i386_dr_low_get_status): Likewise.
2594 (i386_dr_low_get_control): Likewise.
2595 (i386_insert_aligned_watchpoint): Use new macros.
2596 (i386_update_inferior_debug_regs): Likewise.
2597 (i386_stopped_data_address): Likewise.
2599 2014-06-18 Gary Benson <gbenson@redhat.com>
2601 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2602 New parameter. All uses updated.
2604 2014-06-18 Gary Benson <gbenson@redhat.com>
2606 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2609 2014-06-18 Gary Benson <gbenson@redhat.com>
2611 * i386-nat.c (debug_printf): New macro.
2612 (i386_get_debug_register_length): Likewise.
2613 (TARGET_HAS_DR_LEN_8): Use above macro.
2614 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2615 and printf_unfiltered. Use phex to format values.
2617 2014-06-18 Gary Benson <gbenson@redhat.com>
2619 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2622 2014-06-18 Gary Benson <gbenson@redhat.com>
2624 * i386-nat.c: Comment changes.
2626 2014-06-18 Gary Benson <gbenson@redhat.com>
2628 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2630 2014-06-18 Gary Benson <gbenson@redhat.com>
2632 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2633 (i386_insert_aligned_watchpoint): Likewise.
2634 (i386_remove_aligned_watchpoint): Likewise.
2635 (i386_handle_nonaligned_watchpoint): Likewise.
2637 2014-06-18 Gary Benson <gbenson@redhat.com>
2639 * i386-nat.c: Whitespace changes.
2641 2014-06-17 Samuel Bronson <naesten@gmail.com>
2643 * MAINTAINERS: Update Roland McGrath's email address.
2644 Thanks to Sergio Durigan Junior for pointing out that he left
2645 Red Hat a while ago, and giving me a current address.
2647 2014-06-17 Tom Tromey <tromey@redhat.com>
2649 * utils.h (savestring): Remove declaration.
2651 2014-06-17 Tom Tromey <tromey@redhat.com>
2653 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2655 2014-06-16 Keith Seitz <keiths@redhat.com>
2658 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2659 to update the varobj if inferior_ptid is null_ptid.
2661 2014-06-16 Tom Tromey <tromey@redhat.com>
2663 * target.h (struct target_ops) <to_info_proc>: Make parameter
2665 (target_info_proc): Update.
2666 * target.c (target_info_proc): Make "args" const.
2667 * procfs.c (procfs_info_proc): Update.
2668 * linux-tdep.c (linux_info_proc): Update.
2669 (linux_core_info_proc_mappings): Make "args" const.
2670 (linux_core_info_proc): Update.
2671 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2672 * gdbarch.c: Rebuild.
2673 * gdbarch.h: Rebuild.
2674 * corelow.c (core_info_proc): Update.
2676 2014-06-16 Tom Tromey <tromey@redhat.com>
2678 * target.h (struct target_ops) <to_disconnect>: Make parameter
2680 (target_disconnect): Update.
2681 * target.c (target_disconnect): Make "args" const.
2682 * target-delegates.c: Rebuild.
2683 * remote.c (remote_disconnect): Update.
2684 * record.h (record_disconnect): Update.
2685 * record.c (record_disconnect): Update.
2686 * inf-child.c (inf_child_disconnect): Update.
2688 2014-06-16 Tom Tromey <tromey@redhat.com>
2690 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2691 * target.c (debug_to_rcmd, default_rcmd): Update.
2692 * target-delegates.c: Rebuild.
2693 * remote.c (remote_rcmd): Update.
2694 * monitor.c (monitor_rcmd): Update.
2696 2014-06-16 Pedro Alves <palves@redhat.com>
2698 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2699 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2700 have OBJF_SHARED set.
2701 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2702 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2703 instead of OBJF_USERLOADED.
2704 * objfiles.h (OBJF_SHARED): Update comment.
2705 (userloaded_objfile_contains_address_p): Rename to ...
2706 (shared_objfile_contains_address_p): ... this, and update
2708 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2710 (remove_symbol_file_command): Skip objfiles that don't have
2713 2014-06-16 Tom Tromey <tromey@redhat.com>
2715 * minsyms.h (prim_record_minimal_symbol)
2716 (prim_record_minimal_symbol_and_info): Update comments.
2718 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2720 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2721 or --without-guile, according to how GDB was built.
2723 2014-06-13 Tom Tromey <tromey@redhat.com>
2725 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2727 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2729 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2731 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2732 help_list.Pass all_commands, not -1, to help_list.
2733 * cli/cli-dump.c (dump_command, append_command)
2734 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2735 (binary_dump_command, binary_append_command): Pass all_commands,
2736 not -1, to help_list.
2737 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2739 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2741 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2743 * top.c (set_history): Pass all_commands, not -1, to help_list.
2744 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2745 all_commands, not -1, to help_list.
2746 * symfile.c (overlay_command): Pass all_commands, not -1, to
2748 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2750 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2752 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2754 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2755 not -1, to help_list.
2756 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2757 not -1, to help_list.
2758 * maint.c (maintenance_command, maintenance_info_command)
2759 (maintenance_print_command, maintenance_set_cmd): Pass
2760 all_commands, not -1, to help_list.
2761 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2763 * language.c (set_check): Pass all_commands, not -1, to help_list.
2764 * infcmd.c (unset_command): Pass all_commands, not -1, to
2766 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2768 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2770 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2772 * breakpoint.c (save_command): Pass all_commands, not -1, to
2774 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2775 all_commands, not -1, to help_list.
2777 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2779 * regcache.c (struct register_to_invalidate): New structure.
2780 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2782 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2784 2014-06-12 Yao Qi <yao@codesourcery.com>
2786 * varobj.c (varobj_get_num_children): Call
2787 varobj_is_dynamic_p.
2788 (varobj_list_children): Likewise.
2789 (varobj_update): Likewise. Update comments.
2791 2014-06-12 Yao Qi <yao@codesourcery.com>
2793 * varobj.c (varobj_pretty_printed_p): Rename to ...
2794 (varobj_is_dynamic_p): ... this. New function.
2795 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2796 (varobj_is_dynamic_p): Declare.
2797 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2798 (mi_print_value_p, varobj_update_one): Likewise.
2800 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2801 Yao Qi <yao@codesourcery.com>
2803 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2804 (varobj_get_iterator): Wrap up code for pretty-printer by
2805 "#if HAVE_PYTHON" and "#endif".
2806 (update_dynamic_varobj_children): Likewise.
2808 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2809 Yao Qi <yao@codesourcery.com>
2811 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2812 gdb_python_initialized is false. Move some code from varobj.c.
2813 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2814 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2815 (struct varobj_item): Moved to varobj-iter.h".
2816 (varobj_clear_saved_item): New function.
2817 (update_dynamic_varobj_children): Move python-related code to
2819 (free_variable): Call varobj_clear_saved_item and
2822 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2823 Yao Qi <yao@codesourcery.com>
2825 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2826 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2827 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2828 (py-varobj.o): New rule.
2829 * python/py-varobj.c: New file.
2830 * python/python-internal.h (py_varobj_get_iterator): Declare.
2831 * varobj-iter.h: New file.
2832 * varobj.c: Include "varobj-iter.h"
2833 (struct varobj) <child_iter>: Change its type from "PyObject *"
2834 to "struct varobj_iter *".
2835 <saved_item>: Likewise.
2836 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2837 [HAVE_PYTHON] (varobj_get_iterator): New function.
2838 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2839 python-specific code to python/py-varobj.c.
2840 (install_visualizer): Call varobj_iter_delete instead of
2842 * varobj.h (varobj_ensure_python_env): Declare.
2844 2014-06-12 Yao Qi <yao@codesourcery.com>
2846 * varobj.c (struct varobj_item): New structure.
2847 (create_child_with_value): Update declaration.
2848 (varobj_add_child): Replace arguments 'name' and 'value' with
2849 'item'. All callers updated.
2850 (install_dynamic_child): Likewise.
2851 (update_dynamic_varobj_children): Likewise.
2852 (varobj_add_child): Likewise.
2853 (create_child_with_value): Likewise.
2855 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2857 * NEWS: Create a new section for the next release branch.
2858 Rename the section of the current branch, now that it has
2861 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2863 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2864 * version.in: Bump version to 7.8.50.DATE-cvs.
2866 2014-06-11 Pedro Alves <palves@redhat.com>
2869 * ser-mingw.c (net_windows_socket_check_pending): New function.
2870 (net_windows_select_thread): Ignore spurious wakeups. Use
2871 net_windows_socket_check_pending.
2872 (net_windows_wait_handle): Check for pending events with
2873 ioctlsocket, through net_windows_socket_check_pending, instead of
2874 checking the socket's event.
2876 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2878 * python/python-internal.h (gdb_PyObject_GetAttrString)
2879 (gdb_PyObject_HasAttrString): New inline function definitions.
2880 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2881 char * of the second argument to PyObject_GetAttrString.
2883 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2885 * serial.c (serial_write): Fix index of character to be printed
2886 in call to serial_logchar when serial debug traces are enabled.
2888 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2890 * gdbtypes (resolve_dynamic_range): Add function description.
2892 2014-06-09 Pedro Alves <palves@redhat.com>
2894 * linux-nat.c (linux_child_follow_fork): Initialize status with
2895 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2896 inner block. Only pass the signal to PTRACE_DETACH if in pass
2899 2014-06-09 Gary Benson <gbenson@redhat.com>
2901 * common/signals.c (gdb_signal_from_host): Reorder to separate
2902 the always-available ANSI-standard signals from the signals that
2904 (do_gdb_signal_to_host): Likewise.
2905 * proc-events.c (signal_table): Likewise.
2907 2014-06-08 Hui Zhu <hui@codesourcery.com>
2909 * common/linux-ptrace.c (linux_disable_event_reporting): New
2911 * common/linux-ptrace.h (linux_disable_event_reporting): New
2913 * linux-nat.c (linux_child_follow_fork): Do a single step before
2916 2014-06-07 Keith Seitz <keiths@redhat.com>
2920 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2921 from symbol_matches_domain in symtab.c. All local callers
2922 of symbol_matches_domain updated.
2923 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2924 search STRUCT_DOMAIN.
2925 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2926 independently. standard_lookup will do that automatically.
2927 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2928 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2929 (cp_lookup_symbol_in_namespace): Likewise.
2930 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2931 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2932 may return a STRUCT_DOMAIN match.
2933 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2934 * cp-support.c: Include language.h.
2935 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2937 * psymtab.c (match_partial_symbol): Compare the requested
2938 domain with the symbol's domain directly.
2939 (lookup_partial_symbol): Likewise.
2940 * symtab.c (lookup_symbol_in_language): Explain when/why
2941 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2942 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2943 appropriate languages.
2944 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2945 and moved to ada-lang.c
2946 (lookup_block_symbol): Explain that this function only returns
2947 symbol matching the requested DOMAIN.
2948 Compare the requested domain with the symbol's domain directly.
2949 (iterate_over_symbols): Compare the requested domain with the
2950 symbol's domain directly.
2951 * symtab.h (symbol_matches_domain): Remove.
2953 2014-06-06 Doug Evans <xdje42@gmail.com>
2955 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2956 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2957 (gdbscm_guile_version_is_at_least): Declare.
2958 (gdbscm_scm_string_to_int): Declare.
2959 * guile/guile.c (gdbscm_guile_major_version): New global.
2960 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2961 (guile_datadir): New static global.
2962 (gdbscm_guile_data_directory): New function.
2963 (initialize_scheme_side): Update.
2964 (misc_guile_functions): Add guile-data-directory.
2965 (initialize_gdb_module): Fetch guile version number.
2966 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2967 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2968 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2969 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2971 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2972 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2973 * guile/scm-value.c (gdbscm_value_to_string): Only call
2974 scm_port_conversion_strategy if Guile version >= 2.0.6.
2976 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2978 * main.c (print_gdb_help): Add -q and --silent.
2980 2014-06-06 Gary Benson <gbenson@redhat.com>
2982 * common/signals.c: Remove preprocessor conditionals for
2983 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2984 SIGSEGV and SIGTERM.
2985 * proc-events.c: Likewise.
2987 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2989 * symfile.c (symfile_free_objfile): Remove restriction to
2991 * symfile-mem.c (symbol_file_add_from_memory): Call
2992 add_target_sections_of_objfile.
2994 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2996 * guile/scm-value.c (gdbscm_history_append_x): Use
2997 'vlscm_get_value_smob_arg_unsafe' instead of
2998 'vlscm_scm_to_value'.
3000 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3003 * utils.c (printchar): Don't escape at all if quoter is NUL.
3004 Update function documentation to clarify effect of parameter
3006 * remote.c (escape_buffer): Pass '\\' as the quoter to
3007 fputstrn_unfiltered.
3008 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3009 generate the output.
3010 (mi_solib_unloaded): Same.
3012 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3014 * development.sh: Delete.
3015 * Makefile.in (config.status): Adjust dependency on development.sh.
3016 * configure.ac: Adjust development.sh source call.
3017 * configure: Regenerate.
3019 2014-06-04 Doug Evans <xdje42@gmail.com>
3021 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3022 is_scheme_bkpt, spec.
3023 (bpscm_make_breakpoint_smob): Initialize new members.
3024 (gdbscm_create_breakpoint_x): Split into two ...
3025 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3026 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3027 (scheme_function breakpoint_functions): Update.
3028 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3029 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3030 register-breakpoint!.
3032 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3035 * mem-break.c (z_type_supported): Return zero if
3036 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3038 2014-06-04 Tom Tromey <tromey@redhat.com>
3040 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3041 value_from_contents_and_address_unresolved.
3042 (ada_template_to_fixed_record_type_1): Likewise.
3043 (ada_which_variant_applies): Likewise.
3044 * value.h (value_from_contents_and_address_unresolved): Declare.
3045 * value.c (value_from_contents_and_address_unresolved): New
3047 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3048 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3049 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3051 2014-06-04 Tom Tromey <tromey@redhat.com>
3053 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3055 2014-06-04 Tom Tromey <tromey@redhat.com>
3057 * procfs.c (procfs_attach): Make "args" const.
3058 * windows-nat.c (windows_attach): Make "args" const.
3059 * nto-procfs.c (procfs_attach): Make "args" const.
3060 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3061 * go32-nat.c (go32_attach): Make "args" const.
3062 * gnu-nat.c (gnu_attach): Make "args" const.
3063 * darwin-nat.c (darwin_attach): Make "args" const.
3064 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3065 * linux-nat.c (linux_nat_attach): Make "args" const.
3066 * remote.c (extended_remote_attach_1, extended_remote_attach):
3068 * target.h (struct target_ops) <to_attach>: Make "args" const.
3069 (find_default_attach): Likewise.
3070 * utils.c (parse_pid_to_attach): Make "args" const.
3071 * utils.h (parse_pid_to_attach): Update.
3073 2014-06-04 Tom Tromey <tromey@redhat.com>
3075 * target-delegates.c: Rebuild.
3076 * target.c (default_thread_address_space): New function.
3077 (target_thread_address_space): Simplify.
3078 * target.h (struct target_ops) <to_thread_address_space>: Add
3079 TARGET_DEFAULT_FUNC.
3081 2014-06-04 Doug Evans <xdje42@gmail.com>
3083 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3085 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3087 * record-btrace.c: Include event-loop.h and inf-loop.h.
3088 (record_btrace_resume_exec_dir)
3089 (record_btrace_async_inferior_event_handler)
3090 (record_btrace_handle_async_inferior_event): New.
3091 (record_btrace_open): Create async event handler.
3092 (record_btrace_close): Delete async event handler.
3093 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3094 Mark async event handler.
3095 (record_btrace_execution_direction): New.
3096 (init_record_btrace_ops): Initialize to_execution_direction.
3098 2014-06-03 Doug Evans <xdje42@gmail.com>
3100 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3101 (gdbscm_make_parameter): Ditto.
3103 2014-06-03 Doug Evans <dje@google.com>
3105 * exec.c (exec_close_1): Call clear_section_table instead of
3106 resize_section_table.
3107 (clear_section_table): New function.
3108 (resize_section_table): Make static. Rename arg num_added to
3110 * exec.h (clear_section_table): Declare.
3111 (resize_section_table): Delete.
3112 * progspace.c (release_program_space): Call clear_section_table
3113 instead of resize_section_table.
3115 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3117 * NEWS (Python Scripting): Add entry about the new xmethods
3120 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3122 * python/py-xmethods.c: New file.
3123 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3124 (objfpy_dealloc): XDECREF on the new xmethods field.
3125 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3127 (objfpy_get_xmethods): New function.
3128 (objfile_getset): New entry 'xmethods'.
3129 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3130 (pspy_dealloc): XDECREF on the new xmethods field.
3131 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3133 (pspy_get_xmethods): New function.
3134 (pspace_getset): New entry 'xmethods'.
3135 * python/python-internal.h: Add declarations for new functions.
3136 * python/python.c (_initialize_python): Invoke
3137 gdbpy_initialize_xmethods.
3138 * python/lib/gdb/__init__.py (xmethods): New
3140 * python/lib/gdb/xmethod.py: New file.
3141 * python/lib/gdb/command/xmethods.py: New file.
3143 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3145 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3146 best match method returned by find_overload_match is an xmethod.
3147 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3148 the best matching operator returned by find_overload_match is an
3150 * valops.c: #include "extension.h".
3151 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3152 Return void. The list of matching source methods is returned in
3153 "fn_list" and a vector of matching debug method workers is
3154 returned in "xm_worker_vec". Update all callers.
3155 (value_find_oload_method_list): Likewise.
3156 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3157 non-NULL, then the index of the best matching method in this
3158 vector is returned. Update all callers.
3159 (find_overload_match): Include xmethods while performing overload
3162 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3164 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3165 * extension-priv.h (struct extension_language_ops): Add the
3167 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3168 get_matching_xmethod_workers, get_xmethod_argtypes,
3169 invoke_xmethod, free_xmethod_worker,
3170 free_xmethod_worker_vec): New functions.
3171 * extension.h: #include "common/vec.h".
3172 New function declarations.
3173 (struct xmethod_worker): New struct.
3174 (VEC (xmethod_worker_ptr)): New vector type.
3175 (xmethod_worker_ptr): New typedef.
3176 (xmethod_worker_vec): Likewise.
3177 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3179 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3180 (struct builtin_type): New field "xmethod".
3181 * valarith.c (value_ptradd): Assert that the value argument is not
3183 * valops.c (value_must_coerce_to_target): Return 0 for
3184 lval_xcallable values.
3185 * value.c (struct value): New field XM_WORKER in the field
3187 (value_address, value_raw_address): Return 0 for lval_xcallable
3189 (set_value_address): Assert that the value is not an
3191 (value_free): Free the associated xmethod worker when freeing
3192 lval_xcallable values.
3193 (set_value_component_location): Assert that the WHOLE value is not
3195 (value_of_xmethod, call_xmethod): New functions.
3196 * value.h: Declare "struct xmethod_worker".
3197 Declare new functions value_of_xmethod, call_xmethod.
3199 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3200 Pedro Alves <palves@redhat.com>
3202 PR breakpoints/17000
3203 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3204 New function, extracted from software_breakpoint_inserted_here_p.
3205 (software_breakpoint_inserted_here_p): Replace factored out code
3206 by call to find_non_raw_software_breakpoint_inserted_here.
3207 (bp_target_info_copy_insertion_state): New function.
3208 (bkpt_insert_location): Handle the case of a single-step
3209 breakpoint already inserted at the same address.
3210 (bkpt_remove_location): Handle the case of a single-step
3211 breakpoint still inserted at the same address.
3212 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3213 breakpoint already inserted at the same address.
3214 (deprecated_remove_raw_breakpoint): Handle the case of a
3215 non-raw breakpoint still inserted at the same address.
3216 (find_single_step_breakpoint): New function, extracted from
3217 single_step_breakpoint_inserted_here_p.
3218 (find_single_step_breakpoint): New function,
3219 factored out from single_step_breakpoint_inserted_here_p.
3220 (single_step_breakpoint_inserted_here_p): Reimplement.
3222 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3224 Pushed by Joel Brobecker <brobecker@adacore.com>
3225 * source.c (show_substitute_path_command): Fix display of matching
3228 2014-06-03 Gary Benson <gbenson@redhat.com>
3230 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3232 2014-06-02 Doug Evans <xdje42@gmail.com>
3234 Add parameter support for Guile.
3235 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3236 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3237 (scm-param.o): New rule.
3238 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3239 (gdbscm_misc_error): Declare.
3240 (gdbscm_canonicalize_command_name): Declare.
3241 (gdbscm_scm_to_host_string): Declare.
3242 (gdbscm_scm_from_host_string): Declare.
3243 (gdbscm_initialize_parameters): Declare.
3244 * guile/guile.c (initialize_gdb_module): Call
3245 gdbscm_initialize_parameters.
3246 * guile/lib/gdb.scm: Export parameter symbols.
3247 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3248 cmdscm_canonicalize_name and made public. All callers updated.
3249 * guile/scm-exception.c (gdbscm_misc_error): New function.
3250 * guile/scm-param.c: New file.
3251 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3252 (gdbscm_scm_to_host_string): New function.
3253 (gdbscm_scm_from_host_string): New function.
3254 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3256 2014-06-02 Doug Evans <xdje42@gmail.com>
3258 Add command support for Guile.
3259 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3260 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3261 (scm-cmd.o): New rule.
3262 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3263 (gdbscm_user_error_p): Declare.
3264 (gdbscm_parse_command_name): Declare.
3265 (gdbscm_valid_command_class_p): Declare.
3266 (gdbscm_initialize_commands): Declare.
3267 * guile/guile.c (initialize_gdb_module): Call
3268 gdbscm_initialize_commands.
3269 * guile/lib/gdb.scm: Export command symbols.
3270 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3271 (throw-user-error): New function.
3272 * guile/scm-cmd.c: New file.
3273 * guile/scm-exception.c (user_error_symbol): New static global.
3274 (gdbscm_user_error_p): New function.
3275 (gdbscm_initialize_exceptions): Set user_error_symbol.
3276 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3278 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3280 * top.c (command_loop): Handle comments here...
3281 (command_line_input): ... not here.
3283 2014-06-02 Doug Evans <xdje42@gmail.com>
3285 Add progspace support for Guile.
3286 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3287 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3288 (scm-progspace.o): New rule.
3289 * guile/guile-internal.h (pspace_smob): New typedef.
3290 (psscm_pspace_smob_pretty_printers): Declare.
3291 (psscm_pspace_smob_from_pspace): Declare.
3292 (psscm_scm_from_pspace): Declare.
3293 * guile/guile.c (initialize_gdb_module): Call
3294 gdbscm_initialize_pspaces.
3295 * guile/lib/gdb.scm: Export progspace symbols.
3296 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3298 (append-pretty-printer!): Ditto.
3299 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3301 * guile/scm-progspace.c: New file.
3303 2014-06-03 Alan Modra <amodra@gmail.com>
3305 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3306 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3308 2014-06-02 Doug Evans <dje@google.com>
3310 Add support for skeletonless type units.
3311 * dwarf2read.c (struct dwarf2_per_objfile): New member
3312 n_allocated_type_units.
3313 (struct dwarf2_per_objfile) <tu_stats>: New member
3314 nr_all_type_units_reallocs.
3315 (create_signatured_type_table_from_index): Initialize
3316 n_allocated_type_units
3317 (create_all_type_units): Ditto.
3318 (add_type_unit): Move up in file. New arg slot.
3319 All callers updated. Increase space for all_type_units more
3321 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3322 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3323 (lookup_dwp_signatured_type): Ditto.
3324 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3325 All callers updated.
3326 (build_type_psymtabs_1): Leave type_unit_groups as
3327 NULL if no TUs present.
3328 (print_tu_stats): New function.
3329 (process_skeletonless_type_unit): New function.
3330 (process_dwo_file_for_skeletonless_type_units): New
3332 (process_skeletonless_type_units): New function.
3333 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3334 Call print tu_stats if debugging enabled.
3336 2014-06-02 Pedro Alves <palves@redhat.com>
3338 * breakpoint.c (build_target_command_list): Don't build a command
3339 list if we have any duplicate location that isn't a dprintf.
3341 2014-06-02 Pedro Alves <palves@redhat.com>
3343 * breakpoint.c (dprintf_breakpoint_hit): New function.
3344 (initialize_breakpoint_ops): Install it as dprintf's
3345 breakpoint_hit method.
3347 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3349 * source.c (substitute_path_rule_matches): Simplify using
3350 filename_ncmp instead of FILENAME_CMP.
3352 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3354 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3356 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3358 * configure.ac: When Guile is available, check for the
3359 availability of 'scm_new_smob'.
3360 * configure, config.h.in: Regenerate.
3361 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3364 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3366 * frame.c (struct frame_info): Add stop_string field.
3367 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3368 (get_prev_frame_always): Old content moved into
3369 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3370 TRY_CATCH, handle MEMORY_ERROR exceptions.
3371 (frame_stop_reason_string): New function definition.
3372 * frame.h (unwind_stop_reason_to_string): Extend comment to
3373 mention frame_stop_reason_string.
3374 (frame_stop_reason_string): New function declaration.
3375 * stack.c (frame_info): Switch to frame_stop_reason_string.
3376 (backtrace_command_1): Switch to frame_stop_reason_string.
3377 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3378 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3379 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3381 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3383 * frame.c (frame_stop_reason_string): Rename to ...
3384 (unwind_stop_reason_to_string): this.
3385 * frame.h (frame_stop_reason_string): Rename to ...
3386 (unwind_stop_reason_to_string): this.
3387 * stack.c (frame_info): Update call to frame_stop_reason_string.
3388 (backtrace_command_1): Likewise.
3389 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3390 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3392 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3394 * frame.c (remove_prev_frame): New function.
3395 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3398 2014-05-29 Pedro Alves <palves@redhat.com>
3400 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3401 and make it const. When a single-step decays to a continue,
3402 clear 'step', not 'hw_step'. Pass whether the caller wanted
3403 to step to user_visible_resume_ptid, not what we ask the
3406 2014-05-29 Pedro Alves <palves@redhat.com>
3408 * infrun.c (process_event_stop_test, handle_step_into_function)
3409 (handle_step_into_function_backward): Adjust.
3410 Don't set the even thread's stop_step and call stop_waiting before
3411 calling end_stepping_range. Instead do that ...
3412 (end_stepping_range): ... here. Take an ecs pointer parameter.
3414 2014-05-29 Pedro Alves <palves@redhat.com>
3416 * infrun.c (stop_stepping): Rename to ...
3417 (stop_waiting): ... this.
3418 (proceed): Update comment.
3419 (process_event_stop_test, handle_inferior_event)
3420 (handle_signal_stop, handle_step_into_function)
3421 (handle_step_into_function_backward): Update.
3423 2014-05-29 Pedro Alves <palves@redhat.com>
3425 * infcall.c (run_inferior_call): Don't check whether the current
3426 thread is running after the proceed call.
3428 2014-05-29 Pedro Alves <palves@redhat.com>
3429 Tom Tromey <tromey@redhat.com>
3431 * NEWS: Mention "maint set target-async", "set mi-async", and that
3432 background execution commands are now always available.
3433 * target.h (target_async_permitted): Update comment.
3434 * target.c (target_async_permitted, target_async_permitted_1):
3436 (set_target_async_command): Rename to ...
3437 (maint_set_target_async_command): ... this.
3438 (show_target_async_command): Rename to ...
3439 (maint_show_target_async_command): ... this.
3440 (_initialize_target): Adjust.
3441 * infcmd.c (prepare_execution_command): Make extern.
3442 * inferior.h (prepare_execution_command): Declare.
3443 * infrun.c (set_observer_mode): Leave target async alone.
3444 * mi/mi-interp.c (mi_interpreter_init): Install
3445 mi_on_sync_execution_done as sync_execution_done observer.
3446 (mi_on_sync_execution_done): New function.
3447 (mi_execute_command_input_handler): Don't print the prompt if we
3448 just started a synchronous command with an async target.
3449 (mi_on_resume): Check sync_execution before printing prompt.
3450 * mi/mi-main.h (mi_async_p): Declare.
3451 * mi/mi-main.c: Include gdbcmd.h.
3452 (mi_async_p): New function.
3453 (mi_async, mi_async_1): New globals.
3454 (set_mi_async_command, show_mi_async_command, mi_async): New
3456 (exec_continue): Call prepare_execution_command.
3457 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3458 (mi_execute_async_cli_command): Use mi_async_p.
3459 (_initialize_mi_main): Install "set mi-async". Make
3460 "target-async" a deprecated alias.
3462 2014-05-29 Pedro Alves <palves@redhat.com>
3464 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3465 (_initialize_cli_interp): Adjust.
3466 * event-loop.c: Include "observer.h".
3467 (start_event_loop): Notify 'command_error' observers instead of
3468 calling display_gdb_prompt. Remove FIXME comment.
3469 * event-top.c (display_gdb_prompt): Remove call into the
3471 * inf-loop.c: Include "observer.h".
3472 (inferior_event_handler): Notify 'command_error' observers instead
3473 of calling display_gdb_prompt.
3474 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3475 observers instead of calling display_gdb_prompt.
3476 * interps.c (interp_set): Don't call display_gdb_prompt.
3477 (current_interp_display_prompt_p): Delete.
3478 * interps.h (interp_prompt_p): Delete declaration.
3479 (interp_prompt_p_ftype): Delete.
3480 (struct interp_procs) <prompt_proc_p>: Delete field.
3481 (current_interp_display_prompt_p): Delete declaration.
3482 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3483 (_initialize_mi_interp): Adjust.
3484 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3485 'command_error' observers.
3486 (tui_on_sync_execution_done, tui_on_command_error): New
3488 (tui_display_prompt_p): Delete.
3489 (_initialize_tui_interp): Adjust.
3491 2014-05-29 Pedro Alves <palves@redhat.com>
3494 * cli/cli-interp.c: Include infrun.h and observer.h.
3495 (cli_uiout, cli_interp): New globals.
3496 (cli_on_signal_received, cli_on_end_stepping_range)
3497 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3499 (cli_interpreter_init): Install them as 'end_stepping_range',
3500 'signal_received' 'signal_exited', 'exited' and 'no_history'
3502 (_initialize_cli_interp): Remove cli_interp local.
3503 * infrun.c (handle_inferior_event): Call the several stop reason
3504 observers instead of printing the stop reason directly.
3505 (end_stepping_range): New function.
3506 (print_end_stepping_range_reason, print_signal_exited_reason)
3507 (print_exited_reason, print_signal_received_reason)
3508 (print_no_history_reason): Make static, and add an uiout
3509 parameter. Print to that instead of to CURRENT_UIOUT.
3510 * infrun.h (print_end_stepping_range_reason)
3511 (print_signal_exited_reason, print_exited_reason)
3512 (print_signal_received_reason print_no_history_reason): New
3514 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3516 <cli_uiout>: New field.
3517 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3518 uiout for CLI output. Install 'signal_received',
3519 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3521 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3522 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3523 (mi_on_no_history): New functions.
3524 (ui_out_free_cleanup): Delete function.
3525 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3526 instead use the one already stored in the MI interpreter data.
3527 (mi_ui_out): Adjust.
3528 * tui/tui-interp.c: Include infrun.h and observer.h.
3529 (tui_interp): New global.
3530 (tui_on_signal_received, tui_on_end_stepping_range)
3531 (tui_on_signal_exited, tui_on_exited)
3532 (tui_on_no_history): New functions.
3533 (tui_init): Install them as 'end_stepping_range',
3534 'signal_received' 'signal_exited', 'exited' and 'no_history'
3536 (_initialize_tui_interp): Delete tui_interp local.
3538 2014-05-29 Pedro Alves <palves@redhat.com>
3541 * linux-nat.c (linux_nat_resume_callback): Rename the second
3542 parameter to 'except'. Skip LP if it points to EXCEPT.
3543 (linux_nat_resume): Don't mark the event lwp as not stopped
3544 before resuming sibling lwps. Instead ask
3545 linux_nat_resume_callback to skip the event lwp. Mark it as not
3546 stopped after actually resuming it.
3547 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3549 (wait_lwp): Mark the lwp as stopped here.
3550 (stop_wait_callback): Mark the lwp as not stopped right after
3551 resuming it. Don't mark lwps as stopped here.
3552 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3553 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3555 2014-05-29 Pedro Alves <palves@redhat.com>
3558 * infrun.c (resume): Determine how much to resume depending on
3559 whether the caller wanted a step, not whether we can hardware step
3560 the target. Mark all threads that we intend to run as running,
3561 unless we're calling an inferior function.
3562 (normal_stop): If the thread is running an infcall, don't finish
3564 * target.c (target_resume): Don't mark threads as running here.
3566 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3568 * serial.c (_initialize_serial): Remove support for
3569 the "set remotebaud" and "show remotebaud" commands.
3570 * NEWS: Add entry documenting the removal of that command.
3572 2014-05-28 Yao Qi <yao@codesourcery.com>
3574 * charset.c: Fix typo in comments.
3576 2014-05-27 Gary Benson <gbenson@redhat.com>
3578 * utils.c (internal_vproblem): Prompt for a bug report.
3580 2014-05-26 Andy Wingo <wingo@igalia.com>
3582 * guile/scm-arch.c (arscm_mark_arch_smob):
3583 * guile/scm-block.c (bkscm_mark_block_smob)
3584 (bkscm_mark_block_syms_progress_smob):
3585 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3586 * guile/scm-exception.c (exscm_mark_exception_smob):
3587 * guile/scm-frame.c (frscm_mark_frame_smob):
3588 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3589 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3590 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3591 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3592 (ppscm_mark_pretty_printer_worker_smob):
3593 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3594 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3595 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3596 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3598 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3601 2014-05-26 Andy Wingo <wingo@igalia.com>
3602 Doug Evans <xdje42@gmail.com>
3604 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3605 empty_base_class. All uses updated.
3606 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3607 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3609 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3610 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3611 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3612 (gdbscm_gsmob_has_property_p, add_property_name)
3613 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3614 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3615 (gdb-object-has-property?, gdb-object-properties): Remove.
3616 (gdb-object-kind): Renamed from gsmob-kind.
3618 2014-05-26 Andy Wingo <wingo@igalia.com>
3620 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3621 * configure: Regenerate.
3623 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3625 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3627 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3629 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3630 (replay_memory_access_read_only, replay_memory_access_read_write)
3631 (replay_memory_access_types, replay_memory_access)
3632 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3633 (cmd_set_record_btrace, cmd_show_record_btrace)
3634 (cmd_show_replay_memory_access): New.
3635 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3636 (record_btrace_remove_breakpoint): Replace
3637 record_btrace_allow_memory_access with replay_memory_access.
3638 (_initialize_record_btrace): Add commands.
3639 * NEWS: Announce it.
3641 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3643 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3645 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3647 * MAINTAINERS (Write After Approval): Move self back from
3650 2014-05-22 Pedro Alves <palves@redhat.com>
3652 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3653 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3654 (disable_randomization, enum exec_direction_kind)
3655 (execution_direction, stop_registers, start_remote)
3656 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3657 (wait_for_inferior, normal_stop, get_last_target_status)
3658 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3659 (insert_step_resume_breakpoint_at_sal)
3660 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3661 (set_step_info, print_stop_event, signal_stop_state)
3662 (signal_print_state, signal_pass_state, signal_stop_update)
3663 (signal_print_update, signal_pass_update)
3664 (update_signals_program_target, clear_exit_convenience_vars)
3665 (displaced_step_dump_bytes, update_observer_mode)
3666 (signal_catch_update, gdb_signal_from_command): Move
3668 * infrun.h: ... to this new file.
3669 * amd64-tdep.c: Include infrun.h.
3670 * annotate.c: Include infrun.h.
3671 * arch-utils.c: Include infrun.h.
3672 * arm-linux-tdep.c: Include infrun.h.
3673 * arm-tdep.c: Include infrun.h.
3674 * break-catch-sig.c: Include infrun.h.
3675 * breakpoint.c: Include infrun.h.
3676 * common/agent.c: Include infrun.h instead of inferior.h.
3677 * corelow.c: Include infrun.h.
3678 * event-top.c: Include infrun.h.
3679 * go32-nat.c: Include infrun.h.
3680 * i386-tdep.c: Include infrun.h.
3681 * inf-loop.c: Include infrun.h.
3682 * infcall.c: Include infrun.h.
3683 * infcmd.c: Include infrun.h.
3684 * infrun.c: Include infrun.h.
3685 * linux-fork.c: Include infrun.h.
3686 * linux-nat.c: Include infrun.h.
3687 * linux-thread-db.c: Include infrun.h.
3688 * monitor.c: Include infrun.h.
3689 * nto-tdep.c: Include infrun.h.
3690 * procfs.c: Include infrun.h.
3691 * record-btrace.c: Include infrun.h.
3692 * record-full.c: Include infrun.h.
3693 * remote-m32r-sdi.c: Include infrun.h.
3694 * remote-mips.c: Include infrun.h.
3695 * remote-notif.c: Include infrun.h.
3696 * remote-sim.c: Include infrun.h.
3697 * remote.c: Include infrun.h.
3698 * reverse.c: Include infrun.h.
3699 * rs6000-tdep.c: Include infrun.h.
3700 * s390-linux-tdep.c: Include infrun.h.
3701 * solib-irix.c: Include infrun.h.
3702 * solib-osf.c: Include infrun.h.
3703 * solib-svr4.c: Include infrun.h.
3704 * target.c: Include infrun.h.
3705 * top.c: Include infrun.h.
3706 * windows-nat.c: Include infrun.h.
3707 * mi/mi-interp.c: Include infrun.h.
3708 * mi/mi-main.c: Include infrun.h.
3709 * python/py-threadevent.c: Include infrun.h.
3711 2014-05-22 Pedro Alves <palves@redhat.com>
3713 * infrun.c (handle_inferior_event): Store the exit code for
3714 --return-child-result here, instead of ...
3715 (print_exited_reason): ... here.
3717 2014-05-21 Pedro Alves <palves@redhat.com>
3720 * gdbthread.h (struct thread_control_state): New field
3722 * infrun.c (follow_fork): Copy the new thread control field to the
3724 (clear_proceed_status_thread): Clear the new thread control field.
3725 (proceed): Set the new thread control field.
3726 * interps.h (command_interp): Declare.
3727 * interps.c (command_interpreter): New global.
3728 (command_interp): New function.
3729 (interp_exec): Set `command_interpreter' while here.
3730 * cli-out.c (cli_uiout_dtor): New function.
3731 (cli_ui_out_impl): Install it.
3732 * mi/mi-interp.c: Include cli-out.h.
3733 (mi_cmd_interpreter_exec): Add comment.
3734 (restore_current_uiout_cleanup): New function.
3735 (ui_out_free_cleanup): New function.
3736 (mi_on_normal_stop): If finishing an execution command started by
3737 a CLI command, or any kind of breakpoint-like event triggered,
3738 print the stop event to the output (CLI) stream.
3739 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3741 2014-05-21 Pedro Alves <palves@redhat.com>
3743 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3744 current source line having changed.
3745 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3746 * infrun.c (normal_stop): Adjust call to
3747 set_current_sal_from_frame.
3748 * source.c (clear_lines_listed_range): New function.
3749 (set_current_source_symtab_and_line, identify_source_line): Clear
3750 the lines listed range.
3751 (line_info): Handle the first "info line" after the current source
3752 line having changed.
3753 * stack.c (print_stack_frame): Remove center handling.
3754 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3757 2014-05-21 Pedro Alves <palves@redhat.com>
3759 * inf-child.c (inf_child_mourn_inferior): New function.
3760 * inf-child.h (inf_child_mourn_inferior): New declaration.
3761 * darwin-nat.c (darwin_mourn_inferior): Use
3762 inf_child_mourn_inferior.
3763 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3764 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3765 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3766 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3767 * windows-nat.c (windows_mourn_inferior): Likewise.
3769 2014-05-21 Doug Evans <xdje42@gmail.com>
3771 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3773 2014-05-21 Doug Evans <xdje42@gmail.com>
3775 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3776 (gdbscm_out_of_range_error): Ditto.
3777 (gdbscm_memory_error): Ditto.
3778 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3779 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3780 (gdbscm_out_of_range_error): Update.
3781 (gdbscm_memory_error): Update.
3782 (gdbscm_scm_to_target_string_unsafe): Delete.
3784 2014-05-21 Pedro Alves <palves@redhat.com>
3786 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3788 (inf_child_open_target): New function.
3789 (inf_child_open): Use inf_child_open_target to push the target
3790 instead of erroring out.
3791 (inf_child_disconnect, inf_child_close)
3792 (inf_child_maybe_unpush_target): New functions.
3793 (inf_child_target): Install inf_child_disconnect and
3794 inf_child_close. Store a pointer to the returned object.
3795 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3797 * target.c (auto_connect_native_target): New global.
3798 (show_default_run_target): New function.
3799 (find_default_run_target): Return NULL if automatically connecting
3800 to the native target is disabled.
3801 (_initialize_target): Install set/show auto-connect-native-target.
3802 * NEWS: Mention "set auto-connect-native-target", and "target
3804 * linux-nat.c (super_close): New global.
3805 (linux_nat_close): Call super_close.
3806 (linux_nat_add_target): Store a pointer to the base class's
3808 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3809 inf_child_maybe_unpush.
3810 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3812 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3813 the inferior. Use inf_child_maybe_unpush_target.
3814 (inf_ttrace_attach): Don't push the target if it is already
3816 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3817 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3818 after mourning the inferior. Use inf_child_maybe_unpush_target.
3819 (darwin_attach_pid): Don't push the target if it is already
3821 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3822 mourning the inferior. Use inf_child_maybe_unpush_target.
3823 (gnu_detach): Use inf_child_maybe_unpush_target.
3824 * go32-nat.c (go32_create_inferior): Don't push the target if it
3826 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3827 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3828 (procfs_open): Rename to ...
3829 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3830 comments. Can target_preopen before changing node. Call
3831 inf_child_open_target to push the target explicitly.
3832 (procfs_attach): Don't push the target if it is already pushed.
3833 (procfs_detach): Use inf_child_maybe_unpush_target.
3834 (procfs_create_inferior): Don't push the target if it is already
3836 (nto_native_ops): New global.
3837 (procfs_open): Reimplement.
3838 (procfs_native_open): New function.
3839 (init_procfs_targets): Install procfs_native_open as to_open of
3840 "target native". Store a pointer to the "native" target in
3842 * procfs.c (procfs_attach): Don't push the target if it is already
3844 (procfs_detach): Use inf_child_maybe_unpush_target.
3845 (procfs_mourn_inferior): Only unpush the target after mourning the
3846 inferior. Use inf_child_maybe_unpush_target.
3847 (procfs_init_inferior): Don't push the target if it is already
3849 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3850 if it is already pushed.
3852 2014-05-21 Pedro Alves <palves@redhat.com>
3854 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3855 and "procfs" targets are now called "native" instead.
3857 2014-05-21 Pedro Alves <palves@redhat.com>
3859 * go32-nat.c (go32_open): Delete.
3860 (go32_target): Don't override the to_open method.
3862 2014-05-21 Pedro Alves <palves@redhat.com>
3864 * nto-procfs.c (procfs_can_run): New function.
3865 (nto_procfs_ops): New global.
3866 (init_procfs_targets): New, based on procfs_target. Install
3867 "target native" in addition to "target procfs".
3868 (_initialize_procfs): Call init_procfs_targets instead of adding
3871 2014-05-21 Pedro Alves <palves@redhat.com>
3873 * windows-nat.c (windows_target): Don't override to_shortname,
3874 to_longname or to_doc.
3876 2014-05-21 Pedro Alves <palves@redhat.com>
3878 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3881 2014-05-21 Pedro Alves <palves@redhat.com>
3883 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3884 to_shortname, to_longname or to_doc.
3886 2014-05-21 Pedro Alves <palves@redhat.com>
3888 * go32-nat.c (go32_target): Don't override to_shortname,
3889 to_longname or to_doc.
3891 2014-05-21 Pedro Alves <palves@redhat.com>
3893 * inf-child.c (inf_child_open): Remove mention of "child".
3894 (inf_child_target): Rename target to "native" instead of "child".
3896 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3898 * Makefile.in (SFILES): Delete "regset.c".
3899 (COMMON_OBS): Delete "regset.o".
3901 * regset.h (regset_alloc): Delete prototype.
3903 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3905 * sparc-linux-tdep.c (sparc32_linux_gregset)
3906 (sparc32_linux_fpregset): New static regset structures.
3907 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3908 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3910 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3911 (sparc64_linux_fpregset): New static regset structures.
3912 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3913 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3914 New static regset structures.
3915 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3916 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3917 New static regset structures.
3918 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3919 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3920 New static regset structures.
3921 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3922 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3923 New static regset structures.
3924 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3926 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3928 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3929 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3930 register maps ("regmaps") from "*regset" to "*regmap". Do this
3931 for all regmap types and variables.
3932 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3933 (sparc32_linux_supply_core_gregset)
3934 (sparc32_linux_collect_core_gregset)
3935 (sparc32_linux_supply_core_fpregset)
3936 (sparc32_linux_collect_core_fpregset): Likewise.
3937 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3938 (sparc_gregmap, sparc_fpregmap): ... these.
3939 (sparc_supply_gregset, sparc_collect_gregset)
3940 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3941 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3942 (_initialize_sparc_nat): Rename regmaps.
3943 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3944 (sparc_gregmap, sparc_fpregmap): ... these.
3945 (sparc_supply_gregset, sparc_collect_gregset)
3946 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3947 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3949 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3950 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3952 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3954 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3955 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3956 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3958 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3959 (sparc32_bsd_fpregset): Rename to...
3960 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3961 (sparc32_bsd_fpregmap): ... these.
3962 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3963 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3964 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3965 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3966 (struct sparc_gregmap, struct sparc_fpregmap)
3967 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3968 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3969 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3970 (sparc32_supply_regset, sparc32_collect_gregset)
3971 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3973 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3974 (sparc64_linux_ptrace_gregmap): ... this.
3975 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3976 (_initialize_sparc64_linux_nat): Rename regmaps.
3977 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3978 (sparc64_linux_core_gregmap): ... this.
3979 (sparc64_linux_supply_core_gregset)
3980 (sparc64_linux_collect_core_gregset)
3981 (sparc64_linux_supply_core_fpregset)
3982 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3983 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3984 (sparc64_sol2_fpregset): Rename to...
3985 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3986 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3987 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3989 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3990 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3991 (sparc64_bsd_fpregset): Rename to...
3992 (struct sparc_gregmap, sparc64_sol2_gregmap)
3993 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3994 (sparc64_bsd_fpregmap): ... these.
3995 (sparc64_supply_gregset, sparc64_collect_gregset)
3996 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3998 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3999 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4000 (sparc64fbsd_gregmap): ... this.
4001 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4002 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4004 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4005 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4006 (sparc64nbsd_collect_fpregset): Likewise.
4007 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4008 (sparc64nbsd_gregmap): ... this.
4009 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4011 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4012 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4013 (sparc64obsd_gregmap): ... this.
4014 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4016 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4017 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4018 (sparc32nbsd_gregmap): ... this.
4019 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4022 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4024 * score-tdep.c (score7_linux_gregset): New static regset
4026 (score7_linux_regset_from_core_section): Remove dynamic regset
4028 (score_gdbarch_init): Drop allocation of tdep structure.
4029 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4033 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4035 (am33_regset_from_core_section): Remove dynamic regset
4038 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4040 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4041 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4043 (mips_linux_regset_from_core_section): Remove dynamic regset
4045 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4046 'gregset64', 'fpregset', and 'fpregset64'.
4047 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4048 deleted tdep fields.
4050 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4052 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4054 (amd64_regset_from_core_section): Remove dynamic regset
4056 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4058 (amd64obsd_regset_from_core_section): Remove dynamic regset
4060 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4062 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4063 x86-common regset supply function.
4064 * i386-tdep.c (i386_collect_gregset): Make static.
4065 (i386_gregset): New global regset structure.
4066 (i386_fpregset, i386_xstateregset): New static regset structures.
4067 (i386_regset_from_core_section): Remove dynamic regset
4069 (i386_gdbarch_init): Remove initialization of tdep fields
4070 'gregset', 'fpregset', and 'xstateregset'.
4071 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4072 'fpregset', and 'xstateregset'.
4073 (i386_collect_gregset): Remove prototype.
4074 (i386_gregset): New declaration.
4075 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4077 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4080 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4082 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4083 (arm_linux_vfpregset): New static regset structures.
4084 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4086 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4087 and 'vfpregset' fields.
4089 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4091 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4092 (aarch64_linux_fpregset): New static regset structures.
4093 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4094 of regset structures.
4095 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4098 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4100 * regset.h (struct regset): Remove gdbarch field.
4101 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4102 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4103 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4105 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4106 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4107 (ppc32_linux_vsxregset): Likewise.
4108 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4109 via the regcache instead of the regset.
4110 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4111 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4112 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4113 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4116 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4118 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4119 Constify structures.
4120 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4121 (alphanbsd_aout_gregset): Likewise.
4122 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4123 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4125 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4126 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4128 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4129 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4130 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4131 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4132 * m88k-tdep.c (m88k_gregset): Likewise.
4133 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4134 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4135 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4136 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4137 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4138 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4139 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4140 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4141 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4143 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4144 * sh-tdep.h (sh_corefile_gregset): Likewise.
4145 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4146 * vax-tdep.c (vax_gregset): Likewise.
4148 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4150 Fix TLS access for -static -pthread.
4151 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4152 (try_thread_db_load_1): Initialize it.
4153 (thread_db_get_thread_local_address): Call it if LM is zero.
4154 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4155 * target.h (struct target_ops) (to_get_thread_local_address): Add
4156 load_module_addr comment.
4158 2014-05-21 Pedro Alves <palves@redhat.com>
4160 * dcache.c (dcache_read_memory_partial): If reading the cache line
4161 fails, fallback to reading just the memory the caller wanted.
4163 2014-05-20 Doug Evans <dje@google.com>
4165 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4166 instead of get_current_arch.
4168 2014-05-20 Pedro Alves <palves@redhat.com>
4170 * NEWS: Mention that compare-sections now works with all targets.
4172 * remote.c (PACKET_qCRC): New enum value.
4173 (remote_verify_memory): Don't send qCRC if the target has no
4174 execution. Use packet_support/packet_ok. If the target doesn't
4175 support the qCRC packet, fallback to a deep memory copy.
4176 (compare_sections_command): Say "target image" instead of "remote
4178 (_initialize_remote): Add PACKET_qCRC to the list of config
4179 packets that have no associated command. Extend comment.
4180 * target.c (simple_verify_memory, default_verify_memory): New
4182 * target.h (struct target_ops) <to_verify_memory>: Default to
4183 default_verify_memory.
4184 (simple_verify_memory): New declaration.
4185 * target-delegates.c: Regenerate.
4187 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4189 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4191 2014-05-20 Hui Zhu <hui@codesourcery.com>
4192 Yao Qi <yao@codesourcery.com>
4195 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4196 and change address of sp and pc.
4198 2014-05-19 Tom Tromey <tromey@redhat.com>
4200 * gdbtypes.c (rank_function): Use XNEWVEC.
4201 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4203 2014-05-19 Doug Evans <dje@google.com>
4205 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4206 build_type_unit_groups and moved closer to only caller. Remove
4207 arguments. All references updated. Remove outdated .gdb_index
4209 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4210 build_type_psymtabs_1.
4212 2014-05-19 Doug Evans <dje@google.com>
4214 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4215 n_type_unit_groups, all_type_unit_groups. All uses removed.
4216 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4217 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4218 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4219 (add_type_unit_group_to_table): Delete.
4221 2014-05-19 Doug Evans <dje@google.com>
4223 * eval.c (evaluate_subexp_standard): Add some comments.
4225 2014-05-17 Doug Evans <xdje42@gmail.com>
4227 * progspace.c (remove_program_space): Delete, unused.
4228 * progspace.h (remove_program_space): Ditto.
4230 2014-05-17 Doug Evans <xdje42@gmail.com>
4232 * inferior.c (prune_inferiors): Fix comment.
4233 (remove_inferior_command): Call prune_program_spaces.
4235 2014-05-16 Doug Evans <dje@google.com>
4237 New command line option -D.
4239 * main.c (set_gdb_data_directory): New function.
4240 (captured_main): Recognize -D. Flag error for --data-directory "".
4241 Call set_gdb_data_directory.
4242 (print_gdb_help): Print --data-directory, -D.
4243 * main.h (set_gdb_data_directory): Declare.
4244 * top.c (staged_gdb_datadir): New static global.
4245 (set_gdb_datadir): Call set_gdb_data_directory
4246 (show_gdb_datadir): New function.
4247 (init_main): Update init of data-directory parameter.
4249 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4251 Import the "dirfd" gnulib module.
4252 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4253 * gnulib/aclocal.m4: Update.
4254 * gnulib/config.in: Update.
4255 * gnulib/configure: Update.
4256 * gnulib/import/Makefile.am: Update.
4257 * gnulib/import/Makefile.in: Update.
4258 * gnulib/import/dirfd.c: New.
4259 * gnulib/import/m4/dirfd.m4: New.
4260 * gnulib/import/m4/gnulib-cache.m4: Update.
4261 * gnulib/import/m4/gnulib-comp.m4: Update.
4263 2014-05-16 Pierre Muller <muller@sourceware.org>
4264 Yao Qi <yao@codesourcery.com>
4266 * valprint.c (print_wchar): Move the code on checking whether
4267 W is a printable wide char to the default branch of switch
4268 statement below. Call wchar_printable instead of gdb_iswprint.
4270 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4272 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4273 ldr.w and ldrd instructions.
4275 2014-05-15 Doug Evans <dje@google.com>
4277 * dwarf2read.c (read_structure_type): Delete outdated comments.
4279 2014-05-14 Tom Tromey <tromey@redhat.com>
4281 * macrocmd.c (print_macro_definition): Reindent.
4283 2014-05-13 Doug Evans <xdje42@gmail.com>
4285 * python/py-cmd.c (cmdpy_completer): Add comment.
4286 (completers): Make const.
4288 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4290 * infrun.c (resume): Remove should_resume (unused). Move up
4291 declaration of resume_ptid.
4293 2014-05-13 Tom Tromey <tromey@redhat.com>
4295 * language.h (unop_type_check): Remove.
4296 (binop_type_check): Don't declare.
4298 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4300 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4301 call to regcache_raw_collect.
4303 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4305 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4306 mi_console->quote as the quoting character.
4308 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4310 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4312 2014-04-29 Tom Tromey <tromey@redhat.com>
4314 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4315 "show debug varobj".
4317 2014-05-07 Kyle McMartin <kyle@redhat.com>
4319 Pushed by Joel Brobecker <brobecker@adacore.com>.
4320 * aarch64-tdep.c (aarch64_software_single_step): New function.
4321 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4322 with aarch64_software_single_step.
4324 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4328 2014-05-05 Keith Seitz <keiths@redhat.com>
4330 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4331 variable or history value is successfully parsed.
4333 2014-05-05 Yao Qi <yao@codesourcery.com>
4334 Pedro Alves <palves@redhat.com>
4336 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4337 address of blocks that intersects the requested range. Trim
4338 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4340 * ctf.c (ctf_xfer_partial): Likewise.
4342 2014-05-05 Yao Qi <yao@codesourcery.com>
4344 * printcmd.c (display_command): Remove the check to
4345 target_has_execution.
4347 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4349 * ppcobsd-nat.c: Include "obsd-nat.h".
4350 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4352 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4354 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4356 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4357 and 16-bit signed and unsigned arguments. Update comment.
4358 (stap_parse_probe_arguments): Extend code to handle such
4359 arguments. Use warning instead of complaint to notify about
4360 unrecognized bitness.
4362 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4364 PR breakpoints/16889
4365 * stap-probe.c (stap_parse_probe_arguments): Simplify
4366 check for non-prefixed probes (i.e., probes whose
4367 arguments do not start with "N@"). Always set the
4368 argument type to a sane value.
4370 2014-05-01 David Taylor <dtaylor@emc.com>
4372 * remote.c (compare_sections_command): Add -r option to compare
4373 all loadable read-only sections.
4375 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4377 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4378 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4380 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4381 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4382 Remove unused CORE_ADDR argument. Update all callers.
4384 2014-04-29 Pedro Alves <palves@redhat.com>
4386 * remote.c (struct packet_config) <detect>: Extend comment.
4387 (add_packet_config_cmd): Don't set the config's detect or support
4389 (init_all_packet_configs): Also initialize the config's 'detect'
4391 (reset_all_packet_configs_support): New function.
4392 (remote_open_1): Call reset_all_packet_configs_support instead of
4393 init_all_packet_configs.
4394 (_initialize_remote): Initialize all packet configs. Assert that
4395 all packets have an associated command, except a few known
4398 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4400 * dwarf2read.c (read_subrange_type): Handle dynamic
4401 DW_AT_lower_bound attributes.
4403 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4405 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4406 dynamic bounds before computing its upper bound.
4407 (ada_discrete_type_low_bound): Same as above with the lower bound.
4409 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4411 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4412 range types. Adjust the array handling implementation to
4413 take advantage of this change.
4414 (resolve_dynamic_range): New function, mostly extracted from
4415 resolve_dynamic_bounds.
4416 (resolve_dynamic_array): New function, mostly extracted from
4417 resolve_dynamic_bounds.
4418 (resolve_dynamic_bounds): Delete.
4419 (resolve_dynamic_type): Reimplement. Add handling of
4420 TYPE_CODE_RANGE types.
4422 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4424 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4425 handling of parallel ___XA types.
4427 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4429 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4430 unnecessary second call to static_unwrap_type.
4432 2014-04-27 Hui Zhu <hui@codesourcery.com>
4434 * stack.c (print_frame_info): Call do_gdb_disassembly with
4435 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4437 2014-04-26 Doug Evans <xdje42@gmail.com>
4439 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4441 2014-04-25 Pedro Alves <palves@redhat.com>
4444 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4445 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4446 and newline from built string.
4447 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4448 (linux_ptrace_attach_fail_reason): ... this.
4449 * linux-nat.c (linux_nat_attach): Adjust to use
4450 linux_ptrace_attach_fail_reason.
4452 2014-04-25 Pedro Alves <palves@redhat.com>
4454 * remote.c (struct remote_state): Remove multi_process_aware,
4455 non_stop_aware, cond_tracepoints, cond_breakpoints,
4456 breakpoint_commands, fast_tracepoints, static_tracepoints,
4457 install_in_trace, disconnected_tracing,
4458 enable_disable_tracepoints, string_tracing, and
4459 augmented_libraries_svr4_read fields.
4460 (remote_multi_process_p): Move further below in the file.
4461 (struct packet_config): Add comments.
4462 (update_packet_config): Delete function.
4463 (show_packet_config_cmd): Use packet_config_support.
4464 (add_packet_config_cmd): Use NULL as set callback.
4465 (packet_ok): "set remote foo-packet"-style commands no longer
4466 change config->supported -- adjust.
4467 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4468 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4469 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4470 (PACKET_QNonStop, PACKET_multiprocess_feature)
4471 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4472 (PACKET_DisconnectedTracing_feature)
4473 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4474 (set_remote_protocol_packet_cmd): Delete function.
4475 (packet_config_support, packet_support): New functions.
4476 (set_remote_protocol_Z_packet_cmd): Don't call
4477 update_packet_config.
4478 (remote_query_attached, remote_pass_signals)
4479 (remote_program_signals, remote_threads_info)
4480 (remote_threads_extra_info, remote_start_remote): Use
4482 (remote_start_remote): Use packet_config_support and
4484 (init_all_packet_configs): Set all packets to unknown support,
4485 instead of calling update_packet_config.
4486 (remote_check_symbols): Use packet_support.
4487 (remote_supported_packet): Unconditionally set the packet config's
4489 (remote_multi_process_feature, remote_non_stop_feature)
4490 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4491 (remote_breakpoint_commands_feature)
4492 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4493 (remote_install_in_trace_feature)
4494 (remote_disconnected_tracing_feature)
4495 (remote_enable_disable_tracepoint_feature)
4496 (remote_string_tracing_feature)
4497 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4498 (remote_protocol_features): Adjust to use remote_supported_packet
4499 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4500 "ConditionalTracepoints", "ConditionalBreakpoints",
4501 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4502 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4503 "EnableDisableTracepoints", and "tracenz".
4504 (remote_query_supported): Use packet_support.
4505 (remote_open_1): Adjust.
4506 (extended_remote_attach_1): Use packet_support. Switch on the
4507 result of packet_ok instead of checking whether the packet ended
4509 (remote_vcont_resume): Use packet_support.
4510 (remote_resume, remote_stop_ns, fetch_register_using_p)
4511 (remote_prepare_to_store, store_register_using_P)
4512 (check_binary_download, remote_write_bytes): Use packet_support.
4513 (remote_vkill): Use packet_support. Switch on the result of
4514 packet_ok instead of checking whether the packet ended up
4516 (extended_remote_supports_disable_randomization): Use
4518 (extended_remote_run): Switch on the result of packet_ok instead
4519 of checking whether the packet ended up disabled.
4520 (remote_insert_breakpoint, remote_remove_breakpoint)
4521 (remote_insert_watchpoint, remote_remove_watchpoint)
4522 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4524 (remote_search_memory): Use packet_config_support.
4525 (remote_get_thread_local_address, remote_get_tib_address)
4526 (remote_hostio_send_command, remote_can_execute_reverse): Use
4528 (remote_supports_cond_tracepoints)
4529 (remote_supports_cond_breakpoints)
4530 (remote_supports_fast_tracepoints)
4531 (remote_supports_static_tracepoints)
4532 (remote_supports_install_in_trace)
4533 (remote_supports_enable_disable_tracepoint)
4534 (remote_supports_string_tracing)
4535 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4536 the packet config says the feature is enabled or disabled.
4537 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4538 (remote_get_trace_status): Use packet_support.
4539 (remote_set_disconnected_tracing): Adjust to check whether the
4540 feature is enabled with packet_support.
4541 (remote_set_trace_buffer_size, remote_use_agent)
4542 (remote_can_use_agent, remote_supports_btrace): Use
4544 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4545 Use packet_config_support.
4546 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4547 the packet config says the feature is enabled or disabled.
4548 (set_range_stepping): Use packet_support.
4550 2014-04-25 Tom Tromey <tromey@redhat.com>
4552 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4555 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4557 * NEWS: Mention support for C99 variable length arrays.
4559 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4561 * ada-lang.c (standard_exc): Expand introductory comment.
4563 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4564 Walfred Tedeschi <walfred.tedeschi@intel.com>
4566 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4568 (amd64_linux_read_description): Add code to handle AVX512 xstate
4569 mask and return respective tdesc.
4570 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4571 and features/i386/x32-avx512-linux.c.
4572 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4573 (amd64_linux_core_read_description): Add code to handle AVX512
4574 xstate mask and return respective tdesc.
4575 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4576 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4578 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4579 (tdesc_amd64_avx512_linux): New prototype.
4580 (tdesc_x32_avx512_linux): Likewise.
4581 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4582 features/i386/x32-avx512.c.
4583 (amd64_ymm_avx512_names): New register names for pseudo
4585 (amd64_ymmh_avx512_names): New register names for raw registers
4587 (amd64_k_names): New register names for K registers.
4588 (amd64_zmmh_names): New register names for ZMM raw registers.
4589 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4590 (amd64_xmm_avx512_names): New register names for XMM16-31
4592 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4594 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4595 if feature is present.
4596 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4597 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4598 (AMD64_NUM_REGS): Adjust to new number of registers.
4599 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4600 registers supplied via XSTATE by AVX512 registers.
4601 (i386_linux_read_description): Add case for AVX512.
4602 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4603 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4604 (i386_linux_core_read_description): Add case for AVX512.
4605 (i386_linux_init_abi): Install supported register note section
4607 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4609 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4610 registers to be number of zmm7h + 1.
4611 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4612 * i386-tdep.c: Include features/i386/i386-avx512.c.
4613 (i386_zmm_names): Add ZMM pseudo register names array.
4614 (i386_zmmh_names): Add ZMM raw register names array.
4615 (i386_k_names): Add K raw register names array.
4616 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4617 registers. AVX512 has 16 more ZMM registers than there are YMM
4619 (i386_zmmh_regnum_p): Add function to look up register number of
4621 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4622 (i386_k_regnum_p): Likewise for K raw registers.
4623 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4624 registers added by AVX512.
4625 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4626 registers added by AVX512.
4627 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4629 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4630 (i386_pseudo_register_name): Add ZMM pseudo registers.
4631 (i386_zmm_type): Construct and return vector registers type for ZMM
4633 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4634 ZMM0-31 pseudo registers and K registers.
4635 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4636 and YMM16-31 registers from register cache.
4637 (i386_pseudo_register_write): Add code to write K, ZMM and
4639 (i386_register_reggroup_p): Add code to include/exclude AVX512
4640 registers in/from respective register groups.
4641 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4642 registers if feature is present in xcr0.
4643 (i386_gdbarch_init): Add code to initialize AVX512 feature
4644 variables in tdep structure, wire in pseudo registers and call
4645 initialize_tdesc_i386_avx512.
4646 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4648 (i386_regnum): Add AVX512 registers.
4649 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4650 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4651 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4652 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4654 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4655 (i386_ymm_avx512_regnum_p): Likewise.
4656 (i386_k_regnum_p): Likewise.
4657 (i386_zmm_regnum_p): Likewise.
4658 (i386_zmmh_regnum_p): Likewise.
4659 * i387-tdep.c : Update year in copyright notice.
4660 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4662 (XSAVE_YMM_AVX512_ADDR): New macro.
4663 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4665 (XSAVE_XMM_AVX512_ADDR): New macro.
4666 (xsave_avx512_k_offset): New table for K register offsets in
4668 (XSAVE_AVX512_K_ADDR): New macro.
4669 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4671 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4672 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4674 (i387_collect_xsave): Add code to collect AVX512 registers from
4676 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4677 of XMM16-31 registers.
4678 (I387_NUM_K_REGS): New define for number of K registers.
4679 (I387_K0_REGNUM): New define for K0 register number.
4680 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4681 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4682 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4684 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4685 (I387_XMM16_REGNUM): New define for XMM16 register number.
4686 (I387_YMM0_REGNUM): New define for YMM0 register number.
4687 (I387_KEND_REGNUM): New define for last K register number.
4688 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4689 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4691 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4693 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4695 * features/Makefile: Add AVX512 related files.
4696 * features/i386/32bit-avx512.xml: New file.
4697 * features/i386/64bit-avx512.xml: Likewise.
4698 * features/i386/amd64-avx512-linux.c: Likewise.
4699 * features/i386/amd64-avx512-linux.xml: Likewise.
4700 * features/i386/amd64-avx512.c: Likewise.
4701 * features/i386/amd64-avx512.xml: Likewise.
4702 * features/i386/i386-avx512-linux.c: Likewise.
4703 * features/i386/i386-avx512-linux.xml: Likewise.
4704 * features/i386/i386-avx512.c: Likewise.
4705 * features/i386/i386-avx512.xml: Likewise.
4706 * features/i386/x32-avx512-linux.c: Likewise.
4707 * features/i386/x32-avx512-linux.xml: Likewise.
4708 * features/i386/x32-avx512.c: Likewise.
4709 * features/i386/x32-avx512.xml: Likewise.
4710 * regformats/i386/amd64-avx512-linux.dat: New file.
4711 * regformats/i386/amd64-avx512.dat: Likewise.
4712 * regformats/i386/i386-avx512-linux.dat: Likewise.
4713 * regformats/i386/i386-avx512.dat: Likewise.
4714 * regformats/i386/x32-avx512-linux.dat: Likewise.
4715 * regformats/i386/x32-avx512.dat: Likewise.
4716 * NEWS: Add note about new support for AVX512.
4719 2014-04-23 Pedro Alves <palves@redhat.com>
4721 * breakpoint.c (insert_bp_location): Tolerate errors if the
4722 breakpoint is set in a user-loaded objfile.
4723 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4724 location is marked shlib_disabled. If the breakpoint is set in a
4725 user-loaded objfile is a GDB-side memory breakpoint, validate it
4726 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4727 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4729 * mem-break.c (memory_validate_breakpoint): New function.
4730 * objfiles.c (userloaded_objfile_contains_address_p): New
4732 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4733 * target.h (memory_validate_breakpoint): New declaration.
4735 2014-04-23 Pedro Alves <palves@redhat.com>
4737 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4738 the breakpoint is set in a shared library, only suppress
4739 errors for software breakpoints, not hardware breakpoints.
4741 2014-04-22 Pedro Alves <palves@redhat.com>
4743 * infrun.c (schedlock_applies): New function, factored out from
4744 find_thread_needs_step_over.
4745 (find_thread_needs_step_over): Use it.
4746 (switch_back_to_stepped_thread): Always clear trap_expected if the
4747 step over is finished. Return early if scheduler locking applies.
4748 Look for the stepping thread and a potential step-over thread with
4750 (currently_stepping_or_nexting_callback): Delete.
4752 2014-04-22 Nick Clifton <nickc@redhat.com>
4754 * NEWS: Mention that ARM sim now supports tracing.
4756 2014-04-22 Yao Qi <yao@codesourcery.com>
4758 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4760 * tracefile.c (tracefile_fetch_registers): ... it. New
4762 * tracefile.h (tracefile_fetch_registers): Declare.
4763 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4764 tracefile_fetch_registers.
4766 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4769 * windows-nat.c (thread_rec): Don't display a warning when
4770 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4771 fails for any reason, set th->suspended to -1, so that we don't
4772 try to resume such a thread. Also, don't return NULL in these
4773 cases, to avoid completely ruin the session due to "PC register is
4774 not available" error.
4775 (do_windows_fetch_inferior_registers): Check errors in
4776 GetThreadContext call.
4777 (windows_continue): Accept an additional argument KILLED; if not
4778 zero, ignore errors in the SetThreadContext call, since the
4779 inferior was killed and is shutting down.
4780 (windows_resume, get_windows_debug_event)
4781 (windows_create_inferior, windows_mourn_inferior)
4782 (windows_kill_inferior): All callers of windows_continue changed
4783 to adjust to its new calling sequence.
4785 2014-04-19 Yao Qi <yao@codesourcery.com>
4787 * ctf.c (ctf_open): Call post_create_inferior.
4789 2014-04-19 Yao Qi <yao@codesourcery.com>
4791 * ctf.c (handle_id): New static variable.
4792 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4793 value. Get the declaration of event "register" and get length
4794 of field "contents".
4796 2014-04-19 Yao Qi <yao@codesourcery.com>
4798 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4800 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4802 * valops.c (oload_method_static): Remove unnecessary argument
4803 METHOD. Update all callers.
4805 2014-04-18 Pedro alves <palves@redhat.com>
4806 Tom Tromey <tromey@redhat.com>
4809 * frame.c (get_prev_frame_1): Rename to ...
4810 (get_prev_frame_always): ... this, and make extern. Adjust.
4811 (skip_artificial_frames): Use get_prev_frame_always.
4812 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4813 (get_frame_unwind_stop_reason): Adjust to rename.
4814 * frame.h (get_prev_frame_always): Declare.
4815 * inline-frame.c: Include frame.h.
4816 (inline_frame_this_id): Use get_prev_frame_always.
4818 2014-04-18 Tristan Gingold <gingold@adacore.com>
4820 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4821 code by using bfd_mach_o_get_base_address.
4823 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4825 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4826 (spu_ax_pseudo_register_collect): New function.
4827 (spu_ax_pseudo_register_push_stack): Likewise.
4828 (spu_dwarf_reg_to_regnum): Likewise.
4829 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4831 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4833 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4834 Replace FRAME argument with FRAME_ID.
4835 * gdbarch.c, gdbarch.h: Regenerate.
4836 * findvar.c (default_value_from_register): Add GDBARCH argument;
4837 replace FRAME by FRAME_ID. No longer call get_frame_id.
4838 (value_from_register): Update call to gdbarch_value_from_register.
4839 * value.h (default_value_from_register): Update prototype.
4840 * s390-linux-tdep.c (s390_value_from_register): Update interface
4841 and call to default_value_from_register.
4842 * spu-tdep.c (spu_value_from_register): Likewise.
4844 * findvar.c (address_from_register): Remove TYPE argument.
4845 Do not call value_from_register; use gdbarch_value_from_register
4846 with null_frame_id instead.
4847 * value.h (address_from_register): Update prototype.
4848 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4849 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4850 address_from_register interface change.
4852 2014-04-17 Yao Qi <yao@codesourcery.com>
4854 * gdbtypes.h: Update comments to link to types and macros'
4857 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4859 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4861 2014-04-16 Keith Seitz <keiths@redhat.com>
4864 * dwarf2read.c (skip_one_die): Check that all relative-offset
4865 sibling DIEs fall within range of the current reader's buffer.
4866 (read_partial_die): Likewise.
4868 2014-04-16 Keith Seitz <keiths@redhat.com>
4871 * cp-namespace.c (lookup_symbol_file): If the type name of
4872 `this' is NULL, return immediately.
4874 2014-04-14 Keith Seitz <keiths@redhat.com>
4877 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4878 from symbol_matches_domain in symtab.c. All local callers
4879 of symbol_matches_domain updated.
4880 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4881 search STRUCT_DOMAIN.
4882 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4883 independently. standard_lookup will do that automatically.
4884 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4885 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4886 (cp_lookup_symbol_in_namespace): Likewise.
4887 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4888 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4889 may return a STRUCT_DOMAIN match.
4890 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4891 * cp-support.c: Include language.h.
4892 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4894 * psymtab.c (match_partial_symbol): Compare the requested
4895 domain with the symbol's domain directly.
4896 (lookup_partial_symbol): Likewise.
4897 * symtab.c (lookup_symbol_in_language): Explain when/why
4898 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4899 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4900 appropriate languages.
4901 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4902 and moved to ada-lang.c
4903 (lookup_block_symbol): Explain that this function only returns
4904 symbol matching the requested DOMAIN.
4905 Compare the requested domain with the symbol's domain directly.
4906 (iterate_over_symbols): Compare the requested domain with the
4907 symbol's domain directly.
4908 * symtab.h (symbol_matches_domain): Remove.
4910 2014-04-14 Tom Tromey <tromey@redhat.com>
4913 * c-exp.y (type_aggregate_p): New function.
4914 (qualified_name, classify_inner_name): Use it.
4915 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4916 and TYPE_TARGET_TYPE of an enum type.
4917 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4919 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4920 handle TYPE_DECLARED_CLASS.
4921 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4923 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4924 * valops.c (enum_constant_from_type): New function.
4925 (value_aggregate_elt): Use it.
4926 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4929 2014-04-14 Tom Tromey <tromey@redhat.com>
4931 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4932 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4934 * value.h (value_aggregate_elt): Update.
4936 2014-04-14 Tom Tromey <tromey@redhat.com>
4938 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4940 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4942 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4943 (evaluate_subexp_standard): Pass noside argument.
4944 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4945 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4946 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4947 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4948 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4952 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4953 points to a constant blob.
4955 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4957 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4958 property and store it as the high bound and flag the range accordingly.
4959 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4960 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4961 * gdbtypes.h (enum range_flags): New enum.
4962 (struct range_bounds): Add flags member.
4964 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4966 * c-typeprint.c (c_type_print_varspec_suffix): Added
4967 check for not yet resolved high bound. If unresolved, print
4968 "variable length" string to the console instead of random
4971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4973 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4975 (ada_template_to_fixed_record_type_1): Likewise.
4976 (ada_to_fixed_type_1): Likewise.
4977 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4978 (cp_print_value): Likewise.
4979 * d-valprint.c (dynamic_array_type): Likewise.
4980 * findvar.c (address_of_variable): Likewise.
4981 * jv-valprint.c (java_value_print): Likewise.
4982 * valops.c (value_ind): Likewise.
4983 * value.c (coerce_ref): Likewise.
4985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4987 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4988 value and retrieve the dynamic type size.
4990 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4992 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4993 passed to sizeof is dynamic evaluate the argument to compute the length.
4995 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4996 Joel Brobecker <brobecker@adacore.com>
4998 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4999 (dwarf2_evaluate_property): New function.
5000 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5001 * dwarf2read.c (attr_to_dynamic_prop): New function.
5002 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5004 * gdbtypes.c: Include dwarf2loc.h.
5005 (is_dynamic_type): New function.
5006 (resolve_dynamic_type): New function.
5007 (resolve_dynamic_bounds): New function.
5008 (get_type_length): New function.
5009 (check_typedef): Use get_type_length to compute type length.
5010 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5011 (TYPE_LOW_BOUND_KIND): New macro.
5012 (is_dynamic_type): New function prototype.
5013 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5014 to resolve dynamic properties of the type. Update comment.
5015 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5017 2014-04-14 Richard Henderson <rth@redhat.com>
5019 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5021 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5022 Doug Evans <xdje42@gmail.com>
5024 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5025 dereference TYPE_CODE_REF values.
5027 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5029 Revert the following changes due to regressions:
5031 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5032 (dwarf2_evaluate_property): New function.
5033 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5034 * dwarf2read.c (attr_to_dynamic_prop): New function.
5035 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5037 * gdbtypes.c: Include dwarf2loc.h.
5038 (is_dynamic_type): New function.
5039 (resolve_dynamic_type): New function.
5040 (resolve_dynamic_bounds): New function.
5041 (get_type_length): New function.
5042 (check_typedef): Use get_type_length to compute type length.
5043 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5044 (TYPE_LOW_BOUND_KIND): New macro.
5045 (is_dynamic_type): New function prototype.
5046 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5047 to resolve dynamic properties of the type. Update comment.
5048 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5050 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5051 passed to sizeof is dynamic evaluate the argument to compute the length.
5053 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5054 value and retrieve the dynamic type size.
5056 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5057 (ada_template_to_fixed_record_type_1): Likewise.
5058 (ada_to_fixed_type_1): Likewise.
5059 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5060 (cp_print_value): Likewise.
5061 * d-valprint.c (dynamic_array_type): Likewise.
5062 * eval.c (evaluate_subexp_with_coercion): Likewise.
5063 * findvar.c (address_of_variable): Likewise.
5064 * jv-valprint.c (java_value_print): Likewise.
5065 * valops.c (value_ind): Likewise.
5066 * value.c (coerce_ref): Likewise.
5068 * c-typeprint.c (c_type_print_varspec_suffix): Added
5069 check for not yet resolved high bound. If unresolved, print
5070 "variable length" string to the console instead of random
5073 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5074 property and store it as the high bound and flag the range accordingly.
5075 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5076 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5077 * gdbtypes.h (enum range_flags): New enum.
5078 (struct range_bounds): Add flags member.
5080 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5081 points to a constant blob.
5083 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5084 (evaluate_subexp_standard): Pass noside argument.
5085 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5086 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5087 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5088 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5089 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5091 2014-04-11 Keith Seitz <keiths@redhat.com>
5094 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5095 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5098 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5100 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5101 (evaluate_subexp_standard): Pass noside argument.
5102 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5103 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5104 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5105 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5106 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5110 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5111 points to a constant blob.
5113 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5115 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5116 property and store it as the high bound and flag the range accordingly.
5117 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5118 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5119 * gdbtypes.h (enum range_flags): New enum.
5120 (struct range_bounds): Add flags member.
5122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5124 * c-typeprint.c (c_type_print_varspec_suffix): Added
5125 check for not yet resolved high bound. If unresolved, print
5126 "variable length" string to the console instead of random
5129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5131 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5132 (ada_template_to_fixed_record_type_1): Likewise.
5133 (ada_to_fixed_type_1): Likewise.
5134 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5135 (cp_print_value): Likewise.
5136 * d-valprint.c (dynamic_array_type): Likewise.
5137 * eval.c (evaluate_subexp_with_coercion): Likewise.
5138 * findvar.c (address_of_variable): Likewise.
5139 * jv-valprint.c (java_value_print): Likewise.
5140 * valops.c (value_ind): Likewise.
5141 * value.c (coerce_ref): Likewise.
5143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5145 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5146 value and retrieve the dynamic type size.
5148 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5150 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5151 passed to sizeof is dynamic evaluate the argument to compute the length.
5153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5155 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5156 (dwarf2_evaluate_property): New function.
5157 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5158 * dwarf2read.c (attr_to_dynamic_prop): New function.
5159 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5161 * gdbtypes.c: Include dwarf2loc.h.
5162 (is_dynamic_type): New function.
5163 (resolve_dynamic_type): New function.
5164 (resolve_dynamic_bounds): New function.
5165 (get_type_length): New function.
5166 (check_typedef): Use get_type_length to compute type length.
5167 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5168 (TYPE_LOW_BOUND_KIND): New macro.
5169 (is_dynamic_type): New function prototype.
5170 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5171 to resolve dynamic properties of the type. Update comment.
5172 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5176 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5177 declaring high/low bounds and change uses accordingly. Call
5178 create_range_type instead of create_static_range_type.
5179 * gdbtypes.c (create_range_type): New function.
5180 (create_range_type): Convert bounds into struct bound_prop and pass
5181 them to create_range_type.
5182 * gdbtypes.h (struct bound_prop): New struct.
5183 (create_range_type): New function prototype.
5184 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5185 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5186 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5188 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5190 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5192 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5193 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5194 * ada-lang.c: All uses of create_range_type updated.
5195 * coffread.c: All uses of create_range_type updated.
5196 * dwarf2read.c: All uses of create_range_type updated.
5197 * f-exp.y: All uses of create_range_type updated.
5198 * m2-valprint.c: All uses of create_range_type updated.
5199 * mdebugread.c: All uses of create_range_type updated.
5200 * stabsread.c: All uses of create_range_type updated.
5201 * valops.c: All uses of create_range_type updated.
5202 * valprint.c: All uses of create_range_type updated.
5204 2014-04-10 Pedro Alves <palves@redhat.com>
5206 * breakpoint.c (single_step_breakpoints)
5207 (single_step_gdbarch): Move up in the file.
5208 (one_breakpoint_xfer_memory): New function, factored out from ...
5209 (breakpoint_xfer_memory): ... here. Also process single-step
5212 2014-04-09 Tristan Gingold <gingold@adacore.com>
5214 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5216 (darwin_decode_exception_message): Free port only after use.
5218 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5220 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5221 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5222 when setting the size of call_length.
5224 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5226 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5227 dereference TYPE_CODE_REF values.
5229 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5231 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5232 end of warning message.
5234 2014-04-03 Doug Evans <dje@google.com>
5236 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5237 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5239 2014-04-02 Alan Modra <amodra@gmail.com>
5241 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5242 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5243 (struct symbol_file_add_from_memory_args): Add size field.
5244 (find_vdso_size): New function.
5245 (add_vsyscall_page): Attempt to find vdso size.
5247 2014-04-01 Doug Evans <dje@google.com>
5249 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5251 2014-04-01 Tristan Gingold <gingold@adacore.com>
5253 * darwin-nat.c (darwin_encode_reply): Add prototype.
5254 (darwin_decode_exception_message): Reply to unknown inferiors.
5255 (darwin_decode_message): Handle message by id. Ignore message
5256 to unknown inferior.
5257 (darwin_wait): Discard unknown messages, add debug trace.
5259 2014-03-31 Doug Evans <dje@google.com>
5261 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5264 2014-03-31 Doug Evans <dje@google.com>
5266 New option "set print symbol-loading".
5268 * solib.c (solib_read_symbols): Only print symbol loading messages
5270 (solib_add): If symbol loading is in "brief" mode, notify user
5271 symbols are being loaded.
5272 (reload_shared_libraries_1): Ditto.
5273 * symfile.c (print_symbol_loading_off): New static global.
5274 (print_symbol_loading_brief): New static global.
5275 (print_symbol_loading_full): New static global.
5276 (print_symbol_loading_enums): New static global.
5277 (print_symbol_loading): New static global.
5278 (print_symbol_loading_p): New function.
5279 (symbol_file_add_with_addrs): Only print symbol loading messages
5281 (_initialize_symfile): Register "print symbol-loading" set/show
5283 * symfile.h (print_symbol_loading_p): Declare.
5285 2014-03-30 Doug Evans <xdje42@gmail.com>
5287 * infrun.c (set_last_target_status): New function.
5288 (handle_inferior_event): Call it.
5290 2014-03-30 Doug Evans <xdje42@gmail.com>
5292 * inferior.h (enum stop_kind): Improve comment.
5294 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5296 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5297 a reference, strip the reference layer before calling
5298 the lang_ops value_has_mutated callback.
5300 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5302 Remove some globals from our parser.
5303 * language.c (unk_lang_parser): Add "struct parser_state"
5305 * language.h (struct language_defn) <la_parser>: Likewise.
5306 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5307 (initialize_expout): Add "struct parser_state" argument.
5308 Rewrite function to use the parser state.
5309 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5310 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5311 write_exp_elt_longcst, write_exp_elt_dblcst,
5312 write_exp_elt_decfloatcst, write_exp_elt_type,
5313 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5314 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5315 write_dollar_variable): Likewise.
5316 (parse_exp_in_context_1): Use parser state.
5317 (insert_type_address_space): Add "struct parser_state" argument.
5319 (increase_expout_size): New function.
5320 * parser-defs.h: Forward declare "struct language_defn" and
5321 "struct parser_state".
5322 (expout, expout_size, expout_ptr): Remove extern declarations.
5323 (parse_gdbarch, parse_language): Rewrite macro declarations to
5324 accept the parser state.
5325 (struct parser_state): New struct.
5326 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5327 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5328 write_exp_elt_decfloatcst, write_exp_elt_type,
5329 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5330 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5331 write_exp_msymbol, write_dollar_variable,
5332 mark_struct_expression, insert_type_address_space): Add "struct
5333 parser_state" argument.
5334 (increase_expout_size): New function.
5335 * utils.c (do_clear_parser_state): New function.
5336 (make_cleanup_clear_parser_state): Likewise.
5337 * utils.h (make_cleanup_clear_parser_state): New function
5339 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5340 Update calls to write_exp* in order to pass the parser state.
5341 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5342 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5343 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5344 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5345 * stap-probe.c (stap_parse_register_operand): Likewise.
5346 (stap_parse_single_operand): Likewise.
5347 (stap_parse_argument_1): Likewise.
5348 (stap_parse_argument): Use parser state.
5349 * stap-probe.h: Include "parser-defs.h".
5350 (struct stap_parse_info) <pstate>: New field.
5351 * c-exp.y (parse_type): Rewrite to use parser state.
5352 (yyparse): Redefine to c_parse_internal.
5353 (pstate): New global variable.
5354 (parse_number): Add "struct parser_state" argument.
5355 (write_destructor_name): Likewise.
5356 (type_exp): Update calls to write_exp* and similars in order to
5358 (exp1, exp, variable, qualified_name, space_identifier,
5359 typename, typebase): Likewise.
5360 (write_destructor_name, parse_number, lex_one_token,
5361 classify_name, classify_inner_name, c_parse): Add "struct
5362 parser_state" argument. Update function to use parser state.
5363 * c-lang.h: Forward declare "struct parser_state".
5364 (c_parse): Add "struct parser_state" argument.
5365 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5366 (yyparse): Redefine macro to ada_parse_internal.
5367 (pstate): New variable.
5368 (write_int, write_object_renaming, write_var_or_type,
5369 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5370 type_int, type_long, type_long_long, type_float, type_double,
5371 type_long_double, type_char, type_boolean, type_system_address):
5372 Add "struct parser_state" argument.
5373 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5374 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5375 var_or_type, aggregate, aggregate_component_list,
5376 positional_list, others, component_group,
5377 component_associations): Update calls to write_exp* and similar
5378 functions in order to use parser state.
5379 (ada_parse, write_var_from_sym, write_int,
5380 write_exp_op_with_string, write_object_renaming,
5381 find_primitive_type, write_selectors, write_ambiguous_var,
5382 write_var_or_type, write_name_assoc, type_int, type_long,
5383 type_long_long, type_float, type_double, type_long_double,
5384 type_char, type_boolean, type_system_address): Add "struct
5385 parser_state" argument. Adjust function to use parser state.
5386 * ada-lang.c (parse): Likewise.
5387 * ada-lang.h: Forward declare "struct parser_state".
5388 (ada_parse): Add "struct parser_state" argument.
5389 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5390 calls to both functions.
5391 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5393 (yyparse): Redefine macro to f_parse_internal.
5394 (pstate): New variable.
5395 (parse_number): Add "struct parser_state" argument.
5396 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5397 and similars in order to use parser state.
5398 (parse_number): Adjust code to use parser state.
5400 (f_parse): New function.
5401 * f-lang.h: Forward declare "struct parser_state".
5402 (f_parse): Add "struct parser_state" argument.
5403 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5405 (yyparse): Redefine macro for java_parse_internal.
5406 (pstate): New variable.
5407 (push_expression_name, push_expression_name, insert_exp): Add
5408 "struct parser_state" argument.
5409 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5410 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5411 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5412 PostIncrementExpression, PostDecrementExpression,
5413 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5414 UnaryExpressionNotPlusMinus, CastExpression,
5415 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5416 RelationalExpression, EqualityExpression, AndExpression,
5417 ExclusiveOrExpression, InclusiveOrExpression,
5418 ConditionalAndExpression, ConditionalOrExpression,
5419 ConditionalExpression, Assignment, LeftHandSide): Update
5420 calls to write_exp* and similars in order to use parser state.
5421 (parse_number): Ajust code to use parser state.
5423 (java_parse): New function.
5424 (push_variable): Add "struct parser_state" argument. Adjust
5425 code to user parser state.
5426 (push_fieldnames, push_qualified_expression_name,
5427 push_expression_name, insert_exp): Likewise.
5428 * jv-lang.h: Forward declare "struct parser_state".
5429 (java_parse): Add "struct parser_state" argument.
5430 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5432 (yyparse): Redefine macro to m2_parse_internal.
5433 (pstate): New variable.
5434 (type_exp, exp, fblock, variable, type): Update calls to
5435 write_exp* and similars to use parser state.
5437 (m2_parse): New function.
5438 * m2-lang.h: Forward declare "struct parser_state".
5439 (m2_parse): Add "struct parser_state" argument.
5440 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5441 * objc-lang.h: Forward declare "struct parser_state".
5442 (end_msglist): Add "struct parser_state" argument.
5443 * p-exp.y (parse_type): Rewrite macro to use parser state.
5444 (yyparse): Redefine macro to pascal_parse_internal.
5445 (pstate): New variable.
5446 (parse_number): Add "struct parser_state" argument.
5447 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5448 write_exp* and similars in order to use parser state.
5449 (parse_number, yylex): Adjust code to use parser state.
5450 (pascal_parse): New function.
5451 * p-lang.h: Forward declare "struct parser_state".
5452 (pascal_parse): Add "struct parser_state" argument.
5453 * go-exp.y (parse_type): Rewrite macro to use parser state.
5454 (yyparse): Redefine macro to go_parse_internal.
5455 (pstate): New variable.
5456 (parse_number): Add "struct parser_state" argument.
5457 (type_exp, exp1, exp, variable, type): Update calls to
5458 write_exp* and similars in order to use parser state.
5459 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5460 to use parser state.
5461 (go_parse): Likewise.
5462 * go-lang.h: Forward declare "struct parser_state".
5463 (go_parse): Add "struct parser_state" argument.
5465 2014-03-27 Doug Evans <dje@google.com>
5467 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5469 2014-03-27 Doug Evans <dje@google.com>
5471 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5472 Remove argument abbrev_section. All callers updated.
5474 2014-03-27 Doug Evans <dje@google.com>
5476 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5477 addr_base, ranges_base.
5479 2014-03-26 Keith Seitz <keiths@redhat.com>
5481 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5482 types, not VAR_DOMAIN.
5484 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5486 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5488 * features/nios2-linux.c: Regenerated.
5489 * features/nios2.c: Regenerated.
5491 2014-03-25 Pedro Alves <palves@redhat.com>
5493 * cli/cli-script.c (script_from_file): Force the interpreter to
5496 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5498 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5499 small stack allocation.
5501 2014-03-24 Tristan Gingold <gingold@adacore.com>
5503 * darwin-nat.c (exc_server): Remove unused prototype.
5504 (darwin_dump_message): Correctly display data on x86_64.
5505 (darwin_encode_reply): Fix style.
5506 Add comments and fix indentation.
5508 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5510 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5512 2014-03-22 Doug Evans <xdje42@gmail.com>
5514 * infcmd.c: Whitespace fixes.
5515 (interrupt_command): Merge two function comments into one.
5517 2014-03-22 Doug Evans <xdje42@gmail.com>
5519 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5522 2014-03-22 Yao Qi <yao@codesourcery.com>
5524 * remote.c (target_read_live_memory): Remove.
5525 (memory_xfer_live_readonly_partial): Rename it to
5526 remote_xfer_live_readonly_partial. Remove argument 'object'.
5527 All callers updated. Call remote_read_bytes_1
5528 instead of target_read_live_memory.
5529 * tracepoint.c (set_traceframe_number): Remove.
5530 (make_cleanup_restore_traceframe_number): Likewise .
5531 * tracepoint.h (set_traceframe_number): Remove declaration.
5532 (make_cleanup_restore_traceframe_number): Likewise.
5534 2014-03-22 Yao Qi <yao@codesourcery.com>
5536 * remote.c (remote_read_bytes): Move code on reading from the
5538 (remote_read_bytes_1): ... here. New function.
5540 2014-03-22 Yao Qi <yao@codesourcery.com>
5542 * ctf.c (ctf_xfer_partial): Check the return value of
5543 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5544 return TARGET_XFER_UNAVAILABLE.
5545 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5546 * target.c (target_read_live_memory): Move it to remote.c.
5547 (memory_xfer_live_readonly_partial): Likewise.
5548 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5549 * remote.c (target_read_live_memory): Moved from target.c.
5550 (memory_xfer_live_readonly_partial): Likewise.
5551 (remote_read_bytes): Factored out from
5552 memory_xfer_partial_1.
5554 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5556 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5559 2014-03-21 Pedro Alves <palves@redhat.com>
5561 * infrun.c (normal_stop): Extend comment.
5563 2014-03-21 Hui Zhu <hui@codesourcery.com>
5564 Pedro Alves <palves@redhat.com>
5566 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5568 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5569 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5570 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5572 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5574 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5575 `z' formatted output modifier.
5577 2014-03-20 Tom Tromey <tromey@redhat.com>
5578 Sergio Durigan Junior <sergiodj@redhat.com>
5580 * probe.c (parse_probes): Turn assert into an ordinary error.
5581 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5582 exceptions when parsing probes. Rearrange the code for clarity.
5584 2014-03-20 Tom Tromey <tromey@redhat.com>
5587 * top.c (execute_command): Only dispatch events if the command
5590 2014-03-20 Tom Tromey <tromey@redhat.com>
5593 * infcall.c: Include event-top.h.
5594 (run_inferior_call): Call async_disable_stdin if needed.
5596 2014-03-20 Pedro Alves <palves@redhat.com>
5598 * infrun.c (prepare_to_proceed): Delete.
5599 (thread_still_needs_step_over): New function.
5600 (find_thread_needs_step_over): New function.
5601 (proceed): If the current thread needs a step-over, set its
5602 steping_over_breakpoint flag. Adjust to use
5603 find_thread_needs_step_over instead of prepare_to_proceed.
5604 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5605 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5607 (switch_back_to_stepped_thread): Step over breakpoints of all
5608 threads not the stepping thread, before switching back to the
5611 2014-03-20 Pedro Alves <palves@redhat.com>
5613 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5615 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5616 * infrun.c (saved_singlestep_ptid)
5617 (stepping_past_singlestep_breakpoint): Delete.
5618 (resume): Remove stepping_past_singlestep_breakpoint handling.
5619 (proceed): Store the prev_pc of the stepping thread too.
5620 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5622 (enum infwait_states): Delete infwait_thread_hop_state.
5623 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5625 (handle_inferior_event): Adjust.
5626 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5627 handling and the thread-hop code. Before removing single-step
5628 breakpoints, check whether the thread hit a single-step breakpoint
5629 of another thread. If it did, the trap is not a random signal.
5630 (switch_back_to_stepped_thread): If the event thread hit a
5631 single-step breakpoint, unblock it before switching to the
5632 stepping thread. Handle the case of the stepped thread having
5634 (keep_going): Handle the case of the current thread moving past a
5635 single-step breakpoint.
5637 2014-03-20 Pedro Alves <palves@redhat.com>
5640 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5641 are being stepped over.
5642 (breakpoint_address_match): Make extern.
5643 * breakpoint.h (breakpoint_address_match): New declaration.
5644 * inferior.h (stepping_past_instruction_at): New declaration.
5645 * infrun.c (struct step_over_info): New type.
5646 (step_over_info): New global.
5647 (set_step_over_info, clear_step_over_info)
5648 (stepping_past_instruction_at): New functions.
5649 (handle_inferior_event): Clear the step-over info when
5650 trap_expected is cleared.
5651 (resume): Remove now stale comment.
5652 (clear_proceed_status): Clear step-over info.
5653 (proceed): Adjust step-over handling to set or clear the step-over
5654 info instead of removing all breakpoints.
5655 (handle_signal_stop): When setting up a thread-hop, don't remove
5657 (stop_stepping): Clear step-over info.
5658 (keep_going): Adjust step-over handling to set or clear step-over
5659 info and then always inserting breakpoints, instead of removing
5660 all breakpoints when stepping over one.
5662 2014-03-20 Pedro Alves <palves@redhat.com>
5664 * infrun.c (previous_inferior_ptid): Adjust comment.
5665 (deferred_step_ptid): Delete.
5666 (infrun_thread_ptid_changed, prepare_to_proceed)
5667 (init_wait_for_inferior): Adjust.
5668 (handle_signal_stop): Delete deferred_step_ptid handling.
5670 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5673 * defs.h (sync_quit_force_run): New declaration.
5674 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5675 * event-top.c (async_sigterm_handler): New declaration.
5676 (async_sigterm_token): New variable.
5677 (async_init_signals): Create also async_sigterm_token.
5678 (async_sigterm_handler): New function.
5679 (sync_quit_force_run): New variable.
5680 (handle_sigterm): Replace quit_force call by other calls.
5681 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5683 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5685 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5686 offset into SPE pseudo registers.
5688 2014-03-18 Pedro Alves <palves@redhat.com>
5691 * inferior.h (print_stop_event): Declare.
5692 * infrun.c (print_stop_event): New, factored out from ...
5693 (normal_stop): ... this.
5694 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5695 of bpstat_print/print_stack_frame.
5697 2014-03-17 Tom Tromey <tromey@redhat.com>
5699 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5701 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5703 * ada-lang.c (decode_constrained_packed_array): Perform a
5704 minimal coercion for reference with coerce_ref instead of
5707 2014-03-17 Tristan Gingold <gingold@adacore.com>
5709 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5710 (darwin_solib_create_inferior_hook): Emit a warning if version
5713 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5715 * python/py-value.c (get_field_flag): Cast flag_name argument to
5716 PyObject_GetAttrString to support Python 2.4.
5718 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5720 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5721 (Global Maintainers): Remove Jan Kratochvil.
5723 2014-03-14 Pedro Alves <palves@redhat.com>
5725 * inferior.h (terminal_ours_for_output): Rename to ...
5726 (child_terminal_ours_for_output): ... this.
5727 (terminal_save_ours): Rename to ...
5728 (child_terminal_save_ours): ... this.
5729 (terminal_ours): Rename to ...
5730 (child_terminal_ours): ... this.
5731 (terminal_inferior): Rename to ...
5732 (child_terminal_inferior): ... this.
5733 (terminal_init_inferior): Rename to ...
5734 (child_terminal_init_inferior): ... this.
5735 (terminal_init_inferior_with_pgrp): Rename to ...
5736 (child_terminal_init_inferior_with_pgrp): ... this.
5737 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5738 (child_terminal_init_with_pgrp): ... this.
5739 (terminal_save_ours): Rename to ...
5740 (child_terminal_save_ours): ... this.
5741 (terminal_init_inferior): Rename to ...
5742 (child_terminal_init): ... this. Adjust.
5743 (terminal_inferior): Rename to ...
5744 (child_terminal_inferior): ... this.
5745 (terminal_ours_for_output): Rename to ...
5746 (child_terminal_ours_for_output): ... this. Adjust.
5747 (terminal_ours): Rename to ...
5748 (child_terminal_ours): ... this.
5749 (terminal_ours_1): Rename to ...
5750 (child_terminal_ours_1): ... this. Adjust.
5751 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5752 * windows-nat.c (do_initial_windows_stuff): Adjust.
5753 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5754 (gnu_terminal_init): ... this. Adjust.
5755 (gnu_target): Adjust.
5756 * inf-child.c (inf_child_target): Adjust.
5758 2014-03-13 Doug Evans <xdje42@gmail.com>
5761 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5764 2014-03-13 Doug Evans <xdje42@gmail.com>
5766 * value.c (record_latest_value): Call release_value_or_incref
5767 instead of release_value.
5769 2014-03-13 Pedro Alves <palves@redhat.com>
5771 * procfs.c (procfs_target): Don't override to_shortname,
5772 to_longname or to_doc.
5774 2014-03-13 Pedro Alves <palves@redhat.com>
5776 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5777 Unix in user visible strings.
5779 2014-03-12 Stan Shebs <stan@codesourcery.com>
5781 * gdbtypes.h: Annotate comments for Doxygen, add a page
5782 block comment with some general info.
5784 2014-03-12 Pedro Alves <palves@redhat.com>
5786 * infcmd.c (prepare_execution_command): New function, factored out
5787 from several execution commands.
5788 (run_command_1, continue_command, step_1, jump_command)
5789 (signal_command, until_command, advance_command, finish_command)
5790 (attach_command): Use prepare_execution_command.
5792 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5794 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5797 (struct arm_linux_thread_points): Removed.
5798 (struct arm_linux_process_info): New.
5799 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5800 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5801 (arm_linux_find_breakpoints_by_tid): Removed.
5802 (struct arch_lwp_info): New.
5803 (arm_linux_find_process_pid): New functions.
5804 (arm_linux_add_process): New functions.
5805 (arm_linux_process_info_get): New functions.
5806 (arm_linux_forget_process): New function.
5807 (arm_linux_get_debug_reg_state): New function.
5808 (struct update_registers_data): New.
5809 (update_registers_callback): New function.
5810 (arm_linux_insert_hw_breakpoint1): Updated.
5811 (arm_linux_remove_hw_breakpoint1): Updated.
5812 (arm_linux_insert_hw_breakpoint): Updated.
5813 (arm_linux_remove_hw_breakpoint): Updated.
5814 (arm_linux_insert_watchpoint): Updated.
5815 (arm_linux_remove_watchpoint): Updated.
5816 (arm_linux_new_thread): Updated.
5817 (arm_linux_prepare_to_resume): New function.
5818 (arm_linux_new_fork): New function.
5819 (_initialize_arm_linux_nat): Updated.
5821 2014-03-12 Pedro Alves <palves@redhat.com>
5823 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5825 2014-03-12 Tom Tromey <tromey@redhat.com>
5827 * inf-child.c (return_zero): New function.
5828 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5829 * aix-thread.c (aix_thread_inferior_created): New function.
5830 (aix_thread_attach): Remove.
5831 (init_aix_thread_ops): Don't set to_attach.
5832 (_initialize_aix_thread): Register inferior_created observer.
5833 * corelow.c (init_core_ops): Don't set to_attach or
5835 * exec.c (init_exec_ops): Don't set to_attach or
5837 * infcmd.c (run_command_1): Use find_run_target. Make direct
5839 (attach_command): Use find_attach_target. Make direct target
5841 * record-btrace.c (init_record_btrace_ops): Don't set
5843 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5845 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5846 set to_create_inferior.
5847 * target.c (complete_target_initialization): Add assertion.
5848 (target_create_inferior): Remove.
5849 (find_default_attach, find_default_create_inferior): Remove.
5850 (find_attach_target, find_run_target): New functions.
5851 (find_default_is_async_p, find_default_can_async_p)
5852 (target_supports_non_stop, target_attach): Remove.
5853 (init_dummy_target): Don't set to_create_inferior or
5854 to_supports_non_stop.
5855 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5856 TARGET_DEFAULT_FUNC.
5857 <to_create_inferior>: Add comment.
5858 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5859 TARGET_DEFAULT_RETURN.
5860 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5861 (find_attach_target, find_run_target): Declare.
5862 (target_create_inferior): Remove.
5863 (target_has_execution_1): Update comment.
5864 (target_supports_non_stop): Remove.
5865 * target-delegates.c: Rebuild.
5867 2014-03-12 Pedro Alves <palves@redhat.com>
5869 * inf-child.h: Update comment to not mention Unix.
5871 2014-03-12 Pedro Alves <palves@redhat.com>
5873 * inf-child.c: Update top comment to not mention Unix. Add
5874 generic comment describing how this target is meant to be used.
5875 (inf_child_post_attach, inf_child_post_startup_inferior)
5876 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5879 2014-03-12 Pedro Alves <palves@redhat.com>
5881 * nto-procfs.c: Include inf-child.h.
5882 (procfs_ops): Delete global.
5883 (procfs_can_run): Delete method.
5884 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5885 target pointer instead of referencing procfs_ops.
5886 (procfs_prepare_to_store): Delete.
5887 (init_procfs_ops): Delete function.
5888 (procfs_target): New function, based on init_procfs_ops, but
5889 inherit inf_child_target.
5890 (_initialize_procfs): Use procfs_target.
5892 2014-03-12 Pedro Alves <palves@redhat.com>
5894 * windows-nat.c: Include inf-child.h.
5895 (windows_ops): Delete global.
5896 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5898 (init_windows_ops): Delete function.
5899 (windows_target): New function, based on init_windows_ops, but
5900 inherit inf_child_target.
5901 (_initialize_windows_nat): Use windows_target. Install x86
5902 specific target methods here.
5904 2014-03-10 Doug Evans <xdje42@gmail.com>
5906 * guile/guile.c (call_initialize_gdb_module): New function.
5907 (initialize_guile): Replace call to scm_init_guile with call to
5910 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5912 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5913 in call to TYPE_CODE macro.
5915 2014-03-10 Jerome Guitton <guitton@adacore.com>
5917 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5918 Resolve tagged types to full view.
5920 2014-03-10 Hui Zhu <hui@codesourcery.com>
5922 * target.h (target_insert_breakpoint): Remove "hardware" from its
5925 2014-03-07 Doug Evans <dje@google.com>
5927 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5929 2014-03-07 Doug Evans <dje@google.com>
5931 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5932 Remove unused local comp_dir_attr. Assert exactly one of
5933 stub_comp_unit_die, stub_comp_dir is non-NULL.
5935 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5937 * target.h (complete_target_initialization, add_target):
5940 2014-03-07 Pedro Alves <palves@redhat.com>
5942 * go32-nat.c: Include inf-child.h.
5943 (go32_ops): Delete global.
5944 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5946 (go32_create_inferior): Push the passed in target pointer instead
5947 of referencing go32_ops.
5948 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5949 (go32_target): New function, based on init_go32_ops, but inherit
5951 (_initialize_go32_nat): Use go32_target. Move parts of
5954 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5956 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5957 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5958 SYMBOL_VALUE_ADDRESS.
5959 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5961 2014-03-06 Yao Qi <yao@codesourcery.com>
5963 * breakpoint.c (get_tracepoint_by_number): Remove argument
5964 optional_p. All callers updated. Adjust comments. Update
5966 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5968 2014-03-06 Yao Qi <yao@codesourcery.com>
5970 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5971 early if get_number returns zero. Use 'p' instead of 'args'.
5973 2014-03-06 Yao Qi <yao@codesourcery.com>
5975 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5978 2014-03-06 Yao Qi <yao@codesourcery.com>
5980 PR breakpoints/16508
5981 * tracepoint.c (check_trace_running): New function.
5982 (trace_find_command): Move code to check_trace_running and
5983 call check_trace_running.
5984 (trace_find_pc_command): Likewise.
5985 (trace_find_tracepoint_command): Likewise.
5986 (trace_find_line_command): Likewise.
5987 (trace_find_range_command): Likewise.
5988 * tracepoint.h (check_trace_running): Likewise.
5989 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5991 2014-03-06 Yao Qi <yao@codesourcery.com>
5993 * target.h (struct target_ops) <to_traceframe_info>: Use
5994 TARGET_DEFAULT_NORETURN (tcomplain ()).
5995 * target-delegates.c: Regenerated.
5997 2014-03-05 Pedro Alves <palves@redhat.com>
6000 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6001 void. Update comment.
6002 (dcache_xfer_memory): Delete.
6003 (dcache_read_memory_partial): New, based on the read bits of
6005 (dcache_update): Add status parameter. Use ULONGEST for len, and
6006 adjust. Discard cache lines if the reason for the update was
6008 * dcache.h (dcache_xfer_memory): Delete declaration.
6009 (dcache_read_memory_partial): New declaration.
6010 (dcache_update): Update prototype.
6011 * target.c (raw_memory_xfer_partial): Update the dcache here.
6012 (memory_xfer_partial_1): Don't handle dcache writes here.
6014 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6016 * remote-sim.c (gdbsim_load): Add const to prog.
6018 2014-03-03 Tom Tromey <tromey@redhat.com>
6020 * elfread.c (probe_key): Change to bfd_data.
6021 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6022 now per-BFD, not per-objfile.
6023 * stap-probe.c (stap_probe_destroy): Update comment.
6024 (handle_stap_probe): Allocate on the per-BFD obstack.
6026 2014-03-03 Tom Tromey <tromey@redhat.com>
6028 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6029 * breakpoint.c (create_longjmp_master_breakpoint): Use
6031 (add_location_to_breakpoint, bkpt_probe_insert_location)
6032 (bkpt_probe_remove_location): Update.
6033 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6034 * elfread.c (elf_symfile_relocate_probe): Remove.
6035 (elf_probe_fns): Update.
6036 (insert_exception_resume_breakpoint): Change type of "probe"
6037 parameter to bound_probe.
6038 (check_exception_resume): Update.
6039 * objfiles.c (objfile_relocate1): Don't relocate probes.
6040 * probe.c (bound_probe_s): New typedef.
6041 (parse_probes): Use get_probe_address. Set sal's objfile.
6042 (find_probe_by_pc): Return a bound_probe.
6043 (collect_probes): Return a VEC(bound_probe_s).
6044 (compare_probes): Update.
6045 (gen_ui_out_table_header_info): Change type of "probes"
6047 (info_probes_for_ops): Update.
6048 (get_probe_address): New function.
6049 (probe_safe_evaluate_at_pc): Update.
6050 * probe.h (struct probe_ops) <get_probe_address>: New field.
6051 <set_semaphore, clear_semaphore>: Add objfile parameter.
6052 (struct probe) <objfile>: Remove field.
6054 <address>: Update comment.
6055 (struct bound_probe): New.
6056 (find_probe_by_pc): Return a bound_probe.
6057 (get_probe_address): Declare.
6058 * solib-svr4.c (struct probe_and_action) <address>: New field.
6059 (hash_probe_and_action, equal_probe_and_action): Update.
6060 (register_solib_event_probe): Add address parameter.
6061 (solib_event_probe_at): Update.
6062 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6064 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6065 (stap_get_probe_address): New function.
6066 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6067 (compile_probe_arg): Update.
6068 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6070 (handle_stap_probe): Don't relocate the probe.
6071 (stap_relocate): Remove.
6072 (stap_gen_info_probes_table_values): Update.
6073 (stap_probe_ops): Remove stap_relocate.
6074 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6075 (debug_sym_probe_fns): Update.
6076 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6077 * symtab.c (init_sal): Use memset.
6078 * symtab.h (struct symtab_and_line) <objfile>: New field.
6079 * tracepoint.c (start_tracing, stop_tracing): Update.
6081 2014-03-03 Tom Tromey <tromey@redhat.com>
6083 * probe.h (parse_probes, find_probe_by_pc)
6084 (find_probes_in_objfile): Fix comments.
6086 2014-03-02 Doug Evans <xdje42@gmail.com>
6088 * infrun.c (handle_signal_stop): Replace test for
6089 TARGET_WAITKIND_STOPPED with an assert.
6091 2014-03-02 Doug Evans <xdje42@gmail.com>
6093 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6095 2014-03-02 Doug Evans <xdje42@gmail.com>
6097 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6099 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6101 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6103 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6105 * i386obsd-nat.c: Include "obsd-nat.h".
6106 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6108 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6110 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6112 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6114 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6116 * mips64obsd-nat.c: Include "obsd-nath".
6117 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6119 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6121 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6123 * amd64obsd-nat.c: Include "obsd-nat,h.
6124 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6126 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6128 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6130 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6131 (find_overload_match): Update call to find_oload_champ.
6132 (find_oload_champ_namespace_loop): Likewise
6134 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6136 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6138 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6139 * config/sparc/obsd64.mh: New file.
6140 * sparc64obsd-nat.c: New file.
6142 * obsd-nat.h: New file.
6143 * obsd-nat.c: New file.
6144 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6145 (ALLDEPFILES): Add obsd-nat.c.
6147 2014-02-28 Tom Tromey <tromey@redhat.com>
6149 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6150 * cli-out.h (cli_ui_out_impl): Now const.
6151 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6152 * ui-out.c (struct ui_out) <impl>: Now const.
6153 (default_ui_out_impl): Now const.
6154 (ui_out_new): Make 'impl' parameter const.
6155 * ui-out.h (ui_out_new): Update.
6157 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6159 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6161 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6163 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6165 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6167 Additional PR 8882 fix.
6168 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6170 2014-02-27 Pedro Alves <palves@redhat.com>
6172 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6175 2014-02-27 Pedro Alves <palves@redhat.com>
6178 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6179 * nat/linux-waitpid.c: Include string.h.
6180 (status_to_str): Moved here and made extern.
6181 * nat/linux-waitpid.h (status_to_str): New declaration.
6183 2014-02-27 Hui Zhu <hui@codesourcery.com>
6186 * infrun.c (ptid_match): Move ...
6187 * common/ptid.c (ptid_match): ... here.
6188 * inferior.h (ptid_match): Move ...
6189 * common/ptid.h (ptid_match): ... here.
6191 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6193 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6194 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6197 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6199 * obsd-tdep.c (obsd_auxv_parse): New function.
6200 (obsd_init_abi): Set auxv_parse.
6202 * gdbarch.sh (auxv_parse): New.
6203 * gdbarch.h: Regenerated.
6204 * gdbarch.c: Regenerated.
6205 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6207 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6209 * guile/scm-value.c (gdbscm_history_append_x): New function.
6210 (value_functions): Add it.
6212 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6214 * dwarf2read.c (attr_value_as_address): New function.
6215 (dwarf2_find_base_address, read_call_site_scope): Use
6216 attr_value_as_address in place of DW_ADDR.
6217 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6218 the low and high addresses. Slight rework of the handling
6219 of the high pc being a constant form, and limit it to
6220 DWARF verson 4 or higher.
6221 (dwarf2_record_block_ranges): Likewise.
6222 (read_partial_die): Likewise.
6223 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6225 2014-02-26 Tom Tromey <tromey@redhat.com>
6227 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6229 2014-02-26 Tom Tromey <tromey@redhat.com>
6231 * elfread.c (elf_read_minimal_symbols): Return early if
6232 minimal symbols have already been read. Add "ei" parameter.
6233 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6234 * minsyms.c (prim_record_minimal_symbol_full): Update.
6235 * objfiles.h (struct objstats) <n_minsyms>: Move...
6236 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6237 * symmisc.c (print_objfile_statistics): Update.
6239 2014-02-26 Tom Tromey <tromey@redhat.com>
6241 * elfread.c (elf_read_minimal_symbols): New function, from
6243 (elf_symfile_read): Call it.
6245 2014-02-26 Tom Tromey <tromey@redhat.com>
6247 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6248 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6249 (lookup_minimal_symbol_solib_trampoline)
6250 (lookup_minimal_symbol_by_pc_section_1)
6251 (lookup_minimal_symbol_and_objfile): Update.
6252 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6253 Don't allocate a minimal symbol if minsyms have already been read.
6254 (build_minimal_symbol_hash_tables): Update.
6255 (install_minimal_symbols): Do nothing if minsyms already read.
6256 Use the per-BFD obstack.
6257 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6258 * objfiles.c (allocate_objfile): Call
6259 terminate_minimal_symbol_table later.
6260 (have_minimal_symbols): Update.
6261 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6262 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6263 Move from struct objfile.
6264 <minsyms_read>: New field.
6265 (struct objfile) <msymbols, minimal_symbol_count,
6266 msymbol_hash, msymbol_demangled_hash>: Move.
6267 (ALL_OBJFILE_MSYMBOLS): Update.
6268 * symfile.c (read_symbols): Set minsyms_read.
6269 (reread_symbols): Update.
6270 * symmisc.c (dump_objfile, dump_msymbols): Update.
6272 2014-02-26 Tom Tromey <tromey@redhat.com>
6274 * minsyms.c (msymbols_sort): Remove.
6275 * minsyms.h (msymbols_sort): Remove.
6276 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6277 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6278 * elfread.c (elf_symtab_read): Don't add section offsets.
6279 * xcoffread.c (record_minimal_symbol): Don't add section offset
6280 to minimal symbol address.
6281 * somread.c (text_offset, data_offset): Remove.
6282 (som_symtab_read): Don't add section offsets to minimal symbol
6284 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6285 Don't add section offsets to minimal symbols.
6286 * coffread.c (coff_symtab_read): Don't add section offsets
6287 to minimal symbol addresses.
6288 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6289 to minimal symbol addresses.
6290 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6291 section offset to minimal symbol addresses.
6292 * mdebugread.c (parse_partial_symbols): Don't add section
6293 offset to minimal symbol addresses.
6294 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6295 offset to minimal symbol addresses.
6297 2014-02-26 Tom Tromey <tromey@redhat.com>
6299 * ada-lang.c (ada_main_name): Update.
6300 (ada_add_standard_exceptions): Update.
6301 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6302 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6303 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6304 * auxv.c (ld_so_xfer_auxv): Update.
6305 * avr-tdep.c (avr_scan_prologue): Update.
6306 * ax-gdb.c (gen_var_ref): Update.
6307 * blockframe.c (get_pc_function_start)
6308 (find_pc_partial_function_gnu_ifunc): Update.
6309 * breakpoint.c (create_overlay_event_breakpoint)
6310 (create_longjmp_master_breakpoint)
6311 (create_std_terminate_master_breakpoint)
6312 (create_exception_master_breakpoint): Update.
6313 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6314 * c-valprint.c (c_val_print): Update.
6315 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6316 * common/agent.c (agent_look_up_symbols): Update.
6317 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6318 * dwarf2loc.c (call_site_to_target_addr): Update.
6319 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6320 * elfread.c (elf_gnu_ifunc_record_cache)
6321 (elf_gnu_ifunc_resolve_by_got): Update.
6322 * findvar.c (default_read_var_value): Update.
6323 * frame.c (inside_main_func): Update.
6324 * frv-tdep.c (frv_frame_this_id): Update.
6325 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6326 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6328 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6329 (hppa_hpux_find_dummy_bpaddr): Update.
6330 * hppa-tdep.c (hppa_symbol_address): Update.
6331 * infcmd.c (until_next_command): Update.
6332 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6334 * linespec.c (minsym_found, add_minsym): Update.
6335 * linux-nat.c (get_signo): Update.
6336 * linux-thread-db.c (inferior_has_bug): Update.
6337 * m32c-tdep.c (m32c_return_value)
6338 (m32c_m16c_address_to_pointer): Update.
6339 * m32r-tdep.c (m32r_frame_this_id): Update.
6340 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6341 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6342 * maint.c (maintenance_translate_address): Update.
6343 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6344 (frob_address): New function.
6345 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6346 frob_address. Rename parameter to "pc_in".
6347 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6349 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6351 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6352 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6353 * objc-lang.c (find_objc_msgsend): Update.
6354 * objfiles.c (objfile_relocate1): Update.
6355 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6356 * p-valprint.c (pascal_val_print): Update.
6357 * parse.c (write_exp_msymbol): Update.
6358 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6359 (ppc_elfv2_skip_entrypoint): Update.
6360 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6361 * printcmd.c (build_address_symbolic, msym_info)
6362 (address_info): Update.
6363 * proc-service.c (ps_pglobal_lookup): Update.
6364 * psymtab.c (find_pc_sect_psymtab_closer)
6365 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6366 Change msymbol parameter to bound_minimal_symbol.
6367 * ravenscar-thread.c (get_running_thread_id): Update.
6368 * remote.c (remote_check_symbols): Update.
6369 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6371 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6372 * solib-dsbt.c (lm_base): Update.
6373 * solib-frv.c (lm_base, main_got): Update.
6374 * solib-irix.c (locate_base): Update.
6375 * solib-som.c (som_solib_create_inferior_hook)
6376 (link_map_start): Update.
6377 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6378 * solib-svr4.c (elf_locate_base, enable_break): Update.
6379 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6380 (flush_ea_cache): Update.
6381 * stabsread.c (define_symbol, scan_file_globals): Update.
6382 * stack.c (find_frame_funname): Update.
6383 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6384 (debug_qf_find_pc_sect_symtab): Update.
6385 * symfile.c (simple_read_overlay_table)
6386 (simple_overlay_update): Update.
6387 * symfile.h (struct quick_symbol_functions)
6388 <find_pc_sect_symtab>: Change type of msymbol to
6389 bound_minimal_symbol.
6390 * symmisc.c (dump_msymbols): Update.
6391 * symtab.c (find_pc_sect_symtab_via_partial)
6392 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6393 (search_symbols, print_msymbol_info): Update.
6394 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6395 (MSYMBOL_VALUE_ADDRESS): Redefine.
6396 (BMSYMBOL_VALUE_ADDRESS): New macro.
6397 * tracepoint.c (scope_info): Update.
6398 * tui/tui-disasm.c (tui_find_disassembly_address)
6399 (tui_get_begin_asm_address): Update.
6400 * valops.c (find_function_in_inferior): Update.
6401 * value.c (value_static_field, value_fn_field): Update.
6403 2014-02-26 Tom Tromey <tromey@redhat.com>
6405 * ada-lang.c (ada_update_initial_language): Update.
6406 (ada_main_name, ada_has_this_exception_support): Update.
6407 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6408 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6409 * arm-tdep.c (arm_skip_stub): Update.
6410 * auxv.c (ld_so_xfer_auxv): Update.
6411 * avr-tdep.c (avr_scan_prologue): Update.
6412 * ax-gdb.c (gen_var_ref): Update.
6413 * breakpoint.c (struct breakpoint_objfile_data)
6414 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6415 type to bound_minimal_symbol.
6416 (create_overlay_event_breakpoint)
6417 (create_longjmp_master_breakpoint)
6418 (create_std_terminate_master_breakpoint)
6419 (create_exception_master_breakpoint): Update.
6420 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6421 * c-exp.y (classify_name): Update.
6422 * coffread.c (coff_symfile_read): Update.
6423 * common/agent.c (agent_look_up_symbols): Update.
6424 * d-lang.c (d_main_name): Update.
6425 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6426 * dec-thread.c (enable_dec_thread): Update.
6427 * dwarf2loc.c (call_site_to_target_addr): Update.
6428 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6429 * eval.c (evaluate_subexp_standard): Update.
6430 * findvar.c (struct minsym_lookup_data) <result>: Change type
6431 to bound_minimal_symbol.
6433 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6434 * frame.c (inside_main_func): Update.
6435 * frv-tdep.c (frv_frame_this_id): Update.
6436 * gcore.c (call_target_sbrk): Update.
6437 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6438 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6440 * go-lang.c (go_main_name): Update.
6441 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6442 (hppa_hpux_find_import_stub_for_addr): Update.
6443 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6444 Update. Change return type.
6445 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6447 * jit.c (jit_breakpoint_re_set_internal): Update.
6448 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6450 * linux-nat.c (get_signo): Update.
6451 * linux-thread-db.c (inferior_has_bug): Update
6452 * m32c-tdep.c (m32c_return_value)
6453 (m32c_m16c_address_to_pointer): Update.
6454 * m32r-tdep.c (m32r_frame_this_id): Update.
6455 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6456 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6457 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6458 lookup_minimal_symbol. Change return type.
6459 (lookup_minimal_symbol): Remove.
6460 (lookup_bound_minimal_symbol): Update.
6461 (lookup_minimal_symbol_text): Change return type.
6462 (lookup_minimal_symbol_solib_trampoline): Change return type.
6463 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6464 (lookup_minimal_symbol_solib_trampoline): Change return type.
6465 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6466 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6467 (value_nsstring, find_imps): Update.
6468 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6469 * p-lang.c (pascal_main_name): Update.
6470 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6471 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6472 * proc-service.c (ps_pglobal_lookup): Update.
6473 * ravenscar-thread.c (get_running_thread_msymbol): Change
6475 (has_ravenscar_runtime, get_running_thread_id): Update.
6476 * remote.c (remote_check_symbols): Update.
6477 * sol-thread.c (ps_pglobal_lookup): Update.
6478 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6479 * solib-dsbt.c (lm_base): Update.
6480 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6482 * solib-irix.c (locate_base): Update.
6483 * solib-som.c (som_solib_create_inferior_hook)
6484 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6486 * solib-spu.c (spu_enable_break): Update.
6487 * solib-svr4.c (elf_locate_base, enable_break): Update.
6488 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6489 (flush_ea_cache): Update.
6490 * stabsread.c (define_symbol): Update.
6491 * symfile.c (simple_read_overlay_table): Update.
6492 * symtab.c (find_pc_sect_line): Update.
6493 * tracepoint.c (scope_info): Update.
6494 * tui-disasm.c (tui_get_begin_asm_address): Update.
6495 * value.c (value_static_field): Update.
6497 2014-02-26 Tom Tromey <tromey@redhat.com>
6499 * minsyms.c (prim_record_minimal_symbol_full): Use
6500 SET_MSYMBOL_VALUE_ADDRESS.
6501 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6502 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6503 SET_MSYMBOL_VALUE_ADDRESS.
6504 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6505 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6507 2014-02-26 Tom Tromey <tromey@redhat.com>
6509 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6510 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6511 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6512 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6513 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6514 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6515 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6516 * ada-lang.c (ada_main_name): Update.
6517 (ada_lookup_simple_minsym): Update.
6518 (ada_make_symbol_completion_list): Update.
6519 (ada_add_standard_exceptions): Update.
6520 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6521 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6522 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6523 * arm-tdep.c (skip_prologue_function): Update.
6524 (arm_skip_stack_protector, arm_skip_stub): Update.
6525 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6526 (arm_wince_skip_main_prologue): Update.
6527 * auxv.c (ld_so_xfer_auxv): Update.
6528 * avr-tdep.c (avr_scan_prologue): Update.
6529 * ax-gdb.c (gen_var_ref): Update.
6530 * block.c (call_site_for_pc): Update.
6531 * blockframe.c (get_pc_function_start): Update.
6532 (find_pc_partial_function_gnu_ifunc): Update.
6533 * breakpoint.c (create_overlay_event_breakpoint): Update.
6534 (create_longjmp_master_breakpoint): Update.
6535 (create_std_terminate_master_breakpoint): Update.
6536 (create_exception_master_breakpoint): Update.
6537 (resolve_sal_pc): Update.
6538 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6539 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6541 * c-valprint.c (c_val_print): Update.
6542 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6543 * coffread.c (coff_symfile_read): Update.
6544 * common/agent.c (agent_look_up_symbols): Update.
6545 * dbxread.c (find_stab_function_addr): Update.
6546 (end_psymtab): Update.
6547 * dwarf2loc.c (call_site_to_target_addr): Update.
6548 (func_verify_no_selftailcall): Update.
6549 (tailcall_dump): Update.
6550 (call_site_find_chain_1): Update.
6551 (dwarf_expr_reg_to_entry_parameter): Update.
6552 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6553 (elf_gnu_ifunc_resolve_by_got): Update.
6554 * f-valprint.c (info_common_command): Update.
6555 * findvar.c (read_var_value): Update.
6556 * frame.c (get_prev_frame_1): Update.
6557 (inside_main_func): Update.
6558 * frv-tdep.c (frv_skip_main_prologue): Update.
6559 (frv_frame_this_id): Update.
6560 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6561 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6562 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6563 (gnuv3_skip_trampoline): Update.
6564 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6565 (hppa64_hpux_in_solib_call_trampoline): Update.
6566 (hppa_hpux_skip_trampoline_code): Update.
6567 (hppa64_hpux_search_dummy_call_sequence): Update.
6568 (hppa_hpux_find_import_stub_for_addr): Update.
6569 (hppa_hpux_find_dummy_bpaddr): Update.
6570 * hppa-tdep.c (hppa_symbol_address)
6571 (hppa_lookup_stub_minimal_symbol): Update.
6572 * i386-tdep.c (i386_skip_main_prologue): Update.
6573 (i386_pe_skip_trampoline_code): Update.
6574 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6575 * infcall.c (get_function_name): Update.
6576 * infcmd.c (until_next_command): Update.
6577 * jit.c (jit_breakpoint_re_set_internal): Update.
6578 (jit_inferior_init): Update.
6579 * linespec.c (minsym_found): Update.
6580 (add_minsym): Update.
6581 * linux-fork.c (info_checkpoints_command): Update.
6582 * linux-nat.c (get_signo): Update.
6583 * linux-thread-db.c (inferior_has_bug): Update.
6584 * m32c-tdep.c (m32c_return_value): Update.
6585 (m32c_m16c_address_to_pointer): Update.
6586 (m32c_m16c_pointer_to_address): Update.
6587 * m32r-tdep.c (m32r_frame_this_id): Update.
6588 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6589 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6590 * maint.c (maintenance_translate_address): Update.
6591 * minsyms.c (add_minsym_to_hash_table): Update.
6592 (add_minsym_to_demangled_hash_table): Update.
6593 (msymbol_objfile): Update.
6594 (lookup_minimal_symbol): Update.
6595 (iterate_over_minimal_symbols): Update.
6596 (lookup_minimal_symbol_text): Update.
6597 (lookup_minimal_symbol_by_pc_name): Update.
6598 (lookup_minimal_symbol_solib_trampoline): Update.
6599 (lookup_minimal_symbol_by_pc_section_1): Update.
6600 (lookup_minimal_symbol_and_objfile): Update.
6601 (prim_record_minimal_symbol_full): Update.
6602 (compare_minimal_symbols): Update.
6603 (compact_minimal_symbols): Update.
6604 (build_minimal_symbol_hash_tables): Update.
6605 (install_minimal_symbols): Update.
6606 (terminate_minimal_symbol_table): Update.
6607 (find_solib_trampoline_target): Update.
6608 (minimal_symbol_upper_bound): Update.
6609 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6610 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6611 (mips_skip_pic_trampoline_code): Update.
6612 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6613 * objc-lang.c (selectors_info): Update.
6614 (classes_info): Update.
6615 (find_methods): Update.
6616 (find_imps): Update.
6617 (find_objc_msgsend): Update.
6618 * objfiles.c (objfile_relocate1): Update.
6619 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6620 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6621 * p-valprint.c (pascal_val_print): Update.
6622 * parse.c (write_exp_msymbol): Update.
6623 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6624 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6625 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6626 * printcmd.c (build_address_symbolic): Update.
6628 (address_info): Update.
6629 * proc-service.c (ps_pglobal_lookup): Update.
6630 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6631 (find_pc_sect_psymtab): Update.
6632 * python/py-framefilter.c (py_print_frame): Update.
6633 * ravenscar-thread.c (get_running_thread_id): Update.
6634 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6636 * remote.c (remote_check_symbols): Update.
6637 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6638 (rs6000_skip_trampoline_code): Update.
6639 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6640 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6641 * solib-dsbt.c (lm_base): Update.
6642 * solib-frv.c (lm_base): Update.
6644 * solib-irix.c (locate_base): Update.
6645 * solib-som.c (som_solib_create_inferior_hook): Update.
6646 (som_solib_desire_dynamic_linker_symbols): Update.
6647 (link_map_start): Update.
6648 * solib-spu.c (spu_enable_break): Update.
6649 (ocl_enable_break): Update.
6650 * solib-svr4.c (elf_locate_base): Update.
6651 (enable_break): Update.
6652 * spu-tdep.c (spu_get_overlay_table): Update.
6653 (spu_catch_start): Update.
6654 (flush_ea_cache): Update.
6655 * stabsread.c (define_symbol): Update.
6656 (scan_file_globals): Update.
6657 * stack.c (find_frame_funname): Update.
6658 (frame_info): Update.
6659 * symfile.c (simple_read_overlay_table): Update.
6660 (simple_overlay_update): Update.
6661 * symmisc.c (dump_msymbols): Update.
6662 * symtab.c (fixup_section): Update.
6663 (find_pc_sect_line): Update.
6664 (skip_prologue_sal): Update.
6665 (search_symbols): Update.
6666 (print_msymbol_info): Update.
6667 (rbreak_command): Update.
6668 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6669 (completion_list_objc_symbol): Update.
6670 (default_make_symbol_completion_list_break_on): Update.
6671 * tracepoint.c (scope_info): Update.
6672 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6673 (tui_get_begin_asm_address): Update.
6674 * valops.c (find_function_in_inferior): Update.
6675 * value.c (value_static_field): Update.
6676 (value_fn_field): Update.
6678 2014-02-26 Tom Tromey <tromey@redhat.com>
6680 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6681 bound minimal symbols. Move code that knows about minsym
6683 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6685 * minsyms.h (minimal_symbol_upper_bound): Declare.
6686 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6687 minimal_symbol_upper_bound.
6689 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6691 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6692 Use the type's name if its basic type does not have a tag.
6694 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6696 * dwarf2read.c (read_subrange_type): Add comment.
6698 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6700 * dwarf2read.c (update_enumeration_type_from_children): New
6701 function, mostly extracted from process_structure_scope.
6702 (read_enumeration_type): Call update_enumeration_type_from_children.
6703 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6704 and flag_flag_enum fields.
6706 2014-02-26 Pedro Alves <palves@redhat.com>
6708 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6709 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6710 to_xfer_partial method.
6712 2014-02-26 Pedro Alves <palves@redhat.com>
6714 * target.c (complete_target_initialization): Don't install
6715 default_xfer_partial as to_xfer_partial hook.
6717 (update_current_target): Don't INHERIT nor de_fault
6718 deprecated_xfer_memory. Delete de_fault macro.
6719 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6720 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6721 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6724 2014-02-26 Pedro Alves <palves@redhat.com>
6726 * go32-nat.c (my_write_child): New function.
6727 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6728 (go32_xfer_partial): New function.
6729 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6730 Instead install a to_xfer_partial hook.
6732 2014-02-26 Pedro Alves <palves@redhat.com>
6734 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6735 to_xfer_partial helper. Rewrite.
6736 (procfs_xfer_partial): New function.
6737 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6738 Install a to_xfer_partial hook.
6740 2014-02-26 Pedro Alves <palves@redhat.com>
6742 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6743 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6744 (m32r_xfer_partial): New function.
6745 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6746 Install a to_xfer_partial hook.
6748 2014-02-26 Pedro Alves <palves@redhat.com>
6750 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6752 (mips_xfer_partial): New function.
6753 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6754 hook. Install a to_xfer_partial hook.
6756 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6758 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6759 * gdbtypes.c (create_array_type_with_stride): New function,
6760 renaming create_array_type, but with an added parameter
6761 called "bit_stride".
6762 (create_array_type): Re-implement using
6763 create_array_type_with_stride.
6764 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6765 and DW_AT_bit_stride attributes.
6767 2014-02-26 Pedro Alves <palves@redhat.com>
6769 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6770 task-specific breakpoints.
6772 2014-02-25 Pedro Alves <palves@redhat.com>
6774 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6775 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6777 2014-02-25 Stan Shebs <stan@codesourcery.com>
6779 * defs.h: Annotate comments for Doxygen.
6781 2014-02-25 Tom Tromey <tromey@redhat.com>
6783 * target.h (target_ignore): Don't declare.
6784 * target.c (target_ignore): Remove.
6786 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6789 * auto-load.c (auto_load_objfile_script_1): Change filename to
6792 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6794 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6795 documentation. Adjust prototype to match the target_ops
6796 to_xfer_partial method. Adjust implementation accordingly.
6798 2014-02-25 Hui Zhu <hui@codesourcery.com>
6800 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6803 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6805 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6806 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6807 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6808 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6809 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6810 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6811 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6812 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6814 (rl78_register_type): Use a data pointer type for SP and
6815 new pseudo registers mentioned above. Use a 16 bit integer
6816 type for all other register pairs.
6817 (rl78_register_name, rl78_g10_register_name): Update for
6818 new pseudo registers.
6819 (rl78_pseudo_register_read): Likewise.
6820 (rl78_pseudo_register_write): Likewise.
6821 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6822 to the newly added pseudo registers.
6824 2014-02-24 Doug Evans <dje@google.com>
6826 * value.c (record_latest_value): Fix comment.
6827 * printcmd.c (print_command_1): Remove code to handle -1 return from
6828 record_latest_value.
6830 2014-02-24 Pedro Alves <palves@redhat.com>
6832 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6833 deprecated_xfer_memory hook.
6834 (procfs_xfer_partial): Call procfs_xfer_memory instead
6835 of the deprecated_xfer_memory target hook.
6836 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6839 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6841 * windows-nat.c (windows_xfer_shared_libraries): Return
6842 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6843 requested object is TARGET_OBJECT_LIBRARIES.
6845 2014-02-24 Yao Qi <yao@codesourcery.com>
6847 * target.h (enum target_xfer_status)
6848 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6849 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6851 * corefile.c (memory_error_message): User updated.
6852 * exec.c (section_table_read_available_memory): Likewise.
6853 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6854 * target.c (target_xfer_status_to_string): Likewise.
6855 (raw_memory_xfer_partial): Likewise.
6856 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6857 * valops.c (read_value_memory): Likewise.
6858 * exec.h: Update comments.
6860 2014-02-24 Yao Qi <yao@codesourcery.com>
6862 * target.c (target_xfer_status_to_string): Rename argument err
6864 * target.h (target_xfer_status_to_string): Update declaration.
6865 Replace target_xfer_error_to_string with
6866 target_xfer_status_to_string in comment.
6868 2014-02-24 Yao Qi <yao@codesourcery.com>
6870 * mips-linux-nat.c (super_close): Update its type.
6871 (mips_linux_close): Pass 'self' to super_close.
6873 2014-02-24 Yao Qi <yao@codesourcery.com>
6875 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6876 * corefile.c (read_memory): Adjusted.
6877 * target.c (target_write_with_progress): Adjusted.
6879 2014-02-23 Yao Qi <yao@codesourcery.com>
6883 2013-10-25 Yao Qi <yao@codesourcery.com>
6885 * remote.c (remote_traceframe_info): Return early if
6886 traceframe is not selected.
6888 2013-07-19 Yao Qi <yao@codesourcery.com>
6890 * target.c (update_current_target): Change the default action
6891 of 'to_traceframe_info' from tcomplain to return_zero.
6892 * target.h (struct target_ops) <to_traceframe_info>: Add more
6895 2014-02-23 Yao Qi <yao@codesourcery.com>
6897 * valops.c (read_value_memory): Rewrite it. Call
6898 target_xfer_partial in a loop.
6899 * exec.h (section_table_available_memory): Remove declaration.
6900 Move comments to ...
6901 * exec.c (section_table_available_memory): ... here. Make it
6904 2014-02-23 Yao Qi <yao@codesourcery.com>
6906 * exec.c (section_table_read_available_memory): New function.
6907 * exec.h (section_table_read_available_memory): Declare.
6908 * ctf.c (ctf_xfer_partial): Call
6909 section_table_read_available_memory.
6910 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6912 2014-02-23 Yao Qi <yao@codesourcery.com>
6914 * ctf.c (ctf_xfer_partial): Move code to ...
6915 * exec.c (exec_read_partial_read_only): ... it. New function.
6916 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6917 * tracefile.c: Include "exec.h".
6918 * exec.h (exec_read_partial_read_only): Declare.
6920 2014-02-23 Yao Qi <yao@codesourcery.com>
6922 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6923 (tfile_has_memory): Remove.
6924 (init_tfile_ops): Don't set fields to_has_all_memory and
6925 to_has_memory of tfile_ops.
6926 * tracefile.c (tracefile_has_all_memory): New function.
6927 (tracefile_has_memory): New function.
6928 (init_tracefile_ops): Initialize fields to_has_all_memory and
6929 to_has_memory of 'ops'.
6931 2014-02-23 Yao Qi <yao@codesourcery.com>
6933 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6934 (ctf_thread_alive, ctf_get_trace_status): Remove.
6935 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6937 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6938 (tfile_has_stack, tfile_has_registers): Remove.
6939 (tfile_thread_alive): Remove.
6940 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6942 * tracefile.c (tracefile_has_stack): New function.
6943 (tracefile_has_registers): New function.
6944 (tracefile_thread_alive): New function.
6945 (tracefile_get_trace_status): New function.
6946 (init_tracefile_ops): New function.
6947 * tracefile.h (init_tracefile_ops): Declare.
6949 2014-02-23 Yao Qi <yao@codesourcery.com>
6951 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6952 (O_LARGEFILE): Likewise.
6953 (tfile_ops): Likewise.
6954 (TRACE_HEADER_SIZE): Likewise.
6955 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6956 (cur_data_size): Likewise.
6957 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6958 (tfile_close, tfile_files_info): Likewise.
6959 (tfile_get_trace_status): Likewise.
6960 (tfile_get_tracepoint_status): Likewise.
6961 (tfile_get_traceframe_address): Likewise.
6962 (tfile_trace_find, match_blocktype): Likewise.
6963 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6964 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6965 (tfile_get_trace_state_variable_value): Likewise.
6966 (tfile_has_all_memory, tfile_has_memory): Likewise.
6967 (tfile_has_stack, tfile_has_registers): Likewise.
6968 (tfile_thread_alive, build_traceframe_info): Likewise.
6969 (tfile_traceframe_info, init_tfile_ops): Likewise.
6970 (_initialize_tracepoint): Don't call init_tfile_ops
6971 and add_target_with_completer.
6972 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6973 exec.h, completer.h and filenames.h.
6974 (_initialize_tracefile_tfile): New function.
6976 2014-02-23 Yao Qi <yao@codesourcery.com>
6978 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6980 (HFILES_NO_SRCDIR): Add tracefile.h.
6981 * ctf.c: Include "tracefile.h".
6982 * tracefile.h: New file.
6983 * tracefile.c: New file
6984 * tracefile-tfile.c: New file.
6985 * tracepoint.c: Include "tracefile.h".
6986 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6987 (stop_reason_names): Add const.
6988 (trace_file_writer_xfree): Move it to tracefile.c.
6989 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6990 (trace_save_ctf): Likewise.
6991 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6992 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6993 (tfile_write_header, tfile_write_regblock_type): Likewise.
6994 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6995 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6996 (tfile_write_raw_data, tfile_end): Likewise.
6997 (tfile_trace_file_writer_new): Likewise.
6998 (free_uploaded_tp): Make it extern.
6999 (free_uploaded_tsv): Make it extern.
7000 (_initialize_tracepoint): Move code to register command 'tsave'
7002 * tracepoint.h (stop_reason_names): Declare.
7003 (struct trace_frame_write_ops): Move it to tracefile.h.
7004 (struct trace_file_write_ops): Likewise.
7005 (struct trace_file_writer): Likewise.
7006 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7008 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7011 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7013 (get_cores_used_by_process): New parameter num_cores, use it.
7014 (linux_xfer_osdata_processes): Pass num_cores to it.
7015 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7018 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7020 * target.c (memory_xfer_partial): Fix length arg in call to
7021 breakpoint_xfer_memory.
7023 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7026 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7027 number comes after the + or - signs. Adjust length of register
7028 name to be extracted.
7030 2014-02-20 Tom Tromey <tromey@redhat.com>
7032 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7033 (ada_varobj_ops): Mark "extern".
7035 2014-02-20 Tom Tromey <tromey@redhat.com>
7037 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7039 2014-02-20 Doug Evans <xdje42@gmail.com>
7041 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7042 All callers updated.
7043 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7044 All callers updated.
7045 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7046 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7048 2014-02-20 lin zuojian <manjian2006@gmail.com>
7049 Joel Brobecker <brobecker@adacore.com>
7050 Doug Evans <xdje42@gmail.com>
7053 * dwarf2read.c (struct die_info): New member in_process.
7054 (reset_die_in_process): New function.
7055 (process_die): Set it at the start, reset when returning.
7056 (inherit_abstract_dies): Only call process_die if origin_child_die
7057 not already being processed.
7059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7061 * windows-nat.c (handle_unload_dll): Add function documentation.
7062 (do_initial_windows_stuff): Add comment explaining why we wait
7063 until after inferior initialization has finished before
7064 processing all DLLs.
7066 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7068 * windows-nat.c (get_module_name): Delete.
7069 (windows_get_exec_module_filename): New function, mostly
7070 inspired from get_module_name.
7071 (windows_pid_to_exec_file): Replace call to get_module_name
7072 by call to windows_get_exec_module_filename.
7074 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7076 * windows-nat.c (handle_load_dll): Rewrite this function's
7077 introductory comment. Remove code using get_module_name
7078 to get the DLL's name.
7080 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7082 * windows-nat.c (get_windows_debug_event): Ignore
7083 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7084 if windows_initialization_done == 0.
7085 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7086 Adjust implementation to always load all DLLs.
7087 (do_initial_windows_stuff): Replace call to
7088 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7090 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7092 * windows-nat.c (_initialize_windows_nat): Deprecate the
7093 "dll-symbols" command. Turn the "add-shared-symbol-files"
7094 and "assf" aliases into commands, and deprecate them as well.
7095 * NEWS: Add entry explaining that "dll-symbols" and its two
7096 aliases are now deprecated.
7098 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7100 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7101 new-line in debug string. Remove trailing spaces.
7103 2014-02-19 Stan Shebs <stan@codesourcery.com>
7105 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7107 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7109 * NEWS: Add entry for the new feature
7110 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7113 2014-02-19 Stan Shebs <stan@codesourcery.com>
7115 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7117 2014-02-19 Pedro Alves <palves@redhat.com>
7119 * common/ptid.h (struct ptid): Mention that process_stratum
7120 targets should prefer ptid.lwp.
7122 2014-02-19 Pedro Alves <palves@redhat.com>
7124 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7125 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7126 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7127 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7128 store remote thread ids rather than ptid.tid.
7129 (_initialize_remote): Adjust.
7131 2014-02-19 Tom Tromey <tromey@redhat.com>
7133 * target.c (target_get_unwinder): Rewrite.
7134 (target_get_tailcall_unwinder): Rewrite.
7135 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7136 (record_btrace_to_get_tailcall_unwinder): New function.
7137 (init_record_btrace_ops): Update.
7138 * target.h (struct target_ops) <to_get_unwinder,
7139 to_get_tailcall_unwinder>: Now function pointers. Use
7140 TARGET_DEFAULT_RETURN.
7142 2014-02-19 Tom Tromey <tromey@redhat.com>
7144 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7146 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7148 2014-02-19 Tom Tromey <tromey@redhat.com>
7150 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7152 * target-delegates.c: Rebuild.
7153 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7154 TARGET_DEFAULT_FUNC.
7155 * target.c (default_target_decr_pc_after_break): Rename from
7156 forward_target_decr_pc_after_break. Simplify.
7157 (target_decr_pc_after_break): Rely on delegation.
7159 2014-02-19 Tom Tromey <tromey@redhat.com>
7161 * target.c (update_current_target): Do not INHERIT to_doc or
7162 to_magic. Do not de_fault to_open or to_close.
7164 2014-02-19 Tom Tromey <tromey@redhat.com>
7166 * gcore.h (objfile_find_memory_regions): Declare.
7167 * gcore.c (objfile_find_memory_regions): No longer static. Add
7169 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7170 * exec.c: Include gcore.h.
7171 (exec_set_find_memory_regions): Remove.
7172 (exec_find_memory_regions): Remove.
7173 (exec_do_find_memory_regions): Remove.
7174 (init_exec_ops): Update.
7175 * defs.h (exec_set_find_memory_regions): Remove.
7177 2014-02-19 Tom Tromey <tromey@redhat.com>
7179 * target-delegates.c: Rebuild.
7180 * target.h (struct target_ops) <to_extra_thread_info,
7181 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7182 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7183 not 0, in TARGET_DEFAULT_RETURN.
7185 2014-02-19 Tom Tromey <tromey@redhat.com>
7187 * target.c (complete_target_initialization): Remove casts. Use
7188 return_zero_has_execution.
7189 (return_zero): Add "ignore" argument.
7190 (return_zero_has_execution): New function.
7191 (init_dummy_target): Remove casts. Use
7192 return_zero_has_execution.
7194 2014-02-19 Tom Tromey <tromey@redhat.com>
7196 * target.c (update_current_target): Update comments. Do not
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7201 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7203 * corelow.c (core_read_description): Delegate when needed.
7204 * remote.c (remote_read_description): Delegate when needed.
7205 * target-delegates.c: Rebuild.
7206 * target.c (target_read_description): Rewrite.
7207 * target.h (struct target_ops) <to_read_description>: Update
7208 comment. Use TARGET_DEFAULT_RETURN.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * target-delegates.c: Rebuild.
7213 * target.c (update_current_target): Don't inherit or default
7215 (find_default_run_target): Check against delegate_can_run.
7216 * target.h (struct target_ops) <to_can_run>: Use
7217 TARGET_DEFAULT_RETURN.
7219 2014-02-19 Tom Tromey <tromey@redhat.com>
7221 * target-delegates.c: Rebuild.
7222 * target.c (target_disconnect): Unconditionally delegate.
7223 * target.h (struct target_ops) <to_disconnect>: Use
7224 TARGET_DEFAULT_NORETURN.
7226 2014-02-19 Tom Tromey <tromey@redhat.com>
7228 * record.c (record_stop): Unconditionally delegate.
7229 * target-delegates.c: Rebuild.
7230 * target.c (target_stop_recording): Unconditionally delegate.
7231 * target.h (struct target_ops) <to_stop_recording>: Use
7232 TARGET_DEFAULT_IGNORE.
7234 2014-02-19 Tom Tromey <tromey@redhat.com>
7236 * target-delegates.c: Rebuild.
7237 * target.c (target_enable_btrace): Unconditionally delegate.
7238 * target.h (struct target_ops) <to_enable_btrace>: Use
7239 TARGET_DEFAULT_NORETURN.
7241 2014-02-19 Tom Tromey <tromey@redhat.com>
7243 * target-delegates.c: Rebuild.
7244 * target.c (target_read_btrace): Unconditionally delegate.
7245 * target.h (struct target_ops) <to_read_btrace>: Use
7246 TARGET_DEFAULT_NORETURN.
7248 2014-02-19 Tom Tromey <tromey@redhat.com>
7250 * target-delegates.c: Rebuild.
7251 * target.c (target_teardown_btrace): Unconditionally delegate.
7252 * target.h (struct target_ops) <to_teardown_btrace>: Use
7253 TARGET_DEFAULT_NORETURN.
7255 2014-02-19 Tom Tromey <tromey@redhat.com>
7257 * target-delegates.c: Rebuild.
7258 * target.c (target_disable_btrace): Unconditionally delegate.
7259 * target.h (struct target_ops) <to_disable_btrace>: Use
7260 TARGET_DEFAULT_NORETURN.
7262 2014-02-19 Tom Tromey <tromey@redhat.com>
7264 * target-delegates.c: Rebuild.
7265 * target.c (default_search_memory): New function.
7266 (simple_search_memory): Update comment.
7267 (target_search_memory): Unconditionally delegate.
7268 * target.h (struct target_ops) <to_search_memory>: Use
7269 TARGET_DEFAULT_FUNC.
7271 2014-02-19 Tom Tromey <tromey@redhat.com>
7273 * auxv.c (default_auxv_parse): No longer static.
7274 (target_auxv_parse): Unconditionally delegate.
7275 * auxv.h (default_auxv_parse): Declare.
7276 * target-delegates.c: Rebuild.
7277 * target.c: Include auxv.h.
7278 * target.h (struct target_ops) <to_auxv_parse>: Use
7279 TARGET_DEFAULT_FUNC.
7281 2014-02-19 Tom Tromey <tromey@redhat.com>
7283 * target-delegates.c: Rebuild.
7284 * target.c (target_memory_map): Unconditionally delegate.
7285 * target.h (struct target_ops) <to_memory_map>: Use
7286 TARGET_DEFAULT_RETURN.
7288 2014-02-19 Tom Tromey <tromey@redhat.com>
7290 * target-delegates.c: Rebuild.
7291 * target.c (target_thread_alive): Unconditionally delegate.
7292 * target.h (struct target_ops) <to_thread_alive>: Use
7293 TARGET_DEFAULT_RETURN.
7295 2014-02-19 Tom Tromey <tromey@redhat.com>
7297 * target-delegates.c: Rebuild.
7298 * target.c (target_save_record): Unconditionally delegate.
7299 * target.h (struct target_ops) <to_save_record>: Use
7300 TARGET_DEFAULT_NORETURN.
7302 2014-02-19 Tom Tromey <tromey@redhat.com>
7304 * target-delegates.c: Rebuild.
7305 * target.c (target_delete_record): Unconditionally delegate.
7306 * target.h (struct target_ops) <to_delete_record>: Use
7307 TARGET_DEFAULT_NORETURN.
7309 2014-02-19 Tom Tromey <tromey@redhat.com>
7311 * target-delegates.c: Rebuild.
7312 * target.c (target_record_is_replaying): Unconditionally
7314 * target.h (struct target_ops) <to_record_is_replaying>: Use
7315 TARGET_DEFAULT_RETURN.
7317 2014-02-19 Tom Tromey <tromey@redhat.com>
7319 * target-delegates.c: Rebuild.
7320 * target.c (target_goto_record_begin): Unconditionally delegate.
7321 * target.h (struct target_ops) <to_goto_record_begin>: Use
7322 TARGET_DEFAULT_NORETURN.
7324 2014-02-19 Tom Tromey <tromey@redhat.com>
7326 * target-delegates.c: Rebuild.
7327 * target.c (target_goto_record_end): Unconditionally delegate.
7328 * target.h (struct target_ops) <to_goto_record_end>: Use
7329 TARGET_DEFAULT_NORETURN.
7331 2014-02-19 Tom Tromey <tromey@redhat.com>
7333 * target-delegates.c: Rebuild.
7334 * target.c (target_goto_record): Unconditionally delegate.
7335 * target.h (struct target_ops) <to_goto_record>: Use
7336 TARGET_DEFAULT_NORETURN.
7338 2014-02-19 Tom Tromey <tromey@redhat.com>
7340 * target-delegates.c: Rebuild.
7341 * target.c (target_insn_history): Unconditionally delegate.
7342 * target.h (struct target_ops) <to_insn_history>: Use
7343 TARGET_DEFAULT_NORETURN.
7345 2014-02-19 Tom Tromey <tromey@redhat.com>
7347 * target-delegates.c: Rebuild.
7348 * target.c (target_insn_history_from): Unconditionally delegate.
7349 * target.h (struct target_ops) <to_insn_history_from>: Use
7350 TARGET_DEFAULT_NORETURN.
7352 2014-02-19 Tom Tromey <tromey@redhat.com>
7354 * target-delegates.c: Rebuild.
7355 * target.c (target_insn_history_range): Unconditionally delegate.
7356 * target.h (struct target_ops) <to_insn_history_range>: Use
7357 TARGET_DEFAULT_NORETURN.
7359 2014-02-19 Tom Tromey <tromey@redhat.com>
7361 * target-delegates.c: Rebuild.
7362 * target.c (target_call_history): Unconditionally delegate.
7363 * target.h (struct target_ops) <to_call_history>: Use
7364 TARGET_DEFAULT_NORETURN.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target-delegates.c: Rebuild.
7369 * target.c (target_call_history_from): Unconditionally delegate.
7370 * target.h (struct target_ops) <to_call_history_from>: Use
7371 TARGET_DEFAULT_NORETURN.
7373 2014-02-19 Tom Tromey <tromey@redhat.com>
7375 * target-delegates.c: Rebuild.
7376 * target.c (target_call_history_range): Unconditionally delegate.
7377 * target.h (struct target_ops) <to_call_history_range>: Use
7378 TARGET_DEFAULT_NORETURN.
7380 2014-02-19 Tom Tromey <tromey@redhat.com>
7382 * target-delegates.c: Rebuild.
7383 * target.c (target_verify_memory): Unconditionally delegate.
7384 * target.h (struct target_ops) <to_verify_memory>: Use
7385 TARGET_DEFAULT_NORETURN.
7387 2014-02-19 Tom Tromey <tromey@redhat.com>
7389 * target-delegates.c: Rebuild.
7390 * target.c (target_core_of_thread): Unconditionally delegate.
7391 * target.h (struct target_ops) <to_core_of_thread>: Use
7392 TARGET_DEFAULT_RETURN.
7394 2014-02-19 Tom Tromey <tromey@redhat.com>
7396 * target-delegates.c: Rebuild.
7397 * target.c (target_flash_done): Unconditionally delegate.
7398 * target.h (struct target_ops) <to_flash_done>: Use
7399 TARGET_DEFAULT_NORETURN.
7401 2014-02-19 Tom Tromey <tromey@redhat.com>
7403 * target-delegates.c: Rebuild.
7404 * target.c (target_flash_erase): Unconditionally delegate.
7405 * target.h (struct target_ops) <to_flash_erase>: Use
7406 TARGET_DEFAULT_NORETURN.
7408 2014-02-19 Tom Tromey <tromey@redhat.com>
7410 * target-delegates.c: Rebuild.
7411 * target.c (target_get_section_table): Unconditionally delegate.
7412 * target.h (struct target_ops) <to_get_section_table>: Use
7413 TARGET_DEFAULT_RETURN.
7415 2014-02-19 Tom Tromey <tromey@redhat.com>
7417 * target-delegates.c: Rebuild.
7418 * target.c (target_pid_to_str): Unconditionally delegate.
7419 (init_dummy_target): Don't initialize to_pid_to_str.
7420 (default_pid_to_str): Rename from dummy_pid_to_str.
7421 * target.h (struct target_ops) <to_pid_to_str>: Use
7422 TARGET_DEFAULT_FUNC.
7424 2014-02-19 Tom Tromey <tromey@redhat.com>
7426 * target-delegates.c: Rebuild.
7427 * target.c (target_find_new_threads): Unconditionally delegate.
7428 * target.h (struct target_ops) <to_find_new_threads>: Use
7429 TARGET_DEFAULT_RETURN.
7431 2014-02-19 Tom Tromey <tromey@redhat.com>
7433 * target-delegates.c: Rebuild.
7434 * target.c (target_program_signals): Unconditionally delegate.
7435 * target.h (struct target_ops) <to_program_signals>: Use
7436 TARGET_DEFAULT_IGNORE.
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * target-delegates.c: Rebuild.
7441 * target.c (target_pass_signals): Unconditionally delegate.
7442 * target.h (struct target_ops) <to_pass_signals>: Use
7443 TARGET_DEFAULT_IGNORE.
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7447 * target-delegates.c: Rebuild.
7448 * target.c (default_mourn_inferior): New function.
7449 (target_mourn_inferior): Unconditionally delegate.
7450 * target.h (struct target_ops) <to_mourn_inferior>: Use
7451 TARGET_DEFAULT_FUNC.
7453 2014-02-19 Tom Tromey <tromey@redhat.com>
7455 * target-delegates.c: Rebuild.
7456 * target.c (default_follow_fork): New function.
7457 (target_follow_fork): Unconditionally delegate.
7458 * target.h (struct target_ops) <to_follow_fork>: Use
7459 TARGET_DEFAULT_FUNC.
7461 2014-02-19 Tom Tromey <tromey@redhat.com>
7463 * target-delegates.c: Rebuild.
7464 * target.c (target_kill): Unconditionally delegate.
7465 * target.h (struct target_ops) <to_kill>: Use
7466 TARGET_DEFAULT_NORETURN.
7468 2014-02-19 Tom Tromey <tromey@redhat.com>
7470 * target-delegates.c: Rebuild.
7471 * target.c (target_masked_watch_num_registers): Unconditionally
7473 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7474 Use TARGET_DEFAULT_RETURN.
7476 2014-02-19 Tom Tromey <tromey@redhat.com>
7478 * target-delegates.c: Rebuild.
7479 * target.c (target_remove_mask_watchpoint): Unconditionally
7481 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7482 TARGET_DEFAULT_RETURN.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_insert_mask_watchpoint): Unconditionally
7489 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7490 TARGET_DEFAULT_RETURN.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_ranged_break_num_registers): Unconditionally
7497 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7498 Use TARGET_DEFAULT_RETURN.
7500 2014-02-19 Tom Tromey <tromey@redhat.com>
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_fetch_registers): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_fetch_registers>: Use
7505 TARGET_DEFAULT_NORETURN.
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target-delegates.c: Rebuild.
7510 * target.c (update_current_target): Don't inherit or default
7512 * target.h (struct target_ops) <to_stop>: Use
7513 TARGET_DEFAULT_IGNORE.
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * target-delegates.c: Rebuild.
7518 * target.c (update_current_target): Don't inherit or default
7519 to_can_run_breakpoint_commands.
7520 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7521 Use TARGET_DEFAULT_RETURN.
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7525 * target-delegates.c: Rebuild.
7526 * target.c (update_current_target): Don't inherit or default
7527 to_supports_evaluation_of_breakpoint_conditions.
7528 * target.h (struct target_ops)
7529 <to_supports_evaluation_of_breakpoint_conditions>: Use
7530 TARGET_DEFAULT_RETURN.
7532 2014-02-19 Tom Tromey <tromey@redhat.com>
7534 * target-delegates.c: Rebuild.
7535 * target.c (update_current_target): Don't inherit or default
7536 to_augmented_libraries_svr4_read.
7537 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7538 Use TARGET_DEFAULT_RETURN.
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7542 * target-delegates.c: Rebuild.
7543 * target.c (update_current_target): Don't inherit or default
7545 * target.h (struct target_ops) <to_can_use_agent>: Use
7546 TARGET_DEFAULT_RETURN.
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target-delegates.c: Rebuild.
7551 * target.c (update_current_target): Don't inherit or default
7553 * target.h (struct target_ops) <to_use_agent>: Use
7554 TARGET_DEFAULT_NORETURN.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target-delegates.c: Rebuild.
7559 * target.c (update_current_target): Don't inherit or default
7561 (return_null): Remove.
7562 * target.h (struct target_ops) <to_traceframe_info>: Use
7563 TARGET_DEFAULT_RETURN.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target-delegates.c: Rebuild.
7568 * target.c (update_current_target): Don't inherit or default
7569 to_static_tracepoint_markers_by_strid.
7570 * target.h (struct target_ops)
7571 <to_static_tracepoint_markers_by_strid>: Use
7572 TARGET_DEFAULT_NORETURN.
7574 2014-02-19 Tom Tromey <tromey@redhat.com>
7576 * target-delegates.c: Rebuild.
7577 * target.c (update_current_target): Don't inherit or default
7578 to_static_tracepoint_marker_at.
7579 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7580 Use TARGET_DEFAULT_RETURN.
7582 2014-02-19 Tom Tromey <tromey@redhat.com>
7584 * target-delegates.c: Rebuild.
7585 * target.c (update_current_target): Don't inherit or default
7587 * target.h (struct target_ops) <to_set_permissions>: Use
7588 TARGET_DEFAULT_IGNORE.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target-delegates.c: Rebuild.
7593 * target.c (update_current_target): Don't inherit or default
7595 * target.h (struct target_ops) <to_get_tib_address>: Use
7596 TARGET_DEFAULT_NORETURN.
7598 2014-02-19 Tom Tromey <tromey@redhat.com>
7600 * target-delegates.c: Rebuild.
7601 * target.c (update_current_target): Don't inherit or default
7603 * target.h (struct target_ops) <to_set_trace_notes>: Use
7604 TARGET_DEFAULT_RETURN.
7606 2014-02-19 Tom Tromey <tromey@redhat.com>
7608 * target-delegates.c: Rebuild.
7609 * target.c (update_current_target): Don't initialize
7610 to_set_trace_buffer_size.
7611 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7612 TARGET_DEFAULT_IGNORE.
7614 2014-02-19 Tom Tromey <tromey@redhat.com>
7616 * target-delegates.c: Rebuild.
7617 * target.c (update_current_target): Don't inherit or default
7618 to_set_circular_trace_buffer.
7619 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7620 TARGET_DEFAULT_IGNORE.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target-delegates.c: Rebuild.
7625 * target.c (update_current_target): Don't inherit or default
7626 to_set_disconnected_tracing.
7627 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7628 TARGET_DEFAULT_IGNORE.
7630 2014-02-19 Tom Tromey <tromey@redhat.com>
7632 * target-delegates.c: Rebuild.
7633 * target.c (update_current_target): Don't inherit or default
7634 to_get_min_fast_tracepoint_insn_len.
7635 (return_minus_one): Remove.
7636 * target.h (struct target_ops)
7637 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7639 2014-02-19 Tom Tromey <tromey@redhat.com>
7641 * target-delegates.c: Rebuild.
7642 * target.c (update_current_target): Don't inherit or default
7643 to_get_raw_trace_data.
7644 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7645 TARGET_DEFAULT_NORETURN.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target-delegates.c: Rebuild.
7650 * target.c (update_current_target): Don't inherit or default
7651 to_upload_trace_state_variables.
7652 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7653 Use TARGET_DEFAULT_RETURN.
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * target-delegates.c: Rebuild.
7658 * target.c (update_current_target): Don't inherit or default
7659 to_upload_tracepoints.
7660 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7661 TARGET_DEFAULT_RETURN.
7663 2014-02-19 Tom Tromey <tromey@redhat.com>
7665 * target-delegates.c: Rebuild.
7666 * target.c (update_current_target): Don't inherit or default
7668 * target.h (struct target_ops) <to_save_trace_data>: Use
7669 TARGET_DEFAULT_NORETURN.
7671 2014-02-19 Tom Tromey <tromey@redhat.com>
7673 * target-delegates.c: Rebuild.
7674 * target.c (update_current_target): Don't inherit or default
7675 to_get_trace_state_variable_value.
7676 * target.h (struct target_ops)
7677 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7681 * target-delegates.c: Rebuild.
7682 * target.c (update_current_target): Don't inherit or default
7684 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7686 2014-02-19 Tom Tromey <tromey@redhat.com>
7688 * target-delegates.c: Rebuild.
7689 * target.c (update_current_target): Don't inherit or default
7691 * target.h (struct target_ops) <to_trace_stop>: Use
7692 TARGET_DEFAULT_NORETURN.
7694 2014-02-19 Tom Tromey <tromey@redhat.com>
7696 * target-delegates.c: Rebuild.
7697 * target.c (update_current_target): Don't inherit or default
7698 to_get_tracepoint_status.
7699 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7700 TARGET_DEFAULT_NORETURN.
7702 2014-02-19 Tom Tromey <tromey@redhat.com>
7704 * target-delegates.c: Rebuild.
7705 * target.c (update_current_target): Don't inherit or default
7706 to_get_trace_status.
7707 * target.h (struct target_ops) <to_get_trace_status>: Use
7708 TARGET_DEFAULT_RETURN.
7710 2014-02-19 Tom Tromey <tromey@redhat.com>
7712 * target-delegates.c: Rebuild.
7713 * target.c (update_current_target): Don't inherit or default
7715 * target.h (struct target_ops) <to_trace_start>: Use
7716 TARGET_DEFAULT_NORETURN.
7718 2014-02-19 Tom Tromey <tromey@redhat.com>
7720 * target-delegates.c: Rebuild.
7721 * target.c (update_current_target): Don't inherit or default
7722 to_trace_set_readonly_regions.
7723 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7724 Use TARGET_DEFAULT_NORETURN.
7726 2014-02-19 Tom Tromey <tromey@redhat.com>
7728 * target-delegates.c: Rebuild.
7729 * target.c (update_current_target): Don't inherit or default
7730 to_disable_tracepoint.
7731 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7732 TARGET_DEFAULT_NORETURN.
7734 2014-02-19 Tom Tromey <tromey@redhat.com>
7736 * target-delegates.c: Rebuild.
7737 * target.c (update_current_target): Don't inherit or default
7738 to_enable_tracepoint.
7739 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7740 TARGET_DEFAULT_NORETURN.
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7744 * target-delegates.c: Rebuild.
7745 * target.c (update_current_target): Don't inherit or default
7746 to_download_trace_state_variable.
7747 * target.h (struct target_ops) <to_download_trace_state_variable>:
7748 Use TARGET_DEFAULT_NORETURN.
7750 2014-02-19 Tom Tromey <tromey@redhat.com>
7752 * target-delegates.c: Rebuild.
7753 * target.c (update_current_target): Don't inherit or default
7754 to_can_download_tracepoint.
7755 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7756 TARGET_DEFAULT_RETURN.
7758 2014-02-19 Tom Tromey <tromey@redhat.com>
7760 * target-delegates.c: Rebuild.
7761 * target.c (update_current_target): Don't inherit or default
7762 to_download_tracepoint.
7763 * target.h (struct target_ops) <to_download_tracepoint>: Use
7764 TARGET_DEFAULT_NORETURN.
7766 2014-02-19 Tom Tromey <tromey@redhat.com>
7768 * target-delegates.c: Rebuild.
7769 * target.c (update_current_target): Don't inherit or default
7771 * target.h (struct target_ops) <to_trace_init>: Use
7772 TARGET_DEFAULT_RETURN.
7774 2014-02-19 Tom Tromey <tromey@redhat.com>
7776 * target-delegates.c: Rebuild.
7777 * target.c (update_current_target): Don't inherit or default
7778 to_supports_string_tracing.
7779 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7780 TARGET_DEFAULT_RETURN.
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7784 * target-delegates.c: Rebuild.
7785 * target.c (update_current_target): Don't inherit or default
7786 to_supports_enable_disable_tracepoint.
7787 * target.h (struct target_ops)
7788 <to_supports_enable_disable_tracepoint>: Use
7789 TARGET_DEFAULT_RETURN.
7791 2014-02-19 Tom Tromey <tromey@redhat.com>
7793 * target-delegates.c: Rebuild.
7794 * target.c (update_current_target): Don't inherit or default
7795 to_supports_multi_process.
7796 * target.h (struct target_ops) <to_supports_multi_process>: Use
7797 TARGET_DEFAULT_RETURN.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * target-delegates.c: Rebuild.
7802 * target.c (update_current_target): Don't inherit or default
7803 to_get_ada_task_ptid.
7804 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7805 TARGET_DEFAULT_FUNC.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (update_current_target): Don't inherit or default
7811 to_thread_architecture.
7812 * target.h (struct target_ops) <to_thread_architecture>: Use
7813 TARGET_DEFAULT_FUNC.
7815 2014-02-19 Tom Tromey <tromey@redhat.com>
7817 * target-delegates.c: Rebuild.
7818 * target.c (update_current_target): Don't inherit or default
7819 to_execution_direction.
7820 * target.h (struct target_ops) <to_execution_direction>: Use
7821 TARGET_DEFAULT_FUNC.
7823 2014-02-19 Tom Tromey <tromey@redhat.com>
7825 * target-delegates.c: Rebuild.
7826 * target.c (update_current_target): Don't inherit or default
7827 to_can_execute_reverse.
7828 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7829 TARGET_DEFAULT_RETURN.
7830 (target_can_execute_reverse): Unconditionally delegate.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target-delegates.c: Rebuild.
7835 * target.c (update_current_target): Don't inherit or default
7837 (dummy_goto_bookmark): Remove.
7838 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7839 * target.h (struct target_ops) <to_goto_bookmark>: Use
7840 TARGET_DEFAULT_NORETURN.
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7844 * target-delegates.c: Rebuild.
7845 * target.c (update_current_target): Don't inherit or default
7847 (dummy_get_bookmark): Remove.
7848 (init_dummy_target): Don't inherit or default to_get_bookmark.
7849 * target.h (struct target_ops) <to_get_bookmark>: Use
7850 TARGET_DEFAULT_NORETURN
7852 2014-02-19 Tom Tromey <tromey@redhat.com>
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7856 to_make_corefile_notes.
7857 (init_dummy_target): Don't initialize to_make_corefile_notes.
7858 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7859 TARGET_DEFAULT_FUNC.
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7863 * target-delegates.c: Rebuild.
7864 * target.c (update_current_target): Don't inherit or default
7865 to_find_memory_regions.
7866 (init_dummy_target): Don't initialize to_find_memory_regions.
7867 * target.h (struct target_ops) <to_find_memory_regions>: Use
7868 TARGET_DEFAULT_FUNC.
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7872 * target-delegates.c: Rebuild.
7873 * target.c (update_current_target): Don't inherit or default
7875 * target.h (struct target_ops) <to_log_command>: Use
7876 TARGET_DEFAULT_IGNORE.
7877 (target_log_command): Unconditionally delegate.
7879 2014-02-19 Tom Tromey <tromey@redhat.com>
7881 * target-delegates.c: Rebuild.
7882 * target.c (update_current_target): Don't inherit or default
7883 to_pid_to_exec_file.
7884 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7885 TARGET_DEFAULT_RETURN.
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7889 * target-delegates.c: Rebuild.
7890 * target.c (update_current_target): Don't inherit or default
7892 (target_thread_name): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_thread_name>: Use
7894 TARGET_DEFAULT_RETURN.
7896 2014-02-19 Tom Tromey <tromey@redhat.com>
7898 * target-delegates.c: Rebuild.
7899 * target.c (update_current_target): Don't inherit or default
7900 to_extra_thread_info.
7901 * target.h (struct target_ops) <to_extra_thread_info>: Use
7902 TARGET_DEFAULT_RETURN.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (update_current_target): Don't inherit or default
7909 * target.h (struct target_ops) <to_has_exited>: Use
7910 TARGET_DEFAULT_RETURN..
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (update_current_target): Don't inherit or default
7916 to_set_syscall_catchpoint.
7917 (return_one): Remove.
7918 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7919 TARGET_DEFAULT_RETURN.
7921 2014-02-19 Tom Tromey <tromey@redhat.com>
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_insert_exec_catchpoint.
7926 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7927 TARGET_DEFAULT_RETURN.
7929 2014-01-08 Tom Tromey <tromey@redhat.com>
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7933 to_insert_exec_catchpoint.
7934 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7935 TARGET_DEFAULT_RETURN.
7937 2014-02-19 Tom Tromey <tromey@redhat.com>
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_remove_vfork_catchpoint.
7942 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7943 TARGET_DEFAULT_RETURN.
7945 2014-02-19 Tom Tromey <tromey@redhat.com>
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_insert_vfork_catchpoint.
7950 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7951 TARGET_DEFAULT_RETURN.
7953 2014-02-19 Tom Tromey <tromey@redhat.com>
7955 * target-delegates.c: Rebuild.
7956 * target.c (update_current_target): Don't inherit or default
7957 to_remove_fork_catchpoint.
7958 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7959 TARGET_DEFAULT_RETURN.
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't inherit or default
7965 to_insert_fork_catchpoint.
7966 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7967 TARGET_DEFAULT_RETURN.
7969 2014-02-19 Tom Tromey <tromey@redhat.com>
7971 * target-delegates.c: Rebuild.
7972 * target.c (update_current_target): Don't inherit or default
7973 to_post_startup_inferior.
7974 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7975 TARGET_DEFAULT_IGNORE.
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7979 * target-delegates.c: Rebuild.
7980 * target.c (update_current_target): Don't inherit or default
7982 * target.h (struct target_ops) <to_load>: Use
7983 TARGET_DEFAULT_NORETURN.
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7990 * target.h (struct target_ops) <to_terminal_info>: Use
7991 TARGET_DEFAULT_FUNC.
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7997 to_terminal_save_ours.
7998 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7999 TARGET_DEFAULT_IGNORE.
8001 2014-02-19 Tom Tromey <tromey@redhat.com>
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8006 * target.h (struct target_ops) <to_terminal_ours>: Use
8007 TARGET_DEFAULT_IGNORE.
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8013 to_terminal_ours_for_output.
8014 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8015 TARGET_DEFAULT_IGNORE.
8017 2014-02-19 Tom Tromey <tromey@redhat.com>
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_terminal_inferior.
8022 * target.h (struct target_ops) <to_terminal_inferior>: Use
8023 TARGET_DEFAULT_IGNORE.
8025 2014-02-19 Tom Tromey <tromey@redhat.com>
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8030 * target.h (struct target_ops) <to_terminal_init>: Use
8031 TARGET_DEFAULT_IGNORE.
8033 2014-02-19 Tom Tromey <tromey@redhat.com>
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_can_accel_watchpoint_condition.
8038 * target.h (struct target_ops)
8039 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_region_ok_for_hw_watchpoint.
8046 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8047 Use TARGET_DEFAULT_FUNC.
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_watchpoint_addr_within_range.
8054 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8055 Use TARGET_DEFAULT_FUNC.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8061 to_remove_watchpoint.
8062 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8063 TARGET_DEFAULT_NORETURN.
8065 2014-02-19 Tom Tromey <tromey@redhat.com>
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_insert_watchpoint.
8070 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8071 TARGET_DEFAULT_RETURN.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8077 to_remove_hw_breakpoint.
8078 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8079 TARGET_DEFAULT_RETURN.
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * target-delegates.c: Rebuild.
8084 * target.c (update_current_target): Don't inherit or default
8085 to_insert_hw_breakpoint.
8086 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8087 TARGET_DEFAULT_RETURN.
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8091 * target-delegates.c: Rebuild.
8092 * target.c (update_current_target): Don't inherit or default
8093 to_can_use_hw_breakpoint.
8094 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8095 TARGET_DEFAULT_RETURN.
8097 2014-02-19 Tom Tromey <tromey@redhat.com>
8099 * target-delegates.c: Rebuild.
8100 * target.c (update_current_target): Don't inherit or default
8102 * target.h (struct target_ops) <to_files_info>: Use
8103 TARGET_DEFAULT_IGNORE.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8110 * target.h (struct target_ops) <to_store>: Use
8111 TARGET_DEFAULT_NORETURN.
8113 2014-02-19 Tom Tromey <tromey@redhat.com>
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8118 * target.h (struct target_ops) <to_post_attach>: Use
8119 TARGET_DEFAULT_IGNORE.
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8126 (default_rcmd): New function.
8127 (do_monitor_command): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_rmcd>: Use
8129 TARGET_DEFAULT_FUNC.
8131 2014-02-19 Tom Tromey <tromey@redhat.com>
8133 * target-delegates.c: Rebuild.
8134 * target.c (init_dummy_target): Don't initialize to_attach.
8135 (target_attach): Unconditionally delegate.
8136 * target.h (struct target_ops) <to_attach>: Use
8137 TARGET_DEFAULT_FUNC.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_detach): Unconditionally delegate.
8143 (init_dummy_target): Don't initialize to_detach.
8144 * target.h (struct target_ops) <to_detach>: Use
8145 TARGET_DEFAULT_IGNORE.
8147 2014-02-19 Tom Tromey <tromey@redhat.com>
8149 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8151 (target_augmented_libraries_svr4_read): Add argument.
8152 * target.c (update_current_target): Update.
8153 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target.h (struct target_ops) <to_call_history_range>: Add
8160 * target.c (target_call_history_range): Add argument.
8161 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8163 (record_btrace_call_history_from): Update.
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8167 * target.h (struct target_ops) <to_call_history_from>: Add
8169 * target.c (target_call_history_from): Add argument.
8170 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target.h (struct target_ops) <to_call_history>: Add argument.
8176 * target.c (target_call_history): Add argument.
8177 * record-btrace.c (record_btrace_call_history): Add 'self'
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8182 * target.h (struct target_ops) <to_insn_history_range>: Add
8184 * target.c (target_insn_history_range): Add argument.
8185 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8187 (record_btrace_insn_history_from): Update.
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target.h (struct target_ops) <to_insn_history_from>: Add
8193 * target.c (target_insn_history_from): Add argument.
8194 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8197 2014-02-19 Tom Tromey <tromey@redhat.com>
8199 * target.h (struct target_ops) <to_insn_history>: Add argument.
8200 * target.c (target_insn_history): Add argument.
8201 * record-btrace.c (record_btrace_insn_history): Add 'self'
8204 2014-02-19 Tom Tromey <tromey@redhat.com>
8206 * target.h (struct target_ops) <to_goto_record>: Add argument.
8207 * target.c (target_goto_record): Add argument.
8208 * record-full.c (record_full_goto): Add 'self' argument.
8209 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8214 * target.c (target_goto_record_end): Add argument.
8215 * record-full.c (record_full_goto_end): Add 'self' argument.
8216 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * target.h (struct target_ops) <to_goto_record_begin>: Add
8222 * target.c (target_goto_record_begin): Add argument.
8223 * record-full.c (record_full_goto_begin): Add 'self' argument.
8224 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8229 * target.h (struct target_ops) <to_record_is_replaying>: Add
8231 * target.c (target_record_is_replaying): Add argument.
8232 * record-full.c (record_full_is_replaying): Add 'self' argument.
8233 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8235 (record_btrace_xfer_partial, record_btrace_store_registers)
8236 (record_btrace_prepare_to_store, record_btrace_resume)
8237 (record_btrace_wait, record_btrace_decr_pc_after_break)
8238 (record_btrace_find_new_threads, record_btrace_thread_alive):
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target.h (struct target_ops) <to_delete_record>: Add argument.
8244 * target.c (target_delete_record): Add argument.
8245 * record-full.c (record_full_delete): Add 'self' argument.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target.h (struct target_ops) <to_save_record>: Add argument.
8250 * target.c (target_save_record): Add argument.
8251 * record-full.c (record_full_save): Add 'self' argument.
8252 (record_full_save): Add 'self' argument.
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8256 * target.h (struct target_ops) <to_info_record>: Add argument.
8257 * target.c (target_info_record): Add argument.
8258 * record.c (info_record_command): Add argument.
8259 * record-full.c (record_full_info): Add 'self' argument.
8260 * record-btrace.c (record_btrace_info): Add 'self' argument.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8265 * target.c (target_stop_recording): Add argument.
8266 * record.c (record_stop): Add argument.
8267 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8270 2014-02-19 Tom Tromey <tromey@redhat.com>
8272 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8273 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8274 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8276 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8277 (_initialize_amd64_linux_nat): Use it.
8278 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8279 (_initialize_i386_linux_nat): Use it.
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8284 * target.c (target_teardown_btrace): Add argument.
8285 * remote.c (remote_teardown_btrace): Add 'self' argument.
8286 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8288 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8294 * target.c (target_disable_btrace): Add argument.
8295 * remote.c (remote_disable_btrace): Add 'self' argument.
8296 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8298 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8304 * target.c (target_enable_btrace): Add argument.
8305 * remote.c (remote_enable_btrace): Add 'self' argument.
8306 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8308 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8311 2014-02-19 Tom Tromey <tromey@redhat.com>
8313 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8314 (target_can_use_agent): Add argument.
8315 * target.c (update_current_target): Update.
8316 * remote.c (remote_can_use_agent): Add 'self' argument.
8317 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * target.h (struct target_ops) <to_use_agent>: Add argument.
8322 (target_use_agent): Add argument.
8323 * target.c (update_current_target): Update.
8324 * remote.c (remote_use_agent): Add 'self' argument.
8325 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8330 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8331 (target_traceframe_info): Add argument.
8332 * target.c (update_current_target): Update.
8333 * remote.c (remote_traceframe_info): Add 'self' argument.
8334 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target.h (target_static_tracepoint_markers_by_strid): Add
8340 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8342 * target.c (update_current_target): Update.
8343 * remote.c (struct target_ops)
8344 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8345 * linux-nat.c (struct target_ops)
8346 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8348 2014-02-19 Tom Tromey <tromey@redhat.com>
8350 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8352 (target_static_tracepoint_marker_at): Add argument.
8353 * target.c (update_current_target): Update.
8354 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8360 (target_set_permissions): Add argument.
8361 * target.c (update_current_target): Update.
8362 * remote.c (remote_set_permissions): Add 'self' argument.
8363 (remote_start_remote): Update.
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8367 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8368 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8369 (target_get_tib_address): Add argument.
8370 * target.c (update_current_target): Update.
8371 * remote.c (remote_get_tib_address): Add 'self' argument.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8376 (target_set_trace_notes): Add argument.
8377 * target.c (update_current_target): Update.
8378 * remote.c (remote_set_trace_notes): Add 'self' argument.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8384 (target_set_trace_buffer_size): Add argument.
8385 * target.c (update_current_target): Update.
8386 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8392 (target_set_circular_trace_buffer): Add argument.
8393 * target.c (update_current_target): Update.
8394 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8397 2014-02-19 Tom Tromey <tromey@redhat.com>
8399 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8401 (target_set_disconnected_tracing): Add argument.
8402 * target.c (update_current_target): Update.
8403 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8407 * target.h (struct target_ops)
8408 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8409 (target_get_min_fast_tracepoint_insn_len): Add argument.
8410 * target.c (update_current_target): Update.
8411 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8414 2014-02-19 Tom Tromey <tromey@redhat.com>
8416 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8418 (target_get_raw_trace_data): Add argument.
8419 * target.c (update_current_target): Update.
8420 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8426 (target_upload_trace_state_variables): Add argument.
8427 * target.c (update_current_target): Update.
8428 * remote.c (remote_upload_trace_state_variables): Add 'self'
8430 (remote_start_remote): Update.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8436 (target_upload_tracepoints): Add argument.
8437 * target.c (update_current_target): Update.
8438 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8439 (remote_start_remote): Update.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8444 (target_save_trace_data): Add argument.
8445 * target.c (update_current_target): Update.
8446 * remote.c (remote_save_trace_data): Add 'self' argument.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8452 * target.h (struct target_ops)
8453 <to_get_trace_state_variable_value>: Add argument.
8454 (target_get_trace_state_variable_value): Add argument.
8455 * target.c (update_current_target): Update.
8456 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8458 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8463 * target.h (struct target_ops) <to_trace_find>: Add argument.
8464 (target_trace_find): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_trace_find): Add 'self' argument.
8467 * ctf.c (ctf_trace_find): Add 'self' argument.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8472 (target_trace_stop): Add argument.
8473 * target.c (update_current_target): Update.
8474 * remote.c (remote_trace_stop): Add 'self' argument.
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8478 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8479 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8481 (target_get_tracepoint_status): Add argument.
8482 * target.c (update_current_target): Update.
8483 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8488 * target.h (struct target_ops) <to_get_trace_status>: Add
8490 (target_get_trace_status): Add argument.
8491 * target.c (update_current_target): Update.
8492 * remote.c (remote_get_trace_status): Add 'self' argument.
8493 (remote_start_remote, remote_can_download_tracepoint): Update.
8494 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target.h (struct target_ops) <to_trace_start>: Add argument.
8499 (target_trace_start): Add argument.
8500 * target.c (update_current_target): Update.
8501 * remote.c (remote_trace_start): Add 'self' argument.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8507 (target_trace_set_readonly_regions): Add argument.
8508 * target.c (update_current_target): Update.
8509 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8516 (target_disable_tracepoint): Add argument.
8517 * target.c (update_current_target): Update.
8518 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8522 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8524 (target_enable_tracepoint): Add argument.
8525 * target.c (update_current_target): Update.
8526 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target.h (struct target_ops) <to_download_trace_state_variable>:
8532 (target_download_trace_state_variable): Add argument.
8533 * target.c (update_current_target): Update.
8534 * remote.c (remote_download_trace_state_variable): Add 'self'
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8541 (target_can_download_tracepoint): Add argument.
8542 * target.c (update_current_target): Update.
8543 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target.h (struct target_ops) <to_download_tracepoint>: Add
8549 (target_download_tracepoint): Add argument.
8550 * target.c (update_current_target): Update.
8551 * remote.c (remote_download_tracepoint): Add 'self' argument.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target.h (struct target_ops) <to_trace_init>: Add argument.
8556 (target_trace_init): Add argument.
8557 * target.c (update_current_target): Update.
8558 * remote.c (remote_trace_init): Add 'self' argument.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8563 * target.c (target_fileio_readlink): Add argument.
8564 * remote.c (remote_hostio_readlink): Add 'self' argument.
8565 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8569 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8570 * target.c (target_fileio_unlink): Add argument.
8571 * remote.c (remote_hostio_unlink): Add 'self' argument.
8572 (remote_file_delete): Update.
8573 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8577 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8578 * target.c (target_fileio_close): Add argument.
8579 * remote.c (remote_hostio_close): Add 'self' argument.
8580 (remote_hostio_close_cleanup): Update.
8581 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8583 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8588 * target.c (target_fileio_pread): Add argument.
8589 * remote.c (remote_hostio_pread): Add 'self' argument.
8590 (remote_bfd_iovec_pread, remote_file_get): Update.
8591 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8596 * target.c (target_fileio_pwrite): Add argument.
8597 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8598 (remote_file_put): Update.
8599 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8604 * target.c (target_fileio_open): Add argument.
8605 * remote.c (remote_hostio_open): Add 'self' argument.
8606 (remote_bfd_iovec_open): Add 'self' argument.
8607 (remote_file_put): Add 'self' argument.
8608 (remote_file_get): Add 'self' argument.
8609 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8615 (target_can_run_breakpoint_commands): Add argument.
8616 * target.c (update_current_target): Update.
8617 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8619 (remote_insert_breakpoint): Add 'self' argument.
8620 (remote_insert_hw_breakpoint): Add 'self' argument.
8621 (remote_can_run_breakpoint_commands): Add 'self' argument.
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8625 * target.h (struct target_ops)
8626 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8627 (target_supports_evaluation_of_breakpoint_conditions): Add
8629 * target.c (update_current_target): Update.
8630 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8632 (remote_insert_breakpoint): Add 'self' argument.
8633 (remote_insert_hw_breakpoint): Add 'self' argument.
8634 (remote_supports_cond_breakpoints): Add 'self' argument.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8640 (target_supports_string_tracing): Add argument.
8641 * target.c (update_current_target): Update.
8642 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target.h (struct target_ops)
8647 <to_supports_disable_randomization>: Add argument.
8648 * target.c (find_default_supports_disable_randomization): Add
8650 (target_supports_disable_randomization): Add argument.
8651 (find_default_supports_disable_randomization): Add 'self'
8653 * remote.c (extended_remote_supports_disable_randomization): Add
8655 (remote_supports_disable_randomization): Add 'self' argument.
8656 (extended_remote_create_inferior): Update.
8657 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target.h (struct target_ops)
8663 <to_supports_enable_disable_tracepoint>: Add argument.
8664 (target_supports_enable_disable_tracepoint): Add argument.
8665 * target.c (update_current_target): Update.
8666 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target.h (struct target_ops) <to_supports_multi_process>: Add
8673 (target_supports_multi_process): Add argument.
8674 * target.c (update_current_target): Update.
8675 * remote.c (remote_supports_multi_process): Add 'self' argument.
8676 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8678 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target.h (struct target_ops) <to_execution_direction>: Add
8685 (target_execution_direction): Add argument.
8686 * target.c (default_execution_direction): Add 'self' argument.
8687 * record-full.c (record_full_execution_direction): Add 'self'
8690 2014-02-19 Tom Tromey <tromey@redhat.com>
8692 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8694 (target_can_execute_reverse): Add argument.
8695 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8696 * record-full.c (record_full_can_execute_reverse): Add 'self'
8698 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8704 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8706 (target_get_ada_task_ptid): Add argument.
8707 * target.c (update_current_target): Update.
8708 (default_get_ada_task_ptid): Add 'self' argument.
8709 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8710 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8711 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8713 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8715 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8717 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8719 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8720 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8723 2014-02-19 Tom Tromey <tromey@redhat.com>
8725 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8726 (target_goto_bookmark): Add argument.
8727 * target.c (dummy_goto_bookmark): Add 'self' argument.
8728 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8732 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8733 (target_get_bookmark): Add argument.
8734 * target.c (dummy_get_bookmark): Add 'self' argument.
8735 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8739 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8741 (target_make_corefile_notes): Add argument.
8742 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8743 * procfs.c (procfs_make_note_section): Add 'self' argument.
8744 (procfs_make_note_section): Add 'self' argument.
8745 (procfs_make_note_section): Add 'self' argument.
8746 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8748 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8749 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8750 * exec.c (exec_make_note_section): Add 'self' argument.
8751 (exec_make_note_section): Add 'self' argument.
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8755 * target.h (struct target_ops) <to_find_memory_regions>: Add
8757 (target_find_memory_regions): Add argument.
8758 * target.c (dummy_find_memory_regions): Add 'self' argument.
8759 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8760 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8761 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8762 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8763 * exec. (exec_do_find_memory_regions): New global.
8764 (exec_set_find_memory_regions): Rewrite.
8765 (exec_find_memory_regions): New function.
8766 (init_exec_ops): Use exec_find_memory_regions.
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8770 * target.h (struct target_ops) <to_supports_non_stop>: Add
8772 * target.c (find_default_supports_non_stop): Add argument.
8773 (target_supports_non_stop): Add argument.
8774 (find_default_supports_non_stop): Add 'self' argument.
8775 * remote.c (remote_supports_non_stop): Add 'self' argument.
8776 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target.h (struct target_ops) <to_log_command>: Add argument.
8781 (target_log_command): Add argument.
8782 * serial.h (serial_log_command): Add 'self' argument.
8783 * serial.c (serial_log_command): Add 'self' argument.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8788 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8790 (target_pid_to_exec_file): Add argument.
8791 * target.c (debug_to_pid_to_exec_file): Add argument.
8792 (update_current_target): Update.
8793 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8794 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8795 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8796 (linux_handle_extended_wait): Update.
8797 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8798 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8799 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8800 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target.h (struct target_ops) <to_rcmd>: Add argument.
8805 (target_rcmd): Add argument.
8806 * target.c (debug_to_rcmd): Add argument.
8807 (update_current_target, do_monitor_command): Update.
8808 * remote.c (remote_rcmd): Add 'self' argument.
8809 * monitor.c (monitor_rcmd): Add 'self' argument.
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8813 * windows-nat.c (windows_stop): Add 'self' argument.
8814 * target.h (struct target_ops) <to_stop>: Add argument.
8815 * target.c (target_stop): Add argument.
8816 (debug_to_stop): Add argument.
8817 (update_current_target): Update.
8818 * remote.c (remote_stop): Add 'self' argument.
8819 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8820 (gdbsim_cntrl_c): Update.
8821 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8822 * procfs.c (procfs_stop): Add 'self' argument.
8823 * nto-procfs.c (procfs_stop): Add 'self' argument.
8824 * monitor.c (monitor_stop): Add 'self' argument.
8825 (monitor_open): Update.
8826 * linux-nat.c (linux_nat_stop): Add argument.
8827 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8828 * gnu-nat.c (gnu_stop): Add 'self' argument.
8829 * darwin-nat.c (darwin_stop): Add 'self' argument.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target.h (struct target_ops) <to_thread_name>: Add argument.
8834 * target.c (target_thread_name): Add argument.
8835 (update_current_target): Update.
8836 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8840 * target.h (struct target_ops) <to_extra_thread_info>: Add
8842 (target_extra_thread_info): Add argument.
8843 * target.c (update_current_target): Update.
8844 * remote.c (remote_threads_extra_info): Add 'self' argument.
8845 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8847 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8848 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8849 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8851 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8853 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8855 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8860 * target.h (struct target_ops) <to_program_signals>: Add argument.
8861 * target.c (target_program_signals): Add argument.
8862 * remote.c (remote_program_signals): Add 'self' argument.
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8867 * target.c (target_pass_signals): Add argument.
8868 * remote.c (remote_pass_signals): Add 'self' argument.
8869 (remote_start_remote): Update.
8870 * procfs.c (procfs_pass_signals): Add 'self' argument.
8871 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8872 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8873 (linux_nat_create_inferior, linux_nat_attach): Update.
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8877 * windows-nat.c (windows_can_run): Add 'self' argument.
8878 * target.h (struct target_ops) <to_can_run>: Add argument.
8879 (target_can_run): Add argument.
8880 * target.c (debug_to_can_run): Add argument.
8881 (update_current_target): Update.
8882 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8883 * inf-child.c (inf_child_can_run): Add 'self' argument.
8884 * go32-nat.c (go32_can_run): Add 'self' argument.
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8888 * target.h (struct target_ops) <to_has_exited>: Add argument.
8889 (target_has_exited): Add argument.
8890 * target.c (debug_to_has_exited): Add argument.
8891 (update_current_target): Update.
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8895 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8897 (target_set_syscall_catchpoint): Add argument.
8898 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8900 * target.c (update_current_target): Update.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8906 (target_remove_exec_catchpoint): Add argument.
8907 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8908 (update_current_target): Update.
8909 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8912 2014-02-19 Tom Tromey <tromey@redhat.com>
8914 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8916 (target_insert_exec_catchpoint): Add argument.
8917 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8918 (update_current_target): Update.
8919 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8924 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8926 (target_remove_vfork_catchpoint): Add argument.
8927 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8928 (update_current_target): Update.
8929 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8936 (target_insert_vfork_catchpoint): Add argument.
8937 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8938 (update_current_target): Update.
8939 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8946 (target_remove_fork_catchpoint): Add argument.
8947 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8948 (update_current_target): Update.
8949 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8956 (target_insert_fork_catchpoint): Add argument.
8957 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8958 (update_current_target): Update.
8959 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8966 (target_post_startup_inferior): Add argument.
8967 * target.c (debug_to_post_startup_inferior): Add argument.
8968 (update_current_target): Update.
8969 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8971 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8973 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8975 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8977 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8979 (super_post_startup_inferior): Likewise.
8980 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8982 (super_post_startup_inferior): Likewise.
8983 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8984 Add 'self' argument.
8985 (super_post_startup_inferior): Likewise.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_load>: Add argument.
8990 * target.c (target_load): Add argument.
8991 (debug_to_load): Add argument.
8992 (update_current_target): Update.
8993 * remote.c (remote_load): Add 'self' argument.
8994 * remote-sim.c (gdbsim_load): Add 'self' argument.
8995 * remote-mips.c (mips_load): Add 'self' argument.
8996 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8997 * monitor.c (monitor_load): Add 'self' argument.
8998 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9003 (target_terminal_info): Add argument.
9004 * target.c (debug_to_terminal_info): Add argument.
9005 (default_terminal_info): Likewise.
9006 * inflow.c (child_terminal_info): Add 'self' argument.
9007 * inferior.h (child_terminal_info): Add 'self' argument.
9008 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9012 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9014 (target_terminal_save_ours): Add argument.
9015 * target.c (debug_to_terminal_save_ours): Add argument.
9016 (update_current_target): Update.
9017 * inflow.c (terminal_save_ours): Add 'self' argument.
9018 * inferior.h (terminal_save_ours): Add 'self' argument.
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9023 (target_terminal_ours): Add argument.
9024 * target.c (debug_to_terminal_ours): Add argument.
9025 (update_current_target): Update.
9026 * remote.c (remote_terminal_ours): Add 'self' argument.
9027 (remote_close): Update.
9028 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9029 * inflow.c (terminal_ours): Add 'self' argument.
9030 * inferior.h (terminal_ours): Add 'self' argument.
9031 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9033 2014-02-19 Pedro Alves <palves@redhat.com>
9034 Tom Tromey <tromey@redhat.com>
9036 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9038 (target_terminal_ours_for_output): Add argument.
9039 * target.c (debug_to_terminal_ours_for_output): Add argument.
9040 (update_current_target): Update.
9041 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9042 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9043 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target.h (struct target_ops) <to_terminal_inferior>: Add
9049 * target.c (target_terminal_inferior): Add argument.
9050 (update_current_target): Update.
9051 * remote.c (remote_terminal_inferior): Add 'self' argument.
9052 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9053 * inflow.c (terminal_inferior): Add 'self' argument.
9054 * inferior.h (terminal_inferior): Add 'self' argument.
9055 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9056 (go32_terminal_inferior): Add 'self' argument.
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9060 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9061 (target_terminal_init): Add argument.
9062 * target.c (debug_to_terminal_init): Add argument.
9063 (update_current_target): Update.
9064 * inflow.c (terminal_init_inferior): Add 'self' argument.
9065 * inferior.h (terminal_init_inferior): Add 'self' argument.
9066 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9067 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9071 * target.h (struct target_ops)
9072 <to_can_accel_watchpoint_condition>: Add argument.
9073 (target_can_accel_watchpoint_condition): Add argument.
9074 * target.c (debug_to_can_accel_watchpoint_condition): Add
9076 (update_current_target): Update.
9077 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9084 (target_region_ok_for_hw_watchpoint): Add argument.
9085 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9086 (default_region_ok_for_hw_watchpoint): Add argument.
9087 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9088 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9090 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9092 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9094 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9096 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9098 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9100 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9101 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9103 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9104 Add 'self' argument.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9110 (target_insert_watchpoint): Add argument.
9111 * target.c (debug_to_insert_watchpoint): Add argument.
9112 (update_current_target): Update.
9113 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9114 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9115 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9116 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9117 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9118 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9120 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9121 (procfs_insert_hw_watchpoint): Add 'self' argument.
9122 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9124 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9126 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9128 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9129 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9131 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9134 2014-02-19 Tom Tromey <tromey@redhat.com>
9136 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9138 (target_remove_watchpoint): Add argument.
9139 * target.c (debug_to_remove_watchpoint): Add argument.
9140 (update_current_target): Update.
9141 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9142 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9143 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9144 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9145 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9146 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9148 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9149 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9151 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9153 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9155 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9156 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9158 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9165 (target_remove_hw_breakpoint): Add argument.
9166 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9167 (update_current_target): Update.
9168 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9169 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9171 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9172 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9174 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9181 (target_insert_hw_breakpoint): Add argument.
9182 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9185 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9187 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9188 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9189 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9191 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9198 (target_can_use_hardware_watchpoint): Add argument.
9199 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9200 (update_current_target): Update.
9201 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9203 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9205 * remote.c (remote_check_watch_resources): Add 'self' argument.
9206 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9207 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9209 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9210 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9212 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9214 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9216 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9218 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9220 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9222 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9223 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9225 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_post_attach>: Add argument.
9231 (target_post_attach): Add argument.
9232 * target.c (debug_to_post_attach): Add argument.
9233 (update_current_target): Update.
9234 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9235 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9236 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9237 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9238 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * windows-nat.c (windows_close): Add 'self' argument.
9243 * tracepoint.c (tfile_close): Add 'self' argument.
9244 * target.h (struct target_ops) <to_close>: Add argument.
9245 * target.c (target_close): Add argument.
9246 (update_current_target): Update.
9247 * remote.c (remote_close): Add 'self' argument.
9248 * remote-sim.c (gdbsim_close): Add 'self' argument.
9249 * remote-mips.c (mips_close): Add 'self' argument.
9250 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9251 * record-full.c (record_full_close): Add 'self' argument.
9252 * record-btrace.c (record_btrace_close): Add 'self' argument.
9253 * monitor.h (monitor_close): Add 'self' argument.
9254 * monitor.c (monitor_close): Add 'self' argument.
9255 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9256 * linux-nat.c (linux_nat_close): Add argument.
9257 * go32-nat.c (go32_close): Add 'self' argument.
9258 * exec.c (exec_close_1): Add 'self' argument.
9259 * ctf.c (ctf_close): Add 'self' argument.
9260 * corelow.c (core_close): Add 'self' argument.
9261 (core_close_cleanup): Update.
9262 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9263 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * remote.c (remote_load): New function.
9268 (init_remote_ops): Use it.
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9272 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9274 * common/linux-btrace.h (linux_supports_btrace): Update.
9275 * remote.c (remote_supports_btrace): Add "self" argument.
9276 * target-delegates.c: Rebuild.
9277 * target.c (target_supports_btrace): Remove.
9278 * target.h (struct target_ops) <to_supports_btrace>: Add
9279 target_ops argument.
9280 (target_supports_btrace): New define.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * record-full.c (record_full_beneath_to_resume_ops)
9285 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9286 (record_full_beneath_to_wait)
9287 (record_full_beneath_to_store_registers_ops)
9288 (record_full_beneath_to_store_registers)
9289 (record_full_beneath_to_xfer_partial_ops)
9290 (record_full_beneath_to_xfer_partial)
9291 (record_full_beneath_to_insert_breakpoint_ops)
9292 (record_full_beneath_to_insert_breakpoint)
9293 (record_full_beneath_to_remove_breakpoint_ops)
9294 (record_full_beneath_to_remove_breakpoint)
9295 (record_full_beneath_to_stopped_by_watchpoint)
9296 (record_full_beneath_to_stopped_data_address)
9297 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9298 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9299 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9300 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9301 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9302 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9303 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9304 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9305 (record_full_resume, record_full_wait_1)
9306 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9307 (record_full_store_registers, record_full_xfer_partial)
9308 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9309 (record_full_async, record_full_core_xfer_partial): Use target
9311 * target-delegates.c: Rebuild.
9312 * target.c (current_xfer_partial): Remove.
9313 (update_current_target): Do not INHERIT or de_fault
9314 to_insert_breakpoint, to_remove_breakpoint,
9315 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9316 to_is_async_p, to_async. Do not set to_xfer_partial field.
9317 (default_xfer_partial): Simplify.
9318 (current_xfer_partial): Remove.
9319 (target_wait, target_resume): Simplify.
9320 (find_default_can_async_p, find_default_is_async_p): Update.
9321 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9322 to_xfer_partial, to_stopped_by_watchpoint,
9323 to_stopped_data_address.
9324 (target_store_registers): Simplify.
9325 (forward_target_remove_breakpoint)
9326 (forward_target_insert_breakpoint): Remove.
9327 (target_remove_breakpoint, target_insert_breakpoint)
9328 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9329 * target.h (struct target_ops) <to_resume, to_wait,
9330 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9331 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9332 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9334 (forward_target_remove_breakpoint)
9335 (forward_target_insert_breakpoint): Remove.
9336 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9338 (record_btrace_insert_breakpoint): Delegate directly.
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target-delegates.c: New file.
9344 * target.c: Include target-delegates.c.
9345 (init_dummy_target): Call install_dummy_methods.
9346 (complete_target_initialization): Call install_delegators.
9347 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9348 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9349 * make-target-delegates: New file.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * record.c (find_record_target): Use find_target_at.
9354 * target.c (find_target_at): New function.
9355 * target.h (find_target_at): Declare.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9361 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9363 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9364 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9366 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9368 * linux-nat.c (save_sigtrap): Update.
9369 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9370 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9371 (linux_nat_close): Update.
9372 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9374 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9376 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9377 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9378 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9379 (tmp_to_async): Add 'ops' argument.
9380 (record_full_stopped_by_watchpoint, record_full_async)
9381 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9383 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9384 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9385 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9386 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9387 (remote_is_async_p, remote_async): Add 'ops' argument.
9388 (remote_stopped_data_address): Update.
9389 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9390 * target.c (update_current_target)
9391 (find_default_can_async_p, find_default_is_async_p): Update.
9392 (init_dummy_target): Update.
9393 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9394 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9395 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9396 (target_can_async_p, target_is_async_p, target_async)
9397 (target_stopped_by_watchpoint): Update.
9399 2014-02-19 Yao Qi <yao@codesourcery.com>
9402 * gdbarch.sh: Remove startup_gdbarch.
9403 * gdbarch.c: Regenerated.
9404 * gdbarch.h: Likewise.
9406 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9408 * rl78-tdep.c (rl78_g10_register_name): New function.
9409 (rl78_return_value): Add g10 support.
9410 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9413 2014-02-17 Doug Evans <xdje42@gmail.com>
9415 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9416 (SUBDIR_GUILE_SRCS): Ditto.
9417 (scm-gsmob.o): Ditto.
9419 2014-02-17 Yao Qi <yao@codesourcery.com>
9421 * gnu-nat.c (ILL_RPC): Declare defined function.
9423 2014-02-17 Yao Qi <yao@codesourcery.com>
9425 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9426 mach_msg_type_number_t.
9427 (gnu_write_inferior): Likewise.
9429 2014-02-17 Yao Qi <yao@codesourcery.com>
9431 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9433 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9434 (inf_validate_procs, inf_signal): Likewise.
9435 (S_exception_raise_request): Likewise.
9436 (do_mach_notify_dead_name): Likewise.
9437 (steal_exc_port): Likewise.
9438 (gnu_read_inferior): Change 'copy_count''s type to
9439 mach_msg_type_number_t.
9440 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9443 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9445 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9446 flag. Adjust all users; in particular...
9447 (gnu_wait): ..., don't decrement its value in here...
9448 (gnu_create_inferior): ..., and instead set the flag in here,
9449 around the startup_inferior call, and call that one with
9450 START_INFERIOR_TRAPS_EXPECTED.
9452 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9453 (ILL_RPC): ... new macro.
9454 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9455 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9456 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9457 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9458 functions with ILL_RPC macro.
9459 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9460 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9461 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9462 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9463 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9464 (S_proc_getlogin_reply, S_proc_getsid_reply)
9465 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9466 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9467 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9468 (S_proc_getnports_reply, S_proc_is_important_reply)
9469 (S_proc_get_code_reply): New stub functions, generated with
9472 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9473 collected the type check structures.
9475 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9477 2014-02-14 Doug Evans <dje@google.com>
9479 * target.c (target_write_partial): Fix result type.
9481 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9483 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9484 the proper offsets to access fpregset_t.
9486 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9488 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9489 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9490 * h8300-tdep.c (setmachinelist): Remove global.
9491 * hppa-tdep.c (hppa_sigtramp): Remove global.
9492 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9493 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9494 * ravenscar-thread.c (update_target_observer): Remove global.
9495 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9497 2014-02-12 Tom Tromey <tromey@redhat.com>
9499 * common/rsp-low.c: Update comments.
9500 * common/rsp-low.h: Update comments.
9502 2014-02-12 Tom Tromey <tromey@redhat.com>
9504 * common/rsp-low.c (convert_ascii_to_int): Remove.
9505 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9507 2014-02-12 Tom Tromey <tromey@redhat.com>
9509 * common/rsp-low.h (unhexify): Don't declare.
9510 * common/rsp-low.c (unhexify): Remove.
9512 2014-02-12 Tom Tromey <tromey@redhat.com>
9514 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9515 * common/rsp-low.c (convert_int_to_ascii): Remove.
9517 2014-02-12 Tom Tromey <tromey@redhat.com>
9519 * common/rsp-low.h (hexify): Don't declare.
9520 * common/rsp-low.c (hexify): Remove.
9522 2014-02-12 Tom Tromey <tromey@redhat.com>
9524 * common/rsp-low.c (hexify): Never take strlen of argument.
9526 2014-02-12 Tom Tromey <tromey@redhat.com>
9528 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9529 * remote.c (extended_remote_run, remote_rcmd)
9530 (remote_download_trace_state_variable, remote_save_trace_data)
9531 (remote_set_trace_notes): Update.
9532 * tracepoint.c (encode_source_string, tfile_write_status)
9533 (tfile_write_uploaded_tsv): Update.
9535 2014-02-12 Tom Tromey <tromey@redhat.com>
9537 * tracepoint.c: Include rsp-low.h.
9538 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9539 * remote.c: Include rsp-low.h.
9540 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9541 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9542 (remote_unescape_input): Move to common/rsp-low.c.
9543 * common/rsp-low.h: New file.
9544 * common/rsp-low.c: New file.
9545 * Makefile.in (SFILES): Add common/rsp-low.c.
9546 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9547 (COMMON_OBS): Add rsp-low.o.
9548 (rsp-low.o): New target.
9550 2014-02-12 Tom Tromey <tromey@redhat.com>
9552 * utils.h: Include print-utils.h.
9553 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9554 (int_string, core_addr_to_string, core_addr_to_string_nz)
9555 (hex_string, hex_string_custom): Don't declare.
9556 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9557 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9558 (hex_string_custom, int_string, core_addr_to_string)
9559 (core_addr_to_string_nz, host_address_to_string): Move to
9560 common/print-utils.c.
9561 * common/print-utils.h: New file.
9562 * common/print-utils.c: New file
9563 * Makefile.in (SFILES): Add common/print-utils.c.
9564 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9565 (COMMON_OBS): Add print-utils.o.
9566 (print-utils.o): New target.
9568 2014-02-12 Tom Tromey <tromey@redhat.com>
9570 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9572 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9574 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9576 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9578 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9579 if a PT_IO ptrace request returns sucessfully but indicates that 0
9580 bytes were transferred.
9582 2014-02-12 Pedro Alves <palves@redhat.com>
9583 Kevin Buettner <kevinb@redhat.com>
9585 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9586 TYPE_INSTANCE_FLAG_CODE_SPACE.
9588 2014-02-12 Pedro Alves <palves@redhat.com>
9590 * h8300-tdep.c (pseudo_from_raw_register)
9591 (raw_from_pseudo_register): New functions.
9592 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9595 2014-02-12 Pedro Alves <palves@redhat.com>
9597 * h8300-tdep.c (h8300_register_sim_regno): New function.
9598 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9599 gdbarch_register_sim_regno hook.
9601 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9603 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9605 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9607 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9609 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9611 * obsd-tdep.h (obsd_init_abi): New prototype.
9612 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9613 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9614 (obsd_init_abi): New functions.
9615 * i386obsd-tdep.c: Include "obsd-tdep.h".
9616 (i386obsd_init_abi): Call obsd_init_abi.
9617 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9618 (amd64obsd_init_abi): Call obsd_init_abi.
9619 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9620 obsd-tdep.c to gdb_target_obs.
9622 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9624 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9625 double float arguments to 16-byte in the argument slots.
9627 2014-02-11 Doug Evans <xdje42@gmail.com>
9629 * configure.ac: Don't crash if pkg-config is not found and guile
9630 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9632 * configure: Regenerate.
9634 2014-02-11 Yao Qi <yao@codesourcery.com>
9636 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9637 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9638 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9639 * gnu-nat.c (gnu_xfer_memory): Likewise.
9640 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9641 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9642 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9643 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9645 2014-02-11 Yao Qi <yao@codesourcery.com>
9647 * target.h (enum target_xfer_error): Rename to ...
9648 (enum target_xfer_status): ... it. New. All users updated.
9649 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9651 (TARGET_XFER_STATUS_ERROR_P): New macro.
9652 (target_xfer_error_to_string): Remove declaration.
9653 (target_xfer_status_to_string): Declare.
9654 (target_xfer_partial_ftype): Adjust it.
9655 (struct target_ops) <to_xfer_partial>: Return
9656 target_xfer_status. Add argument xfered_len. Update
9658 * target.c (target_xfer_error_to_string): Rename to ...
9659 (target_xfer_status_to_string): ... it. New. All callers
9661 (target_read_live_memory): Likewise. Call target_xfer_partial
9662 instead of target_read.
9663 (memory_xfer_live_readonly_partial): Return
9664 target_xfer_status. Add argument xfered_len.
9665 (raw_memory_xfer_partial): Likewise.
9666 (memory_xfer_partial_1): Likewise.
9667 (memory_xfer_partial): Likewise.
9668 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9669 properly. Update debug message.
9670 (default_xfer_partial, current_xfer_partial): Likewise.
9671 (target_write_partial): Likewise.
9672 (target_read_partial): Likewise. All callers updated.
9673 (read_whatever_is_readable): Likewise.
9674 (target_write_with_progress): Likewise.
9675 (target_read_alloc_1): Likewise.
9677 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9678 * auxv.c (procfs_xfer_auxv): Likewise.
9679 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9680 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9681 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9682 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9683 * corefile.c (read_memory): Adjust.
9684 * corelow.c (core_xfer_partial): Likewise.
9685 * ctf.c (ctf_xfer_partial): Likewise.
9686 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9688 (darwin_xfer_partial): Likewise.
9689 * exec.c (section_table_xfer_memory_partial): Likewise. All
9691 (exec_xfer_partial): Likewise.
9692 * exec.h (section_table_xfer_memory_partial): Update
9694 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9696 (gnu_xfer_partial): Likewise.
9697 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9698 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9699 (ia64_hpux_xfer_solib_got): Likewise.
9700 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9701 type of 'partial_len' to ULONGEST.
9702 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9703 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9704 (linux_nat_xfer_partial): Likewise.
9705 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9706 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9707 * monitor.c (monitor_xfer_memory): Likewise.
9708 (monitor_xfer_partial): Likewise.
9709 * procfs.c (procfs_xfer_partial): Likewise.
9710 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9711 * record-full.c (record_full_xfer_partial): Likewise.
9712 (record_full_core_xfer_partial): Likewise.
9713 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9714 (gdbsim_xfer_partial): Likewise.
9715 * remote.c (remote_write_bytes_aux): Likewise. All callers
9717 (remote_write_bytes, remote_read_bytes): Likewise. All
9719 (remote_flash_erase): Likewise. All callers updated.
9720 (remote_write_qxfer): Likewise. All callers updated.
9721 (remote_read_qxfer): Likewise. All callers updated.
9722 (remote_xfer_partial): Likewise.
9723 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9724 (rs6000_xfer_shared_libraries): Likewise.
9725 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9726 (sol_thread_xfer_partial): Likewise.
9727 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9728 (sparc_xfer_partial): Likewise.
9729 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9731 (spu_xfer_partial): Likewise.
9732 * spu-multiarch.c (spu_xfer_partial): Likewise.
9733 * tracepoint.c (tfile_xfer_partial): Likewise.
9734 * windows-nat.c (windows_xfer_memory): Likewise.
9735 (windows_xfer_shared_libraries): Likewise.
9736 (windows_xfer_partial): Likewise.
9737 * valprint.c: Replace 'target_xfer_error' with
9738 'target_xfer_status' in comments.
9740 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9742 Checked in by Joel Brobecker <brobecker@adacore.com>.
9743 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9745 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9747 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9748 function parameters.
9750 2014-02-10 Will Newton <will.newton@linaro.org>
9752 * elfread.c (elf_rel_plt_read): Look for a .got section if
9753 looking up .got.plt fails.
9754 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9755 on address passed to elf_gnu_ifunc_record_cache.
9756 (elf_gnu_ifunc_resolve_addr): Likewise.
9757 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9759 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9761 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9762 (X_RETTURN): New macro.
9763 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9765 * sparc64-tdep.c (sparc64_init_abi): Hook
9766 sparc_in_function_epilogue_p.
9768 2014-02-10 Gary Benson <gbenson@redhat.com>
9770 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9771 Rename name_matcher to symbol_matcher.
9773 2014-02-10 Gary Benson <gbenson@redhat.com>
9775 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9776 Use expand_symtabs_file_matcher_ftype and
9777 expand_symtabs_symbol_matcher_ftype.
9779 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9781 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9782 (struct ada_symbol_cache): New.
9783 (ada_free_symbol_cache): Forward declare.
9784 (struct ada_pspace_data): New.
9785 (ada_pspace_data_handle): New static global.
9786 (get_ada_pspace_data, ada_pspace_data_cleanup)
9787 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9788 (cache_space, cache): Delete, now folded inside struct
9790 (ada_get_symbol_cache): New function.
9791 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9793 (_initialize_ada_language): Remove initialization of cache_space.
9794 Move call to observer_attach_inferior_exit up, grouping it
9795 with the other observer registrations inside this function.
9796 Rename command to be more general. Add call to
9797 register_program_space_data_with_cleanup.
9799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9801 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9802 ada_new_objfile_observer.
9803 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9804 (_initialize_tasks): Update uses of ada_new_objfile_observer
9805 and ada_tasks_normal_stop_observer.
9807 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9809 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9810 returned by the 'Length attribute to integer.
9812 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9814 * ada-lang.c (_initialize_ada_language): Initialize
9815 cache_space obstack.
9817 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9819 * ada-lang.c (HASH_SIZE): New macro.
9820 (struct cache_entry): New type.
9821 (cache_space, cache): New static globals.
9822 (ada_clear_symbol_cache, find_entry): New functions.
9823 (lookup_cached_symbol, cache_symbol): Implement.
9824 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9825 (_initialize_ada_language): Attach ada_new_objfile_observer
9826 and ada_free_objfile_observer.
9828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9830 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9831 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9832 struct block * parameter.
9833 (ada_lookup_symbol_list_worker): Constify local variable "block".
9834 Remove cast which is no longer necessary.
9836 2014-02-10 Doug Evans <xdje42@gmail.com>
9838 Add Guile as an extension language.
9839 * NEWS: Mention Guile scripting.
9840 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9841 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9842 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9843 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9844 (CLIBS): Add GUILE_LIBS.
9845 (install-guile): New rule.
9846 (guile.o): New rule.
9847 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9848 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9849 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9850 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9851 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9852 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9853 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9854 * configure.ac: New option --with-guile.
9855 * configure: Regenerate.
9856 * config.in: Regenerate.
9857 * auto-load.c: Remove #include "python/python.h". Add #include
9858 "gdb/section-scripts.h".
9859 (source_section_scripts): Handle Guile scripts.
9860 (_initialize_auto_load): Add name of Guile objfile script to
9861 scripts-directory help text.
9862 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9863 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9864 (struct breakpoint): New member scm_bp_object.
9865 * defs.h (enum command_control_type): New value guile_control.
9866 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9868 (show_user): Update comment.
9869 (_initialize_cli_cmds): Update help text for "show user". Update help
9870 text for max-user-call-depth.
9871 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9873 (multi_line_command_p): Add guile_control.
9874 (print_command_lines): Handle guile_control.
9875 (execute_control_command, recurse_read_control_structure): Ditto.
9876 (process_next_line): Recognize "guile" commands.
9877 * disasm.c (gdb_disassemble_info): Make non-static.
9878 * disasm.h: #include "dis-asm.h".
9879 (struct gdbarch): Add forward decl.
9880 (gdb_disassemble_info): Declare.
9881 * extension.c: #include "guile/guile.h".
9882 (extension_languages): Add guile.
9883 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9884 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9885 * gdbtypes.c (get_unsigned_type_max): New function.
9886 (get_signed_type_minmax): New function.
9887 * gdbtypes.h (get_unsigned_type_max): Declare.
9888 (get_signed_type_minmax): Declare.
9889 * guile/README: New file.
9890 * guile/guile-internal.h: New file.
9891 * guile/guile.c: New file.
9892 * guile/guile.h: New file.
9893 * guile/scm-arch.c: New file.
9894 * guile/scm-auto-load.c: New file.
9895 * guile/scm-block.c: New file.
9896 * guile/scm-breakpoint.c: New file.
9897 * guile/scm-disasm.c: New file.
9898 * guile/scm-exception.c: New file.
9899 * guile/scm-frame.c: New file.
9900 * guile/scm-gsmob.c: New file.
9901 * guile/scm-iterator.c: New file.
9902 * guile/scm-lazy-string.c: New file.
9903 * guile/scm-math.c: New file.
9904 * guile/scm-objfile.c: New file.
9905 * guile/scm-ports.c: New file.
9906 * guile/scm-pretty-print.c: New file.
9907 * guile/scm-safe-call.c: New file.
9908 * guile/scm-string.c: New file.
9909 * guile/scm-symbol.c: New file.
9910 * guile/scm-symtab.c: New file.
9911 * guile/scm-type.c: New file.
9912 * guile/scm-utils.c: New file.
9913 * guile/scm-value.c: New file.
9914 * guile/lib/gdb.scm: New file.
9915 * guile/lib/gdb/boot.scm: New file.
9916 * guile/lib/gdb/experimental.scm: New file.
9917 * guile/lib/gdb/init.scm: New file.
9918 * guile/lib/gdb/iterator.scm: New file.
9919 * guile/lib/gdb/printing.scm: New file.
9920 * guile/lib/gdb/types.scm: New file.
9921 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9922 (VPATH): Add $(GUILE_SRCDIR).
9923 (GUILE_DIR): New variable.
9924 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9925 (all): Add stamp-guile dependency.
9926 (stamp-guile): New rule.
9927 (clean-guile, install-guile, uninstall-guile): New rules.
9928 (install-only): Add install-guile dependency.
9929 (uninstall): Add uninstall-guile dependency.
9930 (clean): Add clean-guile dependency.
9932 2014-02-09 Doug Evans <xdje42@gmail.com>
9934 Revert this patch (which I approved, mea culpa).
9936 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9938 * Makefile.in (all-lib): Remove.
9939 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9941 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9943 Fix Python stack corruption.
9944 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9947 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9949 * Makefile.in (all-lib): Remove.
9950 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9952 2014-02-07 Doug Evans <dje@google.com>
9954 * extension-priv.h (extension_language_script_ops): Add comment.
9955 (extension_language_ops): Add comment.
9956 (active_ext_lang_state): Fix typo in comment.
9958 2014-02-07 Pedro Alves <palves@redhat.com>
9960 PR breakpoints/16292
9961 * infrun.c (handle_signal_stop) <signal arrives while stepping
9962 over a breakpoint>: Switch back to the stepping thread.
9964 2014-02-07 Yao Qi <yao@codesourcery.com>
9966 * target.c (target_xfer_partial): Return zero if LEN is zero.
9968 2014-02-07 Yao Qi <yao@codesourcery.com>
9970 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9971 (ld_so_xfer_auxv): Likewise.
9972 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9973 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9974 * corelow.c (core_xfer_partial): Likewise.
9975 * ctf.c (ctf_xfer_partial): Likewise.
9976 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9977 (darwin_xfer_partial): Likewise.
9978 * exec.c (exec_xfer_partial): Likewise.
9979 * gnu-nat.c (gnu_xfer_partial): Likewise.
9980 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9981 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9982 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9983 * linux-nat.c (linux_xfer_siginfo): Likewise.
9984 (linux_proc_xfer_spu): Likewise.
9985 * procfs.c (procfs_xfer_partial): Likewise.
9986 * record-full.c (record_full_xfer_partial): Likewise.
9987 (record_full_core_xfer_partial): Likewise.
9988 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9989 * remote.c (remote_write_qxfer): Likewise.
9990 (remote_write_qxfer, remote_read_qxfer): Likewise.
9991 (remote_xfer_partial): Likewise.
9992 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9993 (rs6000_xfer_shared_libraries): Likewise.
9994 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9995 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9996 (spu_xfer_partial): Likewise.
9997 * target.c (memory_xfer_partial_1): Likewise.
9998 * tracepoint.c (tfile_xfer_partial): Likewise.
9999 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10000 (windows_xfer_partial): Likewise.
10002 2014-02-07 Yao Qi <yao@codesourcery.com>
10004 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10006 (core_xfer_shared_libraries_aix): Likewise.
10007 * gdbarch.c, gdbarch.h: Regenerated.
10008 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10009 ULONGEST. Change 'len_avail' type to ULONGEST.
10010 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10011 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10013 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10015 2014-02-07 Yao Qi <yao@codesourcery.com>
10017 * corefile.c (memory_error): Get 'exception' from ERR and pass
10018 'exception' to throw_error.
10020 2014-02-06 Doug Evans <xdje42@gmail.com>
10022 * configure.ac (libpython checking): Remove all but python.o from
10023 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10024 * configure: Regenerate.
10026 * Makefile.in (SFILES): Add extension.c.
10027 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10028 (COMMON_OBS): Add extension.o.
10029 * extension.h: New file.
10030 * extension-priv.h: New file.
10031 * extension.c: New file.
10033 * python/python-internal.h: #include "extension.h".
10034 (gdbpy_auto_load_enabled): Declare.
10035 (gdbpy_apply_val_pretty_printer): Declare.
10036 (gdbpy_apply_frame_filter): Declare.
10037 (gdbpy_preserve_values): Declare.
10038 (gdbpy_breakpoint_cond_says_stop): Declare.
10039 (gdbpy_breakpoint_has_cond): Declare.
10040 (void source_python_script_for_objfile): Delete.
10041 * python/python.c: #include "extension-priv.h".
10042 Delete inclusion of "observer.h".
10043 (extension_language_python): Moved here and renamed from
10044 script_language_python in py-auto-load.c.
10045 Redefined to be of type extension_language_defn.
10046 (python_extension_script_ops): New global.
10047 (python_extension_ops): New global.
10048 (struct python_env): New member previous_active.
10049 (restore_python_env): Call restore_active_ext_lang.
10050 (ensure_python_env): Call set_active_ext_lang.
10051 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10053 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10055 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10057 (gdbpy_eval_from_control_command): Renamed from
10058 eval_python_from_control_command, made static. New arg extlang.
10059 (gdbpy_source_script) Renamed from source_python_script, made static.
10061 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10062 result to int. New arg extlang.
10063 (gdbpy_source_objfile_script): Renamed from
10064 source_python_script_for_objfile, made static. New arg extlang.
10065 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10066 static. New args extlang, extlang_printers. Change result type to
10068 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10069 static. New arg extlang. Rename arg printers to extlang_printers
10070 and change type to ext_lang_type_printers *.
10071 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10072 static. Replace argument arg with extlang, extlang_printers.
10073 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10074 (!HAVE_PYTHON, source_python_script): Delete.
10075 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10076 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10077 (!HAVE_PYTHON, start_type_printers): Delete.
10078 (!HAVE_PYTHON, apply_type_printers): Delete.
10079 (!HAVE_PYTHON, free_type_printers): Delete.
10080 (_initialize_python): Delete call to observer_attach_before_prompt.
10081 (finalize_python): Set/restore active extension language.
10082 (gdbpy_finish_initialization) Renamed from
10083 finish_python_initialization, made static. New arg extlang.
10084 (gdbpy_initialized): New function.
10085 * python/python.h: #include "extension.h". Delete #include
10086 "value.h", "mi/mi-cmds.h".
10087 (extension_language_python): Declare.
10088 (GDBPY_AUTO_FILE_NAME): Delete.
10089 (enum py_bt_status): Moved to extension.h and renamed to
10090 ext_lang_bt_status.
10091 (enum frame_filter_flags): Moved to extension.h.
10092 (enum py_frame_args): Moved to extension.h and renamed to
10093 ext_lang_frame_args.
10094 (finish_python_initialization): Delete.
10095 (eval_python_from_control_command): Delete.
10096 (source_python_script): Delete.
10097 (apply_val_pretty_printer): Delete.
10098 (apply_frame_filter): Delete.
10099 (preserve_python_values): Delete.
10100 (gdbpy_script_language_defn): Delete.
10101 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10102 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10104 * auto-load.c: #include "extension.h".
10105 (GDB_AUTO_FILE_NAME): Delete.
10106 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10107 (script_language_gdb): Delete, moved to extension.c and renamed to
10108 extension_language_gdb.
10109 (source_gdb_script_for_objfile): Delete.
10110 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10111 (loaded_script): Change type of language member to
10112 struct extension_language_defn *.
10113 (init_loaded_scripts_info): Initialize
10114 unsupported_script_warning_printed.
10115 (maybe_add_script): Make static. Change type of language arg to
10116 struct extension_language_defn *.
10117 (clear_section_scripts): Reset unsupported_script_warning_printed.
10118 (auto_load_objfile_script_1): Rewrite to use extension language API.
10119 (auto_load_objfile_script): Make public. Remove support-compiled-in
10120 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10121 (source_section_scripts): Rewrite to use extension language API.
10122 (load_auto_scripts_for_objfile): Rewrite to use
10123 auto_load_scripts_for_objfile.
10124 (collect_matching_scripts_data): Change type of language member to
10125 struct extension_language_defn *.
10126 (auto_load_info_scripts): Change type of language arg to
10127 struct extension_language_defn *.
10128 (unsupported_script_warning_print): New function.
10129 (script_not_found_warning_print): Make static.
10130 (_initialize_auto_load): Rewrite construction of scripts-directory
10132 * auto-load.h (struct objfile): Add forward decl.
10133 (struct script_language): Delete.
10134 (struct auto_load_pspace_info): Add forward decl.
10135 (struct extension_language_defn): Add forward decl.
10136 (maybe_add_script): Delete.
10137 (auto_load_objfile_script): Declare.
10138 (script_not_found_warning_print): Delete.
10139 (auto_load_info_scripts): Update prototype.
10140 (auto_load_gdb_scripts_enabled): Declare.
10141 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10142 auto_load_python_scripts_enabled and made public.
10143 (script_language_python): Delete, moved to python.c.
10144 (gdbpy_script_language_defn): Delete.
10145 (info_auto_load_python_scripts): Update to use
10146 extension_language_python.
10148 * breakpoint.c (condition_command): Replace call to
10149 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10150 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10151 with call to breakpoint_ext_lang_cond_says_stop.
10152 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10153 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10154 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10155 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10157 (local_setattro): Print name of extension language with existing
10160 * valprint.c (val_print, value_print): Update to call
10161 apply_ext_lang_val_pretty_printer.
10162 * cp-valprint.c (cp_print_value): Update call to
10163 apply_ext_lang_val_pretty_printer.
10164 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10165 (gdbpy_apply_val_pretty_printer): Renamed from
10166 apply_val_pretty_printer. New arg extlang.
10167 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10169 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10170 extension language API.
10171 * cli/cli-script.c (execute_control_command): Update to call
10172 eval_ext_lang_from_control_command.
10174 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10175 enum ext_lang_bt_status values. Update call to
10176 apply_ext_lang_frame_filter.
10177 (mi_cmd_stack_list_locals): Ditto.
10178 (mi_cmd_stack_list_args): Ditto.
10179 (mi_cmd_stack_list_variables): Ditto.
10180 * mi/mi-main.c: Delete #include "python/python-internal.h".
10181 Add #include "extension.h".
10182 (mi_cmd_list_features): Replace reference to python internal variable
10183 gdb_python_initialized with call to ext_lang_initialized_p.
10185 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10186 Update to use enum ext_lang_frame_args. Update to call
10187 apply_ext_lang_frame_filter.
10188 * python/py-framefilter.c (extract_sym): Update to use enum
10189 ext_lang_bt_status.
10190 (extract_value, py_print_type, py_print_value): Ditto.
10191 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10192 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10193 (py_print_frame): Ditto.
10194 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10195 New arg extlang. Update to use enum ext_lang_bt_status.
10197 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10198 finish_python_initialization. Replace with call to
10199 finish_ext_lang_initialization.
10201 * typeprint.c (do_free_global_table): Update to call
10202 free_ext_lang_type_printers.
10203 (create_global_typedef_table): Update to call
10204 start_ext_lang_type_printers.
10205 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10206 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10207 (type_print_options): Change type of global_printers from "void *"
10208 to "struct ext_lang_type_printers *".
10210 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10211 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10212 (gdbpy_preserve_values): Renamed from preserve_python_values.
10214 (!HAVE_PYTHON, preserve_python_values): Delete.
10216 * utils.c (quit_flag): Delete, moved to extension.c.
10217 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10220 * eval.c: Delete #include "python/python.h".
10221 * main.c: Delete #include "python/python.h".
10223 * defs.h: Update comment.
10225 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10229 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10231 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10234 2014-02-05 Yao Qi <yao@codesourcery.com>
10236 * remote.c (remote_pass_signals): Remove local 'buf' and use
10238 (remote_program_signals): Likewise.
10240 2014-02-05 Yao Qi <yao@codesourcery.com>
10242 * ctf.c: Include "inferior.h" and "gdbthread.h".
10243 (CTF_PID): A new macro.
10244 (ctf_open): Call inferior_appeared and add_thread_silent.
10245 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10246 (ctf_thread_alive): New function.
10247 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10249 2014-02-05 Yao Qi <yao@codesourcery.com>
10253 2013-05-24 Yao Qi <yao@codesourcery.com>
10255 * tracepoint.c (TFILE_PID): Remove.
10256 (tfile_open): Don't add thread and inferior.
10257 (tfile_close): Don't set 'inferior_ptid'. Don't call
10258 exit_inferior_silent.
10259 (tfile_thread_alive): Remove.
10260 (init_tfile_ops): Don't set field 'to_thread_alive' of
10263 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10265 * remote.c (remote_start_remote): Call remote_check_symbols even
10266 if only symbol-file (not file) has been given.
10268 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10270 * gdbarch.sh (skip_entrypoint): New callback.
10271 * gdbarch.c, gdbarch.h: Regenerate.
10272 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10273 * infrun.c (fill_in_stop_func): Likewise.
10274 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10275 (ppc_elfv2_elf_make_msymbol_special): New function.
10276 (ppc_elfv2_skip_entrypoint): Likewise.
10277 (ppc_linux_init_abi): Install them for ELFv2.
10279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10281 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10282 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10283 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10284 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10285 structures returned in GPRs.
10287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10289 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10290 offset to the stack parameter list for the ELFv2 ABI.
10292 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10294 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10295 set_gdbarch_convert_from_func_ptr_addr and
10296 set_gdbarch_elf_make_msymbol_special for ELFv1.
10297 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10298 function descriptors on ELFv1.
10299 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10300 set up r12 at function entry.
10302 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10304 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10305 (struct gdbarch_tdep): New member elf_abi.
10307 * rs6000-tdep.c: Include "elf/ppc64.h".
10308 (rs6000_gdbarch_init): Detect ELF ABI version.
10310 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10312 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10313 within a register pair holding a DFP 128-bit value on little-endian.
10314 (ppc64_sysv_abi_return_value_base): Likewise.
10315 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10316 (dfp_pseudo_register_write): Likewise.
10318 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10320 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10321 offset on little-endian when passing _Decimal32.
10322 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10324 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10326 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10327 of the overlapped FP register within the VSX register on little-
10329 (efpr_pseudo_register_write): Likewise.
10331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10333 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10334 offset on little-endian when passing small structures.
10336 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10338 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10339 (struct ppc64_sysv_argpos): New data structure.
10340 (ppc64_sysv_abi_push_float): Remove.
10341 (ppc64_sysv_abi_push_val): New function.
10342 (ppc64_sysv_abi_push_integer): Likewise.
10343 (ppc64_sysv_abi_push_freg): Likewise.
10344 (ppc64_sysv_abi_push_vreg): Likewise.
10345 (ppc64_sysv_abi_push_param): Likewise.
10346 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10347 (ppc64_sysv_abi_return_value_base): New function.
10348 (ppc64_sysv_abi_return_value): Refactor to use it.
10350 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10352 * NEWS: Document new target powerpc64le-*-linux*.
10354 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10356 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10357 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10359 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10360 register set used in ELF core dumps. Add floating-point register set.
10362 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10364 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10365 dwarf2_to_gdb[] table using symbolic constants. Adjust
10366 penultimate entry from number representing the PC register
10367 to symbolic constant representing the MDR register. Add
10368 constant for the PC register to the end of the table.
10370 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10372 * bsd-kvm.c: Include <sys/param.h>
10374 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10376 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10378 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10380 * ada-lang.h (clear_ada_sym_cache): Delete.
10382 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10384 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10386 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10388 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10389 the sigreturn register save area only if the syscall is
10392 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10394 * valops.c (value_slice): Minor reformatting.
10396 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10398 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10400 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10402 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10403 New static globals.
10404 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10405 (ada_ignore_descriptive_types_p): New static global.
10406 (find_parallel_type_by_descriptive_type): Return immediately
10407 if ada_ignore_descriptive_types_p is set.
10408 (_initialize_ada_language): Register new commands "maintenance
10409 set ada", "maintenance show ada", "maintenance set ada
10410 ignore-descriptive-types" and "maintenance show ada
10411 ignore-descriptive-types".
10412 * NEWS: Add entry for new "maint ada set/show
10413 ignore-descriptive-types" commands.
10415 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10417 * record-btrace.c (record_btrace_close): Call btrace_teardown
10420 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10422 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10425 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10427 * ada-typeprint (type_is_full_subrange_of_target_type):
10429 (print_range): Add parameter bounds_prefered_p. If not set,
10430 try printing range types using the name of their base type.
10431 (print_range_type): Add parameter bounds_prefered_p.
10432 Use it in call to print_range.
10433 (print_array_type, ada_print_type): Update calls to print_range
10434 and print_range_type.
10436 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10438 * ada-typeprint.c (print_array_type, print_choices, print_range)
10439 (print_range_bound, print_dynamic_range_bound, print_range_type):
10440 Remove declaration.
10442 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10444 * ada-typeprint.c (print_range): Add missing empty line
10445 after local declaration.
10447 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10449 * ada-valprint.c (print_optional_low_bound): Get index_type's
10450 target type for as long as it is a TYPE_CODE_RANGE.
10452 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10454 * procfs.c (procfs_make_note_section): Remove assertion and
10455 associated comment.
10457 2014-01-24 Yao Qi <yao@codesourcery.com>
10459 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10460 * corelow.c (get_core_siginfo): Likewise.
10462 2014-01-24 Yao Qi <yao@codesourcery.com>
10464 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10465 ULONGEST. Don't check 'len' is negative.
10466 (remote_write_bytes): Change type of 'len' to ULONGEST.
10468 2014-01-23 Tom Tromey <tromey@redhat.com>
10471 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10472 Handle exception from frame.block.
10473 (FrameVars.fetch_frame_locals): Likewise.
10475 2014-01-23 Tom Tromey <tromey@redhat.com>
10478 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10479 on a NULL pointer. Move "goto error" to correct place.
10481 2014-01-23 Tom Tromey <tromey@redhat.com>
10484 * python/py-framefilter.c (apply_frame_filter): Call
10485 ensure_python_env after computing gdbarch.
10487 2014-01-23 Yao Qi <yao@codesourcery.com>
10489 * target.c (raw_memory_xfer_partial): Change argument type
10490 from void * to gdb_byte *.
10491 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10493 2014-01-22 Doug Evans <dje@google.com>
10495 New gdbserver option --debug-format=timestamp.
10496 * NEWS: Mention it.
10498 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10500 * syscalls/s390x-linux.xml: New file.
10501 * syscalls/s390-linux.xml: New file.
10502 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10503 (XML_SYSCALL_FILENAME_S390X): Likewise.
10504 (op_svc): New enum value for SVC opcode.
10505 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10506 (s390_linux_get_syscall_number): New function.
10507 (s390_gdbarch_init): Register '*get_syscall_number' and the
10508 syscall xml file name.
10509 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10510 "s390-linux.xml" and "s390x-linux.xml".
10511 * NEWS: Announce new feature.
10513 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10515 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10517 2014-01-22 Pedro Alves <palves@redhat.com>
10519 * xtensa-config.c: Include defs.h.
10521 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10523 * common/common-utils.h: Add "ARI:" comment beside __func__
10526 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10528 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10529 documentation a bit.
10531 2014-01-21 Roland McGrath <mcgrathr@google.com>
10533 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10534 * configure: Regenerate.
10535 * aclocal.m4: Regenerate.
10536 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10537 New substituted variables.
10538 (install-strip): New target.
10539 (INSTALL_SCRIPT): New substituted variable.
10540 (FLAGS_TO_PASS): Add it.
10541 (install-only): Use $(INSTALL_SCRIPT) rather than
10542 $(INSTALL_PROGRAM) for gcore.
10544 2014-01-20 Tom Tromey <tromey@redhat.com>
10546 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10549 2014-01-20 Tom Tromey <tromey@redhat.com>
10551 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10552 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10553 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10554 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10555 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10556 (struct cmd_list_element) <flags>: Remove.
10557 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10558 doc_allocated>: New fields.
10559 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10561 * maint.c (maintenance_do_deprecate): Update.
10562 * top.c (execute_command): Update.
10564 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10566 * xtensa-linux-nat.c: Include asm/ptrace.h.
10568 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10570 * Makefile.in (SFILES): Add d-support.c.
10571 (COMMON_OBS): Add d-support.o.
10572 * d-lang.h (d_parse_symbol): Add comment, now defined in
10574 * d-lang.c (parse_call_convention)
10575 (parse_attributes, parse_function_types)
10576 (parse_function_args, parse_type, parse_identifier)
10577 (call_convention_p, d_parse_symbol): Move functions to ...
10578 * d-support.c: ... New file.
10580 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10582 * d-lang.h (d_parse_symbol): Add declaration.
10583 * d-lang.c (extract_identifiers)
10584 (extract_type_info): Remove functions.
10585 (parse_call_convention, parse_attributes)
10586 (parse_function_types, parse_function_args)
10587 (parse_type, parse_identifier, call_convention_p)
10588 (d_parse_symbol): New functions.
10589 (d_demangle): Use d_parse_symbol to demangle D symbols.
10591 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10593 * d-lang.h (struct builtin_d_type): New data type.
10594 (builtin_d_type): Add declaration.
10595 * d-lang.c (d_language_arch_info, build_d_types)
10596 (builtin_d_type): New functions.
10597 (enum d_primitive_types): New data type.
10598 (d_language_defn): Change c_language_arch_info to
10599 d_language_arch_info.
10600 (d_type_data): New static variable.
10601 (_initialize_d_language): Initialize d_type_data.
10603 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10605 * d-lang.h (d_main_name): Add declaration.
10606 * d-lang.c (d_main_name): New function.
10607 * symtab.c (find_main_name): Add call to d_main_name.
10609 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10611 * d-lang.c (d_language_defn): Change macro_expansion_c to
10612 macro_expansion_no.
10614 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10616 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10618 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10620 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10621 gdb_exception" declaration.
10622 * remote.c (getpkt_or_notif_sane): Likewise.
10624 2014-01-17 Doug Evans <dje@google.com>
10626 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10627 function, contents of dirnames_to_char_ptr_vec_append moved here.
10628 (delim_string_to_char_ptr_vec): New function.
10629 (dirnames_to_char_ptr_vec_append): Rewrite.
10630 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10632 2014-01-17 Doug Evans <dje@google.com>
10634 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10636 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10637 #include "common-utils.h".
10638 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10639 * common/vec.h (VEC_ASSERT_PASS): Update.
10640 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10641 (MACH_CHECK_ERROR): Update.
10643 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10645 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10647 * gdbarch.h: Regenerate.
10649 2014-01-16 Tom Tromey <tromey@redhat.com>
10651 * value.c (struct value) <regnum>: Move earlier.
10653 2014-01-16 Tom Tromey <tromey@redhat.com>
10655 * remote.c (extended_remote_create_inferior): Rename from
10656 extended_remote_create_inferior_1. Add "ops" argument. Remove
10657 old implementation.
10659 2014-01-16 Pedro Alves <palves@redhat.com>
10661 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10662 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10665 2014-01-16 Doug Evans <dje@google.com>
10667 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10671 * btrace.h (btrace_thread_flag): New.
10672 (struct btrace_thread_info) <flags>: New.
10673 * record-btrace.c (record_btrace_resume_thread)
10674 (record_btrace_find_thread_to_move, btrace_step_no_history)
10675 (btrace_step_stopped, record_btrace_start_replaying)
10676 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10677 (record_btrace_find_resume_thread): New.
10678 (record_btrace_resume, record_btrace_wait): Extend.
10679 (record_btrace_can_execute_reverse): New.
10680 (record_btrace_open): Fail in non-stop mode.
10681 (record_btrace_set_replay): Split into this, ...
10682 (record_btrace_stop_replaying): ... this, ...
10683 (record_btrace_clear_histories): ... and this.
10684 (init_record_btrace_ops): Init to_can_execute_reverse.
10685 * NEWS: Announce it.
10687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10689 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10690 (forward_target_decr_pc_after_break)
10691 (target_decr_pc_after_break): New.
10692 * target.c (forward_target_decr_pc_after_break)
10693 (target_decr_pc_after_break): New.
10694 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10695 instead of gdbarch_decr_pc_after_break.
10696 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10697 instead of gdbarch_decr_pc_after_break.
10698 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10699 instead of gdbarch_decr_pc_after_break.
10700 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10701 instead of gdbarch_decr_pc_after_break.
10702 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10703 instead of gdbarch_decr_pc_after_break.
10704 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10705 instead of gdbarch_decr_pc_after_break.
10707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10709 * btrace.c: Include regcache.h.
10710 (btrace_add_pc): New.
10711 (btrace_enable): Call btrace_add_pc.
10712 (btrace_is_empty): New.
10713 * btrace.h (btrace_is_empty): New.
10714 * record-btrace.c (require_btrace, record_btrace_info): Call
10717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10719 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10720 Support delta reads.
10721 (linux_disable_btrace): Change return type.
10722 * common/linux-btrace.h (linux_read_btrace): Change parameters
10723 and return type to allow error reporting. Update users.
10724 (linux_disable_btrace): Change return type. Update users.
10725 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10727 (btrace_error): New.
10728 (btrace_block) <begin>: Comment on BEGIN == 0.
10729 * btrace.c (btrace_compute_ftrace): Start from the end of
10731 (btrace_stitch_trace, btrace_clear_history): New.
10732 (btrace_fetch): Read delta trace, return if replaying.
10733 (btrace_clear): Move clear history code to btrace_clear_history.
10734 (parse_xml_btrace): Throw an error if parsing failed.
10735 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10736 and return type to allow error reporting.
10737 (target_read_btrace): Change parameters and return type to allow
10739 * target.c (target_read_btrace): Update.
10740 * remote.c (remote_read_btrace): Support delta reads. Pass
10742 * NEWS: Announce it.
10744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10746 * record.h (record_btrace_frame_unwind)
10747 (record_btrace_tailcall_frame_unwind): New declarations.
10748 * dwarf2-frame: Include record.h
10749 (dwarf2_frame_cfa): Throw an error for btrace frames.
10750 * record-btrace.c: Include hashtab.h.
10751 (btrace_get_bfun_name): New.
10752 (btrace_call_history): Call btrace_get_bfun_name.
10753 (struct btrace_frame_cache): New.
10755 (bfcache_hash, bfcache_eq, bfcache_new): New.
10756 (btrace_get_frame_function): New.
10757 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10758 (record_btrace_frame_this_id): Compute own id.
10759 (record_btrace_frame_prev_register): Provide PC, throw_error
10760 for all other registers.
10761 (record_btrace_frame_sniffer): Detect btrace frames.
10762 (record_btrace_tailcall_frame_sniffer): New.
10763 (record_btrace_frame_dealloc_cache): New.
10764 (record_btrace_frame_unwind): Add new functions.
10765 (record_btrace_tailcall_frame_unwind): New.
10766 (_initialize_record_btrace): Allocate cache.
10767 * btrace.c (btrace_clear): Call reinit_frame_cache.
10768 * NEWS: Announce it.
10770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10772 * record-btrace.c (record_btrace_set_replay)
10773 (record_btrace_goto_begin, record_btrace_goto_end)
10774 (record_btrace_goto): New.
10775 (init_record_btrace_ops): Initialize them.
10776 * NEWS: Announce it.
10778 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10780 * record-btrace.c (record_btrace_find_new_threads)
10781 (record_btrace_thread_alive): New.
10782 (init_record_btrace_ops): Initialize to_find_new_threads and
10785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10787 * record-btrace.c (record_btrace_resume): New.
10788 (record_btrace_wait): New.
10789 (init_record_btrace_ops): Initialize to_wait and to_resume.
10791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10793 * record-btrace.c (record_btrace_xfer_partial)
10794 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10795 (record_btrace_allow_memory_access): New.
10796 (init_record_btrace_ops): Initialize new methods.
10797 * target.c (raw_memory_xfer_partial): Bail out if target reports
10798 that this memory is not available.
10800 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10802 * target.h (target_ops) <to_insert_breakpoint>
10803 <to_remove_breakpoint>: Add target_ops parameter.
10804 (forward_target_insert_breakpoint): New.
10805 (forward_target_remove_breakpoint): New.
10806 (memory_remove_breakpoint, memory_insert_breakpoint):
10807 Add target_ops parameter.
10808 * target.c (target_insert_breakpoint): Split into this and ...
10809 (forward_target_insert_breakpoint): ... this.
10810 (target_remove_breakpoint): Split into this and ...
10811 (forward_target_remove_breakpoint): ... this.
10812 (debug_to_insert_breakpoint): Add target_ops parameter.
10813 Call forward_target_insert_breakpoint.
10814 (debug_to_remove_breakpoint): Add target_ops parameter.
10815 Call forward_target_remove_breakpoint.
10816 (update_current_target): Do not inherit or default to_insert_breakpoint
10817 and to_remove_breakpoint.
10818 * corelow.c (ignore): Add target_ops parameter.
10819 * exec.c (ignore): Add target_ops parameter.
10820 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10821 Add target_ops parameter.
10822 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10823 Add target_ops parameter.
10824 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10825 Add target_ops parameter.
10826 * record-full.c (record_full_beneath_to_insert_breakpoint)
10827 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10828 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10829 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10830 (record_full_core_remove_breakpoint): Add target_ops parameter.
10832 (record_full_beneath_to_insert_breakpoint_ops)
10833 (record_full_beneath_to_remove_breakpoint_ops)
10834 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10835 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10836 tmp_to_remove_breakpoint_ops,
10837 record_full_beneath_to_insert_breakpoint_ops, and
10838 record_full_beneath_to_remove_breakpoint_ops.
10839 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10840 (m32r_remove_breakpoint): Add target_ops parameter.
10841 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10842 Add target_ops parameter.
10843 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10844 Add target_ops parameter.
10846 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10847 Markus Metzger <markus.t.metzger@intel.com>
10849 * record-btrace.c: Include frame-unwind.h.
10850 (record_btrace_frame_unwind_stop_reason)
10851 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10852 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10854 (init_record_btrace_ops): Install it.
10856 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10858 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10861 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10863 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10866 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10868 * frame-unwind.c: Include target.h.
10869 (frame_unwind_try_unwinder): New function with code from ...
10870 (frame_unwind_find_by_frame): ... here. New variable
10871 unwinder_from_target, call also target_get_unwinder)
10872 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10873 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10874 * target.h (struct target_ops): New fields to_get_unwinder and
10875 to_get_tailcall_unwinder.
10876 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10880 * record-btrace.c (record_btrace_fetch_registers)
10881 (record_btrace_store_registers)
10882 (record_btrace_to_prepare_to_store): New.
10883 (init_record_btrace_ops): Add the above.
10885 2014-01-16 Tom Tromey <tromey@redhat.com>
10887 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10888 * target.h (struct target_ops) <to_prepare_to_store>: Add
10890 (target_prepare_to_store): Add argument.
10891 * target.c (debug_to_prepare_to_store): Add argument.
10892 (update_current_target): Update.
10893 * remote.c (remote_prepare_to_store): Add 'self' argument.
10894 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10895 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10896 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10897 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10899 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10900 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10901 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10902 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10903 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10907 * btrace.h (replay) <replay>: New.
10908 (btrace_is_replaying): New.
10909 * btrace.c (btrace_clear): Free replay iterator.
10910 (btrace_is_replaying): New.
10911 * record-btrace.c (record_btrace_is_replaying): New.
10912 (record_btrace_info): Print insn number if replaying.
10913 (record_btrace_insn_history): Start at replay position.
10914 (record_btrace_call_history): Start at replay position.
10915 (init_record_btrace_ops): Init to_record_is_replaying.
10917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10919 * record-btrace.c (record_btrace_insn_history_range): Include
10921 (record_btrace_insn_history_from): Adjust range.
10922 (record_btrace_call_history_range): Include
10924 (record_btrace_call_history_from): Adjust range.
10925 * NEWS: Announce changes.
10927 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10929 * record.h (enum record_print_flag)
10930 <record_print_indent_calls>: New.
10931 * record.c (get_call_history_modifiers): Recognize /c modifier.
10932 (_initialize_record): Document /c modifier.
10933 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10934 Reorder fields. Optionally indent the function name. Update
10936 * NEWS: Announce changes.
10938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10940 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10944 * btrace.c (ftrace_new_function): Start counting at one.
10945 * record-btrace.c (record_btrace_info): Adjust number of calls
10947 * NEWS: Announce it.
10949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10951 * record-btrace.c (btrace_call_history_insn_range): Print
10952 insn range as [begin, end].
10954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10956 * btrace.h (struct btrace_func_link): New.
10957 (enum btrace_function_flag): New.
10958 (struct btrace_inst): Rename to ...
10959 (struct btrace_insn): ...this. Update all users.
10960 (struct btrace_func) <ibegin, iend>: Remove.
10961 (struct btrace_func_link): New.
10962 (struct btrace_func): Rename to ...
10963 (struct btrace_function): ...this. Update all users.
10964 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10965 (number, level, flags>: New.
10966 (struct btrace_insn_iterator): Rename to ...
10967 (struct btrace_insn_history): ...this.
10969 (struct btrace_insn_iterator, btrace_call_iterator): New.
10970 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10971 (struct btrace_target_info) <begin, end, level>
10972 <insn_history, call_history>: New.
10973 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10974 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10975 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10976 (btrace_call_number, btrace_call_begin, btrace_call_end)
10977 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10978 (btrace_find_function_by_number, btrace_set_insn_history)
10979 (btrace_set_call_history): New.
10980 * btrace.c (btrace_init_insn_iterator)
10981 (btrace_init_func_iterator, compute_itrace): Remove.
10982 (ftrace_print_function_name, ftrace_print_filename)
10983 (ftrace_skip_file): Change
10984 parameter to const.
10985 (ftrace_init_func): Remove.
10986 (ftrace_debug): Use new btrace_function fields.
10987 (ftrace_function_switched): Also consider gaining and
10988 losing symbol information).
10989 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10990 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10991 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10993 (ftrace_new_function): Move. Remove debug print.
10994 (ftrace_update_lines, ftrace_update_insns): New.
10995 (ftrace_update_function): Check for call, ret, and jump.
10996 (compute_ftrace): Renamed to ...
10997 (btrace_compute_ftrace): ...this. Rewritten to compute call
10999 (btrace_fetch, btrace_clear): Updated.
11000 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11001 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11002 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11003 (btrace_call_number, btrace_call_begin, btrace_call_end)
11004 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11005 (btrace_find_function_by_number, btrace_set_insn_history)
11006 (btrace_set_call_history): New.
11007 * record-btrace.c (require_btrace): Use new btrace thread
11009 (record_btrace_info, btrace_insn_history)
11010 (record_btrace_insn_history, record_btrace_insn_history_range):
11011 Use new btrace thread info fields and new iterator.
11012 (btrace_func_history_src_line): Rename to ...
11013 (btrace_call_history_src_line): ...this. Use new btrace
11014 thread info fields.
11015 (btrace_func_history): Rename to ...
11016 (btrace_call_history): ...this. Use new btrace thread info
11017 fields and new iterator.
11018 (record_btrace_call_history, record_btrace_call_history_range):
11019 Use new btrace thread info fields and new iterator.
11021 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11023 * frame.h (frame_id_build_unavailable_stack_special): New.
11024 * frame.c (frame_id_build_unavailable_stack_special): New.
11026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11028 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11029 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11030 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11032 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11033 (i386_insn_is_jump, i386_jmp_p): New.
11034 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11035 insn_is_jump to gdbarch.
11036 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11037 * gdbarch.h: Regenerated.
11038 * gdbarch.c: Regenerated.
11039 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11040 (default_insn_is_jump): New.
11041 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11042 (default_insn_is_jump): New.
11044 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11046 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11048 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11049 (btrace_read_type) <btrace_read_new>: Change to ...
11050 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11052 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11054 * common/linux-btrace.c (linux_read_btrace): Free trace from
11055 previous iteration.
11057 2014-01-15 Doug Evans <dje@google.com>
11059 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11062 2014-01-15 Tom Tromey <tromey@redhat.com>
11064 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11065 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11066 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11067 (set_objfile_main_name): New function.
11068 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11069 language_of_main>: New fields.
11070 (set_objfile_main_name): Declare.
11071 * symtab.c (find_main_name): Loop over objfiles to find the main
11073 (set_main_name): Now static.
11074 (get_main_info): Add comment.
11075 * symtab.h (set_main_name): Don't declare.
11077 2014-01-15 Tom Tromey <tromey@redhat.com>
11079 * symtab.c (main_progspace_key): New global.
11080 (struct main_info): New.
11081 (name_of_main, language_of_main): Remove.
11082 (get_main_info, main_info_cleanup): New function.
11083 (set_main_name, main_name, main_language): Use get_main_info.
11084 (_initialize_symtab): Initialize main_progspace_key.
11086 2014-01-15 Tom Tromey <tromey@redhat.com>
11088 * dbxread.c (process_one_symbol): Update.
11089 * dwarf2read.c (read_partial_die): Update.
11090 * symfile.c (set_initial_language): Call main_language.
11091 * symtab.c (language_of_main): Now static.
11092 (set_main_name): Add 'lang' parameter.
11093 (find_main_name): Update.
11094 (main_language): New function.
11095 (symtab_observer_executable_changed): Update.
11096 * symtab.h (set_main_name): Update.
11097 (language_of_main): Remove.
11098 (main_language): Declare.
11100 2014-01-15 Tom Tromey <tromey@redhat.com>
11102 * symfile.c (init_entry_point_info): Use new "initialized" field.
11104 * objfiles.h (struct entry_point) <initialized>: New field.
11105 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11106 (struct objfile) <ei>: ...here. Remove.
11107 * objfiles.c (entry_point_address_query): Update.
11109 2014-01-15 Tom Tromey <tromey@redhat.com>
11111 * objfiles.c (entry_point_address_query): Relocate entry point
11113 (objfile_relocate1): Do not relocate entry point address.
11114 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11115 <the_bfd_section_index>: New field.
11116 * symfile.c (init_entry_point_info): Find the entry point's
11119 2014-01-15 Tom Tromey <tromey@redhat.com>
11121 * solib-frv.c (enable_break): Use entry_point_address_query.
11123 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11125 * NEWS: Add note on improved process record-replay on
11126 arm*-linux* targets.
11128 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11130 * arm-tdep.c (enum arm_record_result): New enum.
11131 (arm_record_unsupported_insn): New function.
11132 (arm_record_coproc_data_proc): Removed.
11133 (thumb2_record_ld_st_multiple): New function.
11134 (thumb2_record_ld_st_dual_ex_tbb): New function.
11135 (thumb2_record_data_proc_sreg_mimm): New function.
11136 (thumb2_record_ps_dest_generic): New function.
11137 (thumb2_record_branch_misc_cntrl): New function.
11138 (thumb2_record_str_single_data): New function.
11139 (thumb2_record_ld_mem_hints): New function.
11140 (thumb2_record_ld_word): New function.
11141 (thumb2_record_lmul_lmla_div): New function.
11142 (thumb2_record_decode_insn_handler): New function.
11143 (decode_insn): Add thumb32 instruction handlers.
11145 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11147 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11148 (struct arm_linux_record_tdep): Declare.
11149 (arm_canonicalize_syscall): New function.
11150 (arm_all_but_pc_registers_record): New function.
11151 (arm_linux_syscall_record): New function.
11152 (arm_linux_init_abi): Add syscall recording constructs.
11153 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11154 decoding. (arm_record_coproc_data_proc): Update arm syscall
11156 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11157 <arm_syscall_record>: New field.
11158 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11161 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11163 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11164 register for push instruction recording.
11166 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11168 * arm-tdep.c (thumb_record_misc): Update to correct logical
11169 error while recording ldm, ldmia and pop instructions.
11171 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11173 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11175 2014-01-15 Pedro Alves <palves@redhat.com>
11177 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11178 (go32_resume, go32_fetch_registers, store_register)
11179 (go32_store_registers, go32_prepare_to_store)
11180 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11181 (go32_create_inferior, go32_can_run, go32_terminal_init)
11182 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11185 2014-01-15 Tom Tromey <tromey@redhat.com>
11187 * target.h (async_callback_ftype): New typedef.
11188 (struct target_ops) <to_async>: Use it.
11190 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11192 * python/py-value.c (get_field_type): Remove unnecessary curly
11193 braces for single-statement if block.
11195 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11197 * python/py-type.c (convert_field): Add missing empty line
11198 after declarations.
11200 2014-01-14 Doug Evans <dje@google.com>
11202 * symfile.h (expand_symtabs_matching): Renamed from
11203 expand_partial_symbol_names. Update prototype.
11204 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11205 * symfile.c (expand_symtabs_matching): Renamed from
11206 expand_partial_symbol_names. New args file_matcher, kind.
11207 Rename arg fun to symbol_matcher.
11208 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11209 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11210 ada_expand_partial_symbol_name.
11211 (ada_make_symbol_completion_list): Update to call
11212 expand_symtabs_matching.
11213 (ada_add_global_exceptions): Call expand_symtabs_matching.
11214 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11215 call map_symbol_filenames.
11216 * symtab.c (sources_info): Update to call map_symbol_filenames.
11217 (search_symbols): Call expand_symtabs_matching.
11218 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11219 (default_make_symbol_completion_list_break_on): Update to call
11220 expand_symtabs_matching.
11221 (make_source_files_completion_list): Update to call
11222 map_symbol_filenames.
11224 2014-01-14 Doug Evans <dje@google.com>
11226 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11227 (expand_symtabs_symbol_matcher_ftype): New typedef.
11228 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11229 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11230 * symfile.c (expand_partial_symbol_names): Update to use
11231 expand_symtabs_symbol_matcher_ftype.
11232 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11233 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11234 Arg name_matcher renamed to symbol_matcher.
11235 * psymtab.c (recursively_search_psymtabs): Update to use
11236 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11238 (expand_symtabs_matching_via_partial): Update to use
11239 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11240 Arg name_matcher renamed to symbol_matcher.
11242 2014-01-14 Doug Evans <dje@google.com>
11244 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11245 (map_partial_symbol_filenames): Ditto.
11246 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11247 (map_partial_symbol_filenames): Ditto.
11248 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11249 (map_partial_symbol_filenames): Ditto.
11250 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11251 (map_partial_symbol_filenames): Ditto.
11252 * symtab.c: Delete #include "psymtab.h".
11254 2014-01-14 Pedro Alves <palves@redhat.com>
11255 Tom Tromey <tromey@redhat.com>
11257 * infrun.c (use_displaced_stepping): Use find_record_target
11258 instead of RECORD_IS_USED.
11259 (adjust_pc_after_break): Use record_full_is_used instead of
11261 * record-btrace.c (record_btrace_open): Call record_preopen
11262 instead of checking RECORD_IS_USED.
11263 * record-full.c (record_full_shortname)
11264 (record_full_core_shortname): New globals.
11265 (record_full_is_used): New function.
11266 (find_full_open): Call record_preopen instead of checking
11268 (init_record_full_ops): Set the target's shortname to
11269 record_full_shortname.
11270 (init_record_full_core_ops): Set the target's shortname to
11271 record_full_core_shortname.
11272 * record-full.h (record_full_is_used): Declare.
11273 * record.c (find_record_target): Make extern.
11274 (record_preopen): New function.
11275 * record.h (RECORD_IS_USED): Delete macro.
11276 (find_record_target, record_preopen): Declare functions.
11278 2014-01-14 Yao Qi <yao@codesourcery.com>
11280 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11281 'len''s type to ULONGEST.
11282 (core_xfer_shared_libraries_aix): Likewise.
11283 * gdbarch.c, gdbarch.h: Regenerated.
11284 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11285 Change type of 'len' to ULONGEST.
11286 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11287 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11289 2014-01-14 Yao Qi <yao@codesourcery.com>
11291 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11292 type of 'len' to ULONGEST.
11293 (linux_xfer_osdata_processgroups): Likewise.
11294 (linux_xfer_osdata_threads): Likewise.
11295 (linux_xfer_osdata_fds): Likewise.
11296 (linux_xfer_osdata_isockets): Likewise.
11297 (linux_xfer_osdata_shm): Likewise.
11298 (linux_xfer_osdata_sem): Likewise.
11299 (linux_xfer_osdata_msg): Likewise.
11300 (linux_common_xfer_osdata): Likewise.
11301 (struct osdata_type) <getter>: Likewise.
11302 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11305 2014-01-14 Yao Qi <yao@codesourcery.com>
11307 * target.h (target_xfer_partial_ftype): Update.
11308 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11310 * aix-thread.c (aix_thread_xfer_partial): Change type of
11311 argument 'len' to ULONGEST.
11312 * auxv.c (procfs_xfer_auxv): Likewise.
11313 (ld_so_xfer_auxv): Likewise.
11314 (memory_xfer_auxv): Likewise.
11315 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11316 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11317 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11318 * corelow.c (core_xfer_partial): Likewise.
11319 * ctf.c (ctf_xfer_partial): Likewise.
11320 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11322 (darwin_read_dyld_info): Likewise.
11323 (darwin_xfer_partial): Likewise.
11324 * exec.c (section_table_xfer_memory_partial): Likewise.
11325 (exec_xfer_partial): Likewise.
11326 * exec.h (section_table_xfer_memory_partial): Update
11328 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11329 instead of plongest.
11330 (gnu_xfer_partial): Likewise.
11331 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11332 (ia64_hpux_xfer_solib_got): Likewise.
11333 (ia64_hpux_xfer_partial): Likewise.
11334 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11335 * inf-ptrace.c (inf_ptrace_xfer_partial):
11336 * inf-ttrace.c (inf_ttrace_xfer_partial):
11337 * linux-nat.c (linux_xfer_siginfo): Likewise.
11338 (linux_nat_xfer_partial): Likewise.
11339 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11340 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11341 * monitor.c (monitor_xfer_memory): Likewise.
11342 (monitor_xfer_partial): Likewise.
11343 * procfs.c (procfs_xfer_partial): Likewise.
11344 * record-full.c (record_full_xfer_partial): Likewise.
11345 (record_full_core_xfer_partial): Likewise.
11346 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11347 instead of plongest.
11348 (gdbsim_xfer_partial): Likewise.
11349 * remote.c (remote_xfer_partial): Likewise.
11350 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11351 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11353 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11354 (rs6000_xfer_shared_libraries): Likewise.
11355 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11356 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11357 (sparc_xfer_partial): Likewise.
11358 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11359 (spu_xfer_partial): Likewise.
11360 * spu-multiarch.c (spu_xfer_partial): Likewise.
11361 * target.c (target_read_live_memory): Likewise.
11362 (memory_xfer_live_readonly_partial): Likewise.
11363 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11364 (target_xfer_partial, default_xfer_partial): Likewise.
11365 (current_xfer_partial): Likewise.
11366 * tracepoint.c (tfile_xfer_partial): Likewise.
11367 * windows-nat.c (windows_xfer_memory): Likewise. Call
11368 pulongest instead of plongest.
11369 (windows_xfer_partial): Likewise.
11370 (windows_xfer_shared_libraries): Likewise.
11372 2014-01-14 Yao Qi <yao@codesourcery.com>
11374 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11375 target_xfer_partial_ftype.
11377 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11381 * valops.c (value_struct_elt_bitpos): New function
11382 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11383 object to 'None' if the field name is an empty string ("").
11384 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11385 attribute to look for a field when 'name' is 'None'.
11386 (get_field_type): New function
11388 2014-01-13 Doug Evans <dje@google.com>
11391 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11392 (try_open_dwop_file): Ditto.
11393 * gdb_bfd.c: #include "vec.h".
11394 (bfdp): New typedef.
11395 (struct gdb_bfd_data): New member included_bfds.
11396 (gdb_bfd_unref): Unref all included bfds.
11397 (gdb_bfd_record_inclusion): New function.
11398 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11400 2014-01-13 Tom Tromey <tromey@redhat.com>
11402 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11404 2014-01-13 Tom Tromey <tromey@redhat.com>
11406 * defs.h (use_windows): Remove.
11407 * gdb.c (main): Update.
11408 * main.c (captured_main, gdb_main): Update.
11409 * main.h (struct captured_main_args) <use_windows>: Remove.
11410 * top.c (use_windows): Remove.
11412 2014-01-13 Tom Tromey <tromey@redhat.com>
11414 * defs.h (deprecated_flush_hook): Remove.
11416 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11419 * linux-thread-db.c (try_thread_db_load): Add parameter
11420 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11421 (try_thread_db_load_from_pdir_1): Move it there from here.
11422 (try_thread_db_load_from_sdir): Update caller.
11423 (try_thread_db_load_from_dir): Move it there from here.
11425 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11427 * regformats/regdat.sh: Always rewrite the register file.
11429 2014-01-13 Pedro Alves <palves@redhat.com>
11431 * Makefile.in (CHECK_HEADERS): New variable.
11432 (check-headers:): New rule.
11434 2014-01-13 Tom Tromey <tromey@redhat.com>
11436 * cli/cli-setshow.c (do_set_command): Update.
11437 * defs.h (deprecated_set_hook): Remove.
11438 * top.c (deprecated_set_hook): Remove.
11440 2014-01-13 Pedro Alves <palves@redhat.com>
11442 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11443 the tracepoint if the PC is a pseudo-register.
11445 2014-01-13 Tom Tromey <tromey@redhat.com>
11447 * defs.h (XCALLOC): Remove.
11448 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11449 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11450 * dwarf2loc.c (allocate_piece_closure): Likewise.
11451 * elfread.c (elf_symfile_segments): Likewise.
11452 (elf_symfile_segments): Likewise.
11453 * gdbtypes.c (copy_type_recursive): Likewise.
11454 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11455 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11456 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11458 * mt-tdep.c (mt_gdbarch_init): Likewise.
11459 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11461 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11462 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11463 * registry.c (registry_alloc_data): Likewise.
11464 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11465 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11466 * serial.c (serial_fdopen_ops): Likewise.
11467 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11469 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11470 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11473 2014-01-13 Tom Tromey <tromey@redhat.com>
11475 * defs.h (XMALLOC): Remove.
11476 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11477 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11478 * cli-out.c (struct ui_out *): Likewise.
11479 * cli/cli-dump.c (add_dump_command): Likewise.
11480 (add_dump_command): Likewise.
11481 * complaints.c (get_complaints): Likewise.
11482 (find_complaint): Likewise.
11483 * dwarf2-frame.c (execute_cfa_program): Likewise.
11484 * dwarf2read.c (abbrev_table_read_table): Likewise.
11485 * gdbarch.sh: Likewise.
11486 * gdbarch.c: Rebuild.
11487 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11488 * interps.c (interp_new): Likewise.
11489 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11490 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11491 * mi/mi-console.c (mi_console_file_new): Likewise.
11492 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11493 * mi/mi-out.c (mi_out_new): Likewise.
11494 * mi/mi-parse.c (mi_parse): Likewise.
11495 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11496 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11497 * observer.c (xalloc_observer_list_node): Likewise.
11498 * regcache.c (regcache_xmalloc_1): Likewise.
11499 * reggroups.c (reggroup_new): Likewise.
11500 (_initialize_reggroup): Likewise.
11501 * registry.c (register_data_with_cleanup): Likewise.
11502 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11503 * ser-base.c (serial_ttystate): Likewise.
11504 * ser-mingw.c (make_pipe_state): Likewise.
11505 * ser-pipe.c (pipe_open): Likewise.
11506 * serial.c (serial_open): Likewise.
11507 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11508 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11509 (tui_alloc_win_info): Likewise.
11510 (tui_add_content_elements): Likewise.
11511 * tui/tui-file.c (tui_file_new): Likewise.
11512 * tui/tui-out.c (tui_out_new): Likewise.
11513 * ui-file.c (mem_file_new): Likewise.
11514 * ui-out.c (push_level): Likewise.
11515 (make_cleanup_ui_out_end): Likewise.
11516 (append_header_to_list): Likewise.
11517 (ui_out_new): Likewise.
11518 * user-regs.c (user_reg_add_builtin): Likewise.
11520 2014-01-13 Tom Tromey <tromey@redhat.com>
11522 * defs.h (XZALLOC): Remove.
11523 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11524 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11525 (get_ada_tasks_inferior_data): Likewise.
11526 * auto-load.c (get_auto_load_pspace_data): Likewise.
11527 * auxv.c (get_auxv_inferior_data): Likewise.
11528 * bfd-target.c (target_bfd_reopen): Likewise.
11529 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11530 (deprecated_insert_raw_breakpoint): Likewise.
11531 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11532 * corelow.c (core_open): Likewise.
11533 * darwin-nat.c (darwin_check_new_threads): Likewise.
11534 (darwin_attach_pid): Likewise.
11535 * dummy-frame.c (dummy_frame_push): Likewise.
11536 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11537 * dwarf2loc.c (allocate_piece_closure): Likewise.
11538 * elfread.c (elf_symfile_segments): Likewise.
11539 * eval.c (ptrmath_type_p): Likewise.
11540 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11541 * gdbtypes.c (alloc_type_arch): Likewise.
11542 (alloc_type_instance): Likewise.
11543 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11544 * inf-child.c (inf_child_can_use_agent): Likewise.
11545 * inflow.c (get_inflow_inferior_data): Likewise.
11546 * infrun.c (save_infcall_suspend_state): Likewise.
11547 * jit.c (jit_reader_load): Likewise.
11548 (get_jit_objfile_data): Likewise.
11549 (get_jit_program_space_data): Likewise.
11550 (jit_object_open_impl): Likewise.
11551 (jit_symtab_open_impl): Likewise.
11552 (jit_block_open_impl): Likewise.
11553 (jit_frame_sniffer): Likewise.
11554 * linux-fork.c (add_fork): Likewise.
11555 * maint.c (make_command_stats_cleanup): Likewise.
11556 * objfiles.c (get_objfile_pspace_data): Likewise.
11557 * opencl-lang.c (struct lval_closure): Likewise.
11558 * osdata.c (osdata_start_osdata): Likewise.
11559 * progspace.c (new_address_space): Likewise.
11560 (add_program_space): Likewise.
11561 * remote-sim.c (get_sim_inferior_data): Likewise.
11562 * sh-tdep.c (sh_gdbarch_init): Likewise.
11563 * skip.c (Ignore): Likewise.
11564 (skip_delete_command): Likewise.
11565 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11566 (library_list_start_library): Likewise.
11567 (solib_aix_current_sos): Likewise.
11568 * solib-darwin.c (get_darwin_info): Likewise.
11569 (darwin_current_sos): Likewise.
11570 * solib-dsbt.c (get_dsbt_info): Likewise.
11571 * solib-ia64-hpux.c (new_so_list): Likewise.
11572 (ia64_hpux_get_solib_linkage_addr): Likewise.
11573 * solib-spu.c (append_ocl_sos): Likewise.
11574 (spu_current_sos): Likewise.
11575 * solib-svr4.c (get_svr4_info): Likewise.
11576 (svr4_keep_data_in_core): Likewise.
11577 (library_list_start_library): Likewise.
11578 (svr4_default_sos): Likewise.
11579 (svr4_read_so_list): Likewise.
11580 * solib-target.c (library_list_start_library): Likewise.
11581 (solib_target_current_sos): Likewise.
11582 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11583 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11584 * symfile.c (default_symfile_segments): Likewise.
11585 * target-descriptions.c (tdesc_data_init): Likewise.
11586 (tdesc_create_reg): Likewise.
11587 (struct tdesc_type *): Likewise.
11588 (tdesc_create_vector): Likewise.
11589 (tdesc_set_struct_size): Likewise.
11590 (struct tdesc_type *): Likewise.
11591 (tdesc_free_feature): Likewise.
11592 (tdesc_create_feature): Likewise.
11593 * windows-nat.c (windows_add_thread): Likewise.
11594 (windows_make_so): Likewise.
11595 * xml-support.c (gdb_xml_body_text): Likewise.
11596 (gdb_xml_create_parser_and_cleanup): Likewise.
11597 (xml_process_xincludes): Likewise.
11598 * xml-syscall.c (allocate_syscalls_info): Likewise.
11599 (syscall_create_syscall_desc): Likewise.
11601 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11603 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11604 function, with code from i386_stap_parse_special_token.
11605 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11606 (i386_stap_parse_special_token): Move code to the two functions
11607 above; simplify it.
11609 2014-01-09 Pedro Alves <palves@redhat.com>
11610 Hui Zhu <hui@codesourcery.com>
11613 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11614 bp_err_string. Don't mark the location shlib_disabled if the
11615 error thrown wasn't a generic or memory error. Catch errors
11616 thrown while inserting breakpoints in overlayed code. Output
11617 error message of software breakpoints.
11618 * remote.c (remote_insert_breakpoint): If this breakpoint has
11619 target-side commands but this stub doesn't support Z0 packets,
11620 throw NOT_SUPPORTED_ERROR error.
11621 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11622 * target.h (target_insert_breakpoint): Extend comment.
11623 (target_insert_hw_breakpoint): Add comment.
11625 2014-01-08 Pedro Alves <palves@redhat.com>
11627 * remote.c (remote_add_thread): Add threads silently if starting
11629 (remote_notice_new_inferior): If in all-stop, and starting up,
11630 don't call notice_new_inferior.
11631 (get_current_thread): New function, factored out from ...
11632 (add_current_inferior_and_thread): ... this. Adjust.
11633 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11634 found any thread, then select the remote's current thread as GDB's
11635 current thread too.
11637 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11639 * NEWS: Create a new section for the next release branch.
11640 Rename the section of the current branch, now that it has
11643 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11645 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11646 * version.in: Bump version to 7.7.50.DATE-cvs.
11648 2014-01-08 Yao Qi <yao@codesourcery.com>
11650 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11651 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11652 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11654 2014-01-08 Yao Qi <yao@codesourcery.com>
11656 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11657 return value of bfd_get_filename to symbol_file_add_from_bfd.
11659 2014-01-08 Pierre Muller <muller@sourceware.org>
11662 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11663 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11664 to prim_record_mininal_symbol_and_info.
11665 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11666 in call to prim_record_minimal_symbol_and_info.
11667 (read_pe_exported_syms): Set index field of section_data.
11669 2014-01-07 Andrew Pinski <apinski@cavium.com>
11671 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11672 * features/aarch64.c: Regenerate.
11674 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11676 * target.c (return_null): Define.
11677 (update_current_target): Use it instead of return_zero for
11678 functions that return a pointer.
11680 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11682 * source.c (add_path): Fix check for duplicated paths in the previously
11685 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11687 * ada-lang.c: Remove duplicated include statements.
11688 * alphabsd-nat.c: Ditto.
11689 * amd64-darwin-tdep.c: Ditto.
11690 * amd64fbsd-nat.c: Ditto.
11691 * auto-load.c: Ditto.
11693 * breakpoint.c: Ditto.
11694 * dbxread.c: Ditto.
11695 * fork-child.c: Ditto.
11696 * gdb_usleep.c: Ditto.
11697 * i386-darwin-tdep.c: Ditto.
11698 * i386fbsd-nat.c: Ditto.
11700 * inferior.c: Ditto.
11701 * jv-lang.c: Ditto.
11702 * linux-nat.c: Ditto.
11703 * linux-tdep.c: Ditto.
11704 * m68kbsd-nat.c: Ditto.
11705 * m68klinux-nat.c: Ditto.
11706 * microblaze-tdep.c: Ditto.
11707 * mips-linux-tdep.c: Ditto.
11708 * mn10300-tdep.c: Ditto.
11709 * nto-tdep.c: Ditto.
11710 * opencl-lang.c: Ditto.
11712 * printcmd.c: Ditto.
11713 * regcache.c: Ditto.
11714 * remote-m32r-sdi.c: Ditto.
11716 * symfile.c: Ditto.
11718 * tilegx-linux-nat.c: Ditto.
11719 * tilegx-tdep.c: Ditto.
11720 * tracepoint.c: Ditto.
11722 * vaxbsd-nat.c: Ditto.
11723 * windows-nat.c: Ditto.
11724 * xtensa-tdep.c: Ditto.
11726 2014-01-07 Yao Qi <yao@codesourcery.com>
11728 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11730 2014-01-07 Yao Qi <yao@codesourcery.com>
11731 Joel Brobecker <brobecker@adacore.com>
11733 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11734 (pdc_write_regs): Likewise.
11735 (fetch_regs_kernel_thread): Likewise.
11736 (store_regs_kernel_thread): Likewise.
11738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11740 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11741 tagged type objects to their actual type.
11743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11745 * ada-valprint.c (print_field_values): Add "language" parameter.
11746 Update calls to print_field_values and print_variant_part.
11747 Pass new parameter "language" in call to val_print instead
11748 of "current_language". Replace call to ada_val_print by call
11750 (print_variant_part): Add "language" parameter.
11751 (ada_val_print_struct_union): Update call to print_field_values.
11753 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11755 * ada-valprint.c (ui_memcpy): Delete.
11756 (ada_print_floating): Update documentation. Add empty line
11757 between between function documentation and implementation.
11758 Delete variable "buffer". Use ui_file_xstrdup in place of
11759 ui_file_put. Minor adjustments following this change.
11761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11763 * ada-valprint.c (ada_val_print_string): New function,
11764 extracted from ada_val_print_array.
11765 (ada_val_print_array): Replace extracted code by call
11766 to ada_val_print_string followed by a return. Move
11767 "else" branch to the function's top block.
11769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11771 * ada-valprint.c (ada_val_print_array): Move implementation
11772 down. Rename parameter "offset" and "val" into "offset_aligned"
11773 and "original_value" respectively. Add parameter "offset".
11775 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11777 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11778 re-organizing the code. Change the "???" message printed
11779 when target type is a TYPE_CODE_UNDEF into
11780 "<ref to undefined type>".
11782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11784 * ada-valprint.c (print_record): Delete, implementation inlined...
11785 (ada_val_print_struct_union): ... here. Remove call to
11786 ada_check_typedef in inlined implementation.
11788 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11790 * ada-valprint.c (ada_val_print_gnat_array): New function,
11791 extracted from ada_val_print_1;
11792 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11793 (ada_val_print_flt, ada_val_print_struct_union)
11794 (ada_val_print_ref): Likewise.
11795 (ada_val_print_1): Delete variables i and elttype.
11796 Replace extracted-out code by call to corresponding
11799 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11801 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11805 * ada-valprint.c (ada_val_print_1): Replace calls to
11806 ada_val_print_1 by calls to val_print.
11808 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11810 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11811 Update calls to self accordingly. Replace calls to c_val_print
11812 by calls to val_print.
11814 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11816 * ada-valprint.c (print_record): Delete declaration.
11817 (adjust_type_signedness, ada_val_print_1): Likewise.
11818 (ada_val_print): Move function implementation down.
11819 (print_variant_part, print_field_values, print_record):
11820 Move function implementation up.
11822 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11824 * python/py-type.c (typy_get_name): New function.
11825 (type_object_getset): Add entry for attribute "name".
11826 * NEWS: Add entry mentioning this new attribute.
11828 2014-01-07 Yao Qi <yao@codesourcery.com>
11830 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11833 2014-01-07 Yao Qi <yao@codesourcery.com>
11835 * gnu-nat.c (info_port_rights): Add qualifier const to
11838 2014-01-07 Yao Qi <yao@codesourcery.com>
11840 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11842 2014-01-07 Yao Qi <yao@codesourcery.com>
11844 * gnu-nat.c (make_inf) Update declaration.
11845 (make_inf): Make it static.
11846 (inf_set_traced): Likewise.
11847 (inf_port_to_thread, inf_task_died_status): Likewise.
11849 2014-01-07 Yao Qi <yao@codesourcery.com>
11851 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11853 2014-01-07 Yao Qi <yao@codesourcery.com>
11855 * gnu-nat.c (_initialize_gnu_nat): Declare.
11857 2014-01-07 Yao Qi <yao@codesourcery.com>
11859 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11861 (struct gdbarch_info) <byte_order>: Change type to
11863 <byte_order_for_code>: Likewise.
11864 * gdbarch.c, gdbarch.h: Regenerated.
11866 2014-01-06 Sasha Smundak <asmundak@google.com>
11868 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11870 2014-01-06 Tom Tromey <tromey@redhat.com>
11872 * doublest.c (convert_doublest_to_floatformat): Use const, not
11874 * somread.c (som_symtab_read): Likewise.
11876 2014-01-07 Hui Zhu <hui@codesourcery.com>
11878 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11879 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11880 (gdb_bfd_fopen): Ditto.
11881 (gdb_bfd_openr): Ditto.
11882 (gdb_bfd_openw): Ditto.
11883 (gdb_bfd_openr_iovec): Ditto.
11884 (gdb_bfd_fdopenr): Ditto.
11885 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11886 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11888 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11890 * symfile-mem.c (symbol_file_add_from_memory): Removed
11891 gdb_bfd_stash_filename.
11893 2014-01-03 Doug Evans <dje@google.com>
11895 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11898 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11900 Update year range in copyright notice of all files.
11902 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11904 * top.c (print_gdb_version): Set copyright year to 2014.
11906 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11908 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11910 For older changes see ChangeLog-2013.
11916 version-control: never