1 2014-08-13 Yao Qi <yao@codesourcery.com>
4 * configure.ac: Use local variable 'pos'.
5 * configure: Regenerated.
7 2014-08-11 Doug Evans <dje@google.com>
9 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
10 message, it is redundant with "Reading symbols from ..." message.
12 2014-08-10 Doug Evans <xdje42@gmail.com>
14 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
16 2014-08-09 Yao Qi <yao@codesourcery.com>
19 * remote.c (remote_xfer_partial): Remove dead code.
21 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
23 * ia64-linux-tdep.c: Include "regset.h".
24 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
25 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
26 (ia64_linux_supply_fpregset): New function.
27 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
28 (ia64_linux_regset_from_core_section): New function.
29 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
32 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
34 * m68klinux-tdep.c: Include "regset.h".
35 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
36 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
37 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
38 (m68k_linux_regset_from_core_section): New function.
39 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
42 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
44 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
45 function. Move logic to...
46 (tilegx_linux_regmap): ... this new register map.
47 (tilegx_linux_regset): Refer to register map, replace supply
48 method by regcache_supply_regset, and add collect method.
49 * tilegx-tdep.h (enum tilegx_regnum): New enum value
50 TILEGX_FIRST_EASY_REGNUM.
52 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
54 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
55 that calls regcache_supply_regset and handles the EPC register
56 separately. Move main logic to...
57 (score7_linux_gregmap): ... this new register map.
58 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
59 (score7_linux_gregset): Refer to register map. Add collect method.
60 (score7_linux_regset_from_core_section): Replace
61 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
62 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
63 (struct regset): Delete unused forward declaraction.
64 (struct pt_regs): Delete structure definition.
65 (elf_gregset_t): Delete typedef.
67 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
69 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
70 (nios2_core_regset): Add collect method.
72 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
74 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
75 platform-independent and don't write to read-only input buffer.
76 (m32r_linux_collect_gregset): New function.
77 (m32r_linux_gregset): Add collect method.
79 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
81 * hppa-linux-tdep.c (greg_map): Rename to...
82 (hppa_linux_gregmap): ... this. Also convert to
83 regcache_map_entry format.
84 (hppa_linux_supply_regset): Delete function.
85 (hppa_linux_supply_fpregset): Delete function. Move logic to...
86 (hppa_linux_fpregmap): ... this new register map.
87 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
88 register map, replace supply method by regcache_supply_regset, and
89 add collect method regcache_collect_regset.
91 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
93 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
94 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
95 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
96 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
97 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
98 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
99 (frv_linux_supply_gregset): Replace main logic by call to
100 regcache_supply_regset, but keep clearing gr32-gr63.
101 (frv_linux_supply_fpregset): Delete function.
102 (frv_linux_gregset): Refer to appropriate register map and add
103 regcache_collect_regset as the collect method.
104 (frv_linux_fpregset): Likewise. Also exchange the supply method
105 by regcache_supply_regset.
107 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
109 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
110 by call to alpha_supply_int_regs.
111 (alpha_linux_collect_gregset): New function.
112 (alpha_linux_supply_fpregset): Replace logic by call to
113 alpha_supply_fp_regs.
114 (alpha_linux_collect_fpregset): New function.
115 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
117 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
119 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
120 by call to regcache_collect_regset.
121 (supply_gregset, supply_fpregset): Call regcache_supply_regset
122 instead of aarch64_linux_supply_gregset/_fpregset.
123 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
124 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
126 (aarch64_linux_supply_gregset, supply_gregset_from_core)
127 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
128 functions. Move logic to ...
129 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
131 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
132 refer to new register maps, replace *_regset_from_core by
133 regcache_supply_regset, and also use regcache_collect_regset.
134 * aarch64-linux-tdep.h: Include "regset.h".
135 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
137 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
138 macros, moved from C source file.
139 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
140 variable declarations.
142 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
144 * s390-linux-nat.c: Include "regset.h".
145 (regmap_gregset): Delete macro.
146 (s390_64_regmap_gregset): New register map for
147 regcache_supply/_collect_regset.
148 (s390_64_gregset): New regset.
149 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
150 (regmap_fpregset): Delete macro.
151 (s390_native_supply, s390_native_collect): Delete functions.
152 (supply_gregset, fill_gregset): Replace s390-specific regmap
153 handling by a call to regcache_supply/_collect_regset.
154 (supply_fpregset, fill_fpregset): Call regcache_supply/
155 _collect_regset instead of s390_native_supply/_collect.
156 (fetch_regset, store_regset): Likewise. Also change the last
157 parameter to a regset instead of a regmap.
158 (s390_linux_fetch_inferior_registers)
159 (390_linux_store_inferior_registers): Adjust last parameter in
160 calls to fetch_regset and store_regset.
161 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
162 (s390_gregmap): ... this. Also make static const and convert to
163 regcache_map_entry format.
164 (s390x_regmap_gregset): Delete.
165 (s390_regmap_fpregset): Rename to...
166 (s390_fpregmap): ... this. Make static const and convert to
167 regcache_map_entry format.
168 (s390_regmap_upper, s390_regmap_last_break)
169 (s390x_regmap_last_break, s390_regmap_system_call)
170 (s390_regmap_tdb): Likewise.
171 (s390_supply_regset, s390_collect_regset): Remove functions.
172 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
174 (s390_gregset, s390_fpregset, s390_upper_regset)
175 (s390_last_break_regset, s390x_last_break_regset)
176 (s390_system_call_regset, s390_tdb_regset): Make global and
177 replace s390_supply/_collect_regset by regcache_supply/
179 (s390x_gregset): Delete.
180 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
181 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
182 (s390_regmap_fpregset, s390_regmap_last_break)
183 (s390x_regmap_last_break, s390_regmap_system_call)
184 (s390_regmap_tdb): Delete global variable declarations.
185 (s390_gregset, s390_fpregset, s390_last_break_regset)
186 (s390x_last_break_regset, s390_system_call_regset)
187 (s390_tdb_regset): New global variable declarations.
189 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
191 * regcache.c: Include "regset.h".
192 (regcache_transfer_regset): New local function.
193 (regcache_supply_regset, regcache_collect_regset): New functions.
194 * regcache.h (struct regcache_map_entry): New structure.
195 (REGCACHE_MAP_SKIP): New enum value.
196 (regcache_supply_regset, regcache_collect_regset): New prototypes.
198 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
200 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
201 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
202 (ppc_linux_collect_gregset ): Likewise.
203 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
204 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
205 (ppc_collect_vrregset): Likewise.
206 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
209 2014-08-07 Yao Qi <yao@codesourcery.com>
211 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
212 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
213 * remote.c (remote_read_bytes): Likewise.
215 2014-08-07 Yao Qi <yao@codesourcery.com>
217 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
219 2014-08-07 Yao Qi <yao@codesourcery.com>
222 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
223 TARGET_XFER_OK instead of 0.
225 2014-08-07 Gary Benson <gbenson@redhat.com>
227 * common/common-defs.h: Include errno.h.
228 * defs.h: Do not include errno.h.
229 * ada-typeprint.c: Likewise.
230 * c-typeprint.c: Likewise.
231 * core-regset.c: Likewise.
232 * corefile.c: Likewise.
233 * corelow.c: Likewise.
234 * event-loop.c: Likewise.
235 * f-typeprint.c: Likewise.
236 * gnu-nat.c: Likewise.
237 * go32-nat.c: Likewise.
238 * i386gnu-nat.c: Likewise.
239 * m2-typeprint.c: Likewise.
240 * nat/linux-btrace.c: Likewise.
241 * p-typeprint.c: Likewise.
242 * procfs.c: Likewise.
243 * remote-sim.c: Likewise.
244 * rs6000-nat.c: Likewise.
245 * target.c: Likewise.
246 * typeprint.c: Likewise.
247 * ui-file.c: Likewise.
248 * valops.c: Likewise.
249 * valprint.c: Likewise.
251 2014-08-07 Gary Benson <gbenson@redhat.com>
253 * common/common-defs.h: Include string.h.
254 * aarch64-tdep.c: Do not include string.h.
255 * ada-exp.y: Likewise.
256 * ada-lang.c: Likewise.
257 * ada-lex.l: Likewise.
258 * ada-typeprint.c: Likewise.
259 * ada-valprint.c: Likewise.
260 * aix-thread.c: Likewise.
261 * alpha-linux-tdep.c: Likewise.
262 * alpha-mdebug-tdep.c: Likewise.
263 * alpha-nat.c: Likewise.
264 * alpha-osf1-tdep.c: Likewise.
265 * alpha-tdep.c: Likewise.
266 * alphanbsd-tdep.c: Likewise.
267 * amd64-dicos-tdep.c: Likewise.
268 * amd64-linux-tdep.c: Likewise.
269 * amd64-nat.c: Likewise.
270 * amd64-sol2-tdep.c: Likewise.
271 * amd64fbsd-tdep.c: Likewise.
272 * amd64obsd-tdep.c: Likewise.
273 * arch-utils.c: Likewise.
274 * arm-linux-nat.c: Likewise.
275 * arm-linux-tdep.c: Likewise.
276 * arm-tdep.c: Likewise.
277 * arm-wince-tdep.c: Likewise.
278 * armbsd-tdep.c: Likewise.
279 * armnbsd-nat.c: Likewise.
280 * armnbsd-tdep.c: Likewise.
281 * armobsd-tdep.c: Likewise.
282 * avr-tdep.c: Likewise.
283 * ax-gdb.c: Likewise.
284 * ax-general.c: Likewise.
285 * bcache.c: Likewise.
286 * bfin-tdep.c: Likewise.
287 * breakpoint.c: Likewise.
288 * build-id.c: Likewise.
289 * buildsym.c: Likewise.
291 * c-lang.c: Likewise.
292 * c-typeprint.c: Likewise.
293 * c-valprint.c: Likewise.
294 * charset.c: Likewise.
295 * cli-out.c: Likewise.
296 * cli/cli-cmds.c: Likewise.
297 * cli/cli-decode.c: Likewise.
298 * cli/cli-dump.c: Likewise.
299 * cli/cli-interp.c: Likewise.
300 * cli/cli-logging.c: Likewise.
301 * cli/cli-script.c: Likewise.
302 * cli/cli-setshow.c: Likewise.
303 * cli/cli-utils.c: Likewise.
304 * coffread.c: Likewise.
305 * common/agent.c: Likewise.
306 * common/buffer.c: Likewise.
307 * common/buffer.h: Likewise.
308 * common/common-utils.c: Likewise.
309 * common/filestuff.c: Likewise.
310 * common/filestuff.c: Likewise.
311 * common/format.c: Likewise.
312 * common/print-utils.c: Likewise.
313 * common/rsp-low.c: Likewise.
314 * common/signals.c: Likewise.
315 * common/vec.h: Likewise.
316 * common/xml-utils.c: Likewise.
317 * core-regset.c: Likewise.
318 * corefile.c: Likewise.
319 * corelow.c: Likewise.
320 * cp-abi.c: Likewise.
321 * cp-name-parser.y: Likewise.
322 * cp-support.c: Likewise.
323 * cp-valprint.c: Likewise.
324 * cris-tdep.c: Likewise.
326 * darwin-nat.c: Likewise.
327 * dbxread.c: Likewise.
328 * dcache.c: Likewise.
329 * demangle.c: Likewise.
330 * dicos-tdep.c: Likewise.
331 * disasm.c: Likewise.
332 * doublest.c: Likewise.
334 * dummy-frame.c: Likewise.
335 * dwarf2-frame.c: Likewise.
336 * dwarf2loc.c: Likewise.
337 * dwarf2read.c: Likewise.
338 * elfread.c: Likewise.
339 * environ.c: Likewise.
341 * event-loop.c: Likewise.
342 * exceptions.c: Likewise.
344 * expprint.c: Likewise.
346 * f-lang.c: Likewise.
347 * f-typeprint.c: Likewise.
348 * f-valprint.c: Likewise.
349 * fbsd-nat.c: Likewise.
350 * findcmd.c: Likewise.
351 * findvar.c: Likewise.
352 * fork-child.c: Likewise.
354 * frv-linux-tdep.c: Likewise.
355 * frv-tdep.c: Likewise.
357 * gdb_bfd.c: Likewise.
358 * gdbarch.c: Likewise.
359 * gdbarch.sh: Likewise.
360 * gdbtypes.c: Likewise.
361 * gnu-nat.c: Likewise.
362 * gnu-v2-abi.c: Likewise.
363 * gnu-v3-abi.c: Likewise.
364 * go-exp.y: Likewise.
365 * go-lang.c: Likewise.
366 * go32-nat.c: Likewise.
367 * guile/guile.c: Likewise.
368 * guile/scm-auto-load.c: Likewise.
369 * hppa-hpux-tdep.c: Likewise.
370 * hppa-linux-nat.c: Likewise.
371 * hppanbsd-tdep.c: Likewise.
372 * hppaobsd-tdep.c: Likewise.
373 * i386-cygwin-tdep.c: Likewise.
374 * i386-dicos-tdep.c: Likewise.
375 * i386-linux-tdep.c: Likewise.
376 * i386-nto-tdep.c: Likewise.
377 * i386-sol2-tdep.c: Likewise.
378 * i386-tdep.c: Likewise.
379 * i386bsd-tdep.c: Likewise.
380 * i386gnu-nat.c: Likewise.
381 * i386nbsd-tdep.c: Likewise.
382 * i386obsd-tdep.c: Likewise.
383 * i387-tdep.c: Likewise.
384 * ia64-libunwind-tdep.c: Likewise.
385 * ia64-linux-nat.c: Likewise.
386 * inf-child.c: Likewise.
387 * inf-ptrace.c: Likewise.
388 * inf-ttrace.c: Likewise.
389 * infcall.c: Likewise.
390 * infcmd.c: Likewise.
391 * inflow.c: Likewise.
392 * infrun.c: Likewise.
393 * interps.c: Likewise.
394 * iq2000-tdep.c: Likewise.
395 * irix5-nat.c: Likewise.
396 * jv-exp.y: Likewise.
397 * jv-lang.c: Likewise.
398 * jv-typeprint.c: Likewise.
399 * jv-valprint.c: Likewise.
400 * language.c: Likewise.
401 * linux-fork.c: Likewise.
402 * linux-nat.c: Likewise.
403 * lm32-tdep.c: Likewise.
404 * m2-exp.y: Likewise.
405 * m2-typeprint.c: Likewise.
406 * m32c-tdep.c: Likewise.
407 * m32r-linux-nat.c: Likewise.
408 * m32r-linux-tdep.c: Likewise.
409 * m32r-rom.c: Likewise.
410 * m32r-tdep.c: Likewise.
411 * m68hc11-tdep.c: Likewise.
412 * m68k-tdep.c: Likewise.
413 * m68kbsd-tdep.c: Likewise.
414 * m68klinux-nat.c: Likewise.
415 * m68klinux-tdep.c: Likewise.
416 * m88k-tdep.c: Likewise.
417 * machoread.c: Likewise.
418 * macrocmd.c: Likewise.
420 * mdebugread.c: Likewise.
421 * mem-break.c: Likewise.
422 * memattr.c: Likewise.
423 * memory-map.c: Likewise.
424 * mep-tdep.c: Likewise.
425 * mi/mi-cmd-break.c: Likewise.
426 * mi/mi-cmd-disas.c: Likewise.
427 * mi/mi-cmd-env.c: Likewise.
428 * mi/mi-cmd-stack.c: Likewise.
429 * mi/mi-cmd-var.c: Likewise.
430 * mi/mi-cmds.c: Likewise.
431 * mi/mi-console.c: Likewise.
432 * mi/mi-getopt.c: Likewise.
433 * mi/mi-interp.c: Likewise.
434 * mi/mi-main.c: Likewise.
435 * mi/mi-parse.c: Likewise.
436 * microblaze-rom.c: Likewise.
437 * microblaze-tdep.c: Likewise.
438 * mingw-hdep.c: Likewise.
439 * minidebug.c: Likewise.
440 * minsyms.c: Likewise.
441 * mips-irix-tdep.c: Likewise.
442 * mips-linux-tdep.c: Likewise.
443 * mips-tdep.c: Likewise.
444 * mips64obsd-tdep.c: Likewise.
445 * mipsnbsd-tdep.c: Likewise.
446 * mipsread.c: Likewise.
447 * mn10300-linux-tdep.c: Likewise.
448 * mn10300-tdep.c: Likewise.
449 * monitor.c: Likewise.
450 * moxie-tdep.c: Likewise.
451 * mt-tdep.c: Likewise.
452 * nat/linux-btrace.c: Likewise.
453 * nat/linux-osdata.c: Likewise.
454 * nat/linux-procfs.c: Likewise.
455 * nat/linux-ptrace.c: Likewise.
456 * nat/linux-waitpid.c: Likewise.
457 * nbsd-tdep.c: Likewise.
458 * nios2-linux-tdep.c: Likewise.
459 * nto-procfs.c: Likewise.
460 * nto-tdep.c: Likewise.
461 * objc-lang.c: Likewise.
462 * objfiles.c: Likewise.
463 * opencl-lang.c: Likewise.
465 * osdata.c: Likewise.
467 * p-lang.c: Likewise.
468 * p-typeprint.c: Likewise.
470 * posix-hdep.c: Likewise.
471 * ppc-linux-nat.c: Likewise.
472 * ppc-sysv-tdep.c: Likewise.
473 * ppcfbsd-tdep.c: Likewise.
474 * ppcnbsd-tdep.c: Likewise.
475 * ppcobsd-tdep.c: Likewise.
476 * printcmd.c: Likewise.
477 * procfs.c: Likewise.
478 * prologue-value.c: Likewise.
479 * python/py-auto-load.c: Likewise.
480 * python/py-gdb-readline.c: Likewise.
481 * ravenscar-thread.c: Likewise.
482 * regcache.c: Likewise.
483 * registry.c: Likewise.
484 * remote-fileio.c: Likewise.
485 * remote-m32r-sdi.c: Likewise.
486 * remote-mips.c: Likewise.
487 * remote-notif.c: Likewise.
488 * remote-sim.c: Likewise.
489 * remote.c: Likewise.
490 * reverse.c: Likewise.
491 * rs6000-aix-tdep.c: Likewise.
492 * ser-base.c: Likewise.
493 * ser-go32.c: Likewise.
494 * ser-mingw.c: Likewise.
495 * ser-pipe.c: Likewise.
496 * ser-tcp.c: Likewise.
497 * ser-unix.c: Likewise.
498 * serial.c: Likewise.
499 * sh-tdep.c: Likewise.
500 * sh64-tdep.c: Likewise.
501 * shnbsd-tdep.c: Likewise.
503 * sol-thread.c: Likewise.
504 * solib-dsbt.c: Likewise.
505 * solib-frv.c: Likewise.
506 * solib-osf.c: Likewise.
507 * solib-som.c: Likewise.
508 * solib-spu.c: Likewise.
509 * solib-target.c: Likewise.
511 * somread.c: Likewise.
512 * source.c: Likewise.
513 * sparc-nat.c: Likewise.
514 * sparc-sol2-tdep.c: Likewise.
515 * sparc-tdep.c: Likewise.
516 * sparc64-tdep.c: Likewise.
517 * sparc64fbsd-tdep.c: Likewise.
518 * sparc64nbsd-tdep.c: Likewise.
519 * sparcnbsd-tdep.c: Likewise.
520 * spu-linux-nat.c: Likewise.
521 * spu-multiarch.c: Likewise.
522 * spu-tdep.c: Likewise.
523 * stabsread.c: Likewise.
525 * std-regs.c: Likewise.
526 * symfile.c: Likewise.
527 * symmisc.c: Likewise.
528 * symtab.c: Likewise.
529 * target.c: Likewise.
530 * thread.c: Likewise.
531 * tilegx-linux-nat.c: Likewise.
532 * tilegx-tdep.c: Likewise.
534 * tracepoint.c: Likewise.
535 * tui/tui-command.c: Likewise.
536 * tui/tui-data.c: Likewise.
537 * tui/tui-disasm.c: Likewise.
538 * tui/tui-file.c: Likewise.
539 * tui/tui-layout.c: Likewise.
540 * tui/tui-out.c: Likewise.
541 * tui/tui-regs.c: Likewise.
542 * tui/tui-source.c: Likewise.
543 * tui/tui-stack.c: Likewise.
544 * tui/tui-win.c: Likewise.
545 * tui/tui-windata.c: Likewise.
546 * tui/tui-winsource.c: Likewise.
547 * typeprint.c: Likewise.
548 * ui-file.c: Likewise.
549 * ui-out.c: Likewise.
550 * user-regs.c: Likewise.
552 * v850-tdep.c: Likewise.
553 * valarith.c: Likewise.
554 * valops.c: Likewise.
555 * valprint.c: Likewise.
557 * varobj.c: Likewise.
558 * vax-tdep.c: Likewise.
559 * vaxnbsd-tdep.c: Likewise.
560 * vaxobsd-tdep.c: Likewise.
561 * windows-nat.c: Likewise.
562 * xcoffread.c: Likewise.
563 * xml-support.c: Likewise.
564 * xstormy16-tdep.c: Likewise.
565 * xtensa-linux-nat.c: Likewise.
567 2014-08-07 Gary Benson <gbenson@redhat.com>
569 * common/common-defs.h: Include gdb_assert.h.
570 * aarch64-tdep.c: Do not include gdb_assert.h.
571 * addrmap.c: Likewise.
572 * aix-thread.c: Likewise.
573 * alpha-linux-tdep.c: Likewise.
574 * alpha-mdebug-tdep.c: Likewise.
575 * alphanbsd-tdep.c: Likewise.
576 * amd64-nat.c: Likewise.
577 * amd64-tdep.c: Likewise.
578 * amd64bsd-nat.c: Likewise.
579 * amd64fbsd-nat.c: Likewise.
580 * amd64fbsd-tdep.c: Likewise.
581 * amd64nbsd-nat.c: Likewise.
582 * amd64nbsd-tdep.c: Likewise.
583 * amd64obsd-nat.c: Likewise.
584 * amd64obsd-tdep.c: Likewise.
585 * arch-utils.c: Likewise.
586 * arm-tdep.c: Likewise.
587 * armbsd-tdep.c: Likewise.
589 * bcache.c: Likewise.
590 * bfin-tdep.c: Likewise.
591 * blockframe.c: Likewise.
592 * breakpoint.c: Likewise.
593 * bsd-kvm.c: Likewise.
594 * bsd-uthread.c: Likewise.
595 * buildsym.c: Likewise.
597 * c-lang.c: Likewise.
598 * charset.c: Likewise.
599 * cleanups.c: Likewise.
600 * cli-out.c: Likewise.
601 * cli/cli-decode.c: Likewise.
602 * cli/cli-dump.c: Likewise.
603 * cli/cli-logging.c: Likewise.
604 * cli/cli-script.c: Likewise.
605 * cli/cli-utils.c: Likewise.
606 * coffread.c: Likewise.
607 * common/common-utils.c: Likewise.
608 * common/queue.h: Likewise.
609 * common/signals.c: Likewise.
610 * common/vec.h: Likewise.
611 * complaints.c: Likewise.
612 * completer.c: Likewise.
613 * corelow.c: Likewise.
614 * cp-abi.c: Likewise.
615 * cp-name-parser.y: Likewise.
616 * cp-namespace.c: Likewise.
617 * cp-support.c: Likewise.
618 * cris-tdep.c: Likewise.
619 * dbxread.c: Likewise.
620 * dictionary.c: Likewise.
621 * doublest.c: Likewise.
623 * dummy-frame.c: Likewise.
624 * dwarf2-frame-tailcall.c: Likewise.
625 * dwarf2-frame.c: Likewise.
626 * dwarf2expr.c: Likewise.
627 * dwarf2loc.c: Likewise.
628 * dwarf2read.c: Likewise.
630 * event-loop.c: Likewise.
631 * exceptions.c: Likewise.
632 * expprint.c: Likewise.
633 * f-valprint.c: Likewise.
634 * fbsd-nat.c: Likewise.
635 * findvar.c: Likewise.
636 * frame-unwind.c: Likewise.
638 * frv-tdep.c: Likewise.
640 * gdb-dlfcn.c: Likewise.
641 * gdb_bfd.c: Likewise.
642 * gdbarch.c: Likewise.
643 * gdbarch.sh: Likewise.
644 * gdbtypes.c: Likewise.
645 * gnu-nat.c: Likewise.
646 * gnu-v3-abi.c: Likewise.
647 * go-lang.c: Likewise.
648 * guile/scm-exception.c: Likewise.
649 * guile/scm-gsmob.c: Likewise.
650 * guile/scm-lazy-string.c: Likewise.
651 * guile/scm-math.c: Likewise.
652 * guile/scm-pretty-print.c: Likewise.
653 * guile/scm-safe-call.c: Likewise.
654 * guile/scm-utils.c: Likewise.
655 * guile/scm-value.c: Likewise.
656 * h8300-tdep.c: Likewise.
657 * hppa-hpux-nat.c: Likewise.
658 * hppa-tdep.c: Likewise.
659 * hppanbsd-tdep.c: Likewise.
660 * hppaobsd-tdep.c: Likewise.
661 * i386-darwin-nat.c: Likewise.
662 * i386-darwin-tdep.c: Likewise.
663 * i386-nto-tdep.c: Likewise.
664 * i386-tdep.c: Likewise.
665 * i386bsd-nat.c: Likewise.
666 * i386fbsd-tdep.c: Likewise.
667 * i386gnu-nat.c: Likewise.
668 * i386nbsd-tdep.c: Likewise.
669 * i386obsd-tdep.c: Likewise.
670 * i387-tdep.c: Likewise.
671 * ia64-libunwind-tdep.c: Likewise.
672 * ia64-tdep.c: Likewise.
673 * inf-ptrace.c: Likewise.
674 * inf-ttrace.c: Likewise.
675 * infcall.c: Likewise.
676 * infcmd.c: Likewise.
677 * infrun.c: Likewise.
678 * inline-frame.c: Likewise.
679 * interps.c: Likewise.
680 * jv-lang.c: Likewise.
681 * jv-typeprint.c: Likewise.
682 * linux-fork.c: Likewise.
683 * linux-nat.c: Likewise.
684 * linux-thread-db.c: Likewise.
685 * m32c-tdep.c: Likewise.
686 * m32r-linux-nat.c: Likewise.
687 * m32r-tdep.c: Likewise.
688 * m68k-tdep.c: Likewise.
689 * m68kbsd-nat.c: Likewise.
690 * m68kbsd-tdep.c: Likewise.
691 * m88k-tdep.c: Likewise.
692 * machoread.c: Likewise.
693 * macroexp.c: Likewise.
694 * macrotab.c: Likewise.
696 * mdebugread.c: Likewise.
697 * memory-map.c: Likewise.
698 * mep-tdep.c: Likewise.
699 * mi/mi-common.c: Likewise.
700 * microblaze-tdep.c: Likewise.
701 * mingw-hdep.c: Likewise.
702 * mips-linux-nat.c: Likewise.
703 * mips-linux-tdep.c: Likewise.
704 * mips-tdep.c: Likewise.
705 * mips64obsd-tdep.c: Likewise.
706 * mipsnbsd-tdep.c: Likewise.
707 * mn10300-linux-tdep.c: Likewise.
708 * mn10300-tdep.c: Likewise.
709 * moxie-tdep.c: Likewise.
710 * mt-tdep.c: Likewise.
711 * nat/linux-btrace.c: Likewise.
712 * nat/linux-osdata.c: Likewise.
713 * nat/linux-ptrace.c: Likewise.
714 * nat/mips-linux-watch.c: Likewise.
715 * nios2-linux-tdep.c: Likewise.
716 * nios2-tdep.c: Likewise.
717 * objc-lang.c: Likewise.
718 * objfiles.c: Likewise.
719 * obsd-nat.c: Likewise.
720 * opencl-lang.c: Likewise.
723 * ppc-linux-nat.c: Likewise.
724 * ppc-sysv-tdep.c: Likewise.
725 * ppcfbsd-nat.c: Likewise.
726 * ppcfbsd-tdep.c: Likewise.
727 * ppcnbsd-nat.c: Likewise.
728 * ppcnbsd-tdep.c: Likewise.
729 * ppcobsd-nat.c: Likewise.
730 * ppcobsd-tdep.c: Likewise.
731 * printcmd.c: Likewise.
732 * procfs.c: Likewise.
733 * prologue-value.c: Likewise.
734 * psymtab.c: Likewise.
735 * python/py-lazy-string.c: Likewise.
736 * python/py-value.c: Likewise.
737 * regcache.c: Likewise.
738 * reggroups.c: Likewise.
739 * registry.c: Likewise.
740 * remote-sim.c: Likewise.
741 * remote.c: Likewise.
742 * rs6000-aix-tdep.c: Likewise.
743 * rs6000-tdep.c: Likewise.
744 * s390-linux-tdep.c: Likewise.
745 * score-tdep.c: Likewise.
746 * ser-base.c: Likewise.
747 * ser-mingw.c: Likewise.
748 * sh-tdep.c: Likewise.
749 * sh64-tdep.c: Likewise.
750 * solib-darwin.c: Likewise.
751 * solib-spu.c: Likewise.
752 * solib-svr4.c: Likewise.
753 * source.c: Likewise.
754 * sparc-nat.c: Likewise.
755 * sparc-sol2-tdep.c: Likewise.
756 * sparc-tdep.c: Likewise.
757 * sparc64-sol2-tdep.c: Likewise.
758 * sparc64-tdep.c: Likewise.
759 * sparc64fbsd-tdep.c: Likewise.
760 * sparc64nbsd-tdep.c: Likewise.
761 * sparc64obsd-tdep.c: Likewise.
762 * sparcnbsd-tdep.c: Likewise.
763 * sparcobsd-tdep.c: Likewise.
764 * spu-multiarch.c: Likewise.
765 * spu-tdep.c: Likewise.
766 * stabsread.c: Likewise.
768 * symfile.c: Likewise.
769 * symtab.c: Likewise.
770 * target-descriptions.c: Likewise.
771 * target-memory.c: Likewise.
772 * target.c: Likewise.
773 * tic6x-linux-tdep.c: Likewise.
774 * tic6x-tdep.c: Likewise.
775 * tilegx-linux-nat.c: Likewise.
776 * tilegx-tdep.c: Likewise.
778 * tramp-frame.c: Likewise.
779 * tui/tui-out.c: Likewise.
780 * tui/tui-winsource.c: Likewise.
781 * ui-out.c: Likewise.
782 * user-regs.c: Likewise.
784 * v850-tdep.c: Likewise.
785 * valops.c: Likewise.
787 * varobj.c: Likewise.
788 * vax-nat.c: Likewise.
789 * xml-syscall.c: Likewise.
790 * xml-tdesc.c: Likewise.
791 * xstormy16-tdep.c: Likewise.
792 * xtensa-linux-nat.c: Likewise.
793 * xtensa-tdep.c: Likewise.
795 2014-08-07 Gary Benson <gbenson@redhat.com>
797 * common/common-defs.h: Include common-utils.h.
798 * defs.h: Do not include common-utils.h.
799 * common/gdb_assert.h: Likewise.
800 * darwin-nat.h: Likewise.
801 * nat/linux-btrace.c: Likewise.
802 * target/waitstatus.h: Likewise.
804 2014-08-07 Gary Benson <gbenson@redhat.com>
806 * common/common-defs.h: Include ptid.h.
807 * defs.h: Do not include ptid.h.
808 * inferior.h: Likewise.
809 * infrun.h: Likewise.
810 * nat/linux-btrace.h: Likewise.
811 * nat/linux-osdata.h: Likewise.
812 * target/waitstatus.h: Likewise.
814 2014-08-07 Gary Benson <gbenson@redhat.com>
816 * common/common-defs.h: Include gdb_locale.h.
817 * defs.h: Do not include gdb_locale.h.
819 2014-08-07 Gary Benson <gbenson@redhat.com>
821 * common/common-defs.h: Include gdb/signals.h.
822 * defs.h: Do not include gdb/signals.h.
824 2014-08-07 Gary Benson <gbenson@redhat.com>
826 * common/common-defs.h: Include pathmax.h.
827 * defs.h: Do not include pathmax.h.
829 2014-08-07 Gary Benson <gbenson@redhat.com>
831 * common/common-defs.h: Include libiberty.h.
832 * defs.h: Do not include libiberty.h.
833 * common/queue.h: Likewise.
834 * cp-name-parser.y: Likewise.
835 * mi/mi-cmd-catch.c: Likewise.
836 * python/python.c: Likewise.
838 2014-08-07 Gary Benson <gbenson@redhat.com>
840 * common/common-defs.h: Include ansidecl.h.
841 * defs.h: Do not include ansidecl.h.
842 * common/buffer.h: Likewise.
843 * common/common-utils.h: Likewise.
845 2014-08-07 Gary Benson <gbenson@redhat.com>
847 * common/common-defs.h: Include stddef.h.
848 * defs.h: Do not include stddef.h.
849 * common/common-utils.h: Likewise.
850 * amd64fbsd-nat.c: Likewise.
851 * bcache.c: Likewise.
852 * charset.c: Likewise.
853 * common/buffer.h: Likewise.
854 * common/vec.h: Likewise.
855 * i386bsd-nat.c: Likewise.
856 * nat/linux-btrace.h: Likewise.
857 * ppcfbsd-nat.c: Likewise.
858 * ppcnbsd-tdep.h: Likewise.
859 * ppcobsd-nat.c: Likewise.
860 * ppcobsd-tdep.h: Likewise.
861 * python/py-gdb-readline.c: Likewise.
863 2014-08-07 Gary Benson <gbenson@redhat.com>
865 * common/common-defs.h: Include stdarg.h.
866 * defs.h: Do not include stdarg.h.
867 * ada-lang.c: Likewise.
868 * common/common-utils.h: Likewise.
869 * guile/scm-string.c: Likewise.
870 * guile/scm-utils.c: Likewise.
871 * m32c-tdep.c: Likewise.
873 2014-08-07 Gary Benson <gbenson@redhat.com>
875 * common/common-defs.h: Include stdlib.h.
876 * defs.h: Do not include stdlib.h.
877 * addrmap.c: Likewise.
878 * bcache.c: Likewise.
879 * common/buffer.c: Likewise.
880 * common/common-utils.c: Likewise.
881 * cp-name-parser.y: Likewise.
882 * go32-nat.c: Likewise.
883 * mn10300-linux-tdep.c: Likewise.
884 * nat/linux-osdata.c: Likewise.
885 * tui/tui.c: Likewise.
886 * windows-nat.c: Likewise.
888 2014-08-07 Gary Benson <gbenson@redhat.com>
890 * common/common-defs.h: Include stdio.h.
891 * defs.h: Do not include stdio.h.
892 * ada-lang.c: Likewise.
893 * common/buffer.c: Likewise.
894 * common/common-utils.c: Likewise.
895 * cp-name-parser.y: Likewise.
896 * gnu-nat.c: Likewise.
897 * go32-nat.c: Likewise.
898 * i386gnu-nat.c: Likewise.
899 * proc-api.c: Likewise.
900 * proc-events.c: Likewise.
901 * proc-flags.c: Likewise.
902 * proc-why.c: Likewise.
903 * python/python-internal.h: Likewise.
904 * target-memory.c: Likewise.
905 * tui/tui-io.c: Likewise.
906 * tui/tui.c: Likewise.
908 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
910 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
911 (scan_dyntag_auxv): Same.
913 2014-08-06 Yao Qi <yao@codesourcery.com>
915 * amd64-linux-nat.c: Remove duplicated include
917 * i386-linux-nat.c: Likewise.
919 2014-08-06 Yao Qi <yao@codesourcery.com>
921 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
922 operand" with "Special opcode" in comments.
924 2014-08-05 Gary Benson <gbenson@redhat.com>
926 * interps.c (initialize_interps): Remove prototype.
927 (interpreter_initialized): Remove static global.
928 (interp_add): Do not call initialize_interps.
929 (initialize_interps): Remove function.
931 2014-08-05 Gary Benson <gbenson@redhat.com>
933 * utils.c (vwarning): Remove spurious va_end.
935 2014-08-05 Alan Modra <amodra@gmail.com>
937 * charset.c (convert_between_encodings): Cast result of obstack_base.
938 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
939 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
940 (read_unwind_info): Use size_t for some locals.
941 * jit.c (finalize_symtab): Likewise.
942 * utils.c (hashtab_obstack_allocate): Likewise.
943 * symmisc.c (print_objfile_statistics): Update format strings.
945 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
947 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
948 (Changes in GDB 7.8): ... here.
950 2014-08-04 Tom Tromey <tromey@redhat.com>
952 * target.c (set_targetdebug): New function.
953 (initialize_targets): Pass set_targetdebug when creating "set
956 2014-08-01 Joel Brobecker <brobecker@adacore.com>
958 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
959 if detecting a variable-sized field that is not the last field.
960 Fix struct type length computation.
962 2014-08-01 Joel Brobecker <brobecker@adacore.com>
964 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
967 2014-08-01 Joel Brobecker <brobecker@adacore.com>
969 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
970 Remove "+ 8" offset in computation of CHAIN_VMA.
972 2014-07-31 Doug Evans <dje@google.com>
974 * inflow.c (child_terminal_inferior): Add comment.
975 (child_terminal_ours_for_output): Add comment.
976 (child_terminal_ours): Add comment.
977 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
978 (linux_nat_terminal_ours): Add comment.
980 2014-07-31 Gary Benson <gbenson@redhat.com>
982 * common/btrace-common.h: Do not include defs.h or server.h.
983 * nat/mips-linux-watch.h: Likewise.
984 * gdb-dlfcn.h: Do not include defs.h.
985 * tracefile.h: Likewise.
987 2014-07-30 Roland McGrath <mcgrathr@google.com>
989 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
991 2014-07-30 Tom Tromey <tromey@redhat.com>
993 * bsd-kvm.c (bsd_kvm_open): Constify.
994 * corelow.c (core_open): Constify.
995 * ctf.c (ctf_open): Constify.
996 * dbug-rom.c (dbug_open): Constify.
997 * exec.c (exec_open): Constify.
998 * m32r-rom.c (m32r_open, mon2000_open): Constify.
999 * microblaze-rom.c (picobug_open): Constify.
1000 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1002 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1003 * record-btrace.c (record_btrace_open): Constify.
1004 * record-full.c (record_full_core_open_1, record_full_open_1)
1005 (record_full_open): Constify.
1006 * remote-m32r-sdi.c (m32r_open): Constify.
1007 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1008 (rockhopper_open, lsi_open): Constify.
1009 * remote-sim.c (gdbsim_open): Constify.
1010 * remote.c (remote_open, extended_remote_open, remote_open_1):
1012 * target.h (struct target_ops) <to_open>: Make "arg" const.
1013 * tracefile-tfile.c (tfile_open): Constify.
1015 2014-07-30 Tom Tromey <tromey@redhat.com>
1017 * breakpoint.c (map_breakpoint_numbers): Update.
1018 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1019 (get_number_const): New function.
1020 (get_number): Rewrite using get_number_const.
1021 (init_number_or_range): Make "string" const.
1022 (number_is_in_list): Make "list" const.
1023 * cli/cli-utils.h (get_number_const): Declare.
1024 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1025 (init_number_or_range, number_is_in_list): Update.
1026 * printcmd.c (map_display_numbers): Update.
1027 * value.c (value_from_history_ref): Constify.
1028 * value.h (value_from_history_ref): Update.
1030 2014-07-30 Tom Tromey <tromey@redhat.com>
1032 * corefile.c (hook_type, call_extra_exec_file_hooks)
1033 (specify_exec_file_hook): Constify.
1034 * exec.c (exec_file_attach): Make "filename" const.
1035 * gdbcore.h (deprecated_exec_file_display_hook)
1036 (specify_exec_file_hook, exec_file_attach): Constify.
1037 * main.c (captured_main): Use catch_command_errors_const.
1039 2014-07-30 Tom Tromey <tromey@redhat.com>
1041 * target.c (open_target): New function.
1042 (add_target_with_completer, add_deprecated_target_alias): Use
1043 set_cmd_sfunc, set_cmd_context.
1044 (debug_to_open): Remove.
1045 (setup_target_debug): Update.
1047 2014-07-30 Yao Qi <yao@codesourcery.com>
1049 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1051 * parse.c (exp_iterate): Update comments.
1053 2014-07-30 Gary Benson <gbenson@redhat.com>
1055 * common/common-defs.h: New file.
1056 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1057 * defs.h: Include common-defs.h.
1058 Do not include config.h or build-gnulib/config.h.
1060 2014-07-30 Gary Benson <gbenson@redhat.com>
1062 * common/common-utils.h: Do not include config.h.
1063 * nat/linux-btrace.h: Likewise.
1065 2014-07-30 Gary Benson <gbenson@redhat.com>
1067 * btrace.c: Include defs.h.
1068 * common/ptid.c: Include defs.h or server.h as appropriate.
1069 * nat/mips-linux-watch.c: Likewise.
1071 2014-07-29 Tom Tromey <tromey@redhat.com>
1073 * target.c (target_is_pushed): Simplify.
1075 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1079 2014-07-29 Yao Qi <yao@codesourcery.com>
1082 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1084 2014-07-28 Doug Evans <xdje42@gmail.com>
1087 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1088 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1091 2014-07-28 Will Newton <will.newton@linaro.org>
1093 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1094 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1095 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1096 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1097 (THUMB2_EABI_SYSCALL): Likewise.
1098 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1100 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1101 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1103 2014-07-27 Doug Evans <xdje42@gmail.com>
1105 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1107 2014-07-27 Doug Evans <xdje42@gmail.com>
1109 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1111 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1112 Doug Evans <xdje42@gmail.com>
1115 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1116 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1117 * configure.ac: Try to use guild to compile an scm file, if it fails
1118 then disable guile support.
1119 * configure: Regenerate.
1120 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1122 (GUILE_COMPILED_FILES): New variable.
1123 (GUILE_FILES) Update.
1124 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1125 (stamp-guile): Compile scm files.
1126 * guile/guile.c (boot_guile_support): New function.
1127 (standard_throw_args_p): New function.
1128 (print_standard_throw_error, print_throw_error): New functions.
1129 (handle_boot_error): New function.
1130 (initialize_scheme_side): Rewrite to call boot_guile_support.
1131 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1132 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1134 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1135 Doug Evans <xdje42@gmail.com>
1138 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1139 * guile/lib/gdb/support.scm: New file.
1140 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1141 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1143 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1145 (%assert-type): Ditto, and renamed to assert-type.
1146 (%exception-print-style): Delete.
1148 2014-07-26 Doug Evans <xdje42@gmail.com>
1151 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1152 * configure: Regenerate.
1153 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1155 (PYTHON_FILES): New variable.
1156 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1157 (GUILE_FILES): New variable.
1158 (stamp-python, install-python, uninstall-python): Handle empty
1160 (stamp-guile, install-guile, uninstall-guile): Ditto.
1162 2014-07-26 Doug Evans <xdje42@gmail.com>
1165 * guile/lib/gdb.scm (pretty-printers): Export.
1166 (set-pretty-printers!): Export.
1167 * guile/lib/gdb/printing.scm (gdb module): Update.
1168 (prepend-pretty-printer!, append-pretty-printer!): Update.
1169 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1170 (pretty_printer_list_var): Delete.
1171 (pretty_printer_list): New static global.
1172 (gdbscm_pretty_printers): New function.
1173 (gdbscm_set_pretty_printers_x): New function.
1174 (ppscm_find_pretty_printer_from_gdb): Update.
1175 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1176 (gdbscm_initialize_pretty_printers): Update.
1178 2014-07-26 Doug Evans <xdje42@gmail.com>
1181 * configure.ac: Add check for header gc/gc.h.
1182 Add check for function setenv.
1183 * configure: Regenerate.
1184 * config.in: Regenerate.
1185 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1187 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1189 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1190 variation in gdbarch matching.
1192 2014-07-25 Tom Tromey <tromey@redhat.com>
1194 * exec.c (using_exec_ops): Remove.
1195 (exec_close_1): Update. Remove extraneous block, reindent.
1196 (add_target_sections): Use target_is_pushed.
1198 2014-07-25 Pedro Alves <palves@redhat.com>
1200 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1201 * monitor.c (monitor_create_inferior): Likewise.
1202 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1203 * remote-sim.c (gdbsim_create_inferior): Likewise.
1204 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1205 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1206 * windows-nat.c (do_initial_windows_stuff): Likewise.
1208 2014-07-25 Pedro Alves <palves@redhat.com>
1210 * NEWS: Mention signal passing and "signal" command changes.
1211 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1213 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1215 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1216 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1217 (jump_command): Adjust clear_proceed_status call.
1218 (signal_command): Warn if other thread that are resumed have
1219 signals that will be delivered. Adjust clear_proceed_status call.
1220 (until_next_command, finish_command)
1221 (proceed_after_attach_callback, attach_command_post_wait)
1222 (attach_command): Adjust clear_proceed_status call.
1223 * infrun.c (proceed_after_vfork_done): Likewise.
1224 (proceed_after_attach_callback): Adjust comment.
1225 (clear_proceed_status_thread): Clear stop_signal if not in pass
1227 (clear_proceed_status_callback): Delete.
1228 (clear_proceed_status): New 'step' parameter. Only clear the
1229 proceed status of threads the command being prepared is about to
1231 (proceed): If passed in an explicit signal, override stop_signal
1232 with it. Don't pass the last stop signal to the thread we're
1234 (init_wait_for_inferior): Adjust clear_proceed_status call.
1235 (switch_back_to_stepped_thread): Clear the signal if it should not
1237 * infrun.h (clear_proceed_status): New 'step' parameter.
1238 (user_visible_resume_ptid): Add comment.
1239 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1240 signal is in pass state.
1241 * remote.c (append_pending_thread_resumptions): Likewise.
1242 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1244 2014-07-25 Tom Tromey <tromey@redhat.com>
1246 * target.h (target_stopped_data_address)
1247 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1250 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1252 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1254 (avr_pointer_to_address): Likewise.
1256 2014-07-24 Tom Tromey <tromey@redhat.com>
1258 * monitor.c (compile_pattern): Update.
1259 * target.h (struct target_ops) <to_shortname, to_longname,
1262 2014-07-24 Tom Tromey <tromey@redhat.com>
1264 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1265 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1266 (add_info_alias, add_com): Make "doc" const.
1267 (print_doc_line): Make "str" const.
1268 (delete_cmd): Update.
1269 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1270 (print_doc_line): Update.
1271 * cli/cli-script.c (document_command): Update.
1272 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1273 (add_com, add_info, add_info_alias): Update.
1274 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1275 * python/py-cmd.c (cmdpy_destroyer): Update.
1277 2014-07-24 Tom Tromey <tromey@redhat.com>
1279 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1280 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1281 (help_cmd_list): Constify.
1282 (lookup_cmd): Update.
1283 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1285 (help_cmd_list, apropos_cmd): Update.
1286 * cli/cli-script.c (show_user): Update.
1287 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1288 * cli/cli-setshow.h (cmd_show_list): Update.
1289 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1290 (cmd_show_list): Update.
1291 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1292 * python/py-cmd.c (cmdpy_destroyer): Update.
1294 2014-07-24 Tom Tromey <tromey@redhat.com>
1296 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1297 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1299 * command.h (deprecate_cmd): Update.
1300 * maint.c (maintenance_do_deprecate): Add casts.
1302 2014-07-24 Tom Tromey <tromey@redhat.com>
1304 * cli/cli-decode.c (help_cmd): Make parameter "const".
1305 * cli/cli-decode.h (help_cmd): Update.
1307 2014-07-24 Tom Tromey <tromey@redhat.com>
1309 * stack.c (up_silently_base, down_silently_base): Make argument
1312 2014-07-24 Tom Tromey <tromey@redhat.com>
1314 * solib.c (solib_add): Make "pattern" const.
1315 * solib.h (solib_add): Update.
1317 2014-07-24 Tom Tromey <tromey@redhat.com>
1319 * remote.c (remote_serial_open, print_packet, putpkt)
1320 (putpkt_binary): Constify.
1321 * remote.h (putpkt): Update.
1323 2014-07-24 Tom Tromey <tromey@redhat.com>
1325 * monitor.c (monitor_open): Make "args" const.
1326 * monitor.h (monitor_open): Update.
1328 2014-07-24 Tom Tromey <tromey@redhat.com>
1330 * maint.c (match_bfd_flags): Make "string" const.
1331 (print_bfd_section_info): Remove casts.
1332 (print_objfile_section_info): Make "string" const.
1334 2014-07-24 Tom Tromey <tromey@redhat.com>
1336 * inf-child.c (inf_child_open_target): Make "arg" const.
1337 * inf-child.h (inf_child_open_target): Update.
1339 2014-07-24 Tom Tromey <tromey@redhat.com>
1341 * environ.c (unset_in_environ): Make "var" const.
1342 * environ.h (unset_in_environ): Update.
1344 2014-07-24 Tom Tromey <tromey@redhat.com>
1346 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1348 (scan_filename_with_cleanup): Likewise.
1349 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1350 Make arguments const.
1351 (restore_command): Update.
1353 2014-07-24 Pedro Alves <palves@redhat.com>
1355 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1357 2014-07-24 Tom Tromey <tromey@redhat.com>
1358 Gary Benson <gbenson@redhat.com>
1360 * nat/linux-ptrace.c (additional_flags): New global.
1361 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1362 additional_flags; don't check GDBSERVER.
1363 (linux_ptrace_set_additional_flags): New function.
1364 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1366 * linux-nat.c (_initialize_linux_nat): Call
1367 linux_ptrace_set_additional_flags.
1369 2014-07-24 Tom Tromey <tromey@redhat.com>
1371 * make-target-delegates (munge_type, write_debugmethod): New
1373 (debug_names): New global.
1374 ($TARGET_DEBUG_PRINTER): New global.
1375 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1377 Write debug methods. Generate init_debug_target.
1378 * target-debug.h: New file.
1379 * target-delegates.c: Rebuild.
1380 * target.c: Include target-debug.h.
1381 (debug_target): Hoist definition.
1382 (target_kill, target_get_section_table, target_memory_map)
1383 (target_flash_erase, target_flash_done, target_detach)
1384 (target_disconnect, target_wait, target_resume)
1385 (target_pass_signals, target_program_signals, target_follow_fork)
1386 (target_mourn_inferior, target_search_memory)
1387 (target_thread_address_space, target_close)
1388 (target_find_new_threads, target_core_of_thread)
1389 (target_verify_memory, target_insert_mask_watchpoint)
1390 (target_remove_mask_watchpoint): Remove targetdebug code.
1391 (debug_to_post_attach, debug_to_prepare_to_store)
1392 (debug_to_files_info, debug_to_insert_breakpoint)
1393 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1394 (debug_to_region_ok_for_hw_watchpoint)
1395 (debug_to_can_accel_watchpoint_condition)
1396 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1397 (debug_to_watchpoint_addr_within_range)
1398 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1399 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1400 (debug_to_terminal_init, debug_to_terminal_inferior)
1401 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1402 (debug_to_terminal_save_ours, debug_to_terminal_info)
1403 (debug_to_load, debug_to_post_startup_inferior)
1404 (debug_to_insert_fork_catchpoint)
1405 (debug_to_remove_fork_catchpoint)
1406 (debug_to_insert_vfork_catchpoint)
1407 (debug_to_remove_vfork_catchpoint)
1408 (debug_to_insert_exec_catchpoint)
1409 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1410 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1411 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1412 (setup_target_debug): Call init_debug_target.
1413 * target.h (TARGET_DEBUG_PRINTER): New macro.
1414 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1415 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1417 2014-07-24 Gary Benson <gbenson@redhat.com>
1419 * exceptions.h (throw_vfatal): Renamed to...
1420 (throw_vquit): New declaration.
1421 (throw_quit): Likewise.
1422 * exceptions.c (throw_vfatal): Renamed to...
1423 (throw_vquit): New function.
1424 (throw_quit): Likewise.
1425 (throw_error): Call throw_verror rather than throw_it.
1426 * utils.h (vfatal): Removed.
1428 * utils.c (vfatal): Removed.
1430 (internal_verror): Replaced call to fatal with call to throw_quit.
1431 (quit): Replaced calls to fatal with calls to throw_quit.
1433 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1435 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1438 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1440 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1441 less than zero in conditional expression.
1443 2014-07-23 Tom Tromey <tromey@redhat.com>
1445 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1446 ($INTRO_PART): Don't match whitespace.
1447 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1449 ($METHOD): Add $METHOD_TRAILER.
1451 (scan_target_h): New sub.
1452 Change main loop not to collect state.
1453 * target-delegates.c: Rebuild.
1455 2014-07-23 Gary Benson <gbenson@redhat.com>
1457 * cp-support.c (gdb_demangle): Fix build on systems without
1460 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1462 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1463 for reference entry value target data value.
1465 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1467 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1468 value_available_contents_eq.
1470 2014-07-22 Pedro Alves <palves@redhat.com>
1472 * value.c (allocate_optimized_out_value): Don't mark value as
1475 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1477 * MAINTAINERS (Write After Approval): Update my email address.
1479 2014-07-20 Doug Evans <dje@google.com>
1482 * remote.c (putpkt_binary): Add text to error message.
1484 2014-07-20 Yao Qi <yao@codesourcery.com>
1486 * eval.c: Remove "Chill" from comments.
1487 * gdbtypes.h: Likewise.
1488 * symtab.h: Likewise.
1490 2014-07-20 Yao Qi <yao@codesourcery.com>
1492 * std-operator.def: Update comments to TERNOP_SLICE.
1494 2014-07-20 Yao Qi <yao@codesourcery.com>
1496 * std-operator.def: Remove BINOP_RANGE.
1497 * breakpoint.c (watchpoint_exp_is_const): Update.
1498 * expprint.c (dump_subexp_body_standard): Likewise.
1499 * eval.c (init_array_element): Remove dead code.
1500 (evaluate_subexp_standard): Likewise.
1502 2014-07-20 Yao Qi <yao@codesourcery.com>
1504 * std-operator.def: Remove BINOP_IN.
1505 * breakpoint.c (watchpoint_exp_is_const): Update.
1506 * eval.c (evaluate_subexp_standard): Likewise.
1507 * expprint.c (dump_subexp_body_standard): Likewise.
1509 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1511 * microblaze-tdep.c (microblaze_register_names): Add
1512 the rshr and rslr register names.
1513 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1514 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1515 Use of tdesc_numbered_register. Use of
1516 microblaze_register_g_packet_guesses. Use of
1517 tdesc_use_registers. Use of set_gdbarch_register_type.
1518 (microblaze_register_g_packet_guesses): New.
1519 * microblaze-tdep.h (microblaze_reg_num): Add
1520 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1521 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1522 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1523 * features/microblaze-core.xml: New file.
1524 * features/microblaze-stack-protect.xml: New file.
1525 * features/microblaze-with-stack-protect.c: New file.
1526 * features/microblaze-with-stack-protect.xml: New file.
1527 * features/microblaze.xml: New file.
1528 * features/microblaze.c: New file.
1529 * features/Makefile (microblaze-with-stack-protect): Add
1530 microblaze-with-stack-protect microblaze and microblaze-expedite.
1531 * regformats/microblaze-with-stack-protect.dat: New file.
1532 * regformats/microblaze.dat: New file.
1533 * doc/gdb.texinfo (MicroBlaze Features): Added.
1535 2014-07-18 Tom Tromey <tromey@redhat.com>
1537 * exec.c (exec_ops): Now static.
1538 * exec.h (exec_ops): Don't declare.
1540 2014-07-18 Tom Tromey <tromey@redhat.com>
1542 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1543 to find_target_beneath.
1544 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1545 find_target_beneath.
1546 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1548 2014-07-18 Tom Tromey <tromey@redhat.com>
1551 * utils.c (quit): Use target_supports_terminal_ours.
1552 * target.h (target_supports_terminal_ours): Declare.
1553 * target.c (target_supports_delete_record): Don't check
1554 to_delete_record against NULL.
1555 (target_supports_terminal_ours): New function.
1557 2014-07-18 Tom Tromey <tromey@redhat.com>
1560 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1561 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1562 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1563 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1564 * windows-nat.c (windows_xfer_partial): Always delegate.
1565 * record-btrace.c (record_btrace_xfer_partial): Simplify
1567 (record_btrace_fetch_registers, record_btrace_store_registers)
1568 (record_btrace_prepare_to_store, record_btrace_resume)
1569 (record_btrace_wait, record_btrace_find_new_threads)
1570 (record_btrace_thread_alive): Likewise.
1571 * procfs.c (procfs_xfer_partial): Always delegate.
1572 * corelow.c (core_xfer_partial): Always delegate.
1573 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1575 2014-07-18 Tom Tromey <tromey@redhat.com>
1577 * exec.c (exec_make_note_section): Move earlier.
1579 2014-07-17 Doug Evans <dje@google.com>
1582 * maint.c (count_symtabs_and_blocks): Handle NULL
1583 current_program_space.
1584 (report_command_stats): Check global enabled flag in addition to
1585 recorded enabled flag.
1586 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1588 2014-07-16 Pedro Alves <palves@redhat.com>
1590 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1592 2014-07-16 Tom Tromey <tromey@redhat.com>
1594 * target.h (struct target_ops) <to_delete_record>: Reformat
1597 2014-07-16 Tom Tromey <tromey@redhat.com>
1599 * target-delegates.c: Rebuild.
1601 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1603 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1604 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1605 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1606 (avr_pointer_to_address): Likewise.
1607 (avr_address_class_type_flags): New function.
1608 (avr_address_class_type_flags_to_name): Likewise.
1609 (avr_address_class_name_to_type_flags): Likewise.
1610 (avr_gdbarch_init): Set address_class_type_flags,
1611 address_class_type_flags_to_name and
1612 address_class_name_to_type_flags.
1614 2014-07-15 Pedro Alves <palves@redhat.com>
1616 * linux-nat.c (kill_callback): Save errno and work with saved
1619 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1621 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1623 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1625 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1626 breakpoint support correctly.
1628 2014-07-14 Pedro Alves <palves@redhat.com>
1630 * utils.c (prompt_for_continue): Call target_terminal_ours.
1632 2014-07-14 Pedro Alves <palves@redhat.com>
1634 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1635 catch_errors. Don't re-enable stdin or notify observers where,
1637 (fetch_inferior_event_wrapper): Delete.
1639 2014-07-14 Pedro Alves <palves@redhat.com>
1642 * top.c: Include "inf-loop.h".
1643 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1645 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1647 (gdb_readline_wrapper): Store whether the target is async, and
1650 2014-07-14 Pedro Alves <palves@redhat.com>
1653 * top.c (gdb_readline_wrapper_line): Tweak comment.
1654 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1655 the input handler callback.
1657 2014-07-14 Pedro Alves <palves@redhat.com>
1660 * main.c: Include event-top.h.
1661 (handle_command_errors): New function.
1662 (catch_command_errors, catch_command_errors_const): Use it.
1664 2014-07-14 Pedro Alves <palves@redhat.com>
1666 * exceptions.c (catch_command_errors, catch_command_errors_const):
1668 * exceptions.h (catch_command_errors_ftype)
1669 (catch_command_errors_const_ftype): Moved to main.c.
1670 (catch_command_errors, catch_command_errors_const): Delete
1672 * main.c (catch_command_errors_ftype)
1673 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1674 (catch_command_errors, catch_command_errors_const)): Moved here
1675 from exceptions.c and make static.
1677 2014-07-14 Pedro Alves <palves@redhat.com>
1679 * exceptions.c (print_any_exception): Delete.
1680 (catch_exceptions_with_msg): Use exception_print instead of
1681 print_any_exception.
1682 (catch_errors): Use exception_fprintf instead of
1683 print_any_exception.
1684 (catch_command_errors, catch_command_errors_const): Use
1685 exception_print instead of print_any_exception.
1687 2014-07-14 Pedro Alves <palves@redhat.com>
1689 * infcall.c (run_inferior_call): Set 'sync_execution' while
1690 running the inferior call.
1692 2014-07-14 Pedro Alves <palves@redhat.com>
1694 * value.c (value_contents_equal): Delete function.
1695 * value.h (value_contents_equal): Delete declaration.
1697 2014-07-14 Tom Tromey <tromey@redhat.com>
1700 * gdbtypes.c (is_dynamic_type_internal): New function, from
1702 (is_dynamic_type): Rewrite.
1703 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1704 (resolve_dynamic_struct): Likewise.
1705 (resolve_dynamic_type_internal): New function, from
1706 resolve_dynamic_type.
1707 (resolve_dynamic_type): Rewrite.
1709 2014-07-14 Tom Tromey <tromey@redhat.com>
1711 * target.c (target_require_runnable): Also check record_stratum.
1714 2014-07-11 Yao Qi <yao@codesourcery.com>
1716 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1717 thumb_instruction_restores_sp return true.
1719 2014-07-11 Yao Qi <yao@codesourcery.com>
1721 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1722 (thumb_in_function_epilogue_p): Call
1723 thumb_instruction_restores_sp.
1725 2014-07-11 Yao Qi <yao@codesourcery.com>
1727 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1729 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1731 2014-07-11 Gary Benson <gbenson@redhat.com>
1733 * amd64-linux-nat.c (gdbcore.h): Remove include.
1734 (regset.h): Likewise.
1735 (nat/linux-btrace.h): Likewise.
1736 (btrace.h): Likewise.
1737 (gdb_assert.h): Likewise.
1738 (string.h): Likewise.
1739 (sys/uio.h): Likewise.
1740 (sys/debugreg.h): Likewise.
1741 (sys/syscall.h): Likewise.
1742 (sys/procfs.h): Likewise.
1743 (sys/user.h): Likewise.
1744 (asm/ptrace.h): Likewise.
1745 (i386-nat.h): Likewise.
1746 * i386-linux-nat.c (i386-nat.h): Likewise.
1747 (regset.h): Likewise.
1748 (target.h): Likewise.
1749 (linux-nat.h): Likewise.
1750 (nat/linux-btrace.h): Likewise.
1751 (btrace.h): Likewise.
1752 (gdb_assert.h): Likewise.
1753 (string.h): Likewise.
1754 (sys/uio.h): Likewise.
1755 (sys/user.h): Likewise.
1756 (sys/procfs.h): Likewise.
1757 (sys/reg.h): Likewise.
1758 (sys/debugreg.h): Likewise.
1759 (ORIG_EAX): Remove definition.
1761 2014-07-11 Gary Benson <gbenson@redhat.com>
1763 * i386-linux-nat.h: New file.
1764 * x86-linux-nat.h: Likewise.
1765 * x86-linux-nat.c: Likewise.
1766 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1767 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1768 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1769 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1770 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1771 (PTRACE_SETREGSET): Likewise.
1772 (arch_lwp_info): Now in x86-linux-nat.c.
1773 (have_ptrace_getregset): Now in x86-linux-nat.h.
1774 (x86_linux_dr_get): Now in x86-linux-nat.c.
1775 (x86_linux_dr_set): Likewise.
1776 (x86_linux_dr_get_addr): Likewise.
1777 (x86_linux_dr_get_control): Likewise.
1778 (x86_linux_dr_get_status): Likewise.
1779 (update_debug_registers_callback): Likewise.
1780 (x86_linux_dr_set_control): Likewise.
1781 (x86_linux_dr_set_addr): Likewise.
1782 (x86_linux_prepare_to_resume): Likewise.
1783 (x86_linux_new_thread): Likewise.
1784 (x86_linux_new_fork): Likewise.
1785 (x86_linux_get_thread_area): Likewise.
1786 (super_post_startup_inferior): Likewise.
1787 (x86_linux_child_post_startup_inferior): Likewise.
1788 (AMD64_LINUX_USER64_CS): Likewise.
1789 (AMD64_LINUX_X32_DS): Likewise.
1790 (x86_linux_read_description): Likewise.
1791 (x86_linux_enable_btrace): Likewise.
1792 (x86_linux_disable_btrace): Likewise.
1793 (x86_linux_teardown_btrace): Likewise.
1794 (x86_linux_read_btrace): Likewise.
1795 (x86_linux_create_target): Likewise.
1796 (x86_linux_add_target): Likewise.
1797 * i386-linux-nat.c (x86-linux-nat.h): New include.
1798 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1799 (PTRACE_SETREGSET): Likewise.
1800 (arch_lwp_info): Now in x86-linux-nat.c.
1801 (have_ptrace_getregset): Now in x86-linux-nat.h.
1802 (x86_linux_dr_get): Now in x86-linux-nat.c.
1803 (x86_linux_dr_set): Likewise.
1804 (x86_linux_dr_get_addr): Likewise.
1805 (x86_linux_dr_get_control): Likewise.
1806 (x86_linux_dr_get_status): Likewise.
1807 (update_debug_registers_callback): Likewise.
1808 (x86_linux_dr_set_control): Likewise.
1809 (x86_linux_dr_set_addr): Likewise.
1810 (x86_linux_prepare_to_resume): Likewise.
1811 (x86_linux_new_thread): Likewise.
1812 (x86_linux_new_fork): Likewise.
1813 (x86_linux_get_thread_area): Likewise.
1814 (super_post_startup_inferior): Likewise.
1815 (x86_linux_child_post_startup_inferior): Likewise.
1816 (AMD64_LINUX_USER64_CS): Likewise.
1817 (AMD64_LINUX_X32_DS): Likewise.
1818 (x86_linux_read_description): Likewise.
1819 (x86_linux_enable_btrace): Likewise.
1820 (x86_linux_disable_btrace): Likewise.
1821 (x86_linux_teardown_btrace): Likewise.
1822 (x86_linux_read_btrace): Likewise.
1823 (x86_linux_create_target): Likewise.
1824 (x86_linux_add_target): Likewise.
1826 2014-07-11 Gary Benson <gbenson@redhat.com>
1828 * amd64-linux-nat.c: Comment and whitespace changes.
1829 * i386-linux-nat.c: Comment and whitespace changes.
1831 2014-07-11 Gary Benson <gbenson@redhat.com>
1833 * amd64-linux-nat.c (x86_linux_create_target): New function.
1834 (x86_linux_add_target): Likewise.
1835 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1836 * i386-linux-nat.c (x86_linux_create_target): New function.
1837 (x86_linux_add_target): Likewise.
1838 (_initialize_i386_linux_nat): Delegate to the above new functions.
1840 2014-07-11 Gary Benson <gbenson@redhat.com>
1842 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1843 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1844 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1845 (ps_get_thread_area): Delegate to the above.
1847 2014-07-11 Gary Benson <gbenson@redhat.com>
1849 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1850 x86_linux_read_description. All uses updated. amd64-specific
1851 code conditionalized. Conditionalized i386-specific code added.
1852 Redundant cast removed.
1853 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1854 x86_linux_read_description. All uses updated. i386-specific
1855 code conditionalized. Conditionalized amd64-specific code added.
1856 One sizeof replaced with the actual type it is describing.
1858 2014-07-11 Gary Benson <gbenson@redhat.com>
1860 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1861 x86_linux_dr_get. All uses updated.
1862 (amd64_linux_dr_set): Renamed to
1863 x86_linux_dr_set. All uses updated.
1864 (amd64_linux_dr_get_addr): Renamed to
1865 x86_linux_dr_get_addr. All uses updated.
1866 (amd64_linux_dr_get_control): Renamed to
1867 x86_linux_dr_get_control. All uses updated.
1868 (amd64_linux_dr_get_status): Renamed to
1869 x86_linux_dr_get_status. All uses updated.
1870 (amd64_linux_dr_set_control): Renamed to
1871 x86_linux_dr_set_control. All uses updated.
1872 (amd64_linux_dr_set_addr): Renamed to
1873 x86_linux_dr_set_addr. All uses updated.
1874 (amd64_linux_prepare_to_resume): Renamed to
1875 x86_linux_prepare_to_resume. All uses updated.
1876 (amd64_linux_new_thread): Renamed to
1877 x86_linux_new_thread. All uses updated.
1878 (amd64_linux_new_fork): Renamed to
1879 x86_linux_new_fork. All uses updated.
1880 (amd64_linux_child_post_startup_inferior): Renamed to
1881 x86_linux_child_post_startup_inferior. All uses updated.
1882 (amd64_linux_enable_btrace): Renamed to
1883 x86_linux_enable_btrace. All uses updated.
1884 (amd64_linux_disable_btrace): Renamed to
1885 x86_linux_disable_btrace. All uses updated.
1886 (amd64_linux_teardown_btrace): Renamed to
1887 x86_linux_teardown_btrace. All uses updated.
1888 (amd64_linux_read_btrace): Renamed to
1889 x86_linux_read_btrace. All uses updated.
1890 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1891 x86_linux_dr_get. All uses updated.
1892 (i386_linux_dr_set): Renamed to
1893 x86_linux_dr_set. All uses updated.
1894 (i386_linux_dr_get_addr): Renamed to
1895 x86_linux_dr_get_addr. All uses updated.
1896 (i386_linux_dr_get_control): Renamed to
1897 x86_linux_dr_get_control. All uses updated.
1898 (i386_linux_dr_get_status): Renamed to
1899 x86_linux_dr_get_status. All uses updated.
1900 (i386_linux_dr_set_control): Renamed to
1901 x86_linux_dr_set_control. All uses updated.
1902 (i386_linux_dr_set_addr): Renamed to
1903 x86_linux_dr_set_addr. All uses updated.
1904 (i386_linux_prepare_to_resume): Renamed to
1905 x86_linux_prepare_to_resume. All uses updated.
1906 (i386_linux_new_thread): Renamed to
1907 x86_linux_new_thread. All uses updated.
1908 (i386_linux_new_fork): Renamed to
1909 x86_linux_new_fork. All uses updated.
1910 (i386_linux_child_post_startup_inferior): Renamed to
1911 x86_linux_child_post_startup_inferior. All uses updated.
1912 (i386_linux_enable_btrace): Renamed to
1913 x86_linux_enable_btrace. All uses updated.
1914 (i386_linux_disable_btrace): Renamed to
1915 x86_linux_disable_btrace. All uses updated.
1916 (i386_linux_teardown_btrace): Renamed to
1917 x86_linux_teardown_btrace. All uses updated.
1918 (i386_linux_read_btrace): Renamed to
1919 x86_linux_read_btrace. All uses updated.
1921 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1923 * remote.c (extended_remote_post_attach): New function.
1924 (init_extended_remote_ops): Install it as to_post_attach method.
1926 2014-07-09 Pedro Alves <palves@redhat.com>
1928 * infcmd.c (attach_command_post_wait): Don't call
1929 target_terminal_inferior here.
1930 (attach_command): Call it here instead.
1932 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1934 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1936 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1937 from varobj.c, with additional checks.
1938 (c_varobj_ops): Fill in is_path_expr_parent field.
1939 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1940 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1942 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1944 (varobj_default_is_path_expr_parent): New function.
1945 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1946 (varobj_default_is_path_expr_parent): Declare new function.
1948 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1950 * infcmd.c (finish_backward): Turn internal error into normal error.
1952 2014-07-07 Pedro Alves <palves@redhat.com>
1955 * remote.c (async_handle_remote_sigint)
1956 (async_handle_remote_sigint_twice): Call
1957 gdb_call_async_signal_handler instead of
1958 mark_async_signal_handler.
1960 2014-07-07 Tom Tromey <tromey@redhat.com>
1962 * target-delegates.c: Rebuild.
1963 * target.c (target_info_record): Remove.
1964 * record.c (info_record_command): Unconditionally call
1966 * target.h (struct target_ops) <to_info_record>: Use
1967 TARGET_DEFAULT_IGNORE.
1968 (target_info_record): Remove.
1970 2014-07-07 Tom Tromey <tromey@redhat.com>
1972 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1973 TARGET_DEFAULT_NORETURN.
1974 * target.c (generic_tls_error): New function.
1975 (target_translate_tls_address): Don't search target stack.
1976 * target-delegates.c: Rebuild.
1977 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1979 * linux-thread-db.c (thread_db_get_thread_local_address):
1980 Unconditionally call beneath target.
1982 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1984 * cli/cli-logging.c (pop_output_files): Assign targerr to
1987 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1989 * MAINTAINERS (Write After Approval): Update my email address.
1991 2014-07-02 Gary Benson <gbenson@redhat.com>
1993 * proc-service.c (ps_xfer_memory): Update comment.
1994 (ps_pstop): Remove unused function.
1995 (ps_pcontinue): Likewise.
1996 (ps_lstop): Likewise.
1997 (ps_lcontinue): Likewise.
1998 (ps_lgetxregsize): Likewise.
1999 (ps_lgetxregs): Likewise.
2000 (ps_lsetxregs): Likewise.
2001 (ps_plog): Likewise.
2002 (ps_ptread): Likewise.
2003 (ps_ptwrite): Likewise.
2005 2014-07-01 Mark Wielaard <mjw@redhat.com>
2007 * dwarf2read.c (add_array_cv_type): New function.
2008 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2009 (read_tag_volatile_type): Likewise.
2011 2014-07-01 Tom Tromey <tromey@redhat.com>
2013 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2014 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2015 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2016 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2017 * command.h (cmd_cfunc_ftype): Move earlier.
2018 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2019 (add_com, add_info): Use cmd_cfunc_ftype.
2021 2014-06-30 Tom Tromey <tromey@redhat.com>
2023 * symtab.c (operator_chars): Make parameters and return type
2025 (file_matches): Make "files" const.
2026 (struct search_symbols_data) <files>: Now const.
2027 (search_symbols): Make "regexp" and "files" parameters const.
2029 (symtab_symbol_info): Remove cast.
2030 (rbreak_command): Update.
2031 * symtab.h (search_symbols): Update.
2033 2014-06-27 Yao Qi <yao@codesourcery.com>
2035 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2036 Change parameter type to 'struct thread_info *'. Caller
2038 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2040 * dummy-frame.c (struct dummy_frame_id): New.
2041 (dummy_frame_id_eq): New function.
2042 (struct dummy_frame) <id>: Change its type to 'struct
2044 (dummy_frame_push): Add parameter ptid and save it in
2046 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2048 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2050 (lookup_dummy_frame): Change parameter type to 'struct
2051 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2052 instead of frame_id_eq.
2053 (dummy_frame_pop): Add parameter ptid. Callers updated.
2054 Update comments. Compose dummy_frame_id and pass it to
2056 (dummy_frame_discard): Add parameter ptid.
2057 (dummy_frame_sniffer): Compose dummy_frame_id and call
2058 dummy_frame_id_eq instead of frame_id_eq.
2059 (fprint_dummy_frames): Print ptid.
2060 * dummy-frame.h: Remove comments.
2061 (dummy_frame_push): Add ptid in declaration.
2062 (dummy_frame_pop, dummy_frame_discard): Likewise.
2064 2014-06-26 Tom Tromey <tromey@redhat.com>
2066 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2067 * command.h (error_no_arg): Update.
2069 2014-06-26 Tom Tromey <tromey@redhat.com>
2071 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2072 (do_show_command): Make "arg" const.
2073 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2075 2014-06-26 Tom Tromey <tromey@redhat.com>
2077 * record-full.c (record_full_get_bookmark): Make "args" const.
2078 (record_full_goto_bookmark): Make "raw_bookmark" const.
2079 * record.c (record_goto): New function.
2080 (cmd_record_goto): Use it. Now static.
2081 * record.h (record_goto): Declare.
2082 (cmd_record_goto): Remove declaration.
2083 * target-delegates.c: Rebuild.
2084 * target.h (struct target_ops) <to_get_bookmark,
2085 to_goto_bookmark>: Make parameter const.
2087 2014-06-26 Tom Tromey <tromey@redhat.com>
2089 * defs.h (generic_load): Update.
2090 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2091 * monitor.c (monitor_load): Make "args" const.
2092 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2093 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2095 (mips_load): Make "file" const.
2096 * remote-sim.c (gdbsim_load): Make "args" const.
2097 * remote.c (remote_load): Make "name" const.
2098 * symfile.c (generic_load): Make "args" const.
2099 * target-delegates.c: Rebuild.
2100 * target.c (target_load): Make "arg" const.
2101 (debug_to_load): Make "args" const.
2102 * target.h (struct target_ops) <to_load>: Make parameter const.
2103 (target_load): Update.
2105 2014-06-26 Tom Tromey <tromey@redhat.com>
2108 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2109 (dwarf2_physname, read_partial_die)
2110 (guess_partial_die_structure_name, fixup_partial_die)
2111 (guess_full_die_structure_name, anonymous_struct_prefix)
2112 (dwarf2_name): Use per-BFD obstack.
2114 2014-06-26 Yao Qi <yao@codesourcery.com>
2116 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2117 dummyframe and this_id into inner block below.
2119 2014-06-26 Yao Qi <yao@codesourcery.com>
2121 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2122 with "signal_pass[0]" in the initialization of signal_pass.
2124 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2126 * record-btrace.c (record_btrace_generating_corefile)
2127 (record_btrace_prepare_to_generate_core)
2128 (record_btrace_done_generating_core): New.
2129 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2130 (record_btrace_store_registers, record_btrace_prepare_to_store):
2131 Forward request when generating a core file.
2132 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2133 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2134 to_done_generating_core.
2136 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2138 * target.h (target_ops) <to_prepare_to_generate_core>
2139 <to_done_generating_core>: New.
2140 (target_prepare_to_generate_core, target_done_generating_core): New.
2141 * target.c (target_prepare_to_generate_core)
2142 (target_done_generating_core): New.
2143 * target-delegates.c: Regenerate.
2144 * gcore.c: (write_gcore_file): Rename to ...
2145 (write_gcore_file_1): ...this.
2146 (write_gcore_file): Call target_prepare_to_generate_core
2147 and target_done_generating_core.
2149 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2151 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2152 * gcore.c (write_gcore_file): Free memory returned from
2153 make_corefile_notes.
2154 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2155 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2157 2014-06-24 Yao Qi <yao@codesourcery.com>
2159 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2160 (arm_linux_init_abi): Set skip_trampoline_code with
2161 gdbarch_skip_trampoline_code instead of
2162 find_solib_trampoline_target.
2164 2014-06-24 Yao Qi <yao@codesourcery.com>
2166 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2167 arm_skip_bx_reg returns non-zero.
2169 2014-06-24 Yao Qi <yao@codesourcery.com>
2171 * arm-tdep.c (arm_skip_bx_reg): New function.
2172 (arm_skip_stub): Call arm_skip_bx_reg.
2174 2014-06-23 Don Breazeal <donb@codesourcery.com>
2176 * MAINTAINERS: Add myself as write-after-approval maintainer.
2178 2014-06-23 Pedro Alves <palves@redhat.com>
2180 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2181 DR_CONTROL before setting DR0..DR3.
2182 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2183 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2184 bits of DR_CONTROL related to the debug register slot being
2185 disabled. If all slots are vacant, clear local slowdown as well,
2186 and assert DR_CONTROL is 0.
2188 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2190 * python/lib/gdb/command/xmethods.py
2191 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2192 current progspace only if the string "progspace" matches LOCUS_RE.
2194 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2196 Fix --with-system-readline with readline-6.3 patch 5.
2197 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2198 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2201 2014-06-20 Tom Tromey <tromey@redhat.com>
2203 * dwarf2read.c (dw2_get_real_path): Use correct type in
2205 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2207 2014-06-20 Gary Benson <gbenson@redhat.com>
2209 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2210 * common/glibc_thread_db.h: Likewise.
2211 * common/i386-cpuid.h: Likewise.
2212 * common/i386-gcc-cpuid.h: Likewise.
2213 * common/linux-btrace.h: Likewise.
2214 * common/linux-osdata.h: Likewise.
2215 * common/linux-procfs.h: Likewise.
2216 * common/linux-ptrace.h: Likewise.
2217 * common/mips-linux-watch.h: Likewise.
2218 * common/linux-btrace.c: Moved to nat.
2219 * common/linux-osdata.c: Likewise.
2220 * common/linux-procfs.c: Likewise.
2221 * common/linux-ptrace.c: Likewise.
2222 * common/mips-linux-watch.c: Likewise.
2223 * nat/gdb_thread_db.h: Moved from common.
2224 * nat/glibc_thread_db.h: Likewise.
2225 * nat/i386-cpuid.h: Likewise.
2226 * nat/i386-gcc-cpuid.h: Likewise.
2227 * nat/linux-btrace.c: Likewise.
2228 * nat/linux-btrace.h: Likewise.
2229 * nat/linux-osdata.c: Likewise.
2230 * nat/linux-osdata.h: Likewise.
2231 * nat/linux-procfs.c: Likewise.
2232 * nat/linux-procfs.h: Likewise.
2233 * nat/linux-ptrace.c: Likewise.
2234 * nat/linux-ptrace.h: Likewise.
2235 * nat/mips-linux-watch.c: Likewise.
2236 * nat/mips-linux-watch.h: Likewise.
2237 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2238 (object file files): Reordered.
2239 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2240 of glibc_thread_db.h.
2242 2014-06-20 Gary Benson <gbenson@redhat.com>
2244 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2245 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2246 (i386_dr_low): Likewise.
2247 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2248 (i386_dr_low_set_addr): Likewise.
2249 (i386_dr_low_get_addr): Likewise.
2250 (i386_dr_low_can_set_control): Likewise.
2251 (i386_dr_low_set_control): Likewise.
2252 (i386_dr_low_get_control): Likewise.
2253 (i386_dr_low_get_status): Likewise.
2254 (i386_get_debug_register_length): Likewise.
2255 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2256 (i386_dr_low): Likewise.
2257 * nat/i386-dregs.c (i386-low.h): Remove include.
2258 (i386-nat.h): Likewise.
2259 (nat/i386-dregs.h): New include.
2260 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2261 (i386_dr_low_set_addr): Likewise.
2262 (i386_dr_low_get_addr): Likewise.
2263 (i386_dr_low_can_set_control): Likewise.
2264 (i386_dr_low_set_control): Likewise.
2265 (i386_dr_low_get_control): Likewise.
2266 (i386_dr_low_get_status): Likewise.
2267 (i386_get_debug_register_length): Likewise.
2268 (debug_hw_points): Likewise.
2270 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2272 * Makefile.in (SFILES): Add d-exp.y.
2273 (YYFILES): Add d-exp.c.
2274 (YYOBJ): Add d-exp.o.
2275 (local-maintainer-clean): Delete d-exp.c.
2276 * d-exp.y: New file.
2277 * d-lang.h (d_parse): New declaration.
2278 (d_error): New declaration.
2279 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2280 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2281 PREC_ORDER operators.
2282 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2284 2014-06-19 Yao Qi <yao@codesourcery.com>
2286 * gdbthread.h (any_running): Remove the declaration.
2287 * thread.c (any_running): Remove.
2289 2014-06-19 Yao Qi <yao@codesourcery.com>
2291 * gdbthread.h (struct thread_info) <state>: Change its type to
2292 'enum thread_state'. Update comments.
2294 2014-06-19 Pedro Alves <palves@redhat.com>
2296 * gdbthread.h (ALL_THREADS): Delete.
2297 (ALL_NON_EXITED_THREADS): New macro.
2298 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2299 instead of ALL_THREADS.
2300 * infrun.c (find_thread_needs_step_over)
2301 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2302 instead of ALL_THREADS.
2303 * record-btrace.c (record_btrace_open)
2304 (record_btrace_stop_recording, record_btrace_close)
2305 (record_btrace_is_replaying, record_btrace_resume)
2306 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2307 * remote.c (append_pending_thread_resumptions): Likewise.
2308 * thread.c (thread_apply_all_command): Likewise.
2310 2014-06-19 Gary Benson <gbenson@redhat.com>
2312 * i386-nat.c (i386_stopped_by_watchpoint):
2313 Use i386_dr_stopped_by_watchpoint.
2314 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2315 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2317 2014-06-19 Gary Benson <gbenson@redhat.com>
2319 * nat/i386-dregs.c: New file.
2320 * Makefile.in (i386-dregs.o): New rule.
2321 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2322 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2323 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2324 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2325 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2326 * config/i386/go32.mh (NATDEPFILES): Likewise.
2327 * config/i386/linux.mh (NATDEPFILES): Likewise.
2328 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2329 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2330 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2331 * i386-nat.h (debug_hw_points): New declaration.
2332 * i386-nat.c (breakpoint.h): Remove include.
2333 (command.h): Likewise.
2334 (target.h): Likewise.
2335 (gdb_assert.h): Likewise.
2336 (debug_hw_points): Made nonstatic.
2337 (debug_printf): Now in i386-dregs.c.
2338 (TARGET_HAS_DR_LEN_8): Likewise.
2339 (DR_CONTROL_SHIFT): Likewise.
2340 (DR_CONTROL_SIZE): Likewise.
2341 (DR_RW_EXECUTE): Likewise.
2342 (DR_RW_WRITE): Likewise.
2343 (DR_RW_READ): Likewise.
2344 (DR_RW_IORW): Likewise.
2345 (DR_LEN_1): Likewise.
2346 (DR_LEN_2): Likewise.
2347 (DR_LEN_4): Likewise.
2348 (DR_LEN_8): Likewise.
2349 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2350 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2351 (DR_ENABLE_SIZE): Likewise.
2352 (DR_LOCAL_SLOWDOWN): Likewise.
2353 (DR_GLOBAL_SLOWDOWN): Likewise.
2354 (DR_CONTROL_RESERVED): Likewise.
2355 (I386_DR_CONTROL_MASK): Likewise.
2356 (I386_DR_VACANT): Likewise.
2357 (I386_DR_LOCAL_ENABLE): Likewise.
2358 (I386_DR_GLOBAL_ENABLE): Likewise.
2359 (I386_DR_DISABLE): Likewise.
2360 (I386_DR_SET_RW_LEN): Likewise.
2361 (I386_DR_GET_RW_LEN): Likewise.
2362 (I386_DR_WATCH_HIT): Likewise.
2363 (i386_wp_op_t): Likewise.
2364 (i386_show_dr): Likewise.
2365 (i386_length_and_rw_bits): Likewise.
2366 (i386_insert_aligned_watchpoint): Likewise.
2367 (i386_remove_aligned_watchpoint): Likewise.
2368 (i386_handle_nonaligned_watchpoint): Likewise.
2369 (i386_update_inferior_debug_regs): Likewise.
2370 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2371 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2372 (i386_region_ok_for_watchpoint):
2373 Use i386_dr_region_ok_for_watchpoint.
2374 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2376 2014-06-19 Gary Benson <gbenson@redhat.com>
2378 * i386-nat.c (i386_insert_hw_breakpoint): Use
2379 i386_insert_watchpoint.
2380 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2382 2014-06-19 Gary Benson <gbenson@redhat.com>
2384 * i386-nat.c (i386_dr_show): Renamed to
2385 i386_show_dr and made static. All uses updated.
2386 (i386_dr_length_and_rw_bits): Renamed to
2387 i386_length_and_rw_bits and made static.
2389 (i386_dr_insert_aligned_watchpoint): Renamed to
2390 i386_insert_aligned_watchpoint and made static.
2392 (i386_dr_remove_aligned_watchpoint): Renamed to
2393 i386_remove_aligned_watchpoint and made static.
2395 (i386_dr_update_inferior_debug_regs): Renamed to
2396 i386_update_inferior_debug_regs and made static.
2398 * nat/i386-dregs.h (i386_dr_show): Removed.
2399 (i386_dr_length_and_rw_bits): Likewise.
2400 (i386_dr_insert_aligned_watchpoint): Likewise.
2401 (i386_dr_remove_aligned_watchpoint): Likewise.
2402 (i386_dr_update_inferior_debug_regs): Likewise.
2404 2014-06-19 Gary Benson <gbenson@redhat.com>
2406 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2407 * configure: Regenerate.
2408 * config.in: Likewise.
2409 * main.c (signal.h): New include.
2410 (setup_alternate_signal_stack): New function.
2411 (captured_main): Call the above.
2412 * cp-support.c (signal.h): New include.
2413 (catch_demangler_crashes): New flag.
2414 (SIGJMP_BUF): New define.
2415 (SIGSETJMP): Likewise.
2416 (SIGLONGJMP): Likewise.
2417 (gdb_demangle_jmp_buf): New static global.
2418 (gdb_demangle_attempt_core_dump): Likewise.
2419 (gdb_demangle_signal_handler): New function.
2420 (gdb_demangle): If catch_demangler_crashes is set, install the
2421 above signal handler before calling bfd_demangle, and restore
2422 the original signal handler afterwards. Display the offending
2423 symbol and call demangler_warning the first time a segmentation
2425 (_initialize_cp_support): New maint set/show command.
2427 2014-06-19 Gary Benson <gbenson@redhat.com>
2429 * utils.h (resource_limit_kind): New enum.
2430 (can_dump_core): New declaration.
2431 (warn_cant_dump_core): Likewise.
2432 (dump_core): Likewise.
2433 * utils.c (dump_core): Made nonstatic. Added new
2434 parameter "limit_kind".
2435 (can_dump_core): Made nonstatic. Moved printing code to...
2436 (warn_cant_dump_core): New function.
2437 (can_dump_core_warn): Likewise.
2438 (internal_vproblem): Replace calls to can_dump_core with
2439 calls to can_dump_core_warn. Supply new argument to each.
2441 2014-06-19 Gary Benson <gbenson@redhat.com>
2443 * utils.h (demangler_vwarning): New declaration.
2444 (demangler_warning): Likewise.
2445 * utils.c (struct internal_problem)
2446 <user_settable_should_quit>: New field.
2447 <user_settable_should_dump_core>: Likewise
2448 (internal_error_problem): Add values for above new fields.
2449 (internal_warning_problem): Likewise.
2450 (demangler_warning_problem): New static global.
2451 (demangler_vwarning): New function.
2452 (demangler_warning): Likewise.
2453 (add_internal_problem_command): Selectively add commands.
2454 (_initialize_utils): New internal problem command.
2455 * maint.c (maintenance_demangler_warning): New function.
2456 (_initialize_maint_cmds): New command.
2458 2014-06-18 Tom Tromey <tromey@redhat.com>
2460 * f-valprint.c (info_common_command_for_block): Update.
2461 * symtab.h (struct general_symbol_info) <common_block>: Now
2464 2014-06-18 Tom Tromey <tromey@redhat.com>
2466 * symtab.h (struct symtab) <blockvector>: Now const.
2467 * ada-lang.c (ada_add_global_exceptions): Update.
2468 * buildsym.c (augment_type_symtab): Update.
2469 * dwarf2read.c (dw2_lookup_symbol): Update.
2470 * jit.c (finalize_symtab): Update.
2471 * jv-lang.c (add_class_symtab_symbol): Update.
2472 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2474 * objfiles.c (objfile_relocate1): Update.
2475 * psymtab.c (lookup_symbol_aux_psymtabs)
2476 (maintenance_check_psymtabs): Update.
2477 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2479 * spu-tdep.c (spu_catch_start): Update.
2480 * symmisc.c (dump_symtab_1): Update.
2481 * symtab.c (lookup_global_symbol_from_objfile)
2482 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2483 (basic_lookup_transparent_type_quick)
2484 (basic_lookup_transparent_type, find_pc_sect_symtab)
2485 (find_pc_sect_line, search_symbols): Update.
2486 * block.c (find_block_in_blockvector): Make "bl" const.
2487 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2489 (blockvector_contains_pc): Make "bv" const.
2490 (block_for_pc_sect): Update.
2491 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2492 (blockvector_contains_pc): Update.
2493 * breakpoint.c (resolve_sal_pc): Update.
2494 * inline-frame.c (block_starting_point_at): Update.
2496 2014-06-18 Tom Tromey <tromey@redhat.com>
2498 * completer.c (complete_line): Make "line_buffer" const.
2499 * completer.h (complete_line): Update.
2501 2014-06-18 Tom Tromey <tromey@redhat.com>
2503 * symtab.c (add_macro_name): Remove unneeded cast.
2505 2014-06-18 Tom Tromey <tromey@redhat.com>
2507 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2508 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2510 2014-06-18 Tom Tromey <tromey@redhat.com>
2512 * probe.c (info_probes_for_ops): Make "arg" const.
2513 * probe.h (info_probes_for_ops): Update.
2515 2014-06-18 Tom Tromey <tromey@redhat.com>
2517 * varobj.c (varobj_create): Update.
2518 * valops.c (value_of_this): Update.
2519 * tracepoint.c (add_local_symbols, scope_info): Update.
2520 * symtab.h (struct general_symbol_info) <block>: Now const.
2521 * symtab.c (skip_prologue_sal)
2522 (default_make_symbol_completion_list_break_on)
2523 (skip_prologue_using_sal): Update.
2524 * stack.h (iterate_over_block_locals)
2525 (iterate_over_block_local_vars): Update.
2526 * stack.c (print_frame_args): Update.
2527 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2529 (get_selected_block): Make return type const.
2530 * python/py-frame.c (frapy_block): Update.
2531 * python/py-block.c (gdbpy_block_for_pc): Update.
2532 * p-exp.y (%union) <bval>: Now const.
2533 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2534 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2535 * m2-exp.y (%union) <bval>: Now const.
2536 * linespec.c (get_current_search_block): Make return type const.
2537 (create_sals_line_offset, find_label_symbols): Update.
2538 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2540 (block_starting_point_at): Make "block" const.
2541 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2542 (check_exception_resume): Update.
2543 * guile/scm-frame.c (gdbscm_frame_block): Update.
2544 * guile/scm-block.c (gdbscm_lookup_block): Update.
2545 * frame.h (get_frame_block): Update.
2546 (get_selected_block): Make return type const.
2547 * frame.c (frame_id_inner): Update.
2548 * f-valprint.c (info_common_command_for_block)
2549 (info_common_command): Update.
2550 * dwarf2loc.c (dwarf2_find_location_expression)
2551 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2552 (locexpr_describe_location_piece): Update.
2553 * c-exp.y (%union) <bval>: Now const.
2554 * breakpoint.c (resolve_sal_pc): Update.
2555 * blockframe.c (get_frame_block):Make return type const.
2556 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2557 (block_innermost_frame): Update.
2558 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2559 (block_for_pc, block_for_pc_sect): Update.
2560 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2562 (block_for_pc_sect, block_for_pc): Make return type const.
2563 * ax-gdb.c (gen_expr): Update.
2564 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2565 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2566 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2567 (ada_read_var_value): Update.
2568 * ada-exp.y (struct name_info) <block>: Now const.
2570 (block_lookup): Constify.
2572 2014-06-18 Gary Benson <gbenson@redhat.com>
2574 * nat/i386-dregs.h: New file.
2575 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2576 * i386-nat.h (i386-dregs.h): New include.
2577 (DR_FIRSTADDR): Now in i386-dregs.h.
2578 (DR_LASTADDR): Likewise.
2579 (DR_NADDR): Likewise.
2580 (DR_STATUS): Likewise.
2581 (DR_CONTROL): Likewise.
2582 (i386_debug_reg_state): Likewise.
2583 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2585 2014-06-18 Don Breazeal <donb@codesourcery.com>
2587 * breakpoint.c (set_longjmp_breakpoint): Call
2588 momentary_breakpoint_from_master with additional argument.
2589 (set_longjmp_breakpoint_for_call_dummy): Call
2590 momentary_breakpoint_from_master with additional argument.
2591 (set_std_terminate_breakpoint): Call
2592 momentary_breakpoint_from_master with additional argument.
2593 (momentary_breakpoint_from_master): Add argument to function
2594 definition and use it to initialize structure member flag.
2595 (clone_momentary_breakpoint): Call
2596 momentary_breakpoint_from_master with additional argument.
2597 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2598 member flags set in momentary_breakpoint_from_master.
2600 2014-06-18 Gary Benson <gbenson@redhat.com>
2602 * i386-nat.c (i386_show_dr): Renamed to
2603 i386_dr_show and made nonstatic. All uses updated.
2604 (i386_length_and_rw_bits): Renamed to
2605 i386_dr_length_and_rw_bits and made nonstatic.
2607 (i386_insert_aligned_watchpoint): Renamed to
2608 i386_dr_insert_aligned_watchpoint and made nonstatic.
2610 (i386_remove_aligned_watchpoint): Renamed to
2611 i386_dr_remove_aligned_watchpoint and made nonstatic.
2613 (i386_update_inferior_debug_regs): Renamed to
2614 i386_dr_update_inferior_debug_regs and made nonstatic.
2617 2014-06-18 Gary Benson <gbenson@redhat.com>
2619 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2620 (i386_dr_low_can_set_control): Likewise.
2621 (i386_dr_low_set_addr): Likewise.
2622 (i386_dr_low_set_control): Likewise.
2623 (i386_dr_low_get_addr): Likewise.
2624 (i386_dr_low_get_status): Likewise.
2625 (i386_dr_low_get_control): Likewise.
2626 (i386_insert_aligned_watchpoint): Use new macros.
2627 (i386_update_inferior_debug_regs): Likewise.
2628 (i386_stopped_data_address): Likewise.
2630 2014-06-18 Gary Benson <gbenson@redhat.com>
2632 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2633 New parameter. All uses updated.
2635 2014-06-18 Gary Benson <gbenson@redhat.com>
2637 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2640 2014-06-18 Gary Benson <gbenson@redhat.com>
2642 * i386-nat.c (debug_printf): New macro.
2643 (i386_get_debug_register_length): Likewise.
2644 (TARGET_HAS_DR_LEN_8): Use above macro.
2645 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2646 and printf_unfiltered. Use phex to format values.
2648 2014-06-18 Gary Benson <gbenson@redhat.com>
2650 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2653 2014-06-18 Gary Benson <gbenson@redhat.com>
2655 * i386-nat.c: Comment changes.
2657 2014-06-18 Gary Benson <gbenson@redhat.com>
2659 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2661 2014-06-18 Gary Benson <gbenson@redhat.com>
2663 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2664 (i386_insert_aligned_watchpoint): Likewise.
2665 (i386_remove_aligned_watchpoint): Likewise.
2666 (i386_handle_nonaligned_watchpoint): Likewise.
2668 2014-06-18 Gary Benson <gbenson@redhat.com>
2670 * i386-nat.c: Whitespace changes.
2672 2014-06-17 Samuel Bronson <naesten@gmail.com>
2674 * MAINTAINERS: Update Roland McGrath's email address.
2675 Thanks to Sergio Durigan Junior for pointing out that he left
2676 Red Hat a while ago, and giving me a current address.
2678 2014-06-17 Tom Tromey <tromey@redhat.com>
2680 * utils.h (savestring): Remove declaration.
2682 2014-06-17 Tom Tromey <tromey@redhat.com>
2684 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2686 2014-06-16 Keith Seitz <keiths@redhat.com>
2689 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2690 to update the varobj if inferior_ptid is null_ptid.
2692 2014-06-16 Tom Tromey <tromey@redhat.com>
2694 * target.h (struct target_ops) <to_info_proc>: Make parameter
2696 (target_info_proc): Update.
2697 * target.c (target_info_proc): Make "args" const.
2698 * procfs.c (procfs_info_proc): Update.
2699 * linux-tdep.c (linux_info_proc): Update.
2700 (linux_core_info_proc_mappings): Make "args" const.
2701 (linux_core_info_proc): Update.
2702 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2703 * gdbarch.c: Rebuild.
2704 * gdbarch.h: Rebuild.
2705 * corelow.c (core_info_proc): Update.
2707 2014-06-16 Tom Tromey <tromey@redhat.com>
2709 * target.h (struct target_ops) <to_disconnect>: Make parameter
2711 (target_disconnect): Update.
2712 * target.c (target_disconnect): Make "args" const.
2713 * target-delegates.c: Rebuild.
2714 * remote.c (remote_disconnect): Update.
2715 * record.h (record_disconnect): Update.
2716 * record.c (record_disconnect): Update.
2717 * inf-child.c (inf_child_disconnect): Update.
2719 2014-06-16 Tom Tromey <tromey@redhat.com>
2721 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2722 * target.c (debug_to_rcmd, default_rcmd): Update.
2723 * target-delegates.c: Rebuild.
2724 * remote.c (remote_rcmd): Update.
2725 * monitor.c (monitor_rcmd): Update.
2727 2014-06-16 Pedro Alves <palves@redhat.com>
2729 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2730 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2731 have OBJF_SHARED set.
2732 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2733 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2734 instead of OBJF_USERLOADED.
2735 * objfiles.h (OBJF_SHARED): Update comment.
2736 (userloaded_objfile_contains_address_p): Rename to ...
2737 (shared_objfile_contains_address_p): ... this, and update
2739 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2741 (remove_symbol_file_command): Skip objfiles that don't have
2744 2014-06-16 Tom Tromey <tromey@redhat.com>
2746 * minsyms.h (prim_record_minimal_symbol)
2747 (prim_record_minimal_symbol_and_info): Update comments.
2749 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2751 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2752 or --without-guile, according to how GDB was built.
2754 2014-06-13 Tom Tromey <tromey@redhat.com>
2756 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2758 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2760 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2762 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2763 help_list.Pass all_commands, not -1, to help_list.
2764 * cli/cli-dump.c (dump_command, append_command)
2765 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2766 (binary_dump_command, binary_append_command): Pass all_commands,
2767 not -1, to help_list.
2768 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2770 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2772 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2774 * top.c (set_history): Pass all_commands, not -1, to help_list.
2775 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2776 all_commands, not -1, to help_list.
2777 * symfile.c (overlay_command): Pass all_commands, not -1, to
2779 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2781 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2783 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2785 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2786 not -1, to help_list.
2787 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2788 not -1, to help_list.
2789 * maint.c (maintenance_command, maintenance_info_command)
2790 (maintenance_print_command, maintenance_set_cmd): Pass
2791 all_commands, not -1, to help_list.
2792 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2794 * language.c (set_check): Pass all_commands, not -1, to help_list.
2795 * infcmd.c (unset_command): Pass all_commands, not -1, to
2797 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2799 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2801 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2803 * breakpoint.c (save_command): Pass all_commands, not -1, to
2805 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2806 all_commands, not -1, to help_list.
2808 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2810 * regcache.c (struct register_to_invalidate): New structure.
2811 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2813 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2815 2014-06-12 Yao Qi <yao@codesourcery.com>
2817 * varobj.c (varobj_get_num_children): Call
2818 varobj_is_dynamic_p.
2819 (varobj_list_children): Likewise.
2820 (varobj_update): Likewise. Update comments.
2822 2014-06-12 Yao Qi <yao@codesourcery.com>
2824 * varobj.c (varobj_pretty_printed_p): Rename to ...
2825 (varobj_is_dynamic_p): ... this. New function.
2826 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2827 (varobj_is_dynamic_p): Declare.
2828 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2829 (mi_print_value_p, varobj_update_one): Likewise.
2831 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2832 Yao Qi <yao@codesourcery.com>
2834 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2835 (varobj_get_iterator): Wrap up code for pretty-printer by
2836 "#if HAVE_PYTHON" and "#endif".
2837 (update_dynamic_varobj_children): Likewise.
2839 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2840 Yao Qi <yao@codesourcery.com>
2842 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2843 gdb_python_initialized is false. Move some code from varobj.c.
2844 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2845 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2846 (struct varobj_item): Moved to varobj-iter.h".
2847 (varobj_clear_saved_item): New function.
2848 (update_dynamic_varobj_children): Move python-related code to
2850 (free_variable): Call varobj_clear_saved_item and
2853 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2854 Yao Qi <yao@codesourcery.com>
2856 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2857 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2858 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2859 (py-varobj.o): New rule.
2860 * python/py-varobj.c: New file.
2861 * python/python-internal.h (py_varobj_get_iterator): Declare.
2862 * varobj-iter.h: New file.
2863 * varobj.c: Include "varobj-iter.h"
2864 (struct varobj) <child_iter>: Change its type from "PyObject *"
2865 to "struct varobj_iter *".
2866 <saved_item>: Likewise.
2867 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2868 [HAVE_PYTHON] (varobj_get_iterator): New function.
2869 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2870 python-specific code to python/py-varobj.c.
2871 (install_visualizer): Call varobj_iter_delete instead of
2873 * varobj.h (varobj_ensure_python_env): Declare.
2875 2014-06-12 Yao Qi <yao@codesourcery.com>
2877 * varobj.c (struct varobj_item): New structure.
2878 (create_child_with_value): Update declaration.
2879 (varobj_add_child): Replace arguments 'name' and 'value' with
2880 'item'. All callers updated.
2881 (install_dynamic_child): Likewise.
2882 (update_dynamic_varobj_children): Likewise.
2883 (varobj_add_child): Likewise.
2884 (create_child_with_value): Likewise.
2886 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2888 * NEWS: Create a new section for the next release branch.
2889 Rename the section of the current branch, now that it has
2892 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2894 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2895 * version.in: Bump version to 7.8.50.DATE-cvs.
2897 2014-06-11 Pedro Alves <palves@redhat.com>
2900 * ser-mingw.c (net_windows_socket_check_pending): New function.
2901 (net_windows_select_thread): Ignore spurious wakeups. Use
2902 net_windows_socket_check_pending.
2903 (net_windows_wait_handle): Check for pending events with
2904 ioctlsocket, through net_windows_socket_check_pending, instead of
2905 checking the socket's event.
2907 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2909 * python/python-internal.h (gdb_PyObject_GetAttrString)
2910 (gdb_PyObject_HasAttrString): New inline function definitions.
2911 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2912 char * of the second argument to PyObject_GetAttrString.
2914 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2916 * serial.c (serial_write): Fix index of character to be printed
2917 in call to serial_logchar when serial debug traces are enabled.
2919 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2921 * gdbtypes (resolve_dynamic_range): Add function description.
2923 2014-06-09 Pedro Alves <palves@redhat.com>
2925 * linux-nat.c (linux_child_follow_fork): Initialize status with
2926 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2927 inner block. Only pass the signal to PTRACE_DETACH if in pass
2930 2014-06-09 Gary Benson <gbenson@redhat.com>
2932 * common/signals.c (gdb_signal_from_host): Reorder to separate
2933 the always-available ANSI-standard signals from the signals that
2935 (do_gdb_signal_to_host): Likewise.
2936 * proc-events.c (signal_table): Likewise.
2938 2014-06-08 Hui Zhu <hui@codesourcery.com>
2940 * common/linux-ptrace.c (linux_disable_event_reporting): New
2942 * common/linux-ptrace.h (linux_disable_event_reporting): New
2944 * linux-nat.c (linux_child_follow_fork): Do a single step before
2947 2014-06-07 Keith Seitz <keiths@redhat.com>
2951 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2952 from symbol_matches_domain in symtab.c. All local callers
2953 of symbol_matches_domain updated.
2954 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2955 search STRUCT_DOMAIN.
2956 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2957 independently. standard_lookup will do that automatically.
2958 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2959 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2960 (cp_lookup_symbol_in_namespace): Likewise.
2961 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2962 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2963 may return a STRUCT_DOMAIN match.
2964 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2965 * cp-support.c: Include language.h.
2966 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2968 * psymtab.c (match_partial_symbol): Compare the requested
2969 domain with the symbol's domain directly.
2970 (lookup_partial_symbol): Likewise.
2971 * symtab.c (lookup_symbol_in_language): Explain when/why
2972 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2973 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2974 appropriate languages.
2975 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2976 and moved to ada-lang.c
2977 (lookup_block_symbol): Explain that this function only returns
2978 symbol matching the requested DOMAIN.
2979 Compare the requested domain with the symbol's domain directly.
2980 (iterate_over_symbols): Compare the requested domain with the
2981 symbol's domain directly.
2982 * symtab.h (symbol_matches_domain): Remove.
2984 2014-06-06 Doug Evans <xdje42@gmail.com>
2986 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2987 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2988 (gdbscm_guile_version_is_at_least): Declare.
2989 (gdbscm_scm_string_to_int): Declare.
2990 * guile/guile.c (gdbscm_guile_major_version): New global.
2991 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2992 (guile_datadir): New static global.
2993 (gdbscm_guile_data_directory): New function.
2994 (initialize_scheme_side): Update.
2995 (misc_guile_functions): Add guile-data-directory.
2996 (initialize_gdb_module): Fetch guile version number.
2997 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2998 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2999 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3000 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3002 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3003 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3004 * guile/scm-value.c (gdbscm_value_to_string): Only call
3005 scm_port_conversion_strategy if Guile version >= 2.0.6.
3007 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3009 * main.c (print_gdb_help): Add -q and --silent.
3011 2014-06-06 Gary Benson <gbenson@redhat.com>
3013 * common/signals.c: Remove preprocessor conditionals for
3014 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3015 SIGSEGV and SIGTERM.
3016 * proc-events.c: Likewise.
3018 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3020 * symfile.c (symfile_free_objfile): Remove restriction to
3022 * symfile-mem.c (symbol_file_add_from_memory): Call
3023 add_target_sections_of_objfile.
3025 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3027 * guile/scm-value.c (gdbscm_history_append_x): Use
3028 'vlscm_get_value_smob_arg_unsafe' instead of
3029 'vlscm_scm_to_value'.
3031 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3034 * utils.c (printchar): Don't escape at all if quoter is NUL.
3035 Update function documentation to clarify effect of parameter
3037 * remote.c (escape_buffer): Pass '\\' as the quoter to
3038 fputstrn_unfiltered.
3039 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3040 generate the output.
3041 (mi_solib_unloaded): Same.
3043 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3045 * development.sh: Delete.
3046 * Makefile.in (config.status): Adjust dependency on development.sh.
3047 * configure.ac: Adjust development.sh source call.
3048 * configure: Regenerate.
3050 2014-06-04 Doug Evans <xdje42@gmail.com>
3052 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3053 is_scheme_bkpt, spec.
3054 (bpscm_make_breakpoint_smob): Initialize new members.
3055 (gdbscm_create_breakpoint_x): Split into two ...
3056 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3057 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3058 (scheme_function breakpoint_functions): Update.
3059 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3060 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3061 register-breakpoint!.
3063 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3066 * mem-break.c (z_type_supported): Return zero if
3067 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3069 2014-06-04 Tom Tromey <tromey@redhat.com>
3071 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3072 value_from_contents_and_address_unresolved.
3073 (ada_template_to_fixed_record_type_1): Likewise.
3074 (ada_which_variant_applies): Likewise.
3075 * value.h (value_from_contents_and_address_unresolved): Declare.
3076 * value.c (value_from_contents_and_address_unresolved): New
3078 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3079 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3080 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3082 2014-06-04 Tom Tromey <tromey@redhat.com>
3084 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3086 2014-06-04 Tom Tromey <tromey@redhat.com>
3088 * procfs.c (procfs_attach): Make "args" const.
3089 * windows-nat.c (windows_attach): Make "args" const.
3090 * nto-procfs.c (procfs_attach): Make "args" const.
3091 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3092 * go32-nat.c (go32_attach): Make "args" const.
3093 * gnu-nat.c (gnu_attach): Make "args" const.
3094 * darwin-nat.c (darwin_attach): Make "args" const.
3095 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3096 * linux-nat.c (linux_nat_attach): Make "args" const.
3097 * remote.c (extended_remote_attach_1, extended_remote_attach):
3099 * target.h (struct target_ops) <to_attach>: Make "args" const.
3100 (find_default_attach): Likewise.
3101 * utils.c (parse_pid_to_attach): Make "args" const.
3102 * utils.h (parse_pid_to_attach): Update.
3104 2014-06-04 Tom Tromey <tromey@redhat.com>
3106 * target-delegates.c: Rebuild.
3107 * target.c (default_thread_address_space): New function.
3108 (target_thread_address_space): Simplify.
3109 * target.h (struct target_ops) <to_thread_address_space>: Add
3110 TARGET_DEFAULT_FUNC.
3112 2014-06-04 Doug Evans <xdje42@gmail.com>
3114 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3116 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3118 * record-btrace.c: Include event-loop.h and inf-loop.h.
3119 (record_btrace_resume_exec_dir)
3120 (record_btrace_async_inferior_event_handler)
3121 (record_btrace_handle_async_inferior_event): New.
3122 (record_btrace_open): Create async event handler.
3123 (record_btrace_close): Delete async event handler.
3124 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3125 Mark async event handler.
3126 (record_btrace_execution_direction): New.
3127 (init_record_btrace_ops): Initialize to_execution_direction.
3129 2014-06-03 Doug Evans <xdje42@gmail.com>
3131 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3132 (gdbscm_make_parameter): Ditto.
3134 2014-06-03 Doug Evans <dje@google.com>
3136 * exec.c (exec_close_1): Call clear_section_table instead of
3137 resize_section_table.
3138 (clear_section_table): New function.
3139 (resize_section_table): Make static. Rename arg num_added to
3141 * exec.h (clear_section_table): Declare.
3142 (resize_section_table): Delete.
3143 * progspace.c (release_program_space): Call clear_section_table
3144 instead of resize_section_table.
3146 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3148 * NEWS (Python Scripting): Add entry about the new xmethods
3151 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3153 * python/py-xmethods.c: New file.
3154 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3155 (objfpy_dealloc): XDECREF on the new xmethods field.
3156 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3158 (objfpy_get_xmethods): New function.
3159 (objfile_getset): New entry 'xmethods'.
3160 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3161 (pspy_dealloc): XDECREF on the new xmethods field.
3162 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3164 (pspy_get_xmethods): New function.
3165 (pspace_getset): New entry 'xmethods'.
3166 * python/python-internal.h: Add declarations for new functions.
3167 * python/python.c (_initialize_python): Invoke
3168 gdbpy_initialize_xmethods.
3169 * python/lib/gdb/__init__.py (xmethods): New
3171 * python/lib/gdb/xmethod.py: New file.
3172 * python/lib/gdb/command/xmethods.py: New file.
3174 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3176 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3177 best match method returned by find_overload_match is an xmethod.
3178 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3179 the best matching operator returned by find_overload_match is an
3181 * valops.c: #include "extension.h".
3182 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3183 Return void. The list of matching source methods is returned in
3184 "fn_list" and a vector of matching debug method workers is
3185 returned in "xm_worker_vec". Update all callers.
3186 (value_find_oload_method_list): Likewise.
3187 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3188 non-NULL, then the index of the best matching method in this
3189 vector is returned. Update all callers.
3190 (find_overload_match): Include xmethods while performing overload
3193 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3195 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3196 * extension-priv.h (struct extension_language_ops): Add the
3198 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3199 get_matching_xmethod_workers, get_xmethod_argtypes,
3200 invoke_xmethod, free_xmethod_worker,
3201 free_xmethod_worker_vec): New functions.
3202 * extension.h: #include "common/vec.h".
3203 New function declarations.
3204 (struct xmethod_worker): New struct.
3205 (VEC (xmethod_worker_ptr)): New vector type.
3206 (xmethod_worker_ptr): New typedef.
3207 (xmethod_worker_vec): Likewise.
3208 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3210 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3211 (struct builtin_type): New field "xmethod".
3212 * valarith.c (value_ptradd): Assert that the value argument is not
3214 * valops.c (value_must_coerce_to_target): Return 0 for
3215 lval_xcallable values.
3216 * value.c (struct value): New field XM_WORKER in the field
3218 (value_address, value_raw_address): Return 0 for lval_xcallable
3220 (set_value_address): Assert that the value is not an
3222 (value_free): Free the associated xmethod worker when freeing
3223 lval_xcallable values.
3224 (set_value_component_location): Assert that the WHOLE value is not
3226 (value_of_xmethod, call_xmethod): New functions.
3227 * value.h: Declare "struct xmethod_worker".
3228 Declare new functions value_of_xmethod, call_xmethod.
3230 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3231 Pedro Alves <palves@redhat.com>
3233 PR breakpoints/17000
3234 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3235 New function, extracted from software_breakpoint_inserted_here_p.
3236 (software_breakpoint_inserted_here_p): Replace factored out code
3237 by call to find_non_raw_software_breakpoint_inserted_here.
3238 (bp_target_info_copy_insertion_state): New function.
3239 (bkpt_insert_location): Handle the case of a single-step
3240 breakpoint already inserted at the same address.
3241 (bkpt_remove_location): Handle the case of a single-step
3242 breakpoint still inserted at the same address.
3243 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3244 breakpoint already inserted at the same address.
3245 (deprecated_remove_raw_breakpoint): Handle the case of a
3246 non-raw breakpoint still inserted at the same address.
3247 (find_single_step_breakpoint): New function, extracted from
3248 single_step_breakpoint_inserted_here_p.
3249 (find_single_step_breakpoint): New function,
3250 factored out from single_step_breakpoint_inserted_here_p.
3251 (single_step_breakpoint_inserted_here_p): Reimplement.
3253 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3255 Pushed by Joel Brobecker <brobecker@adacore.com>
3256 * source.c (show_substitute_path_command): Fix display of matching
3259 2014-06-03 Gary Benson <gbenson@redhat.com>
3261 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3263 2014-06-02 Doug Evans <xdje42@gmail.com>
3265 Add parameter support for Guile.
3266 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3267 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3268 (scm-param.o): New rule.
3269 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3270 (gdbscm_misc_error): Declare.
3271 (gdbscm_canonicalize_command_name): Declare.
3272 (gdbscm_scm_to_host_string): Declare.
3273 (gdbscm_scm_from_host_string): Declare.
3274 (gdbscm_initialize_parameters): Declare.
3275 * guile/guile.c (initialize_gdb_module): Call
3276 gdbscm_initialize_parameters.
3277 * guile/lib/gdb.scm: Export parameter symbols.
3278 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3279 cmdscm_canonicalize_name and made public. All callers updated.
3280 * guile/scm-exception.c (gdbscm_misc_error): New function.
3281 * guile/scm-param.c: New file.
3282 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3283 (gdbscm_scm_to_host_string): New function.
3284 (gdbscm_scm_from_host_string): New function.
3285 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3287 2014-06-02 Doug Evans <xdje42@gmail.com>
3289 Add command support for Guile.
3290 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3291 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3292 (scm-cmd.o): New rule.
3293 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3294 (gdbscm_user_error_p): Declare.
3295 (gdbscm_parse_command_name): Declare.
3296 (gdbscm_valid_command_class_p): Declare.
3297 (gdbscm_initialize_commands): Declare.
3298 * guile/guile.c (initialize_gdb_module): Call
3299 gdbscm_initialize_commands.
3300 * guile/lib/gdb.scm: Export command symbols.
3301 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3302 (throw-user-error): New function.
3303 * guile/scm-cmd.c: New file.
3304 * guile/scm-exception.c (user_error_symbol): New static global.
3305 (gdbscm_user_error_p): New function.
3306 (gdbscm_initialize_exceptions): Set user_error_symbol.
3307 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3309 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3311 * top.c (command_loop): Handle comments here...
3312 (command_line_input): ... not here.
3314 2014-06-02 Doug Evans <xdje42@gmail.com>
3316 Add progspace support for Guile.
3317 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3318 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3319 (scm-progspace.o): New rule.
3320 * guile/guile-internal.h (pspace_smob): New typedef.
3321 (psscm_pspace_smob_pretty_printers): Declare.
3322 (psscm_pspace_smob_from_pspace): Declare.
3323 (psscm_scm_from_pspace): Declare.
3324 * guile/guile.c (initialize_gdb_module): Call
3325 gdbscm_initialize_pspaces.
3326 * guile/lib/gdb.scm: Export progspace symbols.
3327 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3329 (append-pretty-printer!): Ditto.
3330 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3332 * guile/scm-progspace.c: New file.
3334 2014-06-03 Alan Modra <amodra@gmail.com>
3336 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3337 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3339 2014-06-02 Doug Evans <dje@google.com>
3341 Add support for skeletonless type units.
3342 * dwarf2read.c (struct dwarf2_per_objfile): New member
3343 n_allocated_type_units.
3344 (struct dwarf2_per_objfile) <tu_stats>: New member
3345 nr_all_type_units_reallocs.
3346 (create_signatured_type_table_from_index): Initialize
3347 n_allocated_type_units
3348 (create_all_type_units): Ditto.
3349 (add_type_unit): Move up in file. New arg slot.
3350 All callers updated. Increase space for all_type_units more
3352 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3353 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3354 (lookup_dwp_signatured_type): Ditto.
3355 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3356 All callers updated.
3357 (build_type_psymtabs_1): Leave type_unit_groups as
3358 NULL if no TUs present.
3359 (print_tu_stats): New function.
3360 (process_skeletonless_type_unit): New function.
3361 (process_dwo_file_for_skeletonless_type_units): New
3363 (process_skeletonless_type_units): New function.
3364 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3365 Call print tu_stats if debugging enabled.
3367 2014-06-02 Pedro Alves <palves@redhat.com>
3369 * breakpoint.c (build_target_command_list): Don't build a command
3370 list if we have any duplicate location that isn't a dprintf.
3372 2014-06-02 Pedro Alves <palves@redhat.com>
3374 * breakpoint.c (dprintf_breakpoint_hit): New function.
3375 (initialize_breakpoint_ops): Install it as dprintf's
3376 breakpoint_hit method.
3378 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3380 * source.c (substitute_path_rule_matches): Simplify using
3381 filename_ncmp instead of FILENAME_CMP.
3383 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3385 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3387 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3389 * configure.ac: When Guile is available, check for the
3390 availability of 'scm_new_smob'.
3391 * configure, config.h.in: Regenerate.
3392 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3395 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3397 * frame.c (struct frame_info): Add stop_string field.
3398 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3399 (get_prev_frame_always): Old content moved into
3400 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3401 TRY_CATCH, handle MEMORY_ERROR exceptions.
3402 (frame_stop_reason_string): New function definition.
3403 * frame.h (unwind_stop_reason_to_string): Extend comment to
3404 mention frame_stop_reason_string.
3405 (frame_stop_reason_string): New function declaration.
3406 * stack.c (frame_info): Switch to frame_stop_reason_string.
3407 (backtrace_command_1): Switch to frame_stop_reason_string.
3408 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3409 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3410 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3412 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3414 * frame.c (frame_stop_reason_string): Rename to ...
3415 (unwind_stop_reason_to_string): this.
3416 * frame.h (frame_stop_reason_string): Rename to ...
3417 (unwind_stop_reason_to_string): this.
3418 * stack.c (frame_info): Update call to frame_stop_reason_string.
3419 (backtrace_command_1): Likewise.
3420 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3421 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3423 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3425 * frame.c (remove_prev_frame): New function.
3426 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3429 2014-05-29 Pedro Alves <palves@redhat.com>
3431 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3432 and make it const. When a single-step decays to a continue,
3433 clear 'step', not 'hw_step'. Pass whether the caller wanted
3434 to step to user_visible_resume_ptid, not what we ask the
3437 2014-05-29 Pedro Alves <palves@redhat.com>
3439 * infrun.c (process_event_stop_test, handle_step_into_function)
3440 (handle_step_into_function_backward): Adjust.
3441 Don't set the even thread's stop_step and call stop_waiting before
3442 calling end_stepping_range. Instead do that ...
3443 (end_stepping_range): ... here. Take an ecs pointer parameter.
3445 2014-05-29 Pedro Alves <palves@redhat.com>
3447 * infrun.c (stop_stepping): Rename to ...
3448 (stop_waiting): ... this.
3449 (proceed): Update comment.
3450 (process_event_stop_test, handle_inferior_event)
3451 (handle_signal_stop, handle_step_into_function)
3452 (handle_step_into_function_backward): Update.
3454 2014-05-29 Pedro Alves <palves@redhat.com>
3456 * infcall.c (run_inferior_call): Don't check whether the current
3457 thread is running after the proceed call.
3459 2014-05-29 Pedro Alves <palves@redhat.com>
3460 Tom Tromey <tromey@redhat.com>
3462 * NEWS: Mention "maint set target-async", "set mi-async", and that
3463 background execution commands are now always available.
3464 * target.h (target_async_permitted): Update comment.
3465 * target.c (target_async_permitted, target_async_permitted_1):
3467 (set_target_async_command): Rename to ...
3468 (maint_set_target_async_command): ... this.
3469 (show_target_async_command): Rename to ...
3470 (maint_show_target_async_command): ... this.
3471 (_initialize_target): Adjust.
3472 * infcmd.c (prepare_execution_command): Make extern.
3473 * inferior.h (prepare_execution_command): Declare.
3474 * infrun.c (set_observer_mode): Leave target async alone.
3475 * mi/mi-interp.c (mi_interpreter_init): Install
3476 mi_on_sync_execution_done as sync_execution_done observer.
3477 (mi_on_sync_execution_done): New function.
3478 (mi_execute_command_input_handler): Don't print the prompt if we
3479 just started a synchronous command with an async target.
3480 (mi_on_resume): Check sync_execution before printing prompt.
3481 * mi/mi-main.h (mi_async_p): Declare.
3482 * mi/mi-main.c: Include gdbcmd.h.
3483 (mi_async_p): New function.
3484 (mi_async, mi_async_1): New globals.
3485 (set_mi_async_command, show_mi_async_command, mi_async): New
3487 (exec_continue): Call prepare_execution_command.
3488 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3489 (mi_execute_async_cli_command): Use mi_async_p.
3490 (_initialize_mi_main): Install "set mi-async". Make
3491 "target-async" a deprecated alias.
3493 2014-05-29 Pedro Alves <palves@redhat.com>
3495 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3496 (_initialize_cli_interp): Adjust.
3497 * event-loop.c: Include "observer.h".
3498 (start_event_loop): Notify 'command_error' observers instead of
3499 calling display_gdb_prompt. Remove FIXME comment.
3500 * event-top.c (display_gdb_prompt): Remove call into the
3502 * inf-loop.c: Include "observer.h".
3503 (inferior_event_handler): Notify 'command_error' observers instead
3504 of calling display_gdb_prompt.
3505 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3506 observers instead of calling display_gdb_prompt.
3507 * interps.c (interp_set): Don't call display_gdb_prompt.
3508 (current_interp_display_prompt_p): Delete.
3509 * interps.h (interp_prompt_p): Delete declaration.
3510 (interp_prompt_p_ftype): Delete.
3511 (struct interp_procs) <prompt_proc_p>: Delete field.
3512 (current_interp_display_prompt_p): Delete declaration.
3513 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3514 (_initialize_mi_interp): Adjust.
3515 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3516 'command_error' observers.
3517 (tui_on_sync_execution_done, tui_on_command_error): New
3519 (tui_display_prompt_p): Delete.
3520 (_initialize_tui_interp): Adjust.
3522 2014-05-29 Pedro Alves <palves@redhat.com>
3525 * cli/cli-interp.c: Include infrun.h and observer.h.
3526 (cli_uiout, cli_interp): New globals.
3527 (cli_on_signal_received, cli_on_end_stepping_range)
3528 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3530 (cli_interpreter_init): Install them as 'end_stepping_range',
3531 'signal_received' 'signal_exited', 'exited' and 'no_history'
3533 (_initialize_cli_interp): Remove cli_interp local.
3534 * infrun.c (handle_inferior_event): Call the several stop reason
3535 observers instead of printing the stop reason directly.
3536 (end_stepping_range): New function.
3537 (print_end_stepping_range_reason, print_signal_exited_reason)
3538 (print_exited_reason, print_signal_received_reason)
3539 (print_no_history_reason): Make static, and add an uiout
3540 parameter. Print to that instead of to CURRENT_UIOUT.
3541 * infrun.h (print_end_stepping_range_reason)
3542 (print_signal_exited_reason, print_exited_reason)
3543 (print_signal_received_reason print_no_history_reason): New
3545 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3547 <cli_uiout>: New field.
3548 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3549 uiout for CLI output. Install 'signal_received',
3550 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3552 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3553 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3554 (mi_on_no_history): New functions.
3555 (ui_out_free_cleanup): Delete function.
3556 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3557 instead use the one already stored in the MI interpreter data.
3558 (mi_ui_out): Adjust.
3559 * tui/tui-interp.c: Include infrun.h and observer.h.
3560 (tui_interp): New global.
3561 (tui_on_signal_received, tui_on_end_stepping_range)
3562 (tui_on_signal_exited, tui_on_exited)
3563 (tui_on_no_history): New functions.
3564 (tui_init): Install them as 'end_stepping_range',
3565 'signal_received' 'signal_exited', 'exited' and 'no_history'
3567 (_initialize_tui_interp): Delete tui_interp local.
3569 2014-05-29 Pedro Alves <palves@redhat.com>
3572 * linux-nat.c (linux_nat_resume_callback): Rename the second
3573 parameter to 'except'. Skip LP if it points to EXCEPT.
3574 (linux_nat_resume): Don't mark the event lwp as not stopped
3575 before resuming sibling lwps. Instead ask
3576 linux_nat_resume_callback to skip the event lwp. Mark it as not
3577 stopped after actually resuming it.
3578 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3580 (wait_lwp): Mark the lwp as stopped here.
3581 (stop_wait_callback): Mark the lwp as not stopped right after
3582 resuming it. Don't mark lwps as stopped here.
3583 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3584 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3586 2014-05-29 Pedro Alves <palves@redhat.com>
3589 * infrun.c (resume): Determine how much to resume depending on
3590 whether the caller wanted a step, not whether we can hardware step
3591 the target. Mark all threads that we intend to run as running,
3592 unless we're calling an inferior function.
3593 (normal_stop): If the thread is running an infcall, don't finish
3595 * target.c (target_resume): Don't mark threads as running here.
3597 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3599 * serial.c (_initialize_serial): Remove support for
3600 the "set remotebaud" and "show remotebaud" commands.
3601 * NEWS: Add entry documenting the removal of that command.
3603 2014-05-28 Yao Qi <yao@codesourcery.com>
3605 * charset.c: Fix typo in comments.
3607 2014-05-27 Gary Benson <gbenson@redhat.com>
3609 * utils.c (internal_vproblem): Prompt for a bug report.
3611 2014-05-26 Andy Wingo <wingo@igalia.com>
3613 * guile/scm-arch.c (arscm_mark_arch_smob):
3614 * guile/scm-block.c (bkscm_mark_block_smob)
3615 (bkscm_mark_block_syms_progress_smob):
3616 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3617 * guile/scm-exception.c (exscm_mark_exception_smob):
3618 * guile/scm-frame.c (frscm_mark_frame_smob):
3619 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3620 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3621 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3622 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3623 (ppscm_mark_pretty_printer_worker_smob):
3624 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3625 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3626 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3627 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3629 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3632 2014-05-26 Andy Wingo <wingo@igalia.com>
3633 Doug Evans <xdje42@gmail.com>
3635 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3636 empty_base_class. All uses updated.
3637 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3638 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3640 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3641 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3642 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3643 (gdbscm_gsmob_has_property_p, add_property_name)
3644 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3645 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3646 (gdb-object-has-property?, gdb-object-properties): Remove.
3647 (gdb-object-kind): Renamed from gsmob-kind.
3649 2014-05-26 Andy Wingo <wingo@igalia.com>
3651 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3652 * configure: Regenerate.
3654 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3656 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3658 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3660 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3661 (replay_memory_access_read_only, replay_memory_access_read_write)
3662 (replay_memory_access_types, replay_memory_access)
3663 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3664 (cmd_set_record_btrace, cmd_show_record_btrace)
3665 (cmd_show_replay_memory_access): New.
3666 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3667 (record_btrace_remove_breakpoint): Replace
3668 record_btrace_allow_memory_access with replay_memory_access.
3669 (_initialize_record_btrace): Add commands.
3670 * NEWS: Announce it.
3672 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3674 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3676 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3678 * MAINTAINERS (Write After Approval): Move self back from
3681 2014-05-22 Pedro Alves <palves@redhat.com>
3683 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3684 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3685 (disable_randomization, enum exec_direction_kind)
3686 (execution_direction, stop_registers, start_remote)
3687 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3688 (wait_for_inferior, normal_stop, get_last_target_status)
3689 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3690 (insert_step_resume_breakpoint_at_sal)
3691 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3692 (set_step_info, print_stop_event, signal_stop_state)
3693 (signal_print_state, signal_pass_state, signal_stop_update)
3694 (signal_print_update, signal_pass_update)
3695 (update_signals_program_target, clear_exit_convenience_vars)
3696 (displaced_step_dump_bytes, update_observer_mode)
3697 (signal_catch_update, gdb_signal_from_command): Move
3699 * infrun.h: ... to this new file.
3700 * amd64-tdep.c: Include infrun.h.
3701 * annotate.c: Include infrun.h.
3702 * arch-utils.c: Include infrun.h.
3703 * arm-linux-tdep.c: Include infrun.h.
3704 * arm-tdep.c: Include infrun.h.
3705 * break-catch-sig.c: Include infrun.h.
3706 * breakpoint.c: Include infrun.h.
3707 * common/agent.c: Include infrun.h instead of inferior.h.
3708 * corelow.c: Include infrun.h.
3709 * event-top.c: Include infrun.h.
3710 * go32-nat.c: Include infrun.h.
3711 * i386-tdep.c: Include infrun.h.
3712 * inf-loop.c: Include infrun.h.
3713 * infcall.c: Include infrun.h.
3714 * infcmd.c: Include infrun.h.
3715 * infrun.c: Include infrun.h.
3716 * linux-fork.c: Include infrun.h.
3717 * linux-nat.c: Include infrun.h.
3718 * linux-thread-db.c: Include infrun.h.
3719 * monitor.c: Include infrun.h.
3720 * nto-tdep.c: Include infrun.h.
3721 * procfs.c: Include infrun.h.
3722 * record-btrace.c: Include infrun.h.
3723 * record-full.c: Include infrun.h.
3724 * remote-m32r-sdi.c: Include infrun.h.
3725 * remote-mips.c: Include infrun.h.
3726 * remote-notif.c: Include infrun.h.
3727 * remote-sim.c: Include infrun.h.
3728 * remote.c: Include infrun.h.
3729 * reverse.c: Include infrun.h.
3730 * rs6000-tdep.c: Include infrun.h.
3731 * s390-linux-tdep.c: Include infrun.h.
3732 * solib-irix.c: Include infrun.h.
3733 * solib-osf.c: Include infrun.h.
3734 * solib-svr4.c: Include infrun.h.
3735 * target.c: Include infrun.h.
3736 * top.c: Include infrun.h.
3737 * windows-nat.c: Include infrun.h.
3738 * mi/mi-interp.c: Include infrun.h.
3739 * mi/mi-main.c: Include infrun.h.
3740 * python/py-threadevent.c: Include infrun.h.
3742 2014-05-22 Pedro Alves <palves@redhat.com>
3744 * infrun.c (handle_inferior_event): Store the exit code for
3745 --return-child-result here, instead of ...
3746 (print_exited_reason): ... here.
3748 2014-05-21 Pedro Alves <palves@redhat.com>
3751 * gdbthread.h (struct thread_control_state): New field
3753 * infrun.c (follow_fork): Copy the new thread control field to the
3755 (clear_proceed_status_thread): Clear the new thread control field.
3756 (proceed): Set the new thread control field.
3757 * interps.h (command_interp): Declare.
3758 * interps.c (command_interpreter): New global.
3759 (command_interp): New function.
3760 (interp_exec): Set `command_interpreter' while here.
3761 * cli-out.c (cli_uiout_dtor): New function.
3762 (cli_ui_out_impl): Install it.
3763 * mi/mi-interp.c: Include cli-out.h.
3764 (mi_cmd_interpreter_exec): Add comment.
3765 (restore_current_uiout_cleanup): New function.
3766 (ui_out_free_cleanup): New function.
3767 (mi_on_normal_stop): If finishing an execution command started by
3768 a CLI command, or any kind of breakpoint-like event triggered,
3769 print the stop event to the output (CLI) stream.
3770 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3772 2014-05-21 Pedro Alves <palves@redhat.com>
3774 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3775 current source line having changed.
3776 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3777 * infrun.c (normal_stop): Adjust call to
3778 set_current_sal_from_frame.
3779 * source.c (clear_lines_listed_range): New function.
3780 (set_current_source_symtab_and_line, identify_source_line): Clear
3781 the lines listed range.
3782 (line_info): Handle the first "info line" after the current source
3783 line having changed.
3784 * stack.c (print_stack_frame): Remove center handling.
3785 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3788 2014-05-21 Pedro Alves <palves@redhat.com>
3790 * inf-child.c (inf_child_mourn_inferior): New function.
3791 * inf-child.h (inf_child_mourn_inferior): New declaration.
3792 * darwin-nat.c (darwin_mourn_inferior): Use
3793 inf_child_mourn_inferior.
3794 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3795 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3796 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3797 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3798 * windows-nat.c (windows_mourn_inferior): Likewise.
3800 2014-05-21 Doug Evans <xdje42@gmail.com>
3802 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3804 2014-05-21 Doug Evans <xdje42@gmail.com>
3806 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3807 (gdbscm_out_of_range_error): Ditto.
3808 (gdbscm_memory_error): Ditto.
3809 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3810 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3811 (gdbscm_out_of_range_error): Update.
3812 (gdbscm_memory_error): Update.
3813 (gdbscm_scm_to_target_string_unsafe): Delete.
3815 2014-05-21 Pedro Alves <palves@redhat.com>
3817 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3819 (inf_child_open_target): New function.
3820 (inf_child_open): Use inf_child_open_target to push the target
3821 instead of erroring out.
3822 (inf_child_disconnect, inf_child_close)
3823 (inf_child_maybe_unpush_target): New functions.
3824 (inf_child_target): Install inf_child_disconnect and
3825 inf_child_close. Store a pointer to the returned object.
3826 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3828 * target.c (auto_connect_native_target): New global.
3829 (show_default_run_target): New function.
3830 (find_default_run_target): Return NULL if automatically connecting
3831 to the native target is disabled.
3832 (_initialize_target): Install set/show auto-connect-native-target.
3833 * NEWS: Mention "set auto-connect-native-target", and "target
3835 * linux-nat.c (super_close): New global.
3836 (linux_nat_close): Call super_close.
3837 (linux_nat_add_target): Store a pointer to the base class's
3839 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3840 inf_child_maybe_unpush.
3841 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3843 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3844 the inferior. Use inf_child_maybe_unpush_target.
3845 (inf_ttrace_attach): Don't push the target if it is already
3847 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3848 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3849 after mourning the inferior. Use inf_child_maybe_unpush_target.
3850 (darwin_attach_pid): Don't push the target if it is already
3852 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3853 mourning the inferior. Use inf_child_maybe_unpush_target.
3854 (gnu_detach): Use inf_child_maybe_unpush_target.
3855 * go32-nat.c (go32_create_inferior): Don't push the target if it
3857 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3858 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3859 (procfs_open): Rename to ...
3860 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3861 comments. Can target_preopen before changing node. Call
3862 inf_child_open_target to push the target explicitly.
3863 (procfs_attach): Don't push the target if it is already pushed.
3864 (procfs_detach): Use inf_child_maybe_unpush_target.
3865 (procfs_create_inferior): Don't push the target if it is already
3867 (nto_native_ops): New global.
3868 (procfs_open): Reimplement.
3869 (procfs_native_open): New function.
3870 (init_procfs_targets): Install procfs_native_open as to_open of
3871 "target native". Store a pointer to the "native" target in
3873 * procfs.c (procfs_attach): Don't push the target if it is already
3875 (procfs_detach): Use inf_child_maybe_unpush_target.
3876 (procfs_mourn_inferior): Only unpush the target after mourning the
3877 inferior. Use inf_child_maybe_unpush_target.
3878 (procfs_init_inferior): Don't push the target if it is already
3880 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3881 if it is already pushed.
3883 2014-05-21 Pedro Alves <palves@redhat.com>
3885 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3886 and "procfs" targets are now called "native" instead.
3888 2014-05-21 Pedro Alves <palves@redhat.com>
3890 * go32-nat.c (go32_open): Delete.
3891 (go32_target): Don't override the to_open method.
3893 2014-05-21 Pedro Alves <palves@redhat.com>
3895 * nto-procfs.c (procfs_can_run): New function.
3896 (nto_procfs_ops): New global.
3897 (init_procfs_targets): New, based on procfs_target. Install
3898 "target native" in addition to "target procfs".
3899 (_initialize_procfs): Call init_procfs_targets instead of adding
3902 2014-05-21 Pedro Alves <palves@redhat.com>
3904 * windows-nat.c (windows_target): Don't override to_shortname,
3905 to_longname or to_doc.
3907 2014-05-21 Pedro Alves <palves@redhat.com>
3909 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3912 2014-05-21 Pedro Alves <palves@redhat.com>
3914 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3915 to_shortname, to_longname or to_doc.
3917 2014-05-21 Pedro Alves <palves@redhat.com>
3919 * go32-nat.c (go32_target): Don't override to_shortname,
3920 to_longname or to_doc.
3922 2014-05-21 Pedro Alves <palves@redhat.com>
3924 * inf-child.c (inf_child_open): Remove mention of "child".
3925 (inf_child_target): Rename target to "native" instead of "child".
3927 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3929 * Makefile.in (SFILES): Delete "regset.c".
3930 (COMMON_OBS): Delete "regset.o".
3932 * regset.h (regset_alloc): Delete prototype.
3934 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3936 * sparc-linux-tdep.c (sparc32_linux_gregset)
3937 (sparc32_linux_fpregset): New static regset structures.
3938 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3939 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3941 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3942 (sparc64_linux_fpregset): New static regset structures.
3943 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3944 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3945 New static regset structures.
3946 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3947 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3948 New static regset structures.
3949 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3950 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3951 New static regset structures.
3952 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3953 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3954 New static regset structures.
3955 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3957 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3959 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3960 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3961 register maps ("regmaps") from "*regset" to "*regmap". Do this
3962 for all regmap types and variables.
3963 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3964 (sparc32_linux_supply_core_gregset)
3965 (sparc32_linux_collect_core_gregset)
3966 (sparc32_linux_supply_core_fpregset)
3967 (sparc32_linux_collect_core_fpregset): Likewise.
3968 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3969 (sparc_gregmap, sparc_fpregmap): ... these.
3970 (sparc_supply_gregset, sparc_collect_gregset)
3971 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3972 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3973 (_initialize_sparc_nat): Rename regmaps.
3974 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3975 (sparc_gregmap, sparc_fpregmap): ... these.
3976 (sparc_supply_gregset, sparc_collect_gregset)
3977 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3978 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3980 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3981 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3983 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3985 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3986 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3987 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3989 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3990 (sparc32_bsd_fpregset): Rename to...
3991 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3992 (sparc32_bsd_fpregmap): ... these.
3993 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3994 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3995 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3996 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3997 (struct sparc_gregmap, struct sparc_fpregmap)
3998 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3999 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4000 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4001 (sparc32_supply_regset, sparc32_collect_gregset)
4002 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4004 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4005 (sparc64_linux_ptrace_gregmap): ... this.
4006 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4007 (_initialize_sparc64_linux_nat): Rename regmaps.
4008 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4009 (sparc64_linux_core_gregmap): ... this.
4010 (sparc64_linux_supply_core_gregset)
4011 (sparc64_linux_collect_core_gregset)
4012 (sparc64_linux_supply_core_fpregset)
4013 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4014 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4015 (sparc64_sol2_fpregset): Rename to...
4016 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4017 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4018 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4020 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4021 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4022 (sparc64_bsd_fpregset): Rename to...
4023 (struct sparc_gregmap, sparc64_sol2_gregmap)
4024 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4025 (sparc64_bsd_fpregmap): ... these.
4026 (sparc64_supply_gregset, sparc64_collect_gregset)
4027 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4029 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4030 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4031 (sparc64fbsd_gregmap): ... this.
4032 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4033 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4035 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4036 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4037 (sparc64nbsd_collect_fpregset): Likewise.
4038 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4039 (sparc64nbsd_gregmap): ... this.
4040 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4042 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4043 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4044 (sparc64obsd_gregmap): ... this.
4045 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4047 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4048 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4049 (sparc32nbsd_gregmap): ... this.
4050 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4053 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4055 * score-tdep.c (score7_linux_gregset): New static regset
4057 (score7_linux_regset_from_core_section): Remove dynamic regset
4059 (score_gdbarch_init): Drop allocation of tdep structure.
4060 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4062 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4064 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4066 (am33_regset_from_core_section): Remove dynamic regset
4069 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4071 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4072 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4074 (mips_linux_regset_from_core_section): Remove dynamic regset
4076 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4077 'gregset64', 'fpregset', and 'fpregset64'.
4078 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4079 deleted tdep fields.
4081 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4083 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4085 (amd64_regset_from_core_section): Remove dynamic regset
4087 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4089 (amd64obsd_regset_from_core_section): Remove dynamic regset
4091 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4093 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4094 x86-common regset supply function.
4095 * i386-tdep.c (i386_collect_gregset): Make static.
4096 (i386_gregset): New global regset structure.
4097 (i386_fpregset, i386_xstateregset): New static regset structures.
4098 (i386_regset_from_core_section): Remove dynamic regset
4100 (i386_gdbarch_init): Remove initialization of tdep fields
4101 'gregset', 'fpregset', and 'xstateregset'.
4102 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4103 'fpregset', and 'xstateregset'.
4104 (i386_collect_gregset): Remove prototype.
4105 (i386_gregset): New declaration.
4106 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4108 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4111 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4113 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4114 (arm_linux_vfpregset): New static regset structures.
4115 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4117 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4118 and 'vfpregset' fields.
4120 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4122 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4123 (aarch64_linux_fpregset): New static regset structures.
4124 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4125 of regset structures.
4126 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4129 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4131 * regset.h (struct regset): Remove gdbarch field.
4132 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4133 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4134 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4136 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4137 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4138 (ppc32_linux_vsxregset): Likewise.
4139 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4140 via the regcache instead of the regset.
4141 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4142 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4143 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4144 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4147 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4149 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4150 Constify structures.
4151 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4152 (alphanbsd_aout_gregset): Likewise.
4153 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4154 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4156 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4157 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4159 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4160 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4161 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4162 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4163 * m88k-tdep.c (m88k_gregset): Likewise.
4164 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4165 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4166 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4167 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4168 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4169 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4170 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4171 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4172 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4174 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4175 * sh-tdep.h (sh_corefile_gregset): Likewise.
4176 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4177 * vax-tdep.c (vax_gregset): Likewise.
4179 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4181 Fix TLS access for -static -pthread.
4182 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4183 (try_thread_db_load_1): Initialize it.
4184 (thread_db_get_thread_local_address): Call it if LM is zero.
4185 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4186 * target.h (struct target_ops) (to_get_thread_local_address): Add
4187 load_module_addr comment.
4189 2014-05-21 Pedro Alves <palves@redhat.com>
4191 * dcache.c (dcache_read_memory_partial): If reading the cache line
4192 fails, fallback to reading just the memory the caller wanted.
4194 2014-05-20 Doug Evans <dje@google.com>
4196 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4197 instead of get_current_arch.
4199 2014-05-20 Pedro Alves <palves@redhat.com>
4201 * NEWS: Mention that compare-sections now works with all targets.
4203 * remote.c (PACKET_qCRC): New enum value.
4204 (remote_verify_memory): Don't send qCRC if the target has no
4205 execution. Use packet_support/packet_ok. If the target doesn't
4206 support the qCRC packet, fallback to a deep memory copy.
4207 (compare_sections_command): Say "target image" instead of "remote
4209 (_initialize_remote): Add PACKET_qCRC to the list of config
4210 packets that have no associated command. Extend comment.
4211 * target.c (simple_verify_memory, default_verify_memory): New
4213 * target.h (struct target_ops) <to_verify_memory>: Default to
4214 default_verify_memory.
4215 (simple_verify_memory): New declaration.
4216 * target-delegates.c: Regenerate.
4218 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4220 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4222 2014-05-20 Hui Zhu <hui@codesourcery.com>
4223 Yao Qi <yao@codesourcery.com>
4226 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4227 and change address of sp and pc.
4229 2014-05-19 Tom Tromey <tromey@redhat.com>
4231 * gdbtypes.c (rank_function): Use XNEWVEC.
4232 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4234 2014-05-19 Doug Evans <dje@google.com>
4236 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4237 build_type_unit_groups and moved closer to only caller. Remove
4238 arguments. All references updated. Remove outdated .gdb_index
4240 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4241 build_type_psymtabs_1.
4243 2014-05-19 Doug Evans <dje@google.com>
4245 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4246 n_type_unit_groups, all_type_unit_groups. All uses removed.
4247 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4248 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4249 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4250 (add_type_unit_group_to_table): Delete.
4252 2014-05-19 Doug Evans <dje@google.com>
4254 * eval.c (evaluate_subexp_standard): Add some comments.
4256 2014-05-17 Doug Evans <xdje42@gmail.com>
4258 * progspace.c (remove_program_space): Delete, unused.
4259 * progspace.h (remove_program_space): Ditto.
4261 2014-05-17 Doug Evans <xdje42@gmail.com>
4263 * inferior.c (prune_inferiors): Fix comment.
4264 (remove_inferior_command): Call prune_program_spaces.
4266 2014-05-16 Doug Evans <dje@google.com>
4268 New command line option -D.
4270 * main.c (set_gdb_data_directory): New function.
4271 (captured_main): Recognize -D. Flag error for --data-directory "".
4272 Call set_gdb_data_directory.
4273 (print_gdb_help): Print --data-directory, -D.
4274 * main.h (set_gdb_data_directory): Declare.
4275 * top.c (staged_gdb_datadir): New static global.
4276 (set_gdb_datadir): Call set_gdb_data_directory
4277 (show_gdb_datadir): New function.
4278 (init_main): Update init of data-directory parameter.
4280 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4282 Import the "dirfd" gnulib module.
4283 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4284 * gnulib/aclocal.m4: Update.
4285 * gnulib/config.in: Update.
4286 * gnulib/configure: Update.
4287 * gnulib/import/Makefile.am: Update.
4288 * gnulib/import/Makefile.in: Update.
4289 * gnulib/import/dirfd.c: New.
4290 * gnulib/import/m4/dirfd.m4: New.
4291 * gnulib/import/m4/gnulib-cache.m4: Update.
4292 * gnulib/import/m4/gnulib-comp.m4: Update.
4294 2014-05-16 Pierre Muller <muller@sourceware.org>
4295 Yao Qi <yao@codesourcery.com>
4297 * valprint.c (print_wchar): Move the code on checking whether
4298 W is a printable wide char to the default branch of switch
4299 statement below. Call wchar_printable instead of gdb_iswprint.
4301 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4303 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4304 ldr.w and ldrd instructions.
4306 2014-05-15 Doug Evans <dje@google.com>
4308 * dwarf2read.c (read_structure_type): Delete outdated comments.
4310 2014-05-14 Tom Tromey <tromey@redhat.com>
4312 * macrocmd.c (print_macro_definition): Reindent.
4314 2014-05-13 Doug Evans <xdje42@gmail.com>
4316 * python/py-cmd.c (cmdpy_completer): Add comment.
4317 (completers): Make const.
4319 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4321 * infrun.c (resume): Remove should_resume (unused). Move up
4322 declaration of resume_ptid.
4324 2014-05-13 Tom Tromey <tromey@redhat.com>
4326 * language.h (unop_type_check): Remove.
4327 (binop_type_check): Don't declare.
4329 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4331 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4332 call to regcache_raw_collect.
4334 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4336 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4337 mi_console->quote as the quoting character.
4339 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4341 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4343 2014-04-29 Tom Tromey <tromey@redhat.com>
4345 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4346 "show debug varobj".
4348 2014-05-07 Kyle McMartin <kyle@redhat.com>
4350 Pushed by Joel Brobecker <brobecker@adacore.com>.
4351 * aarch64-tdep.c (aarch64_software_single_step): New function.
4352 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4353 with aarch64_software_single_step.
4355 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4359 2014-05-05 Keith Seitz <keiths@redhat.com>
4361 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4362 variable or history value is successfully parsed.
4364 2014-05-05 Yao Qi <yao@codesourcery.com>
4365 Pedro Alves <palves@redhat.com>
4367 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4368 address of blocks that intersects the requested range. Trim
4369 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4371 * ctf.c (ctf_xfer_partial): Likewise.
4373 2014-05-05 Yao Qi <yao@codesourcery.com>
4375 * printcmd.c (display_command): Remove the check to
4376 target_has_execution.
4378 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4380 * ppcobsd-nat.c: Include "obsd-nat.h".
4381 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4383 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4385 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4387 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4388 and 16-bit signed and unsigned arguments. Update comment.
4389 (stap_parse_probe_arguments): Extend code to handle such
4390 arguments. Use warning instead of complaint to notify about
4391 unrecognized bitness.
4393 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4395 PR breakpoints/16889
4396 * stap-probe.c (stap_parse_probe_arguments): Simplify
4397 check for non-prefixed probes (i.e., probes whose
4398 arguments do not start with "N@"). Always set the
4399 argument type to a sane value.
4401 2014-05-01 David Taylor <dtaylor@emc.com>
4403 * remote.c (compare_sections_command): Add -r option to compare
4404 all loadable read-only sections.
4406 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4408 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4409 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4411 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4412 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4413 Remove unused CORE_ADDR argument. Update all callers.
4415 2014-04-29 Pedro Alves <palves@redhat.com>
4417 * remote.c (struct packet_config) <detect>: Extend comment.
4418 (add_packet_config_cmd): Don't set the config's detect or support
4420 (init_all_packet_configs): Also initialize the config's 'detect'
4422 (reset_all_packet_configs_support): New function.
4423 (remote_open_1): Call reset_all_packet_configs_support instead of
4424 init_all_packet_configs.
4425 (_initialize_remote): Initialize all packet configs. Assert that
4426 all packets have an associated command, except a few known
4429 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4431 * dwarf2read.c (read_subrange_type): Handle dynamic
4432 DW_AT_lower_bound attributes.
4434 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4436 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4437 dynamic bounds before computing its upper bound.
4438 (ada_discrete_type_low_bound): Same as above with the lower bound.
4440 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4442 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4443 range types. Adjust the array handling implementation to
4444 take advantage of this change.
4445 (resolve_dynamic_range): New function, mostly extracted from
4446 resolve_dynamic_bounds.
4447 (resolve_dynamic_array): New function, mostly extracted from
4448 resolve_dynamic_bounds.
4449 (resolve_dynamic_bounds): Delete.
4450 (resolve_dynamic_type): Reimplement. Add handling of
4451 TYPE_CODE_RANGE types.
4453 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4455 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4456 handling of parallel ___XA types.
4458 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4460 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4461 unnecessary second call to static_unwrap_type.
4463 2014-04-27 Hui Zhu <hui@codesourcery.com>
4465 * stack.c (print_frame_info): Call do_gdb_disassembly with
4466 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4468 2014-04-26 Doug Evans <xdje42@gmail.com>
4470 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4472 2014-04-25 Pedro Alves <palves@redhat.com>
4475 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4476 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4477 and newline from built string.
4478 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4479 (linux_ptrace_attach_fail_reason): ... this.
4480 * linux-nat.c (linux_nat_attach): Adjust to use
4481 linux_ptrace_attach_fail_reason.
4483 2014-04-25 Pedro Alves <palves@redhat.com>
4485 * remote.c (struct remote_state): Remove multi_process_aware,
4486 non_stop_aware, cond_tracepoints, cond_breakpoints,
4487 breakpoint_commands, fast_tracepoints, static_tracepoints,
4488 install_in_trace, disconnected_tracing,
4489 enable_disable_tracepoints, string_tracing, and
4490 augmented_libraries_svr4_read fields.
4491 (remote_multi_process_p): Move further below in the file.
4492 (struct packet_config): Add comments.
4493 (update_packet_config): Delete function.
4494 (show_packet_config_cmd): Use packet_config_support.
4495 (add_packet_config_cmd): Use NULL as set callback.
4496 (packet_ok): "set remote foo-packet"-style commands no longer
4497 change config->supported -- adjust.
4498 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4499 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4500 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4501 (PACKET_QNonStop, PACKET_multiprocess_feature)
4502 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4503 (PACKET_DisconnectedTracing_feature)
4504 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4505 (set_remote_protocol_packet_cmd): Delete function.
4506 (packet_config_support, packet_support): New functions.
4507 (set_remote_protocol_Z_packet_cmd): Don't call
4508 update_packet_config.
4509 (remote_query_attached, remote_pass_signals)
4510 (remote_program_signals, remote_threads_info)
4511 (remote_threads_extra_info, remote_start_remote): Use
4513 (remote_start_remote): Use packet_config_support and
4515 (init_all_packet_configs): Set all packets to unknown support,
4516 instead of calling update_packet_config.
4517 (remote_check_symbols): Use packet_support.
4518 (remote_supported_packet): Unconditionally set the packet config's
4520 (remote_multi_process_feature, remote_non_stop_feature)
4521 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4522 (remote_breakpoint_commands_feature)
4523 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4524 (remote_install_in_trace_feature)
4525 (remote_disconnected_tracing_feature)
4526 (remote_enable_disable_tracepoint_feature)
4527 (remote_string_tracing_feature)
4528 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4529 (remote_protocol_features): Adjust to use remote_supported_packet
4530 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4531 "ConditionalTracepoints", "ConditionalBreakpoints",
4532 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4533 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4534 "EnableDisableTracepoints", and "tracenz".
4535 (remote_query_supported): Use packet_support.
4536 (remote_open_1): Adjust.
4537 (extended_remote_attach_1): Use packet_support. Switch on the
4538 result of packet_ok instead of checking whether the packet ended
4540 (remote_vcont_resume): Use packet_support.
4541 (remote_resume, remote_stop_ns, fetch_register_using_p)
4542 (remote_prepare_to_store, store_register_using_P)
4543 (check_binary_download, remote_write_bytes): Use packet_support.
4544 (remote_vkill): Use packet_support. Switch on the result of
4545 packet_ok instead of checking whether the packet ended up
4547 (extended_remote_supports_disable_randomization): Use
4549 (extended_remote_run): Switch on the result of packet_ok instead
4550 of checking whether the packet ended up disabled.
4551 (remote_insert_breakpoint, remote_remove_breakpoint)
4552 (remote_insert_watchpoint, remote_remove_watchpoint)
4553 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4555 (remote_search_memory): Use packet_config_support.
4556 (remote_get_thread_local_address, remote_get_tib_address)
4557 (remote_hostio_send_command, remote_can_execute_reverse): Use
4559 (remote_supports_cond_tracepoints)
4560 (remote_supports_cond_breakpoints)
4561 (remote_supports_fast_tracepoints)
4562 (remote_supports_static_tracepoints)
4563 (remote_supports_install_in_trace)
4564 (remote_supports_enable_disable_tracepoint)
4565 (remote_supports_string_tracing)
4566 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4567 the packet config says the feature is enabled or disabled.
4568 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4569 (remote_get_trace_status): Use packet_support.
4570 (remote_set_disconnected_tracing): Adjust to check whether the
4571 feature is enabled with packet_support.
4572 (remote_set_trace_buffer_size, remote_use_agent)
4573 (remote_can_use_agent, remote_supports_btrace): Use
4575 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4576 Use packet_config_support.
4577 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4578 the packet config says the feature is enabled or disabled.
4579 (set_range_stepping): Use packet_support.
4581 2014-04-25 Tom Tromey <tromey@redhat.com>
4583 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4586 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4588 * NEWS: Mention support for C99 variable length arrays.
4590 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4592 * ada-lang.c (standard_exc): Expand introductory comment.
4594 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4595 Walfred Tedeschi <walfred.tedeschi@intel.com>
4597 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4599 (amd64_linux_read_description): Add code to handle AVX512 xstate
4600 mask and return respective tdesc.
4601 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4602 and features/i386/x32-avx512-linux.c.
4603 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4604 (amd64_linux_core_read_description): Add code to handle AVX512
4605 xstate mask and return respective tdesc.
4606 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4607 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4609 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4610 (tdesc_amd64_avx512_linux): New prototype.
4611 (tdesc_x32_avx512_linux): Likewise.
4612 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4613 features/i386/x32-avx512.c.
4614 (amd64_ymm_avx512_names): New register names for pseudo
4616 (amd64_ymmh_avx512_names): New register names for raw registers
4618 (amd64_k_names): New register names for K registers.
4619 (amd64_zmmh_names): New register names for ZMM raw registers.
4620 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4621 (amd64_xmm_avx512_names): New register names for XMM16-31
4623 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4625 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4626 if feature is present.
4627 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4628 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4629 (AMD64_NUM_REGS): Adjust to new number of registers.
4630 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4631 registers supplied via XSTATE by AVX512 registers.
4632 (i386_linux_read_description): Add case for AVX512.
4633 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4634 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4635 (i386_linux_core_read_description): Add case for AVX512.
4636 (i386_linux_init_abi): Install supported register note section
4638 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4640 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4641 registers to be number of zmm7h + 1.
4642 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4643 * i386-tdep.c: Include features/i386/i386-avx512.c.
4644 (i386_zmm_names): Add ZMM pseudo register names array.
4645 (i386_zmmh_names): Add ZMM raw register names array.
4646 (i386_k_names): Add K raw register names array.
4647 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4648 registers. AVX512 has 16 more ZMM registers than there are YMM
4650 (i386_zmmh_regnum_p): Add function to look up register number of
4652 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4653 (i386_k_regnum_p): Likewise for K raw registers.
4654 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4655 registers added by AVX512.
4656 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4657 registers added by AVX512.
4658 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4660 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4661 (i386_pseudo_register_name): Add ZMM pseudo registers.
4662 (i386_zmm_type): Construct and return vector registers type for ZMM
4664 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4665 ZMM0-31 pseudo registers and K registers.
4666 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4667 and YMM16-31 registers from register cache.
4668 (i386_pseudo_register_write): Add code to write K, ZMM and
4670 (i386_register_reggroup_p): Add code to include/exclude AVX512
4671 registers in/from respective register groups.
4672 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4673 registers if feature is present in xcr0.
4674 (i386_gdbarch_init): Add code to initialize AVX512 feature
4675 variables in tdep structure, wire in pseudo registers and call
4676 initialize_tdesc_i386_avx512.
4677 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4679 (i386_regnum): Add AVX512 registers.
4680 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4681 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4682 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4683 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4685 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4686 (i386_ymm_avx512_regnum_p): Likewise.
4687 (i386_k_regnum_p): Likewise.
4688 (i386_zmm_regnum_p): Likewise.
4689 (i386_zmmh_regnum_p): Likewise.
4690 * i387-tdep.c : Update year in copyright notice.
4691 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4693 (XSAVE_YMM_AVX512_ADDR): New macro.
4694 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4696 (XSAVE_XMM_AVX512_ADDR): New macro.
4697 (xsave_avx512_k_offset): New table for K register offsets in
4699 (XSAVE_AVX512_K_ADDR): New macro.
4700 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4702 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4703 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4705 (i387_collect_xsave): Add code to collect AVX512 registers from
4707 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4708 of XMM16-31 registers.
4709 (I387_NUM_K_REGS): New define for number of K registers.
4710 (I387_K0_REGNUM): New define for K0 register number.
4711 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4712 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4713 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4715 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4716 (I387_XMM16_REGNUM): New define for XMM16 register number.
4717 (I387_YMM0_REGNUM): New define for YMM0 register number.
4718 (I387_KEND_REGNUM): New define for last K register number.
4719 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4720 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4722 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4724 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4726 * features/Makefile: Add AVX512 related files.
4727 * features/i386/32bit-avx512.xml: New file.
4728 * features/i386/64bit-avx512.xml: Likewise.
4729 * features/i386/amd64-avx512-linux.c: Likewise.
4730 * features/i386/amd64-avx512-linux.xml: Likewise.
4731 * features/i386/amd64-avx512.c: Likewise.
4732 * features/i386/amd64-avx512.xml: Likewise.
4733 * features/i386/i386-avx512-linux.c: Likewise.
4734 * features/i386/i386-avx512-linux.xml: Likewise.
4735 * features/i386/i386-avx512.c: Likewise.
4736 * features/i386/i386-avx512.xml: Likewise.
4737 * features/i386/x32-avx512-linux.c: Likewise.
4738 * features/i386/x32-avx512-linux.xml: Likewise.
4739 * features/i386/x32-avx512.c: Likewise.
4740 * features/i386/x32-avx512.xml: Likewise.
4741 * regformats/i386/amd64-avx512-linux.dat: New file.
4742 * regformats/i386/amd64-avx512.dat: Likewise.
4743 * regformats/i386/i386-avx512-linux.dat: Likewise.
4744 * regformats/i386/i386-avx512.dat: Likewise.
4745 * regformats/i386/x32-avx512-linux.dat: Likewise.
4746 * regformats/i386/x32-avx512.dat: Likewise.
4747 * NEWS: Add note about new support for AVX512.
4750 2014-04-23 Pedro Alves <palves@redhat.com>
4752 * breakpoint.c (insert_bp_location): Tolerate errors if the
4753 breakpoint is set in a user-loaded objfile.
4754 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4755 location is marked shlib_disabled. If the breakpoint is set in a
4756 user-loaded objfile is a GDB-side memory breakpoint, validate it
4757 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4758 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4760 * mem-break.c (memory_validate_breakpoint): New function.
4761 * objfiles.c (userloaded_objfile_contains_address_p): New
4763 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4764 * target.h (memory_validate_breakpoint): New declaration.
4766 2014-04-23 Pedro Alves <palves@redhat.com>
4768 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4769 the breakpoint is set in a shared library, only suppress
4770 errors for software breakpoints, not hardware breakpoints.
4772 2014-04-22 Pedro Alves <palves@redhat.com>
4774 * infrun.c (schedlock_applies): New function, factored out from
4775 find_thread_needs_step_over.
4776 (find_thread_needs_step_over): Use it.
4777 (switch_back_to_stepped_thread): Always clear trap_expected if the
4778 step over is finished. Return early if scheduler locking applies.
4779 Look for the stepping thread and a potential step-over thread with
4781 (currently_stepping_or_nexting_callback): Delete.
4783 2014-04-22 Nick Clifton <nickc@redhat.com>
4785 * NEWS: Mention that ARM sim now supports tracing.
4787 2014-04-22 Yao Qi <yao@codesourcery.com>
4789 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4791 * tracefile.c (tracefile_fetch_registers): ... it. New
4793 * tracefile.h (tracefile_fetch_registers): Declare.
4794 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4795 tracefile_fetch_registers.
4797 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4800 * windows-nat.c (thread_rec): Don't display a warning when
4801 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4802 fails for any reason, set th->suspended to -1, so that we don't
4803 try to resume such a thread. Also, don't return NULL in these
4804 cases, to avoid completely ruin the session due to "PC register is
4805 not available" error.
4806 (do_windows_fetch_inferior_registers): Check errors in
4807 GetThreadContext call.
4808 (windows_continue): Accept an additional argument KILLED; if not
4809 zero, ignore errors in the SetThreadContext call, since the
4810 inferior was killed and is shutting down.
4811 (windows_resume, get_windows_debug_event)
4812 (windows_create_inferior, windows_mourn_inferior)
4813 (windows_kill_inferior): All callers of windows_continue changed
4814 to adjust to its new calling sequence.
4816 2014-04-19 Yao Qi <yao@codesourcery.com>
4818 * ctf.c (ctf_open): Call post_create_inferior.
4820 2014-04-19 Yao Qi <yao@codesourcery.com>
4822 * ctf.c (handle_id): New static variable.
4823 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4824 value. Get the declaration of event "register" and get length
4825 of field "contents".
4827 2014-04-19 Yao Qi <yao@codesourcery.com>
4829 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4831 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4833 * valops.c (oload_method_static): Remove unnecessary argument
4834 METHOD. Update all callers.
4836 2014-04-18 Pedro alves <palves@redhat.com>
4837 Tom Tromey <tromey@redhat.com>
4840 * frame.c (get_prev_frame_1): Rename to ...
4841 (get_prev_frame_always): ... this, and make extern. Adjust.
4842 (skip_artificial_frames): Use get_prev_frame_always.
4843 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4844 (get_frame_unwind_stop_reason): Adjust to rename.
4845 * frame.h (get_prev_frame_always): Declare.
4846 * inline-frame.c: Include frame.h.
4847 (inline_frame_this_id): Use get_prev_frame_always.
4849 2014-04-18 Tristan Gingold <gingold@adacore.com>
4851 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4852 code by using bfd_mach_o_get_base_address.
4854 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4856 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4857 (spu_ax_pseudo_register_collect): New function.
4858 (spu_ax_pseudo_register_push_stack): Likewise.
4859 (spu_dwarf_reg_to_regnum): Likewise.
4860 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4862 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4864 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4865 Replace FRAME argument with FRAME_ID.
4866 * gdbarch.c, gdbarch.h: Regenerate.
4867 * findvar.c (default_value_from_register): Add GDBARCH argument;
4868 replace FRAME by FRAME_ID. No longer call get_frame_id.
4869 (value_from_register): Update call to gdbarch_value_from_register.
4870 * value.h (default_value_from_register): Update prototype.
4871 * s390-linux-tdep.c (s390_value_from_register): Update interface
4872 and call to default_value_from_register.
4873 * spu-tdep.c (spu_value_from_register): Likewise.
4875 * findvar.c (address_from_register): Remove TYPE argument.
4876 Do not call value_from_register; use gdbarch_value_from_register
4877 with null_frame_id instead.
4878 * value.h (address_from_register): Update prototype.
4879 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4880 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4881 address_from_register interface change.
4883 2014-04-17 Yao Qi <yao@codesourcery.com>
4885 * gdbtypes.h: Update comments to link to types and macros'
4888 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4890 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4892 2014-04-16 Keith Seitz <keiths@redhat.com>
4895 * dwarf2read.c (skip_one_die): Check that all relative-offset
4896 sibling DIEs fall within range of the current reader's buffer.
4897 (read_partial_die): Likewise.
4899 2014-04-16 Keith Seitz <keiths@redhat.com>
4902 * cp-namespace.c (lookup_symbol_file): If the type name of
4903 `this' is NULL, return immediately.
4905 2014-04-14 Keith Seitz <keiths@redhat.com>
4908 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4909 from symbol_matches_domain in symtab.c. All local callers
4910 of symbol_matches_domain updated.
4911 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4912 search STRUCT_DOMAIN.
4913 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4914 independently. standard_lookup will do that automatically.
4915 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4916 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4917 (cp_lookup_symbol_in_namespace): Likewise.
4918 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4919 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4920 may return a STRUCT_DOMAIN match.
4921 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4922 * cp-support.c: Include language.h.
4923 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4925 * psymtab.c (match_partial_symbol): Compare the requested
4926 domain with the symbol's domain directly.
4927 (lookup_partial_symbol): Likewise.
4928 * symtab.c (lookup_symbol_in_language): Explain when/why
4929 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4930 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4931 appropriate languages.
4932 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4933 and moved to ada-lang.c
4934 (lookup_block_symbol): Explain that this function only returns
4935 symbol matching the requested DOMAIN.
4936 Compare the requested domain with the symbol's domain directly.
4937 (iterate_over_symbols): Compare the requested domain with the
4938 symbol's domain directly.
4939 * symtab.h (symbol_matches_domain): Remove.
4941 2014-04-14 Tom Tromey <tromey@redhat.com>
4944 * c-exp.y (type_aggregate_p): New function.
4945 (qualified_name, classify_inner_name): Use it.
4946 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4947 and TYPE_TARGET_TYPE of an enum type.
4948 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4950 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4951 handle TYPE_DECLARED_CLASS.
4952 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4954 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4955 * valops.c (enum_constant_from_type): New function.
4956 (value_aggregate_elt): Use it.
4957 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4960 2014-04-14 Tom Tromey <tromey@redhat.com>
4962 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4963 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4965 * value.h (value_aggregate_elt): Update.
4967 2014-04-14 Tom Tromey <tromey@redhat.com>
4969 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4973 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4974 (evaluate_subexp_standard): Pass noside argument.
4975 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4976 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4977 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4978 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4979 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4981 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4983 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4984 points to a constant blob.
4986 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4988 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4989 property and store it as the high bound and flag the range accordingly.
4990 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4991 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4992 * gdbtypes.h (enum range_flags): New enum.
4993 (struct range_bounds): Add flags member.
4995 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4997 * c-typeprint.c (c_type_print_varspec_suffix): Added
4998 check for not yet resolved high bound. If unresolved, print
4999 "variable length" string to the console instead of random
5002 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5004 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5006 (ada_template_to_fixed_record_type_1): Likewise.
5007 (ada_to_fixed_type_1): Likewise.
5008 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5009 (cp_print_value): Likewise.
5010 * d-valprint.c (dynamic_array_type): Likewise.
5011 * findvar.c (address_of_variable): Likewise.
5012 * jv-valprint.c (java_value_print): Likewise.
5013 * valops.c (value_ind): Likewise.
5014 * value.c (coerce_ref): Likewise.
5016 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5018 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5019 value and retrieve the dynamic type size.
5021 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5023 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5024 passed to sizeof is dynamic evaluate the argument to compute the length.
5026 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5027 Joel Brobecker <brobecker@adacore.com>
5029 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5030 (dwarf2_evaluate_property): New function.
5031 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5032 * dwarf2read.c (attr_to_dynamic_prop): New function.
5033 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5035 * gdbtypes.c: Include dwarf2loc.h.
5036 (is_dynamic_type): New function.
5037 (resolve_dynamic_type): New function.
5038 (resolve_dynamic_bounds): New function.
5039 (get_type_length): New function.
5040 (check_typedef): Use get_type_length to compute type length.
5041 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5042 (TYPE_LOW_BOUND_KIND): New macro.
5043 (is_dynamic_type): New function prototype.
5044 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5045 to resolve dynamic properties of the type. Update comment.
5046 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5048 2014-04-14 Richard Henderson <rth@redhat.com>
5050 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5052 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5053 Doug Evans <xdje42@gmail.com>
5055 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5056 dereference TYPE_CODE_REF values.
5058 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5060 Revert the following changes due to regressions:
5062 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5063 (dwarf2_evaluate_property): New function.
5064 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5065 * dwarf2read.c (attr_to_dynamic_prop): New function.
5066 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5068 * gdbtypes.c: Include dwarf2loc.h.
5069 (is_dynamic_type): New function.
5070 (resolve_dynamic_type): New function.
5071 (resolve_dynamic_bounds): New function.
5072 (get_type_length): New function.
5073 (check_typedef): Use get_type_length to compute type length.
5074 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5075 (TYPE_LOW_BOUND_KIND): New macro.
5076 (is_dynamic_type): New function prototype.
5077 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5078 to resolve dynamic properties of the type. Update comment.
5079 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5081 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5082 passed to sizeof is dynamic evaluate the argument to compute the length.
5084 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5085 value and retrieve the dynamic type size.
5087 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5088 (ada_template_to_fixed_record_type_1): Likewise.
5089 (ada_to_fixed_type_1): Likewise.
5090 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5091 (cp_print_value): Likewise.
5092 * d-valprint.c (dynamic_array_type): Likewise.
5093 * eval.c (evaluate_subexp_with_coercion): Likewise.
5094 * findvar.c (address_of_variable): Likewise.
5095 * jv-valprint.c (java_value_print): Likewise.
5096 * valops.c (value_ind): Likewise.
5097 * value.c (coerce_ref): Likewise.
5099 * c-typeprint.c (c_type_print_varspec_suffix): Added
5100 check for not yet resolved high bound. If unresolved, print
5101 "variable length" string to the console instead of random
5104 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5105 property and store it as the high bound and flag the range accordingly.
5106 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5107 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5108 * gdbtypes.h (enum range_flags): New enum.
5109 (struct range_bounds): Add flags member.
5111 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5112 points to a constant blob.
5114 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5115 (evaluate_subexp_standard): Pass noside argument.
5116 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5117 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5118 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5119 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5120 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5122 2014-04-11 Keith Seitz <keiths@redhat.com>
5125 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5126 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5131 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5132 (evaluate_subexp_standard): Pass noside argument.
5133 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5134 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5135 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5136 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5137 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5139 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5141 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5142 points to a constant blob.
5144 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5146 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5147 property and store it as the high bound and flag the range accordingly.
5148 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5149 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5150 * gdbtypes.h (enum range_flags): New enum.
5151 (struct range_bounds): Add flags member.
5153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5155 * c-typeprint.c (c_type_print_varspec_suffix): Added
5156 check for not yet resolved high bound. If unresolved, print
5157 "variable length" string to the console instead of random
5160 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5162 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5163 (ada_template_to_fixed_record_type_1): Likewise.
5164 (ada_to_fixed_type_1): Likewise.
5165 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5166 (cp_print_value): Likewise.
5167 * d-valprint.c (dynamic_array_type): Likewise.
5168 * eval.c (evaluate_subexp_with_coercion): Likewise.
5169 * findvar.c (address_of_variable): Likewise.
5170 * jv-valprint.c (java_value_print): Likewise.
5171 * valops.c (value_ind): Likewise.
5172 * value.c (coerce_ref): Likewise.
5174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5176 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5177 value and retrieve the dynamic type size.
5179 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5181 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5182 passed to sizeof is dynamic evaluate the argument to compute the length.
5184 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5186 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5187 (dwarf2_evaluate_property): New function.
5188 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5189 * dwarf2read.c (attr_to_dynamic_prop): New function.
5190 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5192 * gdbtypes.c: Include dwarf2loc.h.
5193 (is_dynamic_type): New function.
5194 (resolve_dynamic_type): New function.
5195 (resolve_dynamic_bounds): New function.
5196 (get_type_length): New function.
5197 (check_typedef): Use get_type_length to compute type length.
5198 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5199 (TYPE_LOW_BOUND_KIND): New macro.
5200 (is_dynamic_type): New function prototype.
5201 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5202 to resolve dynamic properties of the type. Update comment.
5203 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5205 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5207 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5208 declaring high/low bounds and change uses accordingly. Call
5209 create_range_type instead of create_static_range_type.
5210 * gdbtypes.c (create_range_type): New function.
5211 (create_range_type): Convert bounds into struct bound_prop and pass
5212 them to create_range_type.
5213 * gdbtypes.h (struct bound_prop): New struct.
5214 (create_range_type): New function prototype.
5215 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5216 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5217 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5219 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5221 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5223 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5224 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5225 * ada-lang.c: All uses of create_range_type updated.
5226 * coffread.c: All uses of create_range_type updated.
5227 * dwarf2read.c: All uses of create_range_type updated.
5228 * f-exp.y: All uses of create_range_type updated.
5229 * m2-valprint.c: All uses of create_range_type updated.
5230 * mdebugread.c: All uses of create_range_type updated.
5231 * stabsread.c: All uses of create_range_type updated.
5232 * valops.c: All uses of create_range_type updated.
5233 * valprint.c: All uses of create_range_type updated.
5235 2014-04-10 Pedro Alves <palves@redhat.com>
5237 * breakpoint.c (single_step_breakpoints)
5238 (single_step_gdbarch): Move up in the file.
5239 (one_breakpoint_xfer_memory): New function, factored out from ...
5240 (breakpoint_xfer_memory): ... here. Also process single-step
5243 2014-04-09 Tristan Gingold <gingold@adacore.com>
5245 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5247 (darwin_decode_exception_message): Free port only after use.
5249 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5251 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5252 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5253 when setting the size of call_length.
5255 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5257 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5258 dereference TYPE_CODE_REF values.
5260 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5262 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5263 end of warning message.
5265 2014-04-03 Doug Evans <dje@google.com>
5267 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5268 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5270 2014-04-02 Alan Modra <amodra@gmail.com>
5272 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5273 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5274 (struct symbol_file_add_from_memory_args): Add size field.
5275 (find_vdso_size): New function.
5276 (add_vsyscall_page): Attempt to find vdso size.
5278 2014-04-01 Doug Evans <dje@google.com>
5280 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5282 2014-04-01 Tristan Gingold <gingold@adacore.com>
5284 * darwin-nat.c (darwin_encode_reply): Add prototype.
5285 (darwin_decode_exception_message): Reply to unknown inferiors.
5286 (darwin_decode_message): Handle message by id. Ignore message
5287 to unknown inferior.
5288 (darwin_wait): Discard unknown messages, add debug trace.
5290 2014-03-31 Doug Evans <dje@google.com>
5292 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5295 2014-03-31 Doug Evans <dje@google.com>
5297 New option "set print symbol-loading".
5299 * solib.c (solib_read_symbols): Only print symbol loading messages
5301 (solib_add): If symbol loading is in "brief" mode, notify user
5302 symbols are being loaded.
5303 (reload_shared_libraries_1): Ditto.
5304 * symfile.c (print_symbol_loading_off): New static global.
5305 (print_symbol_loading_brief): New static global.
5306 (print_symbol_loading_full): New static global.
5307 (print_symbol_loading_enums): New static global.
5308 (print_symbol_loading): New static global.
5309 (print_symbol_loading_p): New function.
5310 (symbol_file_add_with_addrs): Only print symbol loading messages
5312 (_initialize_symfile): Register "print symbol-loading" set/show
5314 * symfile.h (print_symbol_loading_p): Declare.
5316 2014-03-30 Doug Evans <xdje42@gmail.com>
5318 * infrun.c (set_last_target_status): New function.
5319 (handle_inferior_event): Call it.
5321 2014-03-30 Doug Evans <xdje42@gmail.com>
5323 * inferior.h (enum stop_kind): Improve comment.
5325 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5327 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5328 a reference, strip the reference layer before calling
5329 the lang_ops value_has_mutated callback.
5331 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5333 Remove some globals from our parser.
5334 * language.c (unk_lang_parser): Add "struct parser_state"
5336 * language.h (struct language_defn) <la_parser>: Likewise.
5337 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5338 (initialize_expout): Add "struct parser_state" argument.
5339 Rewrite function to use the parser state.
5340 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5341 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5342 write_exp_elt_longcst, write_exp_elt_dblcst,
5343 write_exp_elt_decfloatcst, write_exp_elt_type,
5344 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5345 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5346 write_dollar_variable): Likewise.
5347 (parse_exp_in_context_1): Use parser state.
5348 (insert_type_address_space): Add "struct parser_state" argument.
5350 (increase_expout_size): New function.
5351 * parser-defs.h: Forward declare "struct language_defn" and
5352 "struct parser_state".
5353 (expout, expout_size, expout_ptr): Remove extern declarations.
5354 (parse_gdbarch, parse_language): Rewrite macro declarations to
5355 accept the parser state.
5356 (struct parser_state): New struct.
5357 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5358 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5359 write_exp_elt_decfloatcst, write_exp_elt_type,
5360 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5361 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5362 write_exp_msymbol, write_dollar_variable,
5363 mark_struct_expression, insert_type_address_space): Add "struct
5364 parser_state" argument.
5365 (increase_expout_size): New function.
5366 * utils.c (do_clear_parser_state): New function.
5367 (make_cleanup_clear_parser_state): Likewise.
5368 * utils.h (make_cleanup_clear_parser_state): New function
5370 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5371 Update calls to write_exp* in order to pass the parser state.
5372 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5373 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5374 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5375 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5376 * stap-probe.c (stap_parse_register_operand): Likewise.
5377 (stap_parse_single_operand): Likewise.
5378 (stap_parse_argument_1): Likewise.
5379 (stap_parse_argument): Use parser state.
5380 * stap-probe.h: Include "parser-defs.h".
5381 (struct stap_parse_info) <pstate>: New field.
5382 * c-exp.y (parse_type): Rewrite to use parser state.
5383 (yyparse): Redefine to c_parse_internal.
5384 (pstate): New global variable.
5385 (parse_number): Add "struct parser_state" argument.
5386 (write_destructor_name): Likewise.
5387 (type_exp): Update calls to write_exp* and similars in order to
5389 (exp1, exp, variable, qualified_name, space_identifier,
5390 typename, typebase): Likewise.
5391 (write_destructor_name, parse_number, lex_one_token,
5392 classify_name, classify_inner_name, c_parse): Add "struct
5393 parser_state" argument. Update function to use parser state.
5394 * c-lang.h: Forward declare "struct parser_state".
5395 (c_parse): Add "struct parser_state" argument.
5396 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5397 (yyparse): Redefine macro to ada_parse_internal.
5398 (pstate): New variable.
5399 (write_int, write_object_renaming, write_var_or_type,
5400 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5401 type_int, type_long, type_long_long, type_float, type_double,
5402 type_long_double, type_char, type_boolean, type_system_address):
5403 Add "struct parser_state" argument.
5404 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5405 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5406 var_or_type, aggregate, aggregate_component_list,
5407 positional_list, others, component_group,
5408 component_associations): Update calls to write_exp* and similar
5409 functions in order to use parser state.
5410 (ada_parse, write_var_from_sym, write_int,
5411 write_exp_op_with_string, write_object_renaming,
5412 find_primitive_type, write_selectors, write_ambiguous_var,
5413 write_var_or_type, write_name_assoc, type_int, type_long,
5414 type_long_long, type_float, type_double, type_long_double,
5415 type_char, type_boolean, type_system_address): Add "struct
5416 parser_state" argument. Adjust function to use parser state.
5417 * ada-lang.c (parse): Likewise.
5418 * ada-lang.h: Forward declare "struct parser_state".
5419 (ada_parse): Add "struct parser_state" argument.
5420 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5421 calls to both functions.
5422 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5424 (yyparse): Redefine macro to f_parse_internal.
5425 (pstate): New variable.
5426 (parse_number): Add "struct parser_state" argument.
5427 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5428 and similars in order to use parser state.
5429 (parse_number): Adjust code to use parser state.
5431 (f_parse): New function.
5432 * f-lang.h: Forward declare "struct parser_state".
5433 (f_parse): Add "struct parser_state" argument.
5434 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5436 (yyparse): Redefine macro for java_parse_internal.
5437 (pstate): New variable.
5438 (push_expression_name, push_expression_name, insert_exp): Add
5439 "struct parser_state" argument.
5440 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5441 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5442 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5443 PostIncrementExpression, PostDecrementExpression,
5444 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5445 UnaryExpressionNotPlusMinus, CastExpression,
5446 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5447 RelationalExpression, EqualityExpression, AndExpression,
5448 ExclusiveOrExpression, InclusiveOrExpression,
5449 ConditionalAndExpression, ConditionalOrExpression,
5450 ConditionalExpression, Assignment, LeftHandSide): Update
5451 calls to write_exp* and similars in order to use parser state.
5452 (parse_number): Ajust code to use parser state.
5454 (java_parse): New function.
5455 (push_variable): Add "struct parser_state" argument. Adjust
5456 code to user parser state.
5457 (push_fieldnames, push_qualified_expression_name,
5458 push_expression_name, insert_exp): Likewise.
5459 * jv-lang.h: Forward declare "struct parser_state".
5460 (java_parse): Add "struct parser_state" argument.
5461 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5463 (yyparse): Redefine macro to m2_parse_internal.
5464 (pstate): New variable.
5465 (type_exp, exp, fblock, variable, type): Update calls to
5466 write_exp* and similars to use parser state.
5468 (m2_parse): New function.
5469 * m2-lang.h: Forward declare "struct parser_state".
5470 (m2_parse): Add "struct parser_state" argument.
5471 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5472 * objc-lang.h: Forward declare "struct parser_state".
5473 (end_msglist): Add "struct parser_state" argument.
5474 * p-exp.y (parse_type): Rewrite macro to use parser state.
5475 (yyparse): Redefine macro to pascal_parse_internal.
5476 (pstate): New variable.
5477 (parse_number): Add "struct parser_state" argument.
5478 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5479 write_exp* and similars in order to use parser state.
5480 (parse_number, yylex): Adjust code to use parser state.
5481 (pascal_parse): New function.
5482 * p-lang.h: Forward declare "struct parser_state".
5483 (pascal_parse): Add "struct parser_state" argument.
5484 * go-exp.y (parse_type): Rewrite macro to use parser state.
5485 (yyparse): Redefine macro to go_parse_internal.
5486 (pstate): New variable.
5487 (parse_number): Add "struct parser_state" argument.
5488 (type_exp, exp1, exp, variable, type): Update calls to
5489 write_exp* and similars in order to use parser state.
5490 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5491 to use parser state.
5492 (go_parse): Likewise.
5493 * go-lang.h: Forward declare "struct parser_state".
5494 (go_parse): Add "struct parser_state" argument.
5496 2014-03-27 Doug Evans <dje@google.com>
5498 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5500 2014-03-27 Doug Evans <dje@google.com>
5502 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5503 Remove argument abbrev_section. All callers updated.
5505 2014-03-27 Doug Evans <dje@google.com>
5507 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5508 addr_base, ranges_base.
5510 2014-03-26 Keith Seitz <keiths@redhat.com>
5512 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5513 types, not VAR_DOMAIN.
5515 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5517 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5519 * features/nios2-linux.c: Regenerated.
5520 * features/nios2.c: Regenerated.
5522 2014-03-25 Pedro Alves <palves@redhat.com>
5524 * cli/cli-script.c (script_from_file): Force the interpreter to
5527 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5529 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5530 small stack allocation.
5532 2014-03-24 Tristan Gingold <gingold@adacore.com>
5534 * darwin-nat.c (exc_server): Remove unused prototype.
5535 (darwin_dump_message): Correctly display data on x86_64.
5536 (darwin_encode_reply): Fix style.
5537 Add comments and fix indentation.
5539 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5541 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5543 2014-03-22 Doug Evans <xdje42@gmail.com>
5545 * infcmd.c: Whitespace fixes.
5546 (interrupt_command): Merge two function comments into one.
5548 2014-03-22 Doug Evans <xdje42@gmail.com>
5550 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5553 2014-03-22 Yao Qi <yao@codesourcery.com>
5555 * remote.c (target_read_live_memory): Remove.
5556 (memory_xfer_live_readonly_partial): Rename it to
5557 remote_xfer_live_readonly_partial. Remove argument 'object'.
5558 All callers updated. Call remote_read_bytes_1
5559 instead of target_read_live_memory.
5560 * tracepoint.c (set_traceframe_number): Remove.
5561 (make_cleanup_restore_traceframe_number): Likewise .
5562 * tracepoint.h (set_traceframe_number): Remove declaration.
5563 (make_cleanup_restore_traceframe_number): Likewise.
5565 2014-03-22 Yao Qi <yao@codesourcery.com>
5567 * remote.c (remote_read_bytes): Move code on reading from the
5569 (remote_read_bytes_1): ... here. New function.
5571 2014-03-22 Yao Qi <yao@codesourcery.com>
5573 * ctf.c (ctf_xfer_partial): Check the return value of
5574 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5575 return TARGET_XFER_UNAVAILABLE.
5576 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5577 * target.c (target_read_live_memory): Move it to remote.c.
5578 (memory_xfer_live_readonly_partial): Likewise.
5579 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5580 * remote.c (target_read_live_memory): Moved from target.c.
5581 (memory_xfer_live_readonly_partial): Likewise.
5582 (remote_read_bytes): Factored out from
5583 memory_xfer_partial_1.
5585 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5587 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5590 2014-03-21 Pedro Alves <palves@redhat.com>
5592 * infrun.c (normal_stop): Extend comment.
5594 2014-03-21 Hui Zhu <hui@codesourcery.com>
5595 Pedro Alves <palves@redhat.com>
5597 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5599 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5600 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5601 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5603 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5605 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5606 `z' formatted output modifier.
5608 2014-03-20 Tom Tromey <tromey@redhat.com>
5609 Sergio Durigan Junior <sergiodj@redhat.com>
5611 * probe.c (parse_probes): Turn assert into an ordinary error.
5612 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5613 exceptions when parsing probes. Rearrange the code for clarity.
5615 2014-03-20 Tom Tromey <tromey@redhat.com>
5618 * top.c (execute_command): Only dispatch events if the command
5621 2014-03-20 Tom Tromey <tromey@redhat.com>
5624 * infcall.c: Include event-top.h.
5625 (run_inferior_call): Call async_disable_stdin if needed.
5627 2014-03-20 Pedro Alves <palves@redhat.com>
5629 * infrun.c (prepare_to_proceed): Delete.
5630 (thread_still_needs_step_over): New function.
5631 (find_thread_needs_step_over): New function.
5632 (proceed): If the current thread needs a step-over, set its
5633 steping_over_breakpoint flag. Adjust to use
5634 find_thread_needs_step_over instead of prepare_to_proceed.
5635 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5636 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5638 (switch_back_to_stepped_thread): Step over breakpoints of all
5639 threads not the stepping thread, before switching back to the
5642 2014-03-20 Pedro Alves <palves@redhat.com>
5644 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5646 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5647 * infrun.c (saved_singlestep_ptid)
5648 (stepping_past_singlestep_breakpoint): Delete.
5649 (resume): Remove stepping_past_singlestep_breakpoint handling.
5650 (proceed): Store the prev_pc of the stepping thread too.
5651 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5653 (enum infwait_states): Delete infwait_thread_hop_state.
5654 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5656 (handle_inferior_event): Adjust.
5657 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5658 handling and the thread-hop code. Before removing single-step
5659 breakpoints, check whether the thread hit a single-step breakpoint
5660 of another thread. If it did, the trap is not a random signal.
5661 (switch_back_to_stepped_thread): If the event thread hit a
5662 single-step breakpoint, unblock it before switching to the
5663 stepping thread. Handle the case of the stepped thread having
5665 (keep_going): Handle the case of the current thread moving past a
5666 single-step breakpoint.
5668 2014-03-20 Pedro Alves <palves@redhat.com>
5671 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5672 are being stepped over.
5673 (breakpoint_address_match): Make extern.
5674 * breakpoint.h (breakpoint_address_match): New declaration.
5675 * inferior.h (stepping_past_instruction_at): New declaration.
5676 * infrun.c (struct step_over_info): New type.
5677 (step_over_info): New global.
5678 (set_step_over_info, clear_step_over_info)
5679 (stepping_past_instruction_at): New functions.
5680 (handle_inferior_event): Clear the step-over info when
5681 trap_expected is cleared.
5682 (resume): Remove now stale comment.
5683 (clear_proceed_status): Clear step-over info.
5684 (proceed): Adjust step-over handling to set or clear the step-over
5685 info instead of removing all breakpoints.
5686 (handle_signal_stop): When setting up a thread-hop, don't remove
5688 (stop_stepping): Clear step-over info.
5689 (keep_going): Adjust step-over handling to set or clear step-over
5690 info and then always inserting breakpoints, instead of removing
5691 all breakpoints when stepping over one.
5693 2014-03-20 Pedro Alves <palves@redhat.com>
5695 * infrun.c (previous_inferior_ptid): Adjust comment.
5696 (deferred_step_ptid): Delete.
5697 (infrun_thread_ptid_changed, prepare_to_proceed)
5698 (init_wait_for_inferior): Adjust.
5699 (handle_signal_stop): Delete deferred_step_ptid handling.
5701 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5704 * defs.h (sync_quit_force_run): New declaration.
5705 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5706 * event-top.c (async_sigterm_handler): New declaration.
5707 (async_sigterm_token): New variable.
5708 (async_init_signals): Create also async_sigterm_token.
5709 (async_sigterm_handler): New function.
5710 (sync_quit_force_run): New variable.
5711 (handle_sigterm): Replace quit_force call by other calls.
5712 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5714 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5716 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5717 offset into SPE pseudo registers.
5719 2014-03-18 Pedro Alves <palves@redhat.com>
5722 * inferior.h (print_stop_event): Declare.
5723 * infrun.c (print_stop_event): New, factored out from ...
5724 (normal_stop): ... this.
5725 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5726 of bpstat_print/print_stack_frame.
5728 2014-03-17 Tom Tromey <tromey@redhat.com>
5730 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5732 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5734 * ada-lang.c (decode_constrained_packed_array): Perform a
5735 minimal coercion for reference with coerce_ref instead of
5738 2014-03-17 Tristan Gingold <gingold@adacore.com>
5740 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5741 (darwin_solib_create_inferior_hook): Emit a warning if version
5744 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5746 * python/py-value.c (get_field_flag): Cast flag_name argument to
5747 PyObject_GetAttrString to support Python 2.4.
5749 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5751 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5752 (Global Maintainers): Remove Jan Kratochvil.
5754 2014-03-14 Pedro Alves <palves@redhat.com>
5756 * inferior.h (terminal_ours_for_output): Rename to ...
5757 (child_terminal_ours_for_output): ... this.
5758 (terminal_save_ours): Rename to ...
5759 (child_terminal_save_ours): ... this.
5760 (terminal_ours): Rename to ...
5761 (child_terminal_ours): ... this.
5762 (terminal_inferior): Rename to ...
5763 (child_terminal_inferior): ... this.
5764 (terminal_init_inferior): Rename to ...
5765 (child_terminal_init_inferior): ... this.
5766 (terminal_init_inferior_with_pgrp): Rename to ...
5767 (child_terminal_init_inferior_with_pgrp): ... this.
5768 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5769 (child_terminal_init_with_pgrp): ... this.
5770 (terminal_save_ours): Rename to ...
5771 (child_terminal_save_ours): ... this.
5772 (terminal_init_inferior): Rename to ...
5773 (child_terminal_init): ... this. Adjust.
5774 (terminal_inferior): Rename to ...
5775 (child_terminal_inferior): ... this.
5776 (terminal_ours_for_output): Rename to ...
5777 (child_terminal_ours_for_output): ... this. Adjust.
5778 (terminal_ours): Rename to ...
5779 (child_terminal_ours): ... this.
5780 (terminal_ours_1): Rename to ...
5781 (child_terminal_ours_1): ... this. Adjust.
5782 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5783 * windows-nat.c (do_initial_windows_stuff): Adjust.
5784 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5785 (gnu_terminal_init): ... this. Adjust.
5786 (gnu_target): Adjust.
5787 * inf-child.c (inf_child_target): Adjust.
5789 2014-03-13 Doug Evans <xdje42@gmail.com>
5792 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5795 2014-03-13 Doug Evans <xdje42@gmail.com>
5797 * value.c (record_latest_value): Call release_value_or_incref
5798 instead of release_value.
5800 2014-03-13 Pedro Alves <palves@redhat.com>
5802 * procfs.c (procfs_target): Don't override to_shortname,
5803 to_longname or to_doc.
5805 2014-03-13 Pedro Alves <palves@redhat.com>
5807 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5808 Unix in user visible strings.
5810 2014-03-12 Stan Shebs <stan@codesourcery.com>
5812 * gdbtypes.h: Annotate comments for Doxygen, add a page
5813 block comment with some general info.
5815 2014-03-12 Pedro Alves <palves@redhat.com>
5817 * infcmd.c (prepare_execution_command): New function, factored out
5818 from several execution commands.
5819 (run_command_1, continue_command, step_1, jump_command)
5820 (signal_command, until_command, advance_command, finish_command)
5821 (attach_command): Use prepare_execution_command.
5823 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5825 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5828 (struct arm_linux_thread_points): Removed.
5829 (struct arm_linux_process_info): New.
5830 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5831 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5832 (arm_linux_find_breakpoints_by_tid): Removed.
5833 (struct arch_lwp_info): New.
5834 (arm_linux_find_process_pid): New functions.
5835 (arm_linux_add_process): New functions.
5836 (arm_linux_process_info_get): New functions.
5837 (arm_linux_forget_process): New function.
5838 (arm_linux_get_debug_reg_state): New function.
5839 (struct update_registers_data): New.
5840 (update_registers_callback): New function.
5841 (arm_linux_insert_hw_breakpoint1): Updated.
5842 (arm_linux_remove_hw_breakpoint1): Updated.
5843 (arm_linux_insert_hw_breakpoint): Updated.
5844 (arm_linux_remove_hw_breakpoint): Updated.
5845 (arm_linux_insert_watchpoint): Updated.
5846 (arm_linux_remove_watchpoint): Updated.
5847 (arm_linux_new_thread): Updated.
5848 (arm_linux_prepare_to_resume): New function.
5849 (arm_linux_new_fork): New function.
5850 (_initialize_arm_linux_nat): Updated.
5852 2014-03-12 Pedro Alves <palves@redhat.com>
5854 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5856 2014-03-12 Tom Tromey <tromey@redhat.com>
5858 * inf-child.c (return_zero): New function.
5859 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5860 * aix-thread.c (aix_thread_inferior_created): New function.
5861 (aix_thread_attach): Remove.
5862 (init_aix_thread_ops): Don't set to_attach.
5863 (_initialize_aix_thread): Register inferior_created observer.
5864 * corelow.c (init_core_ops): Don't set to_attach or
5866 * exec.c (init_exec_ops): Don't set to_attach or
5868 * infcmd.c (run_command_1): Use find_run_target. Make direct
5870 (attach_command): Use find_attach_target. Make direct target
5872 * record-btrace.c (init_record_btrace_ops): Don't set
5874 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5876 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5877 set to_create_inferior.
5878 * target.c (complete_target_initialization): Add assertion.
5879 (target_create_inferior): Remove.
5880 (find_default_attach, find_default_create_inferior): Remove.
5881 (find_attach_target, find_run_target): New functions.
5882 (find_default_is_async_p, find_default_can_async_p)
5883 (target_supports_non_stop, target_attach): Remove.
5884 (init_dummy_target): Don't set to_create_inferior or
5885 to_supports_non_stop.
5886 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5887 TARGET_DEFAULT_FUNC.
5888 <to_create_inferior>: Add comment.
5889 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5890 TARGET_DEFAULT_RETURN.
5891 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5892 (find_attach_target, find_run_target): Declare.
5893 (target_create_inferior): Remove.
5894 (target_has_execution_1): Update comment.
5895 (target_supports_non_stop): Remove.
5896 * target-delegates.c: Rebuild.
5898 2014-03-12 Pedro Alves <palves@redhat.com>
5900 * inf-child.h: Update comment to not mention Unix.
5902 2014-03-12 Pedro Alves <palves@redhat.com>
5904 * inf-child.c: Update top comment to not mention Unix. Add
5905 generic comment describing how this target is meant to be used.
5906 (inf_child_post_attach, inf_child_post_startup_inferior)
5907 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5910 2014-03-12 Pedro Alves <palves@redhat.com>
5912 * nto-procfs.c: Include inf-child.h.
5913 (procfs_ops): Delete global.
5914 (procfs_can_run): Delete method.
5915 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5916 target pointer instead of referencing procfs_ops.
5917 (procfs_prepare_to_store): Delete.
5918 (init_procfs_ops): Delete function.
5919 (procfs_target): New function, based on init_procfs_ops, but
5920 inherit inf_child_target.
5921 (_initialize_procfs): Use procfs_target.
5923 2014-03-12 Pedro Alves <palves@redhat.com>
5925 * windows-nat.c: Include inf-child.h.
5926 (windows_ops): Delete global.
5927 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5929 (init_windows_ops): Delete function.
5930 (windows_target): New function, based on init_windows_ops, but
5931 inherit inf_child_target.
5932 (_initialize_windows_nat): Use windows_target. Install x86
5933 specific target methods here.
5935 2014-03-10 Doug Evans <xdje42@gmail.com>
5937 * guile/guile.c (call_initialize_gdb_module): New function.
5938 (initialize_guile): Replace call to scm_init_guile with call to
5941 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5943 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5944 in call to TYPE_CODE macro.
5946 2014-03-10 Jerome Guitton <guitton@adacore.com>
5948 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5949 Resolve tagged types to full view.
5951 2014-03-10 Hui Zhu <hui@codesourcery.com>
5953 * target.h (target_insert_breakpoint): Remove "hardware" from its
5956 2014-03-07 Doug Evans <dje@google.com>
5958 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5960 2014-03-07 Doug Evans <dje@google.com>
5962 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5963 Remove unused local comp_dir_attr. Assert exactly one of
5964 stub_comp_unit_die, stub_comp_dir is non-NULL.
5966 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5968 * target.h (complete_target_initialization, add_target):
5971 2014-03-07 Pedro Alves <palves@redhat.com>
5973 * go32-nat.c: Include inf-child.h.
5974 (go32_ops): Delete global.
5975 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5977 (go32_create_inferior): Push the passed in target pointer instead
5978 of referencing go32_ops.
5979 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5980 (go32_target): New function, based on init_go32_ops, but inherit
5982 (_initialize_go32_nat): Use go32_target. Move parts of
5985 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5987 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5988 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5989 SYMBOL_VALUE_ADDRESS.
5990 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5992 2014-03-06 Yao Qi <yao@codesourcery.com>
5994 * breakpoint.c (get_tracepoint_by_number): Remove argument
5995 optional_p. All callers updated. Adjust comments. Update
5997 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5999 2014-03-06 Yao Qi <yao@codesourcery.com>
6001 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6002 early if get_number returns zero. Use 'p' instead of 'args'.
6004 2014-03-06 Yao Qi <yao@codesourcery.com>
6006 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6009 2014-03-06 Yao Qi <yao@codesourcery.com>
6011 PR breakpoints/16508
6012 * tracepoint.c (check_trace_running): New function.
6013 (trace_find_command): Move code to check_trace_running and
6014 call check_trace_running.
6015 (trace_find_pc_command): Likewise.
6016 (trace_find_tracepoint_command): Likewise.
6017 (trace_find_line_command): Likewise.
6018 (trace_find_range_command): Likewise.
6019 * tracepoint.h (check_trace_running): Likewise.
6020 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6022 2014-03-06 Yao Qi <yao@codesourcery.com>
6024 * target.h (struct target_ops) <to_traceframe_info>: Use
6025 TARGET_DEFAULT_NORETURN (tcomplain ()).
6026 * target-delegates.c: Regenerated.
6028 2014-03-05 Pedro Alves <palves@redhat.com>
6031 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6032 void. Update comment.
6033 (dcache_xfer_memory): Delete.
6034 (dcache_read_memory_partial): New, based on the read bits of
6036 (dcache_update): Add status parameter. Use ULONGEST for len, and
6037 adjust. Discard cache lines if the reason for the update was
6039 * dcache.h (dcache_xfer_memory): Delete declaration.
6040 (dcache_read_memory_partial): New declaration.
6041 (dcache_update): Update prototype.
6042 * target.c (raw_memory_xfer_partial): Update the dcache here.
6043 (memory_xfer_partial_1): Don't handle dcache writes here.
6045 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6047 * remote-sim.c (gdbsim_load): Add const to prog.
6049 2014-03-03 Tom Tromey <tromey@redhat.com>
6051 * elfread.c (probe_key): Change to bfd_data.
6052 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6053 now per-BFD, not per-objfile.
6054 * stap-probe.c (stap_probe_destroy): Update comment.
6055 (handle_stap_probe): Allocate on the per-BFD obstack.
6057 2014-03-03 Tom Tromey <tromey@redhat.com>
6059 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6060 * breakpoint.c (create_longjmp_master_breakpoint): Use
6062 (add_location_to_breakpoint, bkpt_probe_insert_location)
6063 (bkpt_probe_remove_location): Update.
6064 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6065 * elfread.c (elf_symfile_relocate_probe): Remove.
6066 (elf_probe_fns): Update.
6067 (insert_exception_resume_breakpoint): Change type of "probe"
6068 parameter to bound_probe.
6069 (check_exception_resume): Update.
6070 * objfiles.c (objfile_relocate1): Don't relocate probes.
6071 * probe.c (bound_probe_s): New typedef.
6072 (parse_probes): Use get_probe_address. Set sal's objfile.
6073 (find_probe_by_pc): Return a bound_probe.
6074 (collect_probes): Return a VEC(bound_probe_s).
6075 (compare_probes): Update.
6076 (gen_ui_out_table_header_info): Change type of "probes"
6078 (info_probes_for_ops): Update.
6079 (get_probe_address): New function.
6080 (probe_safe_evaluate_at_pc): Update.
6081 * probe.h (struct probe_ops) <get_probe_address>: New field.
6082 <set_semaphore, clear_semaphore>: Add objfile parameter.
6083 (struct probe) <objfile>: Remove field.
6085 <address>: Update comment.
6086 (struct bound_probe): New.
6087 (find_probe_by_pc): Return a bound_probe.
6088 (get_probe_address): Declare.
6089 * solib-svr4.c (struct probe_and_action) <address>: New field.
6090 (hash_probe_and_action, equal_probe_and_action): Update.
6091 (register_solib_event_probe): Add address parameter.
6092 (solib_event_probe_at): Update.
6093 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6095 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6096 (stap_get_probe_address): New function.
6097 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6098 (compile_probe_arg): Update.
6099 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6101 (handle_stap_probe): Don't relocate the probe.
6102 (stap_relocate): Remove.
6103 (stap_gen_info_probes_table_values): Update.
6104 (stap_probe_ops): Remove stap_relocate.
6105 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6106 (debug_sym_probe_fns): Update.
6107 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6108 * symtab.c (init_sal): Use memset.
6109 * symtab.h (struct symtab_and_line) <objfile>: New field.
6110 * tracepoint.c (start_tracing, stop_tracing): Update.
6112 2014-03-03 Tom Tromey <tromey@redhat.com>
6114 * probe.h (parse_probes, find_probe_by_pc)
6115 (find_probes_in_objfile): Fix comments.
6117 2014-03-02 Doug Evans <xdje42@gmail.com>
6119 * infrun.c (handle_signal_stop): Replace test for
6120 TARGET_WAITKIND_STOPPED with an assert.
6122 2014-03-02 Doug Evans <xdje42@gmail.com>
6124 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6126 2014-03-02 Doug Evans <xdje42@gmail.com>
6128 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6130 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6132 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6134 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6136 * i386obsd-nat.c: Include "obsd-nat.h".
6137 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6139 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6141 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6143 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6145 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6147 * mips64obsd-nat.c: Include "obsd-nath".
6148 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6150 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6152 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6154 * amd64obsd-nat.c: Include "obsd-nat,h.
6155 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6157 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6159 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6161 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6162 (find_overload_match): Update call to find_oload_champ.
6163 (find_oload_champ_namespace_loop): Likewise
6165 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6167 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6169 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6170 * config/sparc/obsd64.mh: New file.
6171 * sparc64obsd-nat.c: New file.
6173 * obsd-nat.h: New file.
6174 * obsd-nat.c: New file.
6175 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6176 (ALLDEPFILES): Add obsd-nat.c.
6178 2014-02-28 Tom Tromey <tromey@redhat.com>
6180 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6181 * cli-out.h (cli_ui_out_impl): Now const.
6182 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6183 * ui-out.c (struct ui_out) <impl>: Now const.
6184 (default_ui_out_impl): Now const.
6185 (ui_out_new): Make 'impl' parameter const.
6186 * ui-out.h (ui_out_new): Update.
6188 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6190 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6192 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6194 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6196 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6198 Additional PR 8882 fix.
6199 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6201 2014-02-27 Pedro Alves <palves@redhat.com>
6203 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6206 2014-02-27 Pedro Alves <palves@redhat.com>
6209 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6210 * nat/linux-waitpid.c: Include string.h.
6211 (status_to_str): Moved here and made extern.
6212 * nat/linux-waitpid.h (status_to_str): New declaration.
6214 2014-02-27 Hui Zhu <hui@codesourcery.com>
6217 * infrun.c (ptid_match): Move ...
6218 * common/ptid.c (ptid_match): ... here.
6219 * inferior.h (ptid_match): Move ...
6220 * common/ptid.h (ptid_match): ... here.
6222 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6224 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6225 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6228 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6230 * obsd-tdep.c (obsd_auxv_parse): New function.
6231 (obsd_init_abi): Set auxv_parse.
6233 * gdbarch.sh (auxv_parse): New.
6234 * gdbarch.h: Regenerated.
6235 * gdbarch.c: Regenerated.
6236 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6238 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6240 * guile/scm-value.c (gdbscm_history_append_x): New function.
6241 (value_functions): Add it.
6243 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6245 * dwarf2read.c (attr_value_as_address): New function.
6246 (dwarf2_find_base_address, read_call_site_scope): Use
6247 attr_value_as_address in place of DW_ADDR.
6248 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6249 the low and high addresses. Slight rework of the handling
6250 of the high pc being a constant form, and limit it to
6251 DWARF verson 4 or higher.
6252 (dwarf2_record_block_ranges): Likewise.
6253 (read_partial_die): Likewise.
6254 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6256 2014-02-26 Tom Tromey <tromey@redhat.com>
6258 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6260 2014-02-26 Tom Tromey <tromey@redhat.com>
6262 * elfread.c (elf_read_minimal_symbols): Return early if
6263 minimal symbols have already been read. Add "ei" parameter.
6264 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6265 * minsyms.c (prim_record_minimal_symbol_full): Update.
6266 * objfiles.h (struct objstats) <n_minsyms>: Move...
6267 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6268 * symmisc.c (print_objfile_statistics): Update.
6270 2014-02-26 Tom Tromey <tromey@redhat.com>
6272 * elfread.c (elf_read_minimal_symbols): New function, from
6274 (elf_symfile_read): Call it.
6276 2014-02-26 Tom Tromey <tromey@redhat.com>
6278 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6279 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6280 (lookup_minimal_symbol_solib_trampoline)
6281 (lookup_minimal_symbol_by_pc_section_1)
6282 (lookup_minimal_symbol_and_objfile): Update.
6283 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6284 Don't allocate a minimal symbol if minsyms have already been read.
6285 (build_minimal_symbol_hash_tables): Update.
6286 (install_minimal_symbols): Do nothing if minsyms already read.
6287 Use the per-BFD obstack.
6288 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6289 * objfiles.c (allocate_objfile): Call
6290 terminate_minimal_symbol_table later.
6291 (have_minimal_symbols): Update.
6292 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6293 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6294 Move from struct objfile.
6295 <minsyms_read>: New field.
6296 (struct objfile) <msymbols, minimal_symbol_count,
6297 msymbol_hash, msymbol_demangled_hash>: Move.
6298 (ALL_OBJFILE_MSYMBOLS): Update.
6299 * symfile.c (read_symbols): Set minsyms_read.
6300 (reread_symbols): Update.
6301 * symmisc.c (dump_objfile, dump_msymbols): Update.
6303 2014-02-26 Tom Tromey <tromey@redhat.com>
6305 * minsyms.c (msymbols_sort): Remove.
6306 * minsyms.h (msymbols_sort): Remove.
6307 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6308 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6309 * elfread.c (elf_symtab_read): Don't add section offsets.
6310 * xcoffread.c (record_minimal_symbol): Don't add section offset
6311 to minimal symbol address.
6312 * somread.c (text_offset, data_offset): Remove.
6313 (som_symtab_read): Don't add section offsets to minimal symbol
6315 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6316 Don't add section offsets to minimal symbols.
6317 * coffread.c (coff_symtab_read): Don't add section offsets
6318 to minimal symbol addresses.
6319 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6320 to minimal symbol addresses.
6321 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6322 section offset to minimal symbol addresses.
6323 * mdebugread.c (parse_partial_symbols): Don't add section
6324 offset to minimal symbol addresses.
6325 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6326 offset to minimal symbol addresses.
6328 2014-02-26 Tom Tromey <tromey@redhat.com>
6330 * ada-lang.c (ada_main_name): Update.
6331 (ada_add_standard_exceptions): Update.
6332 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6333 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6334 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6335 * auxv.c (ld_so_xfer_auxv): Update.
6336 * avr-tdep.c (avr_scan_prologue): Update.
6337 * ax-gdb.c (gen_var_ref): Update.
6338 * blockframe.c (get_pc_function_start)
6339 (find_pc_partial_function_gnu_ifunc): Update.
6340 * breakpoint.c (create_overlay_event_breakpoint)
6341 (create_longjmp_master_breakpoint)
6342 (create_std_terminate_master_breakpoint)
6343 (create_exception_master_breakpoint): Update.
6344 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6345 * c-valprint.c (c_val_print): Update.
6346 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6347 * common/agent.c (agent_look_up_symbols): Update.
6348 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6349 * dwarf2loc.c (call_site_to_target_addr): Update.
6350 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6351 * elfread.c (elf_gnu_ifunc_record_cache)
6352 (elf_gnu_ifunc_resolve_by_got): Update.
6353 * findvar.c (default_read_var_value): Update.
6354 * frame.c (inside_main_func): Update.
6355 * frv-tdep.c (frv_frame_this_id): Update.
6356 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6357 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6359 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6360 (hppa_hpux_find_dummy_bpaddr): Update.
6361 * hppa-tdep.c (hppa_symbol_address): Update.
6362 * infcmd.c (until_next_command): Update.
6363 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6365 * linespec.c (minsym_found, add_minsym): Update.
6366 * linux-nat.c (get_signo): Update.
6367 * linux-thread-db.c (inferior_has_bug): Update.
6368 * m32c-tdep.c (m32c_return_value)
6369 (m32c_m16c_address_to_pointer): Update.
6370 * m32r-tdep.c (m32r_frame_this_id): Update.
6371 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6372 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6373 * maint.c (maintenance_translate_address): Update.
6374 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6375 (frob_address): New function.
6376 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6377 frob_address. Rename parameter to "pc_in".
6378 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6380 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6382 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6383 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6384 * objc-lang.c (find_objc_msgsend): Update.
6385 * objfiles.c (objfile_relocate1): Update.
6386 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6387 * p-valprint.c (pascal_val_print): Update.
6388 * parse.c (write_exp_msymbol): Update.
6389 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6390 (ppc_elfv2_skip_entrypoint): Update.
6391 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6392 * printcmd.c (build_address_symbolic, msym_info)
6393 (address_info): Update.
6394 * proc-service.c (ps_pglobal_lookup): Update.
6395 * psymtab.c (find_pc_sect_psymtab_closer)
6396 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6397 Change msymbol parameter to bound_minimal_symbol.
6398 * ravenscar-thread.c (get_running_thread_id): Update.
6399 * remote.c (remote_check_symbols): Update.
6400 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6402 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6403 * solib-dsbt.c (lm_base): Update.
6404 * solib-frv.c (lm_base, main_got): Update.
6405 * solib-irix.c (locate_base): Update.
6406 * solib-som.c (som_solib_create_inferior_hook)
6407 (link_map_start): Update.
6408 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6409 * solib-svr4.c (elf_locate_base, enable_break): Update.
6410 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6411 (flush_ea_cache): Update.
6412 * stabsread.c (define_symbol, scan_file_globals): Update.
6413 * stack.c (find_frame_funname): Update.
6414 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6415 (debug_qf_find_pc_sect_symtab): Update.
6416 * symfile.c (simple_read_overlay_table)
6417 (simple_overlay_update): Update.
6418 * symfile.h (struct quick_symbol_functions)
6419 <find_pc_sect_symtab>: Change type of msymbol to
6420 bound_minimal_symbol.
6421 * symmisc.c (dump_msymbols): Update.
6422 * symtab.c (find_pc_sect_symtab_via_partial)
6423 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6424 (search_symbols, print_msymbol_info): Update.
6425 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6426 (MSYMBOL_VALUE_ADDRESS): Redefine.
6427 (BMSYMBOL_VALUE_ADDRESS): New macro.
6428 * tracepoint.c (scope_info): Update.
6429 * tui/tui-disasm.c (tui_find_disassembly_address)
6430 (tui_get_begin_asm_address): Update.
6431 * valops.c (find_function_in_inferior): Update.
6432 * value.c (value_static_field, value_fn_field): Update.
6434 2014-02-26 Tom Tromey <tromey@redhat.com>
6436 * ada-lang.c (ada_update_initial_language): Update.
6437 (ada_main_name, ada_has_this_exception_support): Update.
6438 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6439 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6440 * arm-tdep.c (arm_skip_stub): Update.
6441 * auxv.c (ld_so_xfer_auxv): Update.
6442 * avr-tdep.c (avr_scan_prologue): Update.
6443 * ax-gdb.c (gen_var_ref): Update.
6444 * breakpoint.c (struct breakpoint_objfile_data)
6445 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6446 type to bound_minimal_symbol.
6447 (create_overlay_event_breakpoint)
6448 (create_longjmp_master_breakpoint)
6449 (create_std_terminate_master_breakpoint)
6450 (create_exception_master_breakpoint): Update.
6451 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6452 * c-exp.y (classify_name): Update.
6453 * coffread.c (coff_symfile_read): Update.
6454 * common/agent.c (agent_look_up_symbols): Update.
6455 * d-lang.c (d_main_name): Update.
6456 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6457 * dec-thread.c (enable_dec_thread): Update.
6458 * dwarf2loc.c (call_site_to_target_addr): Update.
6459 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6460 * eval.c (evaluate_subexp_standard): Update.
6461 * findvar.c (struct minsym_lookup_data) <result>: Change type
6462 to bound_minimal_symbol.
6464 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6465 * frame.c (inside_main_func): Update.
6466 * frv-tdep.c (frv_frame_this_id): Update.
6467 * gcore.c (call_target_sbrk): Update.
6468 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6469 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6471 * go-lang.c (go_main_name): Update.
6472 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6473 (hppa_hpux_find_import_stub_for_addr): Update.
6474 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6475 Update. Change return type.
6476 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6478 * jit.c (jit_breakpoint_re_set_internal): Update.
6479 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6481 * linux-nat.c (get_signo): Update.
6482 * linux-thread-db.c (inferior_has_bug): Update
6483 * m32c-tdep.c (m32c_return_value)
6484 (m32c_m16c_address_to_pointer): Update.
6485 * m32r-tdep.c (m32r_frame_this_id): Update.
6486 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6487 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6488 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6489 lookup_minimal_symbol. Change return type.
6490 (lookup_minimal_symbol): Remove.
6491 (lookup_bound_minimal_symbol): Update.
6492 (lookup_minimal_symbol_text): Change return type.
6493 (lookup_minimal_symbol_solib_trampoline): Change return type.
6494 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6495 (lookup_minimal_symbol_solib_trampoline): Change return type.
6496 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6497 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6498 (value_nsstring, find_imps): Update.
6499 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6500 * p-lang.c (pascal_main_name): Update.
6501 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6502 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6503 * proc-service.c (ps_pglobal_lookup): Update.
6504 * ravenscar-thread.c (get_running_thread_msymbol): Change
6506 (has_ravenscar_runtime, get_running_thread_id): Update.
6507 * remote.c (remote_check_symbols): Update.
6508 * sol-thread.c (ps_pglobal_lookup): Update.
6509 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6510 * solib-dsbt.c (lm_base): Update.
6511 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6513 * solib-irix.c (locate_base): Update.
6514 * solib-som.c (som_solib_create_inferior_hook)
6515 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6517 * solib-spu.c (spu_enable_break): Update.
6518 * solib-svr4.c (elf_locate_base, enable_break): Update.
6519 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6520 (flush_ea_cache): Update.
6521 * stabsread.c (define_symbol): Update.
6522 * symfile.c (simple_read_overlay_table): Update.
6523 * symtab.c (find_pc_sect_line): Update.
6524 * tracepoint.c (scope_info): Update.
6525 * tui-disasm.c (tui_get_begin_asm_address): Update.
6526 * value.c (value_static_field): Update.
6528 2014-02-26 Tom Tromey <tromey@redhat.com>
6530 * minsyms.c (prim_record_minimal_symbol_full): Use
6531 SET_MSYMBOL_VALUE_ADDRESS.
6532 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6533 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6534 SET_MSYMBOL_VALUE_ADDRESS.
6535 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6536 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6538 2014-02-26 Tom Tromey <tromey@redhat.com>
6540 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6541 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6542 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6543 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6544 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6545 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6546 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6547 * ada-lang.c (ada_main_name): Update.
6548 (ada_lookup_simple_minsym): Update.
6549 (ada_make_symbol_completion_list): Update.
6550 (ada_add_standard_exceptions): Update.
6551 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6552 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6553 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6554 * arm-tdep.c (skip_prologue_function): Update.
6555 (arm_skip_stack_protector, arm_skip_stub): Update.
6556 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6557 (arm_wince_skip_main_prologue): Update.
6558 * auxv.c (ld_so_xfer_auxv): Update.
6559 * avr-tdep.c (avr_scan_prologue): Update.
6560 * ax-gdb.c (gen_var_ref): Update.
6561 * block.c (call_site_for_pc): Update.
6562 * blockframe.c (get_pc_function_start): Update.
6563 (find_pc_partial_function_gnu_ifunc): Update.
6564 * breakpoint.c (create_overlay_event_breakpoint): Update.
6565 (create_longjmp_master_breakpoint): Update.
6566 (create_std_terminate_master_breakpoint): Update.
6567 (create_exception_master_breakpoint): Update.
6568 (resolve_sal_pc): Update.
6569 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6570 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6572 * c-valprint.c (c_val_print): Update.
6573 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6574 * coffread.c (coff_symfile_read): Update.
6575 * common/agent.c (agent_look_up_symbols): Update.
6576 * dbxread.c (find_stab_function_addr): Update.
6577 (end_psymtab): Update.
6578 * dwarf2loc.c (call_site_to_target_addr): Update.
6579 (func_verify_no_selftailcall): Update.
6580 (tailcall_dump): Update.
6581 (call_site_find_chain_1): Update.
6582 (dwarf_expr_reg_to_entry_parameter): Update.
6583 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6584 (elf_gnu_ifunc_resolve_by_got): Update.
6585 * f-valprint.c (info_common_command): Update.
6586 * findvar.c (read_var_value): Update.
6587 * frame.c (get_prev_frame_1): Update.
6588 (inside_main_func): Update.
6589 * frv-tdep.c (frv_skip_main_prologue): Update.
6590 (frv_frame_this_id): Update.
6591 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6592 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6593 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6594 (gnuv3_skip_trampoline): Update.
6595 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6596 (hppa64_hpux_in_solib_call_trampoline): Update.
6597 (hppa_hpux_skip_trampoline_code): Update.
6598 (hppa64_hpux_search_dummy_call_sequence): Update.
6599 (hppa_hpux_find_import_stub_for_addr): Update.
6600 (hppa_hpux_find_dummy_bpaddr): Update.
6601 * hppa-tdep.c (hppa_symbol_address)
6602 (hppa_lookup_stub_minimal_symbol): Update.
6603 * i386-tdep.c (i386_skip_main_prologue): Update.
6604 (i386_pe_skip_trampoline_code): Update.
6605 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6606 * infcall.c (get_function_name): Update.
6607 * infcmd.c (until_next_command): Update.
6608 * jit.c (jit_breakpoint_re_set_internal): Update.
6609 (jit_inferior_init): Update.
6610 * linespec.c (minsym_found): Update.
6611 (add_minsym): Update.
6612 * linux-fork.c (info_checkpoints_command): Update.
6613 * linux-nat.c (get_signo): Update.
6614 * linux-thread-db.c (inferior_has_bug): Update.
6615 * m32c-tdep.c (m32c_return_value): Update.
6616 (m32c_m16c_address_to_pointer): Update.
6617 (m32c_m16c_pointer_to_address): Update.
6618 * m32r-tdep.c (m32r_frame_this_id): Update.
6619 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6620 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6621 * maint.c (maintenance_translate_address): Update.
6622 * minsyms.c (add_minsym_to_hash_table): Update.
6623 (add_minsym_to_demangled_hash_table): Update.
6624 (msymbol_objfile): Update.
6625 (lookup_minimal_symbol): Update.
6626 (iterate_over_minimal_symbols): Update.
6627 (lookup_minimal_symbol_text): Update.
6628 (lookup_minimal_symbol_by_pc_name): Update.
6629 (lookup_minimal_symbol_solib_trampoline): Update.
6630 (lookup_minimal_symbol_by_pc_section_1): Update.
6631 (lookup_minimal_symbol_and_objfile): Update.
6632 (prim_record_minimal_symbol_full): Update.
6633 (compare_minimal_symbols): Update.
6634 (compact_minimal_symbols): Update.
6635 (build_minimal_symbol_hash_tables): Update.
6636 (install_minimal_symbols): Update.
6637 (terminate_minimal_symbol_table): Update.
6638 (find_solib_trampoline_target): Update.
6639 (minimal_symbol_upper_bound): Update.
6640 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6641 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6642 (mips_skip_pic_trampoline_code): Update.
6643 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6644 * objc-lang.c (selectors_info): Update.
6645 (classes_info): Update.
6646 (find_methods): Update.
6647 (find_imps): Update.
6648 (find_objc_msgsend): Update.
6649 * objfiles.c (objfile_relocate1): Update.
6650 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6651 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6652 * p-valprint.c (pascal_val_print): Update.
6653 * parse.c (write_exp_msymbol): Update.
6654 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6655 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6656 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6657 * printcmd.c (build_address_symbolic): Update.
6659 (address_info): Update.
6660 * proc-service.c (ps_pglobal_lookup): Update.
6661 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6662 (find_pc_sect_psymtab): Update.
6663 * python/py-framefilter.c (py_print_frame): Update.
6664 * ravenscar-thread.c (get_running_thread_id): Update.
6665 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6667 * remote.c (remote_check_symbols): Update.
6668 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6669 (rs6000_skip_trampoline_code): Update.
6670 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6671 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6672 * solib-dsbt.c (lm_base): Update.
6673 * solib-frv.c (lm_base): Update.
6675 * solib-irix.c (locate_base): Update.
6676 * solib-som.c (som_solib_create_inferior_hook): Update.
6677 (som_solib_desire_dynamic_linker_symbols): Update.
6678 (link_map_start): Update.
6679 * solib-spu.c (spu_enable_break): Update.
6680 (ocl_enable_break): Update.
6681 * solib-svr4.c (elf_locate_base): Update.
6682 (enable_break): Update.
6683 * spu-tdep.c (spu_get_overlay_table): Update.
6684 (spu_catch_start): Update.
6685 (flush_ea_cache): Update.
6686 * stabsread.c (define_symbol): Update.
6687 (scan_file_globals): Update.
6688 * stack.c (find_frame_funname): Update.
6689 (frame_info): Update.
6690 * symfile.c (simple_read_overlay_table): Update.
6691 (simple_overlay_update): Update.
6692 * symmisc.c (dump_msymbols): Update.
6693 * symtab.c (fixup_section): Update.
6694 (find_pc_sect_line): Update.
6695 (skip_prologue_sal): Update.
6696 (search_symbols): Update.
6697 (print_msymbol_info): Update.
6698 (rbreak_command): Update.
6699 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6700 (completion_list_objc_symbol): Update.
6701 (default_make_symbol_completion_list_break_on): Update.
6702 * tracepoint.c (scope_info): Update.
6703 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6704 (tui_get_begin_asm_address): Update.
6705 * valops.c (find_function_in_inferior): Update.
6706 * value.c (value_static_field): Update.
6707 (value_fn_field): Update.
6709 2014-02-26 Tom Tromey <tromey@redhat.com>
6711 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6712 bound minimal symbols. Move code that knows about minsym
6714 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6716 * minsyms.h (minimal_symbol_upper_bound): Declare.
6717 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6718 minimal_symbol_upper_bound.
6720 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6722 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6723 Use the type's name if its basic type does not have a tag.
6725 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6727 * dwarf2read.c (read_subrange_type): Add comment.
6729 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6731 * dwarf2read.c (update_enumeration_type_from_children): New
6732 function, mostly extracted from process_structure_scope.
6733 (read_enumeration_type): Call update_enumeration_type_from_children.
6734 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6735 and flag_flag_enum fields.
6737 2014-02-26 Pedro Alves <palves@redhat.com>
6739 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6740 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6741 to_xfer_partial method.
6743 2014-02-26 Pedro Alves <palves@redhat.com>
6745 * target.c (complete_target_initialization): Don't install
6746 default_xfer_partial as to_xfer_partial hook.
6748 (update_current_target): Don't INHERIT nor de_fault
6749 deprecated_xfer_memory. Delete de_fault macro.
6750 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6751 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6752 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6755 2014-02-26 Pedro Alves <palves@redhat.com>
6757 * go32-nat.c (my_write_child): New function.
6758 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6759 (go32_xfer_partial): New function.
6760 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6761 Instead install a to_xfer_partial hook.
6763 2014-02-26 Pedro Alves <palves@redhat.com>
6765 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6766 to_xfer_partial helper. Rewrite.
6767 (procfs_xfer_partial): New function.
6768 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6769 Install a to_xfer_partial hook.
6771 2014-02-26 Pedro Alves <palves@redhat.com>
6773 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6774 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6775 (m32r_xfer_partial): New function.
6776 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6777 Install a to_xfer_partial hook.
6779 2014-02-26 Pedro Alves <palves@redhat.com>
6781 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6783 (mips_xfer_partial): New function.
6784 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6785 hook. Install a to_xfer_partial hook.
6787 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6789 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6790 * gdbtypes.c (create_array_type_with_stride): New function,
6791 renaming create_array_type, but with an added parameter
6792 called "bit_stride".
6793 (create_array_type): Re-implement using
6794 create_array_type_with_stride.
6795 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6796 and DW_AT_bit_stride attributes.
6798 2014-02-26 Pedro Alves <palves@redhat.com>
6800 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6801 task-specific breakpoints.
6803 2014-02-25 Pedro Alves <palves@redhat.com>
6805 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6806 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6808 2014-02-25 Stan Shebs <stan@codesourcery.com>
6810 * defs.h: Annotate comments for Doxygen.
6812 2014-02-25 Tom Tromey <tromey@redhat.com>
6814 * target.h (target_ignore): Don't declare.
6815 * target.c (target_ignore): Remove.
6817 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6820 * auto-load.c (auto_load_objfile_script_1): Change filename to
6823 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6825 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6826 documentation. Adjust prototype to match the target_ops
6827 to_xfer_partial method. Adjust implementation accordingly.
6829 2014-02-25 Hui Zhu <hui@codesourcery.com>
6831 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6834 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6836 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6837 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6838 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6839 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6840 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6841 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6842 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6843 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6845 (rl78_register_type): Use a data pointer type for SP and
6846 new pseudo registers mentioned above. Use a 16 bit integer
6847 type for all other register pairs.
6848 (rl78_register_name, rl78_g10_register_name): Update for
6849 new pseudo registers.
6850 (rl78_pseudo_register_read): Likewise.
6851 (rl78_pseudo_register_write): Likewise.
6852 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6853 to the newly added pseudo registers.
6855 2014-02-24 Doug Evans <dje@google.com>
6857 * value.c (record_latest_value): Fix comment.
6858 * printcmd.c (print_command_1): Remove code to handle -1 return from
6859 record_latest_value.
6861 2014-02-24 Pedro Alves <palves@redhat.com>
6863 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6864 deprecated_xfer_memory hook.
6865 (procfs_xfer_partial): Call procfs_xfer_memory instead
6866 of the deprecated_xfer_memory target hook.
6867 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6870 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6872 * windows-nat.c (windows_xfer_shared_libraries): Return
6873 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6874 requested object is TARGET_OBJECT_LIBRARIES.
6876 2014-02-24 Yao Qi <yao@codesourcery.com>
6878 * target.h (enum target_xfer_status)
6879 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6880 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6882 * corefile.c (memory_error_message): User updated.
6883 * exec.c (section_table_read_available_memory): Likewise.
6884 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6885 * target.c (target_xfer_status_to_string): Likewise.
6886 (raw_memory_xfer_partial): Likewise.
6887 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6888 * valops.c (read_value_memory): Likewise.
6889 * exec.h: Update comments.
6891 2014-02-24 Yao Qi <yao@codesourcery.com>
6893 * target.c (target_xfer_status_to_string): Rename argument err
6895 * target.h (target_xfer_status_to_string): Update declaration.
6896 Replace target_xfer_error_to_string with
6897 target_xfer_status_to_string in comment.
6899 2014-02-24 Yao Qi <yao@codesourcery.com>
6901 * mips-linux-nat.c (super_close): Update its type.
6902 (mips_linux_close): Pass 'self' to super_close.
6904 2014-02-24 Yao Qi <yao@codesourcery.com>
6906 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6907 * corefile.c (read_memory): Adjusted.
6908 * target.c (target_write_with_progress): Adjusted.
6910 2014-02-23 Yao Qi <yao@codesourcery.com>
6914 2013-10-25 Yao Qi <yao@codesourcery.com>
6916 * remote.c (remote_traceframe_info): Return early if
6917 traceframe is not selected.
6919 2013-07-19 Yao Qi <yao@codesourcery.com>
6921 * target.c (update_current_target): Change the default action
6922 of 'to_traceframe_info' from tcomplain to return_zero.
6923 * target.h (struct target_ops) <to_traceframe_info>: Add more
6926 2014-02-23 Yao Qi <yao@codesourcery.com>
6928 * valops.c (read_value_memory): Rewrite it. Call
6929 target_xfer_partial in a loop.
6930 * exec.h (section_table_available_memory): Remove declaration.
6931 Move comments to ...
6932 * exec.c (section_table_available_memory): ... here. Make it
6935 2014-02-23 Yao Qi <yao@codesourcery.com>
6937 * exec.c (section_table_read_available_memory): New function.
6938 * exec.h (section_table_read_available_memory): Declare.
6939 * ctf.c (ctf_xfer_partial): Call
6940 section_table_read_available_memory.
6941 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6943 2014-02-23 Yao Qi <yao@codesourcery.com>
6945 * ctf.c (ctf_xfer_partial): Move code to ...
6946 * exec.c (exec_read_partial_read_only): ... it. New function.
6947 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6948 * tracefile.c: Include "exec.h".
6949 * exec.h (exec_read_partial_read_only): Declare.
6951 2014-02-23 Yao Qi <yao@codesourcery.com>
6953 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6954 (tfile_has_memory): Remove.
6955 (init_tfile_ops): Don't set fields to_has_all_memory and
6956 to_has_memory of tfile_ops.
6957 * tracefile.c (tracefile_has_all_memory): New function.
6958 (tracefile_has_memory): New function.
6959 (init_tracefile_ops): Initialize fields to_has_all_memory and
6960 to_has_memory of 'ops'.
6962 2014-02-23 Yao Qi <yao@codesourcery.com>
6964 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6965 (ctf_thread_alive, ctf_get_trace_status): Remove.
6966 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6968 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6969 (tfile_has_stack, tfile_has_registers): Remove.
6970 (tfile_thread_alive): Remove.
6971 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6973 * tracefile.c (tracefile_has_stack): New function.
6974 (tracefile_has_registers): New function.
6975 (tracefile_thread_alive): New function.
6976 (tracefile_get_trace_status): New function.
6977 (init_tracefile_ops): New function.
6978 * tracefile.h (init_tracefile_ops): Declare.
6980 2014-02-23 Yao Qi <yao@codesourcery.com>
6982 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6983 (O_LARGEFILE): Likewise.
6984 (tfile_ops): Likewise.
6985 (TRACE_HEADER_SIZE): Likewise.
6986 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6987 (cur_data_size): Likewise.
6988 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6989 (tfile_close, tfile_files_info): Likewise.
6990 (tfile_get_trace_status): Likewise.
6991 (tfile_get_tracepoint_status): Likewise.
6992 (tfile_get_traceframe_address): Likewise.
6993 (tfile_trace_find, match_blocktype): Likewise.
6994 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6995 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6996 (tfile_get_trace_state_variable_value): Likewise.
6997 (tfile_has_all_memory, tfile_has_memory): Likewise.
6998 (tfile_has_stack, tfile_has_registers): Likewise.
6999 (tfile_thread_alive, build_traceframe_info): Likewise.
7000 (tfile_traceframe_info, init_tfile_ops): Likewise.
7001 (_initialize_tracepoint): Don't call init_tfile_ops
7002 and add_target_with_completer.
7003 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7004 exec.h, completer.h and filenames.h.
7005 (_initialize_tracefile_tfile): New function.
7007 2014-02-23 Yao Qi <yao@codesourcery.com>
7009 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7011 (HFILES_NO_SRCDIR): Add tracefile.h.
7012 * ctf.c: Include "tracefile.h".
7013 * tracefile.h: New file.
7014 * tracefile.c: New file
7015 * tracefile-tfile.c: New file.
7016 * tracepoint.c: Include "tracefile.h".
7017 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7018 (stop_reason_names): Add const.
7019 (trace_file_writer_xfree): Move it to tracefile.c.
7020 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7021 (trace_save_ctf): Likewise.
7022 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7023 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7024 (tfile_write_header, tfile_write_regblock_type): Likewise.
7025 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7026 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7027 (tfile_write_raw_data, tfile_end): Likewise.
7028 (tfile_trace_file_writer_new): Likewise.
7029 (free_uploaded_tp): Make it extern.
7030 (free_uploaded_tsv): Make it extern.
7031 (_initialize_tracepoint): Move code to register command 'tsave'
7033 * tracepoint.h (stop_reason_names): Declare.
7034 (struct trace_frame_write_ops): Move it to tracefile.h.
7035 (struct trace_file_write_ops): Likewise.
7036 (struct trace_file_writer): Likewise.
7037 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7039 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7042 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7044 (get_cores_used_by_process): New parameter num_cores, use it.
7045 (linux_xfer_osdata_processes): Pass num_cores to it.
7046 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7049 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7051 * target.c (memory_xfer_partial): Fix length arg in call to
7052 breakpoint_xfer_memory.
7054 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7057 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7058 number comes after the + or - signs. Adjust length of register
7059 name to be extracted.
7061 2014-02-20 Tom Tromey <tromey@redhat.com>
7063 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7064 (ada_varobj_ops): Mark "extern".
7066 2014-02-20 Tom Tromey <tromey@redhat.com>
7068 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7070 2014-02-20 Doug Evans <xdje42@gmail.com>
7072 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7073 All callers updated.
7074 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7075 All callers updated.
7076 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7077 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7079 2014-02-20 lin zuojian <manjian2006@gmail.com>
7080 Joel Brobecker <brobecker@adacore.com>
7081 Doug Evans <xdje42@gmail.com>
7084 * dwarf2read.c (struct die_info): New member in_process.
7085 (reset_die_in_process): New function.
7086 (process_die): Set it at the start, reset when returning.
7087 (inherit_abstract_dies): Only call process_die if origin_child_die
7088 not already being processed.
7090 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7092 * windows-nat.c (handle_unload_dll): Add function documentation.
7093 (do_initial_windows_stuff): Add comment explaining why we wait
7094 until after inferior initialization has finished before
7095 processing all DLLs.
7097 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7099 * windows-nat.c (get_module_name): Delete.
7100 (windows_get_exec_module_filename): New function, mostly
7101 inspired from get_module_name.
7102 (windows_pid_to_exec_file): Replace call to get_module_name
7103 by call to windows_get_exec_module_filename.
7105 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7107 * windows-nat.c (handle_load_dll): Rewrite this function's
7108 introductory comment. Remove code using get_module_name
7109 to get the DLL's name.
7111 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7113 * windows-nat.c (get_windows_debug_event): Ignore
7114 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7115 if windows_initialization_done == 0.
7116 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7117 Adjust implementation to always load all DLLs.
7118 (do_initial_windows_stuff): Replace call to
7119 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7121 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7123 * windows-nat.c (_initialize_windows_nat): Deprecate the
7124 "dll-symbols" command. Turn the "add-shared-symbol-files"
7125 and "assf" aliases into commands, and deprecate them as well.
7126 * NEWS: Add entry explaining that "dll-symbols" and its two
7127 aliases are now deprecated.
7129 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7131 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7132 new-line in debug string. Remove trailing spaces.
7134 2014-02-19 Stan Shebs <stan@codesourcery.com>
7136 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7138 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7140 * NEWS: Add entry for the new feature
7141 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7144 2014-02-19 Stan Shebs <stan@codesourcery.com>
7146 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7148 2014-02-19 Pedro Alves <palves@redhat.com>
7150 * common/ptid.h (struct ptid): Mention that process_stratum
7151 targets should prefer ptid.lwp.
7153 2014-02-19 Pedro Alves <palves@redhat.com>
7155 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7156 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7157 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7158 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7159 store remote thread ids rather than ptid.tid.
7160 (_initialize_remote): Adjust.
7162 2014-02-19 Tom Tromey <tromey@redhat.com>
7164 * target.c (target_get_unwinder): Rewrite.
7165 (target_get_tailcall_unwinder): Rewrite.
7166 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7167 (record_btrace_to_get_tailcall_unwinder): New function.
7168 (init_record_btrace_ops): Update.
7169 * target.h (struct target_ops) <to_get_unwinder,
7170 to_get_tailcall_unwinder>: Now function pointers. Use
7171 TARGET_DEFAULT_RETURN.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7177 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7179 2014-02-19 Tom Tromey <tromey@redhat.com>
7181 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7183 * target-delegates.c: Rebuild.
7184 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7185 TARGET_DEFAULT_FUNC.
7186 * target.c (default_target_decr_pc_after_break): Rename from
7187 forward_target_decr_pc_after_break. Simplify.
7188 (target_decr_pc_after_break): Rely on delegation.
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7192 * target.c (update_current_target): Do not INHERIT to_doc or
7193 to_magic. Do not de_fault to_open or to_close.
7195 2014-02-19 Tom Tromey <tromey@redhat.com>
7197 * gcore.h (objfile_find_memory_regions): Declare.
7198 * gcore.c (objfile_find_memory_regions): No longer static. Add
7200 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7201 * exec.c: Include gcore.h.
7202 (exec_set_find_memory_regions): Remove.
7203 (exec_find_memory_regions): Remove.
7204 (exec_do_find_memory_regions): Remove.
7205 (init_exec_ops): Update.
7206 * defs.h (exec_set_find_memory_regions): Remove.
7208 2014-02-19 Tom Tromey <tromey@redhat.com>
7210 * target-delegates.c: Rebuild.
7211 * target.h (struct target_ops) <to_extra_thread_info,
7212 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7213 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7214 not 0, in TARGET_DEFAULT_RETURN.
7216 2014-02-19 Tom Tromey <tromey@redhat.com>
7218 * target.c (complete_target_initialization): Remove casts. Use
7219 return_zero_has_execution.
7220 (return_zero): Add "ignore" argument.
7221 (return_zero_has_execution): New function.
7222 (init_dummy_target): Remove casts. Use
7223 return_zero_has_execution.
7225 2014-02-19 Tom Tromey <tromey@redhat.com>
7227 * target.c (update_current_target): Update comments. Do not
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7234 * corelow.c (core_read_description): Delegate when needed.
7235 * remote.c (remote_read_description): Delegate when needed.
7236 * target-delegates.c: Rebuild.
7237 * target.c (target_read_description): Rewrite.
7238 * target.h (struct target_ops) <to_read_description>: Update
7239 comment. Use TARGET_DEFAULT_RETURN.
7241 2014-02-19 Tom Tromey <tromey@redhat.com>
7243 * target-delegates.c: Rebuild.
7244 * target.c (update_current_target): Don't inherit or default
7246 (find_default_run_target): Check against delegate_can_run.
7247 * target.h (struct target_ops) <to_can_run>: Use
7248 TARGET_DEFAULT_RETURN.
7250 2014-02-19 Tom Tromey <tromey@redhat.com>
7252 * target-delegates.c: Rebuild.
7253 * target.c (target_disconnect): Unconditionally delegate.
7254 * target.h (struct target_ops) <to_disconnect>: Use
7255 TARGET_DEFAULT_NORETURN.
7257 2014-02-19 Tom Tromey <tromey@redhat.com>
7259 * record.c (record_stop): Unconditionally delegate.
7260 * target-delegates.c: Rebuild.
7261 * target.c (target_stop_recording): Unconditionally delegate.
7262 * target.h (struct target_ops) <to_stop_recording>: Use
7263 TARGET_DEFAULT_IGNORE.
7265 2014-02-19 Tom Tromey <tromey@redhat.com>
7267 * target-delegates.c: Rebuild.
7268 * target.c (target_enable_btrace): Unconditionally delegate.
7269 * target.h (struct target_ops) <to_enable_btrace>: Use
7270 TARGET_DEFAULT_NORETURN.
7272 2014-02-19 Tom Tromey <tromey@redhat.com>
7274 * target-delegates.c: Rebuild.
7275 * target.c (target_read_btrace): Unconditionally delegate.
7276 * target.h (struct target_ops) <to_read_btrace>: Use
7277 TARGET_DEFAULT_NORETURN.
7279 2014-02-19 Tom Tromey <tromey@redhat.com>
7281 * target-delegates.c: Rebuild.
7282 * target.c (target_teardown_btrace): Unconditionally delegate.
7283 * target.h (struct target_ops) <to_teardown_btrace>: Use
7284 TARGET_DEFAULT_NORETURN.
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * target-delegates.c: Rebuild.
7289 * target.c (target_disable_btrace): Unconditionally delegate.
7290 * target.h (struct target_ops) <to_disable_btrace>: Use
7291 TARGET_DEFAULT_NORETURN.
7293 2014-02-19 Tom Tromey <tromey@redhat.com>
7295 * target-delegates.c: Rebuild.
7296 * target.c (default_search_memory): New function.
7297 (simple_search_memory): Update comment.
7298 (target_search_memory): Unconditionally delegate.
7299 * target.h (struct target_ops) <to_search_memory>: Use
7300 TARGET_DEFAULT_FUNC.
7302 2014-02-19 Tom Tromey <tromey@redhat.com>
7304 * auxv.c (default_auxv_parse): No longer static.
7305 (target_auxv_parse): Unconditionally delegate.
7306 * auxv.h (default_auxv_parse): Declare.
7307 * target-delegates.c: Rebuild.
7308 * target.c: Include auxv.h.
7309 * target.h (struct target_ops) <to_auxv_parse>: Use
7310 TARGET_DEFAULT_FUNC.
7312 2014-02-19 Tom Tromey <tromey@redhat.com>
7314 * target-delegates.c: Rebuild.
7315 * target.c (target_memory_map): Unconditionally delegate.
7316 * target.h (struct target_ops) <to_memory_map>: Use
7317 TARGET_DEFAULT_RETURN.
7319 2014-02-19 Tom Tromey <tromey@redhat.com>
7321 * target-delegates.c: Rebuild.
7322 * target.c (target_thread_alive): Unconditionally delegate.
7323 * target.h (struct target_ops) <to_thread_alive>: Use
7324 TARGET_DEFAULT_RETURN.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target-delegates.c: Rebuild.
7329 * target.c (target_save_record): Unconditionally delegate.
7330 * target.h (struct target_ops) <to_save_record>: Use
7331 TARGET_DEFAULT_NORETURN.
7333 2014-02-19 Tom Tromey <tromey@redhat.com>
7335 * target-delegates.c: Rebuild.
7336 * target.c (target_delete_record): Unconditionally delegate.
7337 * target.h (struct target_ops) <to_delete_record>: Use
7338 TARGET_DEFAULT_NORETURN.
7340 2014-02-19 Tom Tromey <tromey@redhat.com>
7342 * target-delegates.c: Rebuild.
7343 * target.c (target_record_is_replaying): Unconditionally
7345 * target.h (struct target_ops) <to_record_is_replaying>: Use
7346 TARGET_DEFAULT_RETURN.
7348 2014-02-19 Tom Tromey <tromey@redhat.com>
7350 * target-delegates.c: Rebuild.
7351 * target.c (target_goto_record_begin): Unconditionally delegate.
7352 * target.h (struct target_ops) <to_goto_record_begin>: Use
7353 TARGET_DEFAULT_NORETURN.
7355 2014-02-19 Tom Tromey <tromey@redhat.com>
7357 * target-delegates.c: Rebuild.
7358 * target.c (target_goto_record_end): Unconditionally delegate.
7359 * target.h (struct target_ops) <to_goto_record_end>: Use
7360 TARGET_DEFAULT_NORETURN.
7362 2014-02-19 Tom Tromey <tromey@redhat.com>
7364 * target-delegates.c: Rebuild.
7365 * target.c (target_goto_record): Unconditionally delegate.
7366 * target.h (struct target_ops) <to_goto_record>: Use
7367 TARGET_DEFAULT_NORETURN.
7369 2014-02-19 Tom Tromey <tromey@redhat.com>
7371 * target-delegates.c: Rebuild.
7372 * target.c (target_insn_history): Unconditionally delegate.
7373 * target.h (struct target_ops) <to_insn_history>: Use
7374 TARGET_DEFAULT_NORETURN.
7376 2014-02-19 Tom Tromey <tromey@redhat.com>
7378 * target-delegates.c: Rebuild.
7379 * target.c (target_insn_history_from): Unconditionally delegate.
7380 * target.h (struct target_ops) <to_insn_history_from>: Use
7381 TARGET_DEFAULT_NORETURN.
7383 2014-02-19 Tom Tromey <tromey@redhat.com>
7385 * target-delegates.c: Rebuild.
7386 * target.c (target_insn_history_range): Unconditionally delegate.
7387 * target.h (struct target_ops) <to_insn_history_range>: Use
7388 TARGET_DEFAULT_NORETURN.
7390 2014-02-19 Tom Tromey <tromey@redhat.com>
7392 * target-delegates.c: Rebuild.
7393 * target.c (target_call_history): Unconditionally delegate.
7394 * target.h (struct target_ops) <to_call_history>: Use
7395 TARGET_DEFAULT_NORETURN.
7397 2014-02-19 Tom Tromey <tromey@redhat.com>
7399 * target-delegates.c: Rebuild.
7400 * target.c (target_call_history_from): Unconditionally delegate.
7401 * target.h (struct target_ops) <to_call_history_from>: Use
7402 TARGET_DEFAULT_NORETURN.
7404 2014-02-19 Tom Tromey <tromey@redhat.com>
7406 * target-delegates.c: Rebuild.
7407 * target.c (target_call_history_range): Unconditionally delegate.
7408 * target.h (struct target_ops) <to_call_history_range>: Use
7409 TARGET_DEFAULT_NORETURN.
7411 2014-02-19 Tom Tromey <tromey@redhat.com>
7413 * target-delegates.c: Rebuild.
7414 * target.c (target_verify_memory): Unconditionally delegate.
7415 * target.h (struct target_ops) <to_verify_memory>: Use
7416 TARGET_DEFAULT_NORETURN.
7418 2014-02-19 Tom Tromey <tromey@redhat.com>
7420 * target-delegates.c: Rebuild.
7421 * target.c (target_core_of_thread): Unconditionally delegate.
7422 * target.h (struct target_ops) <to_core_of_thread>: Use
7423 TARGET_DEFAULT_RETURN.
7425 2014-02-19 Tom Tromey <tromey@redhat.com>
7427 * target-delegates.c: Rebuild.
7428 * target.c (target_flash_done): Unconditionally delegate.
7429 * target.h (struct target_ops) <to_flash_done>: Use
7430 TARGET_DEFAULT_NORETURN.
7432 2014-02-19 Tom Tromey <tromey@redhat.com>
7434 * target-delegates.c: Rebuild.
7435 * target.c (target_flash_erase): Unconditionally delegate.
7436 * target.h (struct target_ops) <to_flash_erase>: Use
7437 TARGET_DEFAULT_NORETURN.
7439 2014-02-19 Tom Tromey <tromey@redhat.com>
7441 * target-delegates.c: Rebuild.
7442 * target.c (target_get_section_table): Unconditionally delegate.
7443 * target.h (struct target_ops) <to_get_section_table>: Use
7444 TARGET_DEFAULT_RETURN.
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7448 * target-delegates.c: Rebuild.
7449 * target.c (target_pid_to_str): Unconditionally delegate.
7450 (init_dummy_target): Don't initialize to_pid_to_str.
7451 (default_pid_to_str): Rename from dummy_pid_to_str.
7452 * target.h (struct target_ops) <to_pid_to_str>: Use
7453 TARGET_DEFAULT_FUNC.
7455 2014-02-19 Tom Tromey <tromey@redhat.com>
7457 * target-delegates.c: Rebuild.
7458 * target.c (target_find_new_threads): Unconditionally delegate.
7459 * target.h (struct target_ops) <to_find_new_threads>: Use
7460 TARGET_DEFAULT_RETURN.
7462 2014-02-19 Tom Tromey <tromey@redhat.com>
7464 * target-delegates.c: Rebuild.
7465 * target.c (target_program_signals): Unconditionally delegate.
7466 * target.h (struct target_ops) <to_program_signals>: Use
7467 TARGET_DEFAULT_IGNORE.
7469 2014-02-19 Tom Tromey <tromey@redhat.com>
7471 * target-delegates.c: Rebuild.
7472 * target.c (target_pass_signals): Unconditionally delegate.
7473 * target.h (struct target_ops) <to_pass_signals>: Use
7474 TARGET_DEFAULT_IGNORE.
7476 2014-02-19 Tom Tromey <tromey@redhat.com>
7478 * target-delegates.c: Rebuild.
7479 * target.c (default_mourn_inferior): New function.
7480 (target_mourn_inferior): Unconditionally delegate.
7481 * target.h (struct target_ops) <to_mourn_inferior>: Use
7482 TARGET_DEFAULT_FUNC.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target-delegates.c: Rebuild.
7487 * target.c (default_follow_fork): New function.
7488 (target_follow_fork): Unconditionally delegate.
7489 * target.h (struct target_ops) <to_follow_fork>: Use
7490 TARGET_DEFAULT_FUNC.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_kill): Unconditionally delegate.
7496 * target.h (struct target_ops) <to_kill>: Use
7497 TARGET_DEFAULT_NORETURN.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target-delegates.c: Rebuild.
7502 * target.c (target_masked_watch_num_registers): Unconditionally
7504 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7505 Use TARGET_DEFAULT_RETURN.
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target-delegates.c: Rebuild.
7510 * target.c (target_remove_mask_watchpoint): Unconditionally
7512 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7513 TARGET_DEFAULT_RETURN.
7515 2014-02-19 Tom Tromey <tromey@redhat.com>
7517 * target-delegates.c: Rebuild.
7518 * target.c (target_insert_mask_watchpoint): Unconditionally
7520 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7521 TARGET_DEFAULT_RETURN.
7523 2014-02-19 Tom Tromey <tromey@redhat.com>
7525 * target-delegates.c: Rebuild.
7526 * target.c (target_ranged_break_num_registers): Unconditionally
7528 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7529 Use TARGET_DEFAULT_RETURN.
7531 2014-02-19 Tom Tromey <tromey@redhat.com>
7533 * target-delegates.c: Rebuild.
7534 * target.c (target_fetch_registers): Unconditionally delegate.
7535 * target.h (struct target_ops) <to_fetch_registers>: Use
7536 TARGET_DEFAULT_NORETURN.
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target-delegates.c: Rebuild.
7541 * target.c (update_current_target): Don't inherit or default
7543 * target.h (struct target_ops) <to_stop>: Use
7544 TARGET_DEFAULT_IGNORE.
7546 2014-02-19 Tom Tromey <tromey@redhat.com>
7548 * target-delegates.c: Rebuild.
7549 * target.c (update_current_target): Don't inherit or default
7550 to_can_run_breakpoint_commands.
7551 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7552 Use TARGET_DEFAULT_RETURN.
7554 2014-02-19 Tom Tromey <tromey@redhat.com>
7556 * target-delegates.c: Rebuild.
7557 * target.c (update_current_target): Don't inherit or default
7558 to_supports_evaluation_of_breakpoint_conditions.
7559 * target.h (struct target_ops)
7560 <to_supports_evaluation_of_breakpoint_conditions>: Use
7561 TARGET_DEFAULT_RETURN.
7563 2014-02-19 Tom Tromey <tromey@redhat.com>
7565 * target-delegates.c: Rebuild.
7566 * target.c (update_current_target): Don't inherit or default
7567 to_augmented_libraries_svr4_read.
7568 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7569 Use TARGET_DEFAULT_RETURN.
7571 2014-02-19 Tom Tromey <tromey@redhat.com>
7573 * target-delegates.c: Rebuild.
7574 * target.c (update_current_target): Don't inherit or default
7576 * target.h (struct target_ops) <to_can_use_agent>: Use
7577 TARGET_DEFAULT_RETURN.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * target-delegates.c: Rebuild.
7582 * target.c (update_current_target): Don't inherit or default
7584 * target.h (struct target_ops) <to_use_agent>: Use
7585 TARGET_DEFAULT_NORETURN.
7587 2014-02-19 Tom Tromey <tromey@redhat.com>
7589 * target-delegates.c: Rebuild.
7590 * target.c (update_current_target): Don't inherit or default
7592 (return_null): Remove.
7593 * target.h (struct target_ops) <to_traceframe_info>: Use
7594 TARGET_DEFAULT_RETURN.
7596 2014-02-19 Tom Tromey <tromey@redhat.com>
7598 * target-delegates.c: Rebuild.
7599 * target.c (update_current_target): Don't inherit or default
7600 to_static_tracepoint_markers_by_strid.
7601 * target.h (struct target_ops)
7602 <to_static_tracepoint_markers_by_strid>: Use
7603 TARGET_DEFAULT_NORETURN.
7605 2014-02-19 Tom Tromey <tromey@redhat.com>
7607 * target-delegates.c: Rebuild.
7608 * target.c (update_current_target): Don't inherit or default
7609 to_static_tracepoint_marker_at.
7610 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7611 Use TARGET_DEFAULT_RETURN.
7613 2014-02-19 Tom Tromey <tromey@redhat.com>
7615 * target-delegates.c: Rebuild.
7616 * target.c (update_current_target): Don't inherit or default
7618 * target.h (struct target_ops) <to_set_permissions>: Use
7619 TARGET_DEFAULT_IGNORE.
7621 2014-02-19 Tom Tromey <tromey@redhat.com>
7623 * target-delegates.c: Rebuild.
7624 * target.c (update_current_target): Don't inherit or default
7626 * target.h (struct target_ops) <to_get_tib_address>: Use
7627 TARGET_DEFAULT_NORETURN.
7629 2014-02-19 Tom Tromey <tromey@redhat.com>
7631 * target-delegates.c: Rebuild.
7632 * target.c (update_current_target): Don't inherit or default
7634 * target.h (struct target_ops) <to_set_trace_notes>: Use
7635 TARGET_DEFAULT_RETURN.
7637 2014-02-19 Tom Tromey <tromey@redhat.com>
7639 * target-delegates.c: Rebuild.
7640 * target.c (update_current_target): Don't initialize
7641 to_set_trace_buffer_size.
7642 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7643 TARGET_DEFAULT_IGNORE.
7645 2014-02-19 Tom Tromey <tromey@redhat.com>
7647 * target-delegates.c: Rebuild.
7648 * target.c (update_current_target): Don't inherit or default
7649 to_set_circular_trace_buffer.
7650 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7651 TARGET_DEFAULT_IGNORE.
7653 2014-02-19 Tom Tromey <tromey@redhat.com>
7655 * target-delegates.c: Rebuild.
7656 * target.c (update_current_target): Don't inherit or default
7657 to_set_disconnected_tracing.
7658 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7659 TARGET_DEFAULT_IGNORE.
7661 2014-02-19 Tom Tromey <tromey@redhat.com>
7663 * target-delegates.c: Rebuild.
7664 * target.c (update_current_target): Don't inherit or default
7665 to_get_min_fast_tracepoint_insn_len.
7666 (return_minus_one): Remove.
7667 * target.h (struct target_ops)
7668 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7670 2014-02-19 Tom Tromey <tromey@redhat.com>
7672 * target-delegates.c: Rebuild.
7673 * target.c (update_current_target): Don't inherit or default
7674 to_get_raw_trace_data.
7675 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7676 TARGET_DEFAULT_NORETURN.
7678 2014-02-19 Tom Tromey <tromey@redhat.com>
7680 * target-delegates.c: Rebuild.
7681 * target.c (update_current_target): Don't inherit or default
7682 to_upload_trace_state_variables.
7683 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7684 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
7690 to_upload_tracepoints.
7691 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7692 TARGET_DEFAULT_RETURN.
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
7699 * target.h (struct target_ops) <to_save_trace_data>: 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_state_variable_value.
7707 * target.h (struct target_ops)
7708 <to_get_trace_state_variable_value>: Use 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): Use TARGET_DEFAULT_RETURN.
7717 2014-02-19 Tom Tromey <tromey@redhat.com>
7719 * target-delegates.c: Rebuild.
7720 * target.c (update_current_target): Don't inherit or default
7722 * target.h (struct target_ops) <to_trace_stop>: Use
7723 TARGET_DEFAULT_NORETURN.
7725 2014-02-19 Tom Tromey <tromey@redhat.com>
7727 * target-delegates.c: Rebuild.
7728 * target.c (update_current_target): Don't inherit or default
7729 to_get_tracepoint_status.
7730 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7731 TARGET_DEFAULT_NORETURN.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target-delegates.c: Rebuild.
7736 * target.c (update_current_target): Don't inherit or default
7737 to_get_trace_status.
7738 * target.h (struct target_ops) <to_get_trace_status>: Use
7739 TARGET_DEFAULT_RETURN.
7741 2014-02-19 Tom Tromey <tromey@redhat.com>
7743 * target-delegates.c: Rebuild.
7744 * target.c (update_current_target): Don't inherit or default
7746 * target.h (struct target_ops) <to_trace_start>: Use
7747 TARGET_DEFAULT_NORETURN.
7749 2014-02-19 Tom Tromey <tromey@redhat.com>
7751 * target-delegates.c: Rebuild.
7752 * target.c (update_current_target): Don't inherit or default
7753 to_trace_set_readonly_regions.
7754 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7755 Use TARGET_DEFAULT_NORETURN.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * target-delegates.c: Rebuild.
7760 * target.c (update_current_target): Don't inherit or default
7761 to_disable_tracepoint.
7762 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7763 TARGET_DEFAULT_NORETURN.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * target-delegates.c: Rebuild.
7768 * target.c (update_current_target): Don't inherit or default
7769 to_enable_tracepoint.
7770 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7771 TARGET_DEFAULT_NORETURN.
7773 2014-02-19 Tom Tromey <tromey@redhat.com>
7775 * target-delegates.c: Rebuild.
7776 * target.c (update_current_target): Don't inherit or default
7777 to_download_trace_state_variable.
7778 * target.h (struct target_ops) <to_download_trace_state_variable>:
7779 Use TARGET_DEFAULT_NORETURN.
7781 2014-02-19 Tom Tromey <tromey@redhat.com>
7783 * target-delegates.c: Rebuild.
7784 * target.c (update_current_target): Don't inherit or default
7785 to_can_download_tracepoint.
7786 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7787 TARGET_DEFAULT_RETURN.
7789 2014-02-19 Tom Tromey <tromey@redhat.com>
7791 * target-delegates.c: Rebuild.
7792 * target.c (update_current_target): Don't inherit or default
7793 to_download_tracepoint.
7794 * target.h (struct target_ops) <to_download_tracepoint>: Use
7795 TARGET_DEFAULT_NORETURN.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * target-delegates.c: Rebuild.
7800 * target.c (update_current_target): Don't inherit or default
7802 * target.h (struct target_ops) <to_trace_init>: Use
7803 TARGET_DEFAULT_RETURN.
7805 2014-02-19 Tom Tromey <tromey@redhat.com>
7807 * target-delegates.c: Rebuild.
7808 * target.c (update_current_target): Don't inherit or default
7809 to_supports_string_tracing.
7810 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7811 TARGET_DEFAULT_RETURN.
7813 2014-02-19 Tom Tromey <tromey@redhat.com>
7815 * target-delegates.c: Rebuild.
7816 * target.c (update_current_target): Don't inherit or default
7817 to_supports_enable_disable_tracepoint.
7818 * target.h (struct target_ops)
7819 <to_supports_enable_disable_tracepoint>: Use
7820 TARGET_DEFAULT_RETURN.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target-delegates.c: Rebuild.
7825 * target.c (update_current_target): Don't inherit or default
7826 to_supports_multi_process.
7827 * target.h (struct target_ops) <to_supports_multi_process>: Use
7828 TARGET_DEFAULT_RETURN.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target-delegates.c: Rebuild.
7833 * target.c (update_current_target): Don't inherit or default
7834 to_get_ada_task_ptid.
7835 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7836 TARGET_DEFAULT_FUNC.
7838 2014-02-19 Tom Tromey <tromey@redhat.com>
7840 * target-delegates.c: Rebuild.
7841 * target.c (update_current_target): Don't inherit or default
7842 to_thread_architecture.
7843 * target.h (struct target_ops) <to_thread_architecture>: Use
7844 TARGET_DEFAULT_FUNC.
7846 2014-02-19 Tom Tromey <tromey@redhat.com>
7848 * target-delegates.c: Rebuild.
7849 * target.c (update_current_target): Don't inherit or default
7850 to_execution_direction.
7851 * target.h (struct target_ops) <to_execution_direction>: Use
7852 TARGET_DEFAULT_FUNC.
7854 2014-02-19 Tom Tromey <tromey@redhat.com>
7856 * target-delegates.c: Rebuild.
7857 * target.c (update_current_target): Don't inherit or default
7858 to_can_execute_reverse.
7859 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7860 TARGET_DEFAULT_RETURN.
7861 (target_can_execute_reverse): Unconditionally delegate.
7863 2014-02-19 Tom Tromey <tromey@redhat.com>
7865 * target-delegates.c: Rebuild.
7866 * target.c (update_current_target): Don't inherit or default
7868 (dummy_goto_bookmark): Remove.
7869 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7870 * target.h (struct target_ops) <to_goto_bookmark>: Use
7871 TARGET_DEFAULT_NORETURN.
7873 2014-02-19 Tom Tromey <tromey@redhat.com>
7875 * target-delegates.c: Rebuild.
7876 * target.c (update_current_target): Don't inherit or default
7878 (dummy_get_bookmark): Remove.
7879 (init_dummy_target): Don't inherit or default to_get_bookmark.
7880 * target.h (struct target_ops) <to_get_bookmark>: Use
7881 TARGET_DEFAULT_NORETURN
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_make_corefile_notes.
7888 (init_dummy_target): Don't initialize to_make_corefile_notes.
7889 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7890 TARGET_DEFAULT_FUNC.
7892 2014-02-19 Tom Tromey <tromey@redhat.com>
7894 * target-delegates.c: Rebuild.
7895 * target.c (update_current_target): Don't inherit or default
7896 to_find_memory_regions.
7897 (init_dummy_target): Don't initialize to_find_memory_regions.
7898 * target.h (struct target_ops) <to_find_memory_regions>: Use
7899 TARGET_DEFAULT_FUNC.
7901 2014-02-19 Tom Tromey <tromey@redhat.com>
7903 * target-delegates.c: Rebuild.
7904 * target.c (update_current_target): Don't inherit or default
7906 * target.h (struct target_ops) <to_log_command>: Use
7907 TARGET_DEFAULT_IGNORE.
7908 (target_log_command): Unconditionally delegate.
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7912 * target-delegates.c: Rebuild.
7913 * target.c (update_current_target): Don't inherit or default
7914 to_pid_to_exec_file.
7915 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7916 TARGET_DEFAULT_RETURN.
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target-delegates.c: Rebuild.
7921 * target.c (update_current_target): Don't inherit or default
7923 (target_thread_name): Unconditionally delegate.
7924 * target.h (struct target_ops) <to_thread_name>: Use
7925 TARGET_DEFAULT_RETURN.
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * target-delegates.c: Rebuild.
7930 * target.c (update_current_target): Don't inherit or default
7931 to_extra_thread_info.
7932 * target.h (struct target_ops) <to_extra_thread_info>: Use
7933 TARGET_DEFAULT_RETURN.
7935 2014-02-19 Tom Tromey <tromey@redhat.com>
7937 * target-delegates.c: Rebuild.
7938 * target.c (update_current_target): Don't inherit or default
7940 * target.h (struct target_ops) <to_has_exited>: Use
7941 TARGET_DEFAULT_RETURN..
7943 2014-02-19 Tom Tromey <tromey@redhat.com>
7945 * target-delegates.c: Rebuild.
7946 * target.c (update_current_target): Don't inherit or default
7947 to_set_syscall_catchpoint.
7948 (return_one): Remove.
7949 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7950 TARGET_DEFAULT_RETURN.
7952 2014-02-19 Tom Tromey <tromey@redhat.com>
7954 * target-delegates.c: Rebuild.
7955 * target.c (update_current_target): Don't inherit or default
7956 to_insert_exec_catchpoint.
7957 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7958 TARGET_DEFAULT_RETURN.
7960 2014-01-08 Tom Tromey <tromey@redhat.com>
7962 * target-delegates.c: Rebuild.
7963 * target.c (update_current_target): Don't inherit or default
7964 to_insert_exec_catchpoint.
7965 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7966 TARGET_DEFAULT_RETURN.
7968 2014-02-19 Tom Tromey <tromey@redhat.com>
7970 * target-delegates.c: Rebuild.
7971 * target.c (update_current_target): Don't inherit or default
7972 to_remove_vfork_catchpoint.
7973 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7974 TARGET_DEFAULT_RETURN.
7976 2014-02-19 Tom Tromey <tromey@redhat.com>
7978 * target-delegates.c: Rebuild.
7979 * target.c (update_current_target): Don't inherit or default
7980 to_insert_vfork_catchpoint.
7981 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7982 TARGET_DEFAULT_RETURN.
7984 2014-02-19 Tom Tromey <tromey@redhat.com>
7986 * target-delegates.c: Rebuild.
7987 * target.c (update_current_target): Don't inherit or default
7988 to_remove_fork_catchpoint.
7989 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7990 TARGET_DEFAULT_RETURN.
7992 2014-02-19 Tom Tromey <tromey@redhat.com>
7994 * target-delegates.c: Rebuild.
7995 * target.c (update_current_target): Don't inherit or default
7996 to_insert_fork_catchpoint.
7997 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7998 TARGET_DEFAULT_RETURN.
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_post_startup_inferior.
8005 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8006 TARGET_DEFAULT_IGNORE.
8008 2014-02-19 Tom Tromey <tromey@redhat.com>
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8013 * target.h (struct target_ops) <to_load>: Use
8014 TARGET_DEFAULT_NORETURN.
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8018 * target-delegates.c: Rebuild.
8019 * target.c (update_current_target): Don't inherit or default
8021 * target.h (struct target_ops) <to_terminal_info>: Use
8022 TARGET_DEFAULT_FUNC.
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8026 * target-delegates.c: Rebuild.
8027 * target.c (update_current_target): Don't inherit or default
8028 to_terminal_save_ours.
8029 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8030 TARGET_DEFAULT_IGNORE.
8032 2014-02-19 Tom Tromey <tromey@redhat.com>
8034 * target-delegates.c: Rebuild.
8035 * target.c (update_current_target): Don't inherit or default
8037 * target.h (struct target_ops) <to_terminal_ours>: Use
8038 TARGET_DEFAULT_IGNORE.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target-delegates.c: Rebuild.
8043 * target.c (update_current_target): Don't inherit or default
8044 to_terminal_ours_for_output.
8045 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8046 TARGET_DEFAULT_IGNORE.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * target-delegates.c: Rebuild.
8051 * target.c (update_current_target): Don't inherit or default
8052 to_terminal_inferior.
8053 * target.h (struct target_ops) <to_terminal_inferior>: Use
8054 TARGET_DEFAULT_IGNORE.
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8058 * target-delegates.c: Rebuild.
8059 * target.c (update_current_target): Don't inherit or default
8061 * target.h (struct target_ops) <to_terminal_init>: Use
8062 TARGET_DEFAULT_IGNORE.
8064 2014-02-19 Tom Tromey <tromey@redhat.com>
8066 * target-delegates.c: Rebuild.
8067 * target.c (update_current_target): Don't inherit or default
8068 to_can_accel_watchpoint_condition.
8069 * target.h (struct target_ops)
8070 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8072 2014-02-19 Tom Tromey <tromey@redhat.com>
8074 * target-delegates.c: Rebuild.
8075 * target.c (update_current_target): Don't inherit or default
8076 to_region_ok_for_hw_watchpoint.
8077 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8078 Use TARGET_DEFAULT_FUNC.
8080 2014-02-19 Tom Tromey <tromey@redhat.com>
8082 * target-delegates.c: Rebuild.
8083 * target.c (update_current_target): Don't inherit or default
8084 to_watchpoint_addr_within_range.
8085 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8086 Use TARGET_DEFAULT_FUNC.
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8090 * target-delegates.c: Rebuild.
8091 * target.c (update_current_target): Don't inherit or default
8092 to_remove_watchpoint.
8093 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8094 TARGET_DEFAULT_NORETURN.
8096 2014-02-19 Tom Tromey <tromey@redhat.com>
8098 * target-delegates.c: Rebuild.
8099 * target.c (update_current_target): Don't inherit or default
8100 to_insert_watchpoint.
8101 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8102 TARGET_DEFAULT_RETURN.
8104 2014-02-19 Tom Tromey <tromey@redhat.com>
8106 * target-delegates.c: Rebuild.
8107 * target.c (update_current_target): Don't inherit or default
8108 to_remove_hw_breakpoint.
8109 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8110 TARGET_DEFAULT_RETURN.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target-delegates.c: Rebuild.
8115 * target.c (update_current_target): Don't inherit or default
8116 to_insert_hw_breakpoint.
8117 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8118 TARGET_DEFAULT_RETURN.
8120 2014-02-19 Tom Tromey <tromey@redhat.com>
8122 * target-delegates.c: Rebuild.
8123 * target.c (update_current_target): Don't inherit or default
8124 to_can_use_hw_breakpoint.
8125 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8126 TARGET_DEFAULT_RETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (update_current_target): Don't inherit or default
8133 * target.h (struct target_ops) <to_files_info>: Use
8134 TARGET_DEFAULT_IGNORE.
8136 2014-02-19 Tom Tromey <tromey@redhat.com>
8138 * target-delegates.c: Rebuild.
8139 * target.c (update_current_target): Don't inherit or default
8141 * target.h (struct target_ops) <to_store>: Use
8142 TARGET_DEFAULT_NORETURN.
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8146 * target-delegates.c: Rebuild.
8147 * target.c (update_current_target): Don't inherit or default
8149 * target.h (struct target_ops) <to_post_attach>: Use
8150 TARGET_DEFAULT_IGNORE.
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target-delegates.c: Rebuild.
8155 * target.c (update_current_target): Don't inherit or default
8157 (default_rcmd): New function.
8158 (do_monitor_command): Unconditionally delegate.
8159 * target.h (struct target_ops) <to_rmcd>: Use
8160 TARGET_DEFAULT_FUNC.
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * target-delegates.c: Rebuild.
8165 * target.c (init_dummy_target): Don't initialize to_attach.
8166 (target_attach): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_attach>: Use
8168 TARGET_DEFAULT_FUNC.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_detach): Unconditionally delegate.
8174 (init_dummy_target): Don't initialize to_detach.
8175 * target.h (struct target_ops) <to_detach>: Use
8176 TARGET_DEFAULT_IGNORE.
8178 2014-02-19 Tom Tromey <tromey@redhat.com>
8180 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8182 (target_augmented_libraries_svr4_read): Add argument.
8183 * target.c (update_current_target): Update.
8184 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8189 * target.h (struct target_ops) <to_call_history_range>: Add
8191 * target.c (target_call_history_range): Add argument.
8192 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8194 (record_btrace_call_history_from): Update.
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * target.h (struct target_ops) <to_call_history_from>: Add
8200 * target.c (target_call_history_from): Add argument.
8201 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8204 2014-02-19 Tom Tromey <tromey@redhat.com>
8206 * target.h (struct target_ops) <to_call_history>: Add argument.
8207 * target.c (target_call_history): Add argument.
8208 * record-btrace.c (record_btrace_call_history): Add 'self'
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target.h (struct target_ops) <to_insn_history_range>: Add
8215 * target.c (target_insn_history_range): Add argument.
8216 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8218 (record_btrace_insn_history_from): Update.
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target.h (struct target_ops) <to_insn_history_from>: Add
8224 * target.c (target_insn_history_from): Add argument.
8225 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8230 * target.h (struct target_ops) <to_insn_history>: Add argument.
8231 * target.c (target_insn_history): Add argument.
8232 * record-btrace.c (record_btrace_insn_history): Add 'self'
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8237 * target.h (struct target_ops) <to_goto_record>: Add argument.
8238 * target.c (target_goto_record): Add argument.
8239 * record-full.c (record_full_goto): Add 'self' argument.
8240 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8244 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8245 * target.c (target_goto_record_end): Add argument.
8246 * record-full.c (record_full_goto_end): Add 'self' argument.
8247 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8249 2014-02-19 Tom Tromey <tromey@redhat.com>
8251 * target.h (struct target_ops) <to_goto_record_begin>: Add
8253 * target.c (target_goto_record_begin): Add argument.
8254 * record-full.c (record_full_goto_begin): Add 'self' argument.
8255 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target.h (struct target_ops) <to_record_is_replaying>: Add
8262 * target.c (target_record_is_replaying): Add argument.
8263 * record-full.c (record_full_is_replaying): Add 'self' argument.
8264 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8266 (record_btrace_xfer_partial, record_btrace_store_registers)
8267 (record_btrace_prepare_to_store, record_btrace_resume)
8268 (record_btrace_wait, record_btrace_decr_pc_after_break)
8269 (record_btrace_find_new_threads, record_btrace_thread_alive):
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8274 * target.h (struct target_ops) <to_delete_record>: Add argument.
8275 * target.c (target_delete_record): Add argument.
8276 * record-full.c (record_full_delete): Add 'self' argument.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * target.h (struct target_ops) <to_save_record>: Add argument.
8281 * target.c (target_save_record): Add argument.
8282 * record-full.c (record_full_save): Add 'self' argument.
8283 (record_full_save): Add 'self' argument.
8285 2014-02-19 Tom Tromey <tromey@redhat.com>
8287 * target.h (struct target_ops) <to_info_record>: Add argument.
8288 * target.c (target_info_record): Add argument.
8289 * record.c (info_record_command): Add argument.
8290 * record-full.c (record_full_info): Add 'self' argument.
8291 * record-btrace.c (record_btrace_info): Add 'self' argument.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8296 * target.c (target_stop_recording): Add argument.
8297 * record.c (record_stop): Add argument.
8298 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8304 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8305 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8307 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8308 (_initialize_amd64_linux_nat): Use it.
8309 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8310 (_initialize_i386_linux_nat): Use it.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8314 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8315 * target.c (target_teardown_btrace): Add argument.
8316 * remote.c (remote_teardown_btrace): Add 'self' argument.
8317 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8319 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8325 * target.c (target_disable_btrace): Add argument.
8326 * remote.c (remote_disable_btrace): Add 'self' argument.
8327 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8329 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8334 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8335 * target.c (target_enable_btrace): Add argument.
8336 * remote.c (remote_enable_btrace): Add 'self' argument.
8337 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8339 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8344 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8345 (target_can_use_agent): Add argument.
8346 * target.c (update_current_target): Update.
8347 * remote.c (remote_can_use_agent): Add 'self' argument.
8348 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * target.h (struct target_ops) <to_use_agent>: Add argument.
8353 (target_use_agent): Add argument.
8354 * target.c (update_current_target): Update.
8355 * remote.c (remote_use_agent): Add 'self' argument.
8356 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8358 2014-02-19 Tom Tromey <tromey@redhat.com>
8360 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8361 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8362 (target_traceframe_info): Add argument.
8363 * target.c (update_current_target): Update.
8364 * remote.c (remote_traceframe_info): Add 'self' argument.
8365 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target.h (target_static_tracepoint_markers_by_strid): Add
8371 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8373 * target.c (update_current_target): Update.
8374 * remote.c (struct target_ops)
8375 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8376 * linux-nat.c (struct target_ops)
8377 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8383 (target_static_tracepoint_marker_at): Add argument.
8384 * target.c (update_current_target): Update.
8385 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8391 (target_set_permissions): Add argument.
8392 * target.c (update_current_target): Update.
8393 * remote.c (remote_set_permissions): Add 'self' argument.
8394 (remote_start_remote): Update.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8399 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8400 (target_get_tib_address): Add argument.
8401 * target.c (update_current_target): Update.
8402 * remote.c (remote_get_tib_address): Add 'self' argument.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8407 (target_set_trace_notes): Add argument.
8408 * target.c (update_current_target): Update.
8409 * remote.c (remote_set_trace_notes): Add 'self' argument.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8415 (target_set_trace_buffer_size): Add argument.
8416 * target.c (update_current_target): Update.
8417 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8423 (target_set_circular_trace_buffer): Add argument.
8424 * target.c (update_current_target): Update.
8425 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8432 (target_set_disconnected_tracing): Add argument.
8433 * target.c (update_current_target): Update.
8434 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8438 * target.h (struct target_ops)
8439 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8440 (target_get_min_fast_tracepoint_insn_len): Add argument.
8441 * target.c (update_current_target): Update.
8442 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8449 (target_get_raw_trace_data): Add argument.
8450 * target.c (update_current_target): Update.
8451 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8457 (target_upload_trace_state_variables): Add argument.
8458 * target.c (update_current_target): Update.
8459 * remote.c (remote_upload_trace_state_variables): Add 'self'
8461 (remote_start_remote): Update.
8463 2014-02-19 Tom Tromey <tromey@redhat.com>
8465 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8467 (target_upload_tracepoints): Add argument.
8468 * target.c (update_current_target): Update.
8469 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8470 (remote_start_remote): Update.
8472 2014-02-19 Tom Tromey <tromey@redhat.com>
8474 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8475 (target_save_trace_data): Add argument.
8476 * target.c (update_current_target): Update.
8477 * remote.c (remote_save_trace_data): Add 'self' argument.
8479 2014-02-19 Tom Tromey <tromey@redhat.com>
8481 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8483 * target.h (struct target_ops)
8484 <to_get_trace_state_variable_value>: Add argument.
8485 (target_get_trace_state_variable_value): Add argument.
8486 * target.c (update_current_target): Update.
8487 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8489 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8494 * target.h (struct target_ops) <to_trace_find>: Add argument.
8495 (target_trace_find): Add argument.
8496 * target.c (update_current_target): Update.
8497 * remote.c (remote_trace_find): Add 'self' argument.
8498 * ctf.c (ctf_trace_find): Add 'self' argument.
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8502 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8503 (target_trace_stop): Add argument.
8504 * target.c (update_current_target): Update.
8505 * remote.c (remote_trace_stop): Add 'self' argument.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8510 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8512 (target_get_tracepoint_status): Add argument.
8513 * target.c (update_current_target): Update.
8514 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8519 * target.h (struct target_ops) <to_get_trace_status>: Add
8521 (target_get_trace_status): Add argument.
8522 * target.c (update_current_target): Update.
8523 * remote.c (remote_get_trace_status): Add 'self' argument.
8524 (remote_start_remote, remote_can_download_tracepoint): Update.
8525 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8529 * target.h (struct target_ops) <to_trace_start>: Add argument.
8530 (target_trace_start): Add argument.
8531 * target.c (update_current_target): Update.
8532 * remote.c (remote_trace_start): Add 'self' argument.
8534 2014-02-19 Tom Tromey <tromey@redhat.com>
8536 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8538 (target_trace_set_readonly_regions): Add argument.
8539 * target.c (update_current_target): Update.
8540 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8545 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8547 (target_disable_tracepoint): Add argument.
8548 * target.c (update_current_target): Update.
8549 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8553 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8555 (target_enable_tracepoint): Add argument.
8556 * target.c (update_current_target): Update.
8557 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8561 * target.h (struct target_ops) <to_download_trace_state_variable>:
8563 (target_download_trace_state_variable): Add argument.
8564 * target.c (update_current_target): Update.
8565 * remote.c (remote_download_trace_state_variable): Add 'self'
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8572 (target_can_download_tracepoint): Add argument.
8573 * target.c (update_current_target): Update.
8574 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8578 * target.h (struct target_ops) <to_download_tracepoint>: Add
8580 (target_download_tracepoint): Add argument.
8581 * target.c (update_current_target): Update.
8582 * remote.c (remote_download_tracepoint): Add 'self' argument.
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8586 * target.h (struct target_ops) <to_trace_init>: Add argument.
8587 (target_trace_init): Add argument.
8588 * target.c (update_current_target): Update.
8589 * remote.c (remote_trace_init): Add 'self' argument.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8594 * target.c (target_fileio_readlink): Add argument.
8595 * remote.c (remote_hostio_readlink): Add 'self' argument.
8596 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8600 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8601 * target.c (target_fileio_unlink): Add argument.
8602 * remote.c (remote_hostio_unlink): Add 'self' argument.
8603 (remote_file_delete): Update.
8604 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8608 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8609 * target.c (target_fileio_close): Add argument.
8610 * remote.c (remote_hostio_close): Add 'self' argument.
8611 (remote_hostio_close_cleanup): Update.
8612 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8614 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8618 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8619 * target.c (target_fileio_pread): Add argument.
8620 * remote.c (remote_hostio_pread): Add 'self' argument.
8621 (remote_bfd_iovec_pread, remote_file_get): Update.
8622 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8626 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8627 * target.c (target_fileio_pwrite): Add argument.
8628 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8629 (remote_file_put): Update.
8630 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8634 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8635 * target.c (target_fileio_open): Add argument.
8636 * remote.c (remote_hostio_open): Add 'self' argument.
8637 (remote_bfd_iovec_open): Add 'self' argument.
8638 (remote_file_put): Add 'self' argument.
8639 (remote_file_get): Add 'self' argument.
8640 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8646 (target_can_run_breakpoint_commands): Add argument.
8647 * target.c (update_current_target): Update.
8648 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8650 (remote_insert_breakpoint): Add 'self' argument.
8651 (remote_insert_hw_breakpoint): Add 'self' argument.
8652 (remote_can_run_breakpoint_commands): Add 'self' argument.
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * target.h (struct target_ops)
8657 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8658 (target_supports_evaluation_of_breakpoint_conditions): Add
8660 * target.c (update_current_target): Update.
8661 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8663 (remote_insert_breakpoint): Add 'self' argument.
8664 (remote_insert_hw_breakpoint): Add 'self' argument.
8665 (remote_supports_cond_breakpoints): Add 'self' argument.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8671 (target_supports_string_tracing): Add argument.
8672 * target.c (update_current_target): Update.
8673 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target.h (struct target_ops)
8678 <to_supports_disable_randomization>: Add argument.
8679 * target.c (find_default_supports_disable_randomization): Add
8681 (target_supports_disable_randomization): Add argument.
8682 (find_default_supports_disable_randomization): Add 'self'
8684 * remote.c (extended_remote_supports_disable_randomization): Add
8686 (remote_supports_disable_randomization): Add 'self' argument.
8687 (extended_remote_create_inferior): Update.
8688 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * target.h (struct target_ops)
8694 <to_supports_enable_disable_tracepoint>: Add argument.
8695 (target_supports_enable_disable_tracepoint): Add argument.
8696 * target.c (update_current_target): Update.
8697 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target.h (struct target_ops) <to_supports_multi_process>: Add
8704 (target_supports_multi_process): Add argument.
8705 * target.c (update_current_target): Update.
8706 * remote.c (remote_supports_multi_process): Add 'self' argument.
8707 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8709 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target.h (struct target_ops) <to_execution_direction>: Add
8716 (target_execution_direction): Add argument.
8717 * target.c (default_execution_direction): Add 'self' argument.
8718 * record-full.c (record_full_execution_direction): Add 'self'
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8725 (target_can_execute_reverse): Add argument.
8726 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8727 * record-full.c (record_full_can_execute_reverse): Add 'self'
8729 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8735 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8737 (target_get_ada_task_ptid): Add argument.
8738 * target.c (update_current_target): Update.
8739 (default_get_ada_task_ptid): Add 'self' argument.
8740 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8741 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8742 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8744 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8746 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8748 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8750 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8751 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8756 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8757 (target_goto_bookmark): Add argument.
8758 * target.c (dummy_goto_bookmark): Add 'self' argument.
8759 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8761 2014-02-19 Tom Tromey <tromey@redhat.com>
8763 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8764 (target_get_bookmark): Add argument.
8765 * target.c (dummy_get_bookmark): Add 'self' argument.
8766 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8770 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8772 (target_make_corefile_notes): Add argument.
8773 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8774 * procfs.c (procfs_make_note_section): Add 'self' argument.
8775 (procfs_make_note_section): Add 'self' argument.
8776 (procfs_make_note_section): Add 'self' argument.
8777 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8779 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8780 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8781 * exec.c (exec_make_note_section): Add 'self' argument.
8782 (exec_make_note_section): Add 'self' argument.
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8786 * target.h (struct target_ops) <to_find_memory_regions>: Add
8788 (target_find_memory_regions): Add argument.
8789 * target.c (dummy_find_memory_regions): Add 'self' argument.
8790 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8791 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8792 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8793 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8794 * exec. (exec_do_find_memory_regions): New global.
8795 (exec_set_find_memory_regions): Rewrite.
8796 (exec_find_memory_regions): New function.
8797 (init_exec_ops): Use exec_find_memory_regions.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target.h (struct target_ops) <to_supports_non_stop>: Add
8803 * target.c (find_default_supports_non_stop): Add argument.
8804 (target_supports_non_stop): Add argument.
8805 (find_default_supports_non_stop): Add 'self' argument.
8806 * remote.c (remote_supports_non_stop): Add 'self' argument.
8807 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * target.h (struct target_ops) <to_log_command>: Add argument.
8812 (target_log_command): Add argument.
8813 * serial.h (serial_log_command): Add 'self' argument.
8814 * serial.c (serial_log_command): Add 'self' argument.
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8818 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8819 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8821 (target_pid_to_exec_file): Add argument.
8822 * target.c (debug_to_pid_to_exec_file): Add argument.
8823 (update_current_target): Update.
8824 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8825 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8826 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8827 (linux_handle_extended_wait): Update.
8828 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8829 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8830 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8831 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target.h (struct target_ops) <to_rcmd>: Add argument.
8836 (target_rcmd): Add argument.
8837 * target.c (debug_to_rcmd): Add argument.
8838 (update_current_target, do_monitor_command): Update.
8839 * remote.c (remote_rcmd): Add 'self' argument.
8840 * monitor.c (monitor_rcmd): Add 'self' argument.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * windows-nat.c (windows_stop): Add 'self' argument.
8845 * target.h (struct target_ops) <to_stop>: Add argument.
8846 * target.c (target_stop): Add argument.
8847 (debug_to_stop): Add argument.
8848 (update_current_target): Update.
8849 * remote.c (remote_stop): Add 'self' argument.
8850 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8851 (gdbsim_cntrl_c): Update.
8852 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8853 * procfs.c (procfs_stop): Add 'self' argument.
8854 * nto-procfs.c (procfs_stop): Add 'self' argument.
8855 * monitor.c (monitor_stop): Add 'self' argument.
8856 (monitor_open): Update.
8857 * linux-nat.c (linux_nat_stop): Add argument.
8858 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8859 * gnu-nat.c (gnu_stop): Add 'self' argument.
8860 * darwin-nat.c (darwin_stop): Add 'self' argument.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target.h (struct target_ops) <to_thread_name>: Add argument.
8865 * target.c (target_thread_name): Add argument.
8866 (update_current_target): Update.
8867 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8871 * target.h (struct target_ops) <to_extra_thread_info>: Add
8873 (target_extra_thread_info): Add argument.
8874 * target.c (update_current_target): Update.
8875 * remote.c (remote_threads_extra_info): Add 'self' argument.
8876 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8878 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8879 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8880 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8882 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8884 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8886 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_program_signals>: Add argument.
8892 * target.c (target_program_signals): Add argument.
8893 * remote.c (remote_program_signals): Add 'self' argument.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8898 * target.c (target_pass_signals): Add argument.
8899 * remote.c (remote_pass_signals): Add 'self' argument.
8900 (remote_start_remote): Update.
8901 * procfs.c (procfs_pass_signals): Add 'self' argument.
8902 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8903 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8904 (linux_nat_create_inferior, linux_nat_attach): Update.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * windows-nat.c (windows_can_run): Add 'self' argument.
8909 * target.h (struct target_ops) <to_can_run>: Add argument.
8910 (target_can_run): Add argument.
8911 * target.c (debug_to_can_run): Add argument.
8912 (update_current_target): Update.
8913 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8914 * inf-child.c (inf_child_can_run): Add 'self' argument.
8915 * go32-nat.c (go32_can_run): Add 'self' argument.
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8919 * target.h (struct target_ops) <to_has_exited>: Add argument.
8920 (target_has_exited): Add argument.
8921 * target.c (debug_to_has_exited): Add argument.
8922 (update_current_target): Update.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8928 (target_set_syscall_catchpoint): Add argument.
8929 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8931 * target.c (update_current_target): Update.
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8935 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8937 (target_remove_exec_catchpoint): Add argument.
8938 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8939 (update_current_target): Update.
8940 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8945 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8947 (target_insert_exec_catchpoint): Add argument.
8948 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8949 (update_current_target): Update.
8950 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8957 (target_remove_vfork_catchpoint): Add argument.
8958 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8959 (update_current_target): Update.
8960 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8965 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8967 (target_insert_vfork_catchpoint): Add argument.
8968 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8969 (update_current_target): Update.
8970 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8975 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8977 (target_remove_fork_catchpoint): Add argument.
8978 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8979 (update_current_target): Update.
8980 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8987 (target_insert_fork_catchpoint): Add argument.
8988 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8989 (update_current_target): Update.
8990 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8997 (target_post_startup_inferior): Add argument.
8998 * target.c (debug_to_post_startup_inferior): Add argument.
8999 (update_current_target): Update.
9000 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9002 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9004 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9006 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9008 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9010 (super_post_startup_inferior): Likewise.
9011 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9013 (super_post_startup_inferior): Likewise.
9014 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9015 Add 'self' argument.
9016 (super_post_startup_inferior): Likewise.
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9020 * target.h (struct target_ops) <to_load>: Add argument.
9021 * target.c (target_load): Add argument.
9022 (debug_to_load): Add argument.
9023 (update_current_target): Update.
9024 * remote.c (remote_load): Add 'self' argument.
9025 * remote-sim.c (gdbsim_load): Add 'self' argument.
9026 * remote-mips.c (mips_load): Add 'self' argument.
9027 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9028 * monitor.c (monitor_load): Add 'self' argument.
9029 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9034 (target_terminal_info): Add argument.
9035 * target.c (debug_to_terminal_info): Add argument.
9036 (default_terminal_info): Likewise.
9037 * inflow.c (child_terminal_info): Add 'self' argument.
9038 * inferior.h (child_terminal_info): Add 'self' argument.
9039 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9043 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9045 (target_terminal_save_ours): Add argument.
9046 * target.c (debug_to_terminal_save_ours): Add argument.
9047 (update_current_target): Update.
9048 * inflow.c (terminal_save_ours): Add 'self' argument.
9049 * inferior.h (terminal_save_ours): Add 'self' argument.
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9053 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9054 (target_terminal_ours): Add argument.
9055 * target.c (debug_to_terminal_ours): Add argument.
9056 (update_current_target): Update.
9057 * remote.c (remote_terminal_ours): Add 'self' argument.
9058 (remote_close): Update.
9059 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9060 * inflow.c (terminal_ours): Add 'self' argument.
9061 * inferior.h (terminal_ours): Add 'self' argument.
9062 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9064 2014-02-19 Pedro Alves <palves@redhat.com>
9065 Tom Tromey <tromey@redhat.com>
9067 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9069 (target_terminal_ours_for_output): Add argument.
9070 * target.c (debug_to_terminal_ours_for_output): Add argument.
9071 (update_current_target): Update.
9072 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9073 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9074 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target.h (struct target_ops) <to_terminal_inferior>: Add
9080 * target.c (target_terminal_inferior): Add argument.
9081 (update_current_target): Update.
9082 * remote.c (remote_terminal_inferior): Add 'self' argument.
9083 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9084 * inflow.c (terminal_inferior): Add 'self' argument.
9085 * inferior.h (terminal_inferior): Add 'self' argument.
9086 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9087 (go32_terminal_inferior): Add 'self' argument.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9092 (target_terminal_init): Add argument.
9093 * target.c (debug_to_terminal_init): Add argument.
9094 (update_current_target): Update.
9095 * inflow.c (terminal_init_inferior): Add 'self' argument.
9096 * inferior.h (terminal_init_inferior): Add 'self' argument.
9097 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9098 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9102 * target.h (struct target_ops)
9103 <to_can_accel_watchpoint_condition>: Add argument.
9104 (target_can_accel_watchpoint_condition): Add argument.
9105 * target.c (debug_to_can_accel_watchpoint_condition): Add
9107 (update_current_target): Update.
9108 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9115 (target_region_ok_for_hw_watchpoint): Add argument.
9116 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9117 (default_region_ok_for_hw_watchpoint): Add argument.
9118 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9119 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9121 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9123 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9125 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9127 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9129 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9131 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9132 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9134 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9135 Add 'self' argument.
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9139 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9141 (target_insert_watchpoint): Add argument.
9142 * target.c (debug_to_insert_watchpoint): Add argument.
9143 (update_current_target): Update.
9144 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9145 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9146 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9147 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9148 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9149 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9151 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9152 (procfs_insert_hw_watchpoint): Add 'self' argument.
9153 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9155 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9157 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9159 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9160 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9162 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9169 (target_remove_watchpoint): Add argument.
9170 * target.c (debug_to_remove_watchpoint): Add argument.
9171 (update_current_target): Update.
9172 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9173 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9174 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9175 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9176 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9177 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9179 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9180 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9182 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9184 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9186 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9187 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9189 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9196 (target_remove_hw_breakpoint): Add argument.
9197 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9198 (update_current_target): Update.
9199 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9200 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9202 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9203 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9205 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9212 (target_insert_hw_breakpoint): Add argument.
9213 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9214 (update_current_target): Update.
9215 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9216 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9218 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9219 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9220 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9222 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9229 (target_can_use_hardware_watchpoint): Add argument.
9230 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9231 (update_current_target): Update.
9232 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9234 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9236 * remote.c (remote_check_watch_resources): Add 'self' argument.
9237 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9238 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9240 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9241 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9243 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9245 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9247 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9249 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9251 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9253 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9254 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9256 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target.h (struct target_ops) <to_post_attach>: Add argument.
9262 (target_post_attach): Add argument.
9263 * target.c (debug_to_post_attach): Add argument.
9264 (update_current_target): Update.
9265 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9266 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9267 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9268 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9269 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9273 * windows-nat.c (windows_close): Add 'self' argument.
9274 * tracepoint.c (tfile_close): Add 'self' argument.
9275 * target.h (struct target_ops) <to_close>: Add argument.
9276 * target.c (target_close): Add argument.
9277 (update_current_target): Update.
9278 * remote.c (remote_close): Add 'self' argument.
9279 * remote-sim.c (gdbsim_close): Add 'self' argument.
9280 * remote-mips.c (mips_close): Add 'self' argument.
9281 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9282 * record-full.c (record_full_close): Add 'self' argument.
9283 * record-btrace.c (record_btrace_close): Add 'self' argument.
9284 * monitor.h (monitor_close): Add 'self' argument.
9285 * monitor.c (monitor_close): Add 'self' argument.
9286 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9287 * linux-nat.c (linux_nat_close): Add argument.
9288 * go32-nat.c (go32_close): Add 'self' argument.
9289 * exec.c (exec_close_1): Add 'self' argument.
9290 * ctf.c (ctf_close): Add 'self' argument.
9291 * corelow.c (core_close): Add 'self' argument.
9292 (core_close_cleanup): Update.
9293 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9294 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * remote.c (remote_load): New function.
9299 (init_remote_ops): Use it.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9305 * common/linux-btrace.h (linux_supports_btrace): Update.
9306 * remote.c (remote_supports_btrace): Add "self" argument.
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_supports_btrace): Remove.
9309 * target.h (struct target_ops) <to_supports_btrace>: Add
9310 target_ops argument.
9311 (target_supports_btrace): New define.
9313 2014-02-19 Tom Tromey <tromey@redhat.com>
9315 * record-full.c (record_full_beneath_to_resume_ops)
9316 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9317 (record_full_beneath_to_wait)
9318 (record_full_beneath_to_store_registers_ops)
9319 (record_full_beneath_to_store_registers)
9320 (record_full_beneath_to_xfer_partial_ops)
9321 (record_full_beneath_to_xfer_partial)
9322 (record_full_beneath_to_insert_breakpoint_ops)
9323 (record_full_beneath_to_insert_breakpoint)
9324 (record_full_beneath_to_remove_breakpoint_ops)
9325 (record_full_beneath_to_remove_breakpoint)
9326 (record_full_beneath_to_stopped_by_watchpoint)
9327 (record_full_beneath_to_stopped_data_address)
9328 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9329 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9330 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9331 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9332 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9333 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9334 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9335 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9336 (record_full_resume, record_full_wait_1)
9337 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9338 (record_full_store_registers, record_full_xfer_partial)
9339 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9340 (record_full_async, record_full_core_xfer_partial): Use target
9342 * target-delegates.c: Rebuild.
9343 * target.c (current_xfer_partial): Remove.
9344 (update_current_target): Do not INHERIT or de_fault
9345 to_insert_breakpoint, to_remove_breakpoint,
9346 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9347 to_is_async_p, to_async. Do not set to_xfer_partial field.
9348 (default_xfer_partial): Simplify.
9349 (current_xfer_partial): Remove.
9350 (target_wait, target_resume): Simplify.
9351 (find_default_can_async_p, find_default_is_async_p): Update.
9352 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9353 to_xfer_partial, to_stopped_by_watchpoint,
9354 to_stopped_data_address.
9355 (target_store_registers): Simplify.
9356 (forward_target_remove_breakpoint)
9357 (forward_target_insert_breakpoint): Remove.
9358 (target_remove_breakpoint, target_insert_breakpoint)
9359 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9360 * target.h (struct target_ops) <to_resume, to_wait,
9361 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9362 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9363 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9365 (forward_target_remove_breakpoint)
9366 (forward_target_insert_breakpoint): Remove.
9367 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9369 (record_btrace_insert_breakpoint): Delegate directly.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target-delegates.c: New file.
9375 * target.c: Include target-delegates.c.
9376 (init_dummy_target): Call install_dummy_methods.
9377 (complete_target_initialization): Call install_delegators.
9378 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9379 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9380 * make-target-delegates: New file.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * record.c (find_record_target): Use find_target_at.
9385 * target.c (find_target_at): New function.
9386 * target.h (find_target_at): Declare.
9388 2014-02-19 Tom Tromey <tromey@redhat.com>
9390 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9392 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9394 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9395 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9397 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9399 * linux-nat.c (save_sigtrap): Update.
9400 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9401 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9402 (linux_nat_close): Update.
9403 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9405 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9407 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9408 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9409 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9410 (tmp_to_async): Add 'ops' argument.
9411 (record_full_stopped_by_watchpoint, record_full_async)
9412 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9414 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9415 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9416 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9417 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9418 (remote_is_async_p, remote_async): Add 'ops' argument.
9419 (remote_stopped_data_address): Update.
9420 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9421 * target.c (update_current_target)
9422 (find_default_can_async_p, find_default_is_async_p): Update.
9423 (init_dummy_target): Update.
9424 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9425 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9426 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9427 (target_can_async_p, target_is_async_p, target_async)
9428 (target_stopped_by_watchpoint): Update.
9430 2014-02-19 Yao Qi <yao@codesourcery.com>
9433 * gdbarch.sh: Remove startup_gdbarch.
9434 * gdbarch.c: Regenerated.
9435 * gdbarch.h: Likewise.
9437 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9439 * rl78-tdep.c (rl78_g10_register_name): New function.
9440 (rl78_return_value): Add g10 support.
9441 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9444 2014-02-17 Doug Evans <xdje42@gmail.com>
9446 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9447 (SUBDIR_GUILE_SRCS): Ditto.
9448 (scm-gsmob.o): Ditto.
9450 2014-02-17 Yao Qi <yao@codesourcery.com>
9452 * gnu-nat.c (ILL_RPC): Declare defined function.
9454 2014-02-17 Yao Qi <yao@codesourcery.com>
9456 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9457 mach_msg_type_number_t.
9458 (gnu_write_inferior): Likewise.
9460 2014-02-17 Yao Qi <yao@codesourcery.com>
9462 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9464 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9465 (inf_validate_procs, inf_signal): Likewise.
9466 (S_exception_raise_request): Likewise.
9467 (do_mach_notify_dead_name): Likewise.
9468 (steal_exc_port): Likewise.
9469 (gnu_read_inferior): Change 'copy_count''s type to
9470 mach_msg_type_number_t.
9471 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9474 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9476 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9477 flag. Adjust all users; in particular...
9478 (gnu_wait): ..., don't decrement its value in here...
9479 (gnu_create_inferior): ..., and instead set the flag in here,
9480 around the startup_inferior call, and call that one with
9481 START_INFERIOR_TRAPS_EXPECTED.
9483 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9484 (ILL_RPC): ... new macro.
9485 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9486 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9487 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9488 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9489 functions with ILL_RPC macro.
9490 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9491 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9492 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9493 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9494 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9495 (S_proc_getlogin_reply, S_proc_getsid_reply)
9496 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9497 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9498 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9499 (S_proc_getnports_reply, S_proc_is_important_reply)
9500 (S_proc_get_code_reply): New stub functions, generated with
9503 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9504 collected the type check structures.
9506 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9508 2014-02-14 Doug Evans <dje@google.com>
9510 * target.c (target_write_partial): Fix result type.
9512 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9514 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9515 the proper offsets to access fpregset_t.
9517 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9519 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9520 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9521 * h8300-tdep.c (setmachinelist): Remove global.
9522 * hppa-tdep.c (hppa_sigtramp): Remove global.
9523 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9524 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9525 * ravenscar-thread.c (update_target_observer): Remove global.
9526 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9528 2014-02-12 Tom Tromey <tromey@redhat.com>
9530 * common/rsp-low.c: Update comments.
9531 * common/rsp-low.h: Update comments.
9533 2014-02-12 Tom Tromey <tromey@redhat.com>
9535 * common/rsp-low.c (convert_ascii_to_int): Remove.
9536 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9538 2014-02-12 Tom Tromey <tromey@redhat.com>
9540 * common/rsp-low.h (unhexify): Don't declare.
9541 * common/rsp-low.c (unhexify): Remove.
9543 2014-02-12 Tom Tromey <tromey@redhat.com>
9545 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9546 * common/rsp-low.c (convert_int_to_ascii): Remove.
9548 2014-02-12 Tom Tromey <tromey@redhat.com>
9550 * common/rsp-low.h (hexify): Don't declare.
9551 * common/rsp-low.c (hexify): Remove.
9553 2014-02-12 Tom Tromey <tromey@redhat.com>
9555 * common/rsp-low.c (hexify): Never take strlen of argument.
9557 2014-02-12 Tom Tromey <tromey@redhat.com>
9559 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9560 * remote.c (extended_remote_run, remote_rcmd)
9561 (remote_download_trace_state_variable, remote_save_trace_data)
9562 (remote_set_trace_notes): Update.
9563 * tracepoint.c (encode_source_string, tfile_write_status)
9564 (tfile_write_uploaded_tsv): Update.
9566 2014-02-12 Tom Tromey <tromey@redhat.com>
9568 * tracepoint.c: Include rsp-low.h.
9569 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9570 * remote.c: Include rsp-low.h.
9571 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9572 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9573 (remote_unescape_input): Move to common/rsp-low.c.
9574 * common/rsp-low.h: New file.
9575 * common/rsp-low.c: New file.
9576 * Makefile.in (SFILES): Add common/rsp-low.c.
9577 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9578 (COMMON_OBS): Add rsp-low.o.
9579 (rsp-low.o): New target.
9581 2014-02-12 Tom Tromey <tromey@redhat.com>
9583 * utils.h: Include print-utils.h.
9584 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9585 (int_string, core_addr_to_string, core_addr_to_string_nz)
9586 (hex_string, hex_string_custom): Don't declare.
9587 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9588 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9589 (hex_string_custom, int_string, core_addr_to_string)
9590 (core_addr_to_string_nz, host_address_to_string): Move to
9591 common/print-utils.c.
9592 * common/print-utils.h: New file.
9593 * common/print-utils.c: New file
9594 * Makefile.in (SFILES): Add common/print-utils.c.
9595 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9596 (COMMON_OBS): Add print-utils.o.
9597 (print-utils.o): New target.
9599 2014-02-12 Tom Tromey <tromey@redhat.com>
9601 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9603 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9605 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9607 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9609 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9610 if a PT_IO ptrace request returns sucessfully but indicates that 0
9611 bytes were transferred.
9613 2014-02-12 Pedro Alves <palves@redhat.com>
9614 Kevin Buettner <kevinb@redhat.com>
9616 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9617 TYPE_INSTANCE_FLAG_CODE_SPACE.
9619 2014-02-12 Pedro Alves <palves@redhat.com>
9621 * h8300-tdep.c (pseudo_from_raw_register)
9622 (raw_from_pseudo_register): New functions.
9623 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9626 2014-02-12 Pedro Alves <palves@redhat.com>
9628 * h8300-tdep.c (h8300_register_sim_regno): New function.
9629 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9630 gdbarch_register_sim_regno hook.
9632 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9634 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9636 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9638 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9640 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9642 * obsd-tdep.h (obsd_init_abi): New prototype.
9643 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9644 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9645 (obsd_init_abi): New functions.
9646 * i386obsd-tdep.c: Include "obsd-tdep.h".
9647 (i386obsd_init_abi): Call obsd_init_abi.
9648 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9649 (amd64obsd_init_abi): Call obsd_init_abi.
9650 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9651 obsd-tdep.c to gdb_target_obs.
9653 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9655 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9656 double float arguments to 16-byte in the argument slots.
9658 2014-02-11 Doug Evans <xdje42@gmail.com>
9660 * configure.ac: Don't crash if pkg-config is not found and guile
9661 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9663 * configure: Regenerate.
9665 2014-02-11 Yao Qi <yao@codesourcery.com>
9667 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9668 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9669 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9670 * gnu-nat.c (gnu_xfer_memory): Likewise.
9671 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9672 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9673 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9674 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9676 2014-02-11 Yao Qi <yao@codesourcery.com>
9678 * target.h (enum target_xfer_error): Rename to ...
9679 (enum target_xfer_status): ... it. New. All users updated.
9680 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9682 (TARGET_XFER_STATUS_ERROR_P): New macro.
9683 (target_xfer_error_to_string): Remove declaration.
9684 (target_xfer_status_to_string): Declare.
9685 (target_xfer_partial_ftype): Adjust it.
9686 (struct target_ops) <to_xfer_partial>: Return
9687 target_xfer_status. Add argument xfered_len. Update
9689 * target.c (target_xfer_error_to_string): Rename to ...
9690 (target_xfer_status_to_string): ... it. New. All callers
9692 (target_read_live_memory): Likewise. Call target_xfer_partial
9693 instead of target_read.
9694 (memory_xfer_live_readonly_partial): Return
9695 target_xfer_status. Add argument xfered_len.
9696 (raw_memory_xfer_partial): Likewise.
9697 (memory_xfer_partial_1): Likewise.
9698 (memory_xfer_partial): Likewise.
9699 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9700 properly. Update debug message.
9701 (default_xfer_partial, current_xfer_partial): Likewise.
9702 (target_write_partial): Likewise.
9703 (target_read_partial): Likewise. All callers updated.
9704 (read_whatever_is_readable): Likewise.
9705 (target_write_with_progress): Likewise.
9706 (target_read_alloc_1): Likewise.
9708 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9709 * auxv.c (procfs_xfer_auxv): Likewise.
9710 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9711 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9712 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9713 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9714 * corefile.c (read_memory): Adjust.
9715 * corelow.c (core_xfer_partial): Likewise.
9716 * ctf.c (ctf_xfer_partial): Likewise.
9717 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9719 (darwin_xfer_partial): Likewise.
9720 * exec.c (section_table_xfer_memory_partial): Likewise. All
9722 (exec_xfer_partial): Likewise.
9723 * exec.h (section_table_xfer_memory_partial): Update
9725 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9727 (gnu_xfer_partial): Likewise.
9728 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9729 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9730 (ia64_hpux_xfer_solib_got): Likewise.
9731 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9732 type of 'partial_len' to ULONGEST.
9733 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9734 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9735 (linux_nat_xfer_partial): Likewise.
9736 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9737 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9738 * monitor.c (monitor_xfer_memory): Likewise.
9739 (monitor_xfer_partial): Likewise.
9740 * procfs.c (procfs_xfer_partial): Likewise.
9741 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9742 * record-full.c (record_full_xfer_partial): Likewise.
9743 (record_full_core_xfer_partial): Likewise.
9744 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9745 (gdbsim_xfer_partial): Likewise.
9746 * remote.c (remote_write_bytes_aux): Likewise. All callers
9748 (remote_write_bytes, remote_read_bytes): Likewise. All
9750 (remote_flash_erase): Likewise. All callers updated.
9751 (remote_write_qxfer): Likewise. All callers updated.
9752 (remote_read_qxfer): Likewise. All callers updated.
9753 (remote_xfer_partial): Likewise.
9754 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9755 (rs6000_xfer_shared_libraries): Likewise.
9756 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9757 (sol_thread_xfer_partial): Likewise.
9758 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9759 (sparc_xfer_partial): Likewise.
9760 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9762 (spu_xfer_partial): Likewise.
9763 * spu-multiarch.c (spu_xfer_partial): Likewise.
9764 * tracepoint.c (tfile_xfer_partial): Likewise.
9765 * windows-nat.c (windows_xfer_memory): Likewise.
9766 (windows_xfer_shared_libraries): Likewise.
9767 (windows_xfer_partial): Likewise.
9768 * valprint.c: Replace 'target_xfer_error' with
9769 'target_xfer_status' in comments.
9771 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9773 Checked in by Joel Brobecker <brobecker@adacore.com>.
9774 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9776 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9778 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9779 function parameters.
9781 2014-02-10 Will Newton <will.newton@linaro.org>
9783 * elfread.c (elf_rel_plt_read): Look for a .got section if
9784 looking up .got.plt fails.
9785 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9786 on address passed to elf_gnu_ifunc_record_cache.
9787 (elf_gnu_ifunc_resolve_addr): Likewise.
9788 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9790 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9792 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9793 (X_RETTURN): New macro.
9794 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9796 * sparc64-tdep.c (sparc64_init_abi): Hook
9797 sparc_in_function_epilogue_p.
9799 2014-02-10 Gary Benson <gbenson@redhat.com>
9801 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9802 Rename name_matcher to symbol_matcher.
9804 2014-02-10 Gary Benson <gbenson@redhat.com>
9806 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9807 Use expand_symtabs_file_matcher_ftype and
9808 expand_symtabs_symbol_matcher_ftype.
9810 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9812 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9813 (struct ada_symbol_cache): New.
9814 (ada_free_symbol_cache): Forward declare.
9815 (struct ada_pspace_data): New.
9816 (ada_pspace_data_handle): New static global.
9817 (get_ada_pspace_data, ada_pspace_data_cleanup)
9818 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9819 (cache_space, cache): Delete, now folded inside struct
9821 (ada_get_symbol_cache): New function.
9822 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9824 (_initialize_ada_language): Remove initialization of cache_space.
9825 Move call to observer_attach_inferior_exit up, grouping it
9826 with the other observer registrations inside this function.
9827 Rename command to be more general. Add call to
9828 register_program_space_data_with_cleanup.
9830 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9832 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9833 ada_new_objfile_observer.
9834 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9835 (_initialize_tasks): Update uses of ada_new_objfile_observer
9836 and ada_tasks_normal_stop_observer.
9838 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9840 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9841 returned by the 'Length attribute to integer.
9843 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9845 * ada-lang.c (_initialize_ada_language): Initialize
9846 cache_space obstack.
9848 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9850 * ada-lang.c (HASH_SIZE): New macro.
9851 (struct cache_entry): New type.
9852 (cache_space, cache): New static globals.
9853 (ada_clear_symbol_cache, find_entry): New functions.
9854 (lookup_cached_symbol, cache_symbol): Implement.
9855 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9856 (_initialize_ada_language): Attach ada_new_objfile_observer
9857 and ada_free_objfile_observer.
9859 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9861 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9862 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9863 struct block * parameter.
9864 (ada_lookup_symbol_list_worker): Constify local variable "block".
9865 Remove cast which is no longer necessary.
9867 2014-02-10 Doug Evans <xdje42@gmail.com>
9869 Add Guile as an extension language.
9870 * NEWS: Mention Guile scripting.
9871 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9872 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9873 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9874 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9875 (CLIBS): Add GUILE_LIBS.
9876 (install-guile): New rule.
9877 (guile.o): New rule.
9878 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9879 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9880 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9881 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9882 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9883 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9884 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9885 * configure.ac: New option --with-guile.
9886 * configure: Regenerate.
9887 * config.in: Regenerate.
9888 * auto-load.c: Remove #include "python/python.h". Add #include
9889 "gdb/section-scripts.h".
9890 (source_section_scripts): Handle Guile scripts.
9891 (_initialize_auto_load): Add name of Guile objfile script to
9892 scripts-directory help text.
9893 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9894 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9895 (struct breakpoint): New member scm_bp_object.
9896 * defs.h (enum command_control_type): New value guile_control.
9897 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9899 (show_user): Update comment.
9900 (_initialize_cli_cmds): Update help text for "show user". Update help
9901 text for max-user-call-depth.
9902 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9904 (multi_line_command_p): Add guile_control.
9905 (print_command_lines): Handle guile_control.
9906 (execute_control_command, recurse_read_control_structure): Ditto.
9907 (process_next_line): Recognize "guile" commands.
9908 * disasm.c (gdb_disassemble_info): Make non-static.
9909 * disasm.h: #include "dis-asm.h".
9910 (struct gdbarch): Add forward decl.
9911 (gdb_disassemble_info): Declare.
9912 * extension.c: #include "guile/guile.h".
9913 (extension_languages): Add guile.
9914 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9915 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9916 * gdbtypes.c (get_unsigned_type_max): New function.
9917 (get_signed_type_minmax): New function.
9918 * gdbtypes.h (get_unsigned_type_max): Declare.
9919 (get_signed_type_minmax): Declare.
9920 * guile/README: New file.
9921 * guile/guile-internal.h: New file.
9922 * guile/guile.c: New file.
9923 * guile/guile.h: New file.
9924 * guile/scm-arch.c: New file.
9925 * guile/scm-auto-load.c: New file.
9926 * guile/scm-block.c: New file.
9927 * guile/scm-breakpoint.c: New file.
9928 * guile/scm-disasm.c: New file.
9929 * guile/scm-exception.c: New file.
9930 * guile/scm-frame.c: New file.
9931 * guile/scm-gsmob.c: New file.
9932 * guile/scm-iterator.c: New file.
9933 * guile/scm-lazy-string.c: New file.
9934 * guile/scm-math.c: New file.
9935 * guile/scm-objfile.c: New file.
9936 * guile/scm-ports.c: New file.
9937 * guile/scm-pretty-print.c: New file.
9938 * guile/scm-safe-call.c: New file.
9939 * guile/scm-string.c: New file.
9940 * guile/scm-symbol.c: New file.
9941 * guile/scm-symtab.c: New file.
9942 * guile/scm-type.c: New file.
9943 * guile/scm-utils.c: New file.
9944 * guile/scm-value.c: New file.
9945 * guile/lib/gdb.scm: New file.
9946 * guile/lib/gdb/boot.scm: New file.
9947 * guile/lib/gdb/experimental.scm: New file.
9948 * guile/lib/gdb/init.scm: New file.
9949 * guile/lib/gdb/iterator.scm: New file.
9950 * guile/lib/gdb/printing.scm: New file.
9951 * guile/lib/gdb/types.scm: New file.
9952 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9953 (VPATH): Add $(GUILE_SRCDIR).
9954 (GUILE_DIR): New variable.
9955 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9956 (all): Add stamp-guile dependency.
9957 (stamp-guile): New rule.
9958 (clean-guile, install-guile, uninstall-guile): New rules.
9959 (install-only): Add install-guile dependency.
9960 (uninstall): Add uninstall-guile dependency.
9961 (clean): Add clean-guile dependency.
9963 2014-02-09 Doug Evans <xdje42@gmail.com>
9965 Revert this patch (which I approved, mea culpa).
9967 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9969 * Makefile.in (all-lib): Remove.
9970 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9972 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9974 Fix Python stack corruption.
9975 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9978 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9980 * Makefile.in (all-lib): Remove.
9981 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9983 2014-02-07 Doug Evans <dje@google.com>
9985 * extension-priv.h (extension_language_script_ops): Add comment.
9986 (extension_language_ops): Add comment.
9987 (active_ext_lang_state): Fix typo in comment.
9989 2014-02-07 Pedro Alves <palves@redhat.com>
9991 PR breakpoints/16292
9992 * infrun.c (handle_signal_stop) <signal arrives while stepping
9993 over a breakpoint>: Switch back to the stepping thread.
9995 2014-02-07 Yao Qi <yao@codesourcery.com>
9997 * target.c (target_xfer_partial): Return zero if LEN is zero.
9999 2014-02-07 Yao Qi <yao@codesourcery.com>
10001 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10002 (ld_so_xfer_auxv): Likewise.
10003 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10004 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10005 * corelow.c (core_xfer_partial): Likewise.
10006 * ctf.c (ctf_xfer_partial): Likewise.
10007 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10008 (darwin_xfer_partial): Likewise.
10009 * exec.c (exec_xfer_partial): Likewise.
10010 * gnu-nat.c (gnu_xfer_partial): Likewise.
10011 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10012 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10013 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10014 * linux-nat.c (linux_xfer_siginfo): Likewise.
10015 (linux_proc_xfer_spu): Likewise.
10016 * procfs.c (procfs_xfer_partial): Likewise.
10017 * record-full.c (record_full_xfer_partial): Likewise.
10018 (record_full_core_xfer_partial): Likewise.
10019 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10020 * remote.c (remote_write_qxfer): Likewise.
10021 (remote_write_qxfer, remote_read_qxfer): Likewise.
10022 (remote_xfer_partial): Likewise.
10023 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10024 (rs6000_xfer_shared_libraries): Likewise.
10025 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10026 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10027 (spu_xfer_partial): Likewise.
10028 * target.c (memory_xfer_partial_1): Likewise.
10029 * tracepoint.c (tfile_xfer_partial): Likewise.
10030 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10031 (windows_xfer_partial): Likewise.
10033 2014-02-07 Yao Qi <yao@codesourcery.com>
10035 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10037 (core_xfer_shared_libraries_aix): Likewise.
10038 * gdbarch.c, gdbarch.h: Regenerated.
10039 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10040 ULONGEST. Change 'len_avail' type to ULONGEST.
10041 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10042 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10044 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10046 2014-02-07 Yao Qi <yao@codesourcery.com>
10048 * corefile.c (memory_error): Get 'exception' from ERR and pass
10049 'exception' to throw_error.
10051 2014-02-06 Doug Evans <xdje42@gmail.com>
10053 * configure.ac (libpython checking): Remove all but python.o from
10054 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10055 * configure: Regenerate.
10057 * Makefile.in (SFILES): Add extension.c.
10058 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10059 (COMMON_OBS): Add extension.o.
10060 * extension.h: New file.
10061 * extension-priv.h: New file.
10062 * extension.c: New file.
10064 * python/python-internal.h: #include "extension.h".
10065 (gdbpy_auto_load_enabled): Declare.
10066 (gdbpy_apply_val_pretty_printer): Declare.
10067 (gdbpy_apply_frame_filter): Declare.
10068 (gdbpy_preserve_values): Declare.
10069 (gdbpy_breakpoint_cond_says_stop): Declare.
10070 (gdbpy_breakpoint_has_cond): Declare.
10071 (void source_python_script_for_objfile): Delete.
10072 * python/python.c: #include "extension-priv.h".
10073 Delete inclusion of "observer.h".
10074 (extension_language_python): Moved here and renamed from
10075 script_language_python in py-auto-load.c.
10076 Redefined to be of type extension_language_defn.
10077 (python_extension_script_ops): New global.
10078 (python_extension_ops): New global.
10079 (struct python_env): New member previous_active.
10080 (restore_python_env): Call restore_active_ext_lang.
10081 (ensure_python_env): Call set_active_ext_lang.
10082 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10084 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10086 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10088 (gdbpy_eval_from_control_command): Renamed from
10089 eval_python_from_control_command, made static. New arg extlang.
10090 (gdbpy_source_script) Renamed from source_python_script, made static.
10092 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10093 result to int. New arg extlang.
10094 (gdbpy_source_objfile_script): Renamed from
10095 source_python_script_for_objfile, made static. New arg extlang.
10096 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10097 static. New args extlang, extlang_printers. Change result type to
10099 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10100 static. New arg extlang. Rename arg printers to extlang_printers
10101 and change type to ext_lang_type_printers *.
10102 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10103 static. Replace argument arg with extlang, extlang_printers.
10104 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10105 (!HAVE_PYTHON, source_python_script): Delete.
10106 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10107 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10108 (!HAVE_PYTHON, start_type_printers): Delete.
10109 (!HAVE_PYTHON, apply_type_printers): Delete.
10110 (!HAVE_PYTHON, free_type_printers): Delete.
10111 (_initialize_python): Delete call to observer_attach_before_prompt.
10112 (finalize_python): Set/restore active extension language.
10113 (gdbpy_finish_initialization) Renamed from
10114 finish_python_initialization, made static. New arg extlang.
10115 (gdbpy_initialized): New function.
10116 * python/python.h: #include "extension.h". Delete #include
10117 "value.h", "mi/mi-cmds.h".
10118 (extension_language_python): Declare.
10119 (GDBPY_AUTO_FILE_NAME): Delete.
10120 (enum py_bt_status): Moved to extension.h and renamed to
10121 ext_lang_bt_status.
10122 (enum frame_filter_flags): Moved to extension.h.
10123 (enum py_frame_args): Moved to extension.h and renamed to
10124 ext_lang_frame_args.
10125 (finish_python_initialization): Delete.
10126 (eval_python_from_control_command): Delete.
10127 (source_python_script): Delete.
10128 (apply_val_pretty_printer): Delete.
10129 (apply_frame_filter): Delete.
10130 (preserve_python_values): Delete.
10131 (gdbpy_script_language_defn): Delete.
10132 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10133 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10135 * auto-load.c: #include "extension.h".
10136 (GDB_AUTO_FILE_NAME): Delete.
10137 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10138 (script_language_gdb): Delete, moved to extension.c and renamed to
10139 extension_language_gdb.
10140 (source_gdb_script_for_objfile): Delete.
10141 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10142 (loaded_script): Change type of language member to
10143 struct extension_language_defn *.
10144 (init_loaded_scripts_info): Initialize
10145 unsupported_script_warning_printed.
10146 (maybe_add_script): Make static. Change type of language arg to
10147 struct extension_language_defn *.
10148 (clear_section_scripts): Reset unsupported_script_warning_printed.
10149 (auto_load_objfile_script_1): Rewrite to use extension language API.
10150 (auto_load_objfile_script): Make public. Remove support-compiled-in
10151 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10152 (source_section_scripts): Rewrite to use extension language API.
10153 (load_auto_scripts_for_objfile): Rewrite to use
10154 auto_load_scripts_for_objfile.
10155 (collect_matching_scripts_data): Change type of language member to
10156 struct extension_language_defn *.
10157 (auto_load_info_scripts): Change type of language arg to
10158 struct extension_language_defn *.
10159 (unsupported_script_warning_print): New function.
10160 (script_not_found_warning_print): Make static.
10161 (_initialize_auto_load): Rewrite construction of scripts-directory
10163 * auto-load.h (struct objfile): Add forward decl.
10164 (struct script_language): Delete.
10165 (struct auto_load_pspace_info): Add forward decl.
10166 (struct extension_language_defn): Add forward decl.
10167 (maybe_add_script): Delete.
10168 (auto_load_objfile_script): Declare.
10169 (script_not_found_warning_print): Delete.
10170 (auto_load_info_scripts): Update prototype.
10171 (auto_load_gdb_scripts_enabled): Declare.
10172 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10173 auto_load_python_scripts_enabled and made public.
10174 (script_language_python): Delete, moved to python.c.
10175 (gdbpy_script_language_defn): Delete.
10176 (info_auto_load_python_scripts): Update to use
10177 extension_language_python.
10179 * breakpoint.c (condition_command): Replace call to
10180 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10181 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10182 with call to breakpoint_ext_lang_cond_says_stop.
10183 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10184 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10185 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10186 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10188 (local_setattro): Print name of extension language with existing
10191 * valprint.c (val_print, value_print): Update to call
10192 apply_ext_lang_val_pretty_printer.
10193 * cp-valprint.c (cp_print_value): Update call to
10194 apply_ext_lang_val_pretty_printer.
10195 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10196 (gdbpy_apply_val_pretty_printer): Renamed from
10197 apply_val_pretty_printer. New arg extlang.
10198 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10200 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10201 extension language API.
10202 * cli/cli-script.c (execute_control_command): Update to call
10203 eval_ext_lang_from_control_command.
10205 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10206 enum ext_lang_bt_status values. Update call to
10207 apply_ext_lang_frame_filter.
10208 (mi_cmd_stack_list_locals): Ditto.
10209 (mi_cmd_stack_list_args): Ditto.
10210 (mi_cmd_stack_list_variables): Ditto.
10211 * mi/mi-main.c: Delete #include "python/python-internal.h".
10212 Add #include "extension.h".
10213 (mi_cmd_list_features): Replace reference to python internal variable
10214 gdb_python_initialized with call to ext_lang_initialized_p.
10216 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10217 Update to use enum ext_lang_frame_args. Update to call
10218 apply_ext_lang_frame_filter.
10219 * python/py-framefilter.c (extract_sym): Update to use enum
10220 ext_lang_bt_status.
10221 (extract_value, py_print_type, py_print_value): Ditto.
10222 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10223 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10224 (py_print_frame): Ditto.
10225 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10226 New arg extlang. Update to use enum ext_lang_bt_status.
10228 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10229 finish_python_initialization. Replace with call to
10230 finish_ext_lang_initialization.
10232 * typeprint.c (do_free_global_table): Update to call
10233 free_ext_lang_type_printers.
10234 (create_global_typedef_table): Update to call
10235 start_ext_lang_type_printers.
10236 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10237 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10238 (type_print_options): Change type of global_printers from "void *"
10239 to "struct ext_lang_type_printers *".
10241 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10242 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10243 (gdbpy_preserve_values): Renamed from preserve_python_values.
10245 (!HAVE_PYTHON, preserve_python_values): Delete.
10247 * utils.c (quit_flag): Delete, moved to extension.c.
10248 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10251 * eval.c: Delete #include "python/python.h".
10252 * main.c: Delete #include "python/python.h".
10254 * defs.h: Update comment.
10256 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10260 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10262 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10265 2014-02-05 Yao Qi <yao@codesourcery.com>
10267 * remote.c (remote_pass_signals): Remove local 'buf' and use
10269 (remote_program_signals): Likewise.
10271 2014-02-05 Yao Qi <yao@codesourcery.com>
10273 * ctf.c: Include "inferior.h" and "gdbthread.h".
10274 (CTF_PID): A new macro.
10275 (ctf_open): Call inferior_appeared and add_thread_silent.
10276 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10277 (ctf_thread_alive): New function.
10278 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10280 2014-02-05 Yao Qi <yao@codesourcery.com>
10284 2013-05-24 Yao Qi <yao@codesourcery.com>
10286 * tracepoint.c (TFILE_PID): Remove.
10287 (tfile_open): Don't add thread and inferior.
10288 (tfile_close): Don't set 'inferior_ptid'. Don't call
10289 exit_inferior_silent.
10290 (tfile_thread_alive): Remove.
10291 (init_tfile_ops): Don't set field 'to_thread_alive' of
10294 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10296 * remote.c (remote_start_remote): Call remote_check_symbols even
10297 if only symbol-file (not file) has been given.
10299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10301 * gdbarch.sh (skip_entrypoint): New callback.
10302 * gdbarch.c, gdbarch.h: Regenerate.
10303 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10304 * infrun.c (fill_in_stop_func): Likewise.
10305 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10306 (ppc_elfv2_elf_make_msymbol_special): New function.
10307 (ppc_elfv2_skip_entrypoint): Likewise.
10308 (ppc_linux_init_abi): Install them for ELFv2.
10310 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10312 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10313 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10314 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10315 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10316 structures returned in GPRs.
10318 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10320 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10321 offset to the stack parameter list for the ELFv2 ABI.
10323 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10325 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10326 set_gdbarch_convert_from_func_ptr_addr and
10327 set_gdbarch_elf_make_msymbol_special for ELFv1.
10328 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10329 function descriptors on ELFv1.
10330 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10331 set up r12 at function entry.
10333 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10335 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10336 (struct gdbarch_tdep): New member elf_abi.
10338 * rs6000-tdep.c: Include "elf/ppc64.h".
10339 (rs6000_gdbarch_init): Detect ELF ABI version.
10341 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10343 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10344 within a register pair holding a DFP 128-bit value on little-endian.
10345 (ppc64_sysv_abi_return_value_base): Likewise.
10346 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10347 (dfp_pseudo_register_write): Likewise.
10349 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10351 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10352 offset on little-endian when passing _Decimal32.
10353 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10355 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10357 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10358 of the overlapped FP register within the VSX register on little-
10360 (efpr_pseudo_register_write): Likewise.
10362 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10364 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10365 offset on little-endian when passing small structures.
10367 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10369 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10370 (struct ppc64_sysv_argpos): New data structure.
10371 (ppc64_sysv_abi_push_float): Remove.
10372 (ppc64_sysv_abi_push_val): New function.
10373 (ppc64_sysv_abi_push_integer): Likewise.
10374 (ppc64_sysv_abi_push_freg): Likewise.
10375 (ppc64_sysv_abi_push_vreg): Likewise.
10376 (ppc64_sysv_abi_push_param): Likewise.
10377 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10378 (ppc64_sysv_abi_return_value_base): New function.
10379 (ppc64_sysv_abi_return_value): Refactor to use it.
10381 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10383 * NEWS: Document new target powerpc64le-*-linux*.
10385 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10387 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10388 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10390 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10391 register set used in ELF core dumps. Add floating-point register set.
10393 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10395 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10396 dwarf2_to_gdb[] table using symbolic constants. Adjust
10397 penultimate entry from number representing the PC register
10398 to symbolic constant representing the MDR register. Add
10399 constant for the PC register to the end of the table.
10401 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10403 * bsd-kvm.c: Include <sys/param.h>
10405 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10407 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10409 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10411 * ada-lang.h (clear_ada_sym_cache): Delete.
10413 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10415 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10417 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10419 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10420 the sigreturn register save area only if the syscall is
10423 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10425 * valops.c (value_slice): Minor reformatting.
10427 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10429 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10431 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10433 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10434 New static globals.
10435 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10436 (ada_ignore_descriptive_types_p): New static global.
10437 (find_parallel_type_by_descriptive_type): Return immediately
10438 if ada_ignore_descriptive_types_p is set.
10439 (_initialize_ada_language): Register new commands "maintenance
10440 set ada", "maintenance show ada", "maintenance set ada
10441 ignore-descriptive-types" and "maintenance show ada
10442 ignore-descriptive-types".
10443 * NEWS: Add entry for new "maint ada set/show
10444 ignore-descriptive-types" commands.
10446 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10448 * record-btrace.c (record_btrace_close): Call btrace_teardown
10451 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10453 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10456 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10458 * ada-typeprint (type_is_full_subrange_of_target_type):
10460 (print_range): Add parameter bounds_prefered_p. If not set,
10461 try printing range types using the name of their base type.
10462 (print_range_type): Add parameter bounds_prefered_p.
10463 Use it in call to print_range.
10464 (print_array_type, ada_print_type): Update calls to print_range
10465 and print_range_type.
10467 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10469 * ada-typeprint.c (print_array_type, print_choices, print_range)
10470 (print_range_bound, print_dynamic_range_bound, print_range_type):
10471 Remove declaration.
10473 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10475 * ada-typeprint.c (print_range): Add missing empty line
10476 after local declaration.
10478 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10480 * ada-valprint.c (print_optional_low_bound): Get index_type's
10481 target type for as long as it is a TYPE_CODE_RANGE.
10483 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10485 * procfs.c (procfs_make_note_section): Remove assertion and
10486 associated comment.
10488 2014-01-24 Yao Qi <yao@codesourcery.com>
10490 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10491 * corelow.c (get_core_siginfo): Likewise.
10493 2014-01-24 Yao Qi <yao@codesourcery.com>
10495 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10496 ULONGEST. Don't check 'len' is negative.
10497 (remote_write_bytes): Change type of 'len' to ULONGEST.
10499 2014-01-23 Tom Tromey <tromey@redhat.com>
10502 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10503 Handle exception from frame.block.
10504 (FrameVars.fetch_frame_locals): Likewise.
10506 2014-01-23 Tom Tromey <tromey@redhat.com>
10509 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10510 on a NULL pointer. Move "goto error" to correct place.
10512 2014-01-23 Tom Tromey <tromey@redhat.com>
10515 * python/py-framefilter.c (apply_frame_filter): Call
10516 ensure_python_env after computing gdbarch.
10518 2014-01-23 Yao Qi <yao@codesourcery.com>
10520 * target.c (raw_memory_xfer_partial): Change argument type
10521 from void * to gdb_byte *.
10522 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10524 2014-01-22 Doug Evans <dje@google.com>
10526 New gdbserver option --debug-format=timestamp.
10527 * NEWS: Mention it.
10529 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10531 * syscalls/s390x-linux.xml: New file.
10532 * syscalls/s390-linux.xml: New file.
10533 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10534 (XML_SYSCALL_FILENAME_S390X): Likewise.
10535 (op_svc): New enum value for SVC opcode.
10536 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10537 (s390_linux_get_syscall_number): New function.
10538 (s390_gdbarch_init): Register '*get_syscall_number' and the
10539 syscall xml file name.
10540 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10541 "s390-linux.xml" and "s390x-linux.xml".
10542 * NEWS: Announce new feature.
10544 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10546 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10548 2014-01-22 Pedro Alves <palves@redhat.com>
10550 * xtensa-config.c: Include defs.h.
10552 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10554 * common/common-utils.h: Add "ARI:" comment beside __func__
10557 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10559 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10560 documentation a bit.
10562 2014-01-21 Roland McGrath <mcgrathr@google.com>
10564 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10565 * configure: Regenerate.
10566 * aclocal.m4: Regenerate.
10567 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10568 New substituted variables.
10569 (install-strip): New target.
10570 (INSTALL_SCRIPT): New substituted variable.
10571 (FLAGS_TO_PASS): Add it.
10572 (install-only): Use $(INSTALL_SCRIPT) rather than
10573 $(INSTALL_PROGRAM) for gcore.
10575 2014-01-20 Tom Tromey <tromey@redhat.com>
10577 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10580 2014-01-20 Tom Tromey <tromey@redhat.com>
10582 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10583 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10584 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10585 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10586 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10587 (struct cmd_list_element) <flags>: Remove.
10588 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10589 doc_allocated>: New fields.
10590 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10592 * maint.c (maintenance_do_deprecate): Update.
10593 * top.c (execute_command): Update.
10595 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10597 * xtensa-linux-nat.c: Include asm/ptrace.h.
10599 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10601 * Makefile.in (SFILES): Add d-support.c.
10602 (COMMON_OBS): Add d-support.o.
10603 * d-lang.h (d_parse_symbol): Add comment, now defined in
10605 * d-lang.c (parse_call_convention)
10606 (parse_attributes, parse_function_types)
10607 (parse_function_args, parse_type, parse_identifier)
10608 (call_convention_p, d_parse_symbol): Move functions to ...
10609 * d-support.c: ... New file.
10611 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10613 * d-lang.h (d_parse_symbol): Add declaration.
10614 * d-lang.c (extract_identifiers)
10615 (extract_type_info): Remove functions.
10616 (parse_call_convention, parse_attributes)
10617 (parse_function_types, parse_function_args)
10618 (parse_type, parse_identifier, call_convention_p)
10619 (d_parse_symbol): New functions.
10620 (d_demangle): Use d_parse_symbol to demangle D symbols.
10622 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10624 * d-lang.h (struct builtin_d_type): New data type.
10625 (builtin_d_type): Add declaration.
10626 * d-lang.c (d_language_arch_info, build_d_types)
10627 (builtin_d_type): New functions.
10628 (enum d_primitive_types): New data type.
10629 (d_language_defn): Change c_language_arch_info to
10630 d_language_arch_info.
10631 (d_type_data): New static variable.
10632 (_initialize_d_language): Initialize d_type_data.
10634 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10636 * d-lang.h (d_main_name): Add declaration.
10637 * d-lang.c (d_main_name): New function.
10638 * symtab.c (find_main_name): Add call to d_main_name.
10640 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10642 * d-lang.c (d_language_defn): Change macro_expansion_c to
10643 macro_expansion_no.
10645 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10647 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10649 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10651 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10652 gdb_exception" declaration.
10653 * remote.c (getpkt_or_notif_sane): Likewise.
10655 2014-01-17 Doug Evans <dje@google.com>
10657 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10658 function, contents of dirnames_to_char_ptr_vec_append moved here.
10659 (delim_string_to_char_ptr_vec): New function.
10660 (dirnames_to_char_ptr_vec_append): Rewrite.
10661 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10663 2014-01-17 Doug Evans <dje@google.com>
10665 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10667 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10668 #include "common-utils.h".
10669 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10670 * common/vec.h (VEC_ASSERT_PASS): Update.
10671 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10672 (MACH_CHECK_ERROR): Update.
10674 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10676 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10678 * gdbarch.h: Regenerate.
10680 2014-01-16 Tom Tromey <tromey@redhat.com>
10682 * value.c (struct value) <regnum>: Move earlier.
10684 2014-01-16 Tom Tromey <tromey@redhat.com>
10686 * remote.c (extended_remote_create_inferior): Rename from
10687 extended_remote_create_inferior_1. Add "ops" argument. Remove
10688 old implementation.
10690 2014-01-16 Pedro Alves <palves@redhat.com>
10692 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10693 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10696 2014-01-16 Doug Evans <dje@google.com>
10698 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10702 * btrace.h (btrace_thread_flag): New.
10703 (struct btrace_thread_info) <flags>: New.
10704 * record-btrace.c (record_btrace_resume_thread)
10705 (record_btrace_find_thread_to_move, btrace_step_no_history)
10706 (btrace_step_stopped, record_btrace_start_replaying)
10707 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10708 (record_btrace_find_resume_thread): New.
10709 (record_btrace_resume, record_btrace_wait): Extend.
10710 (record_btrace_can_execute_reverse): New.
10711 (record_btrace_open): Fail in non-stop mode.
10712 (record_btrace_set_replay): Split into this, ...
10713 (record_btrace_stop_replaying): ... this, ...
10714 (record_btrace_clear_histories): ... and this.
10715 (init_record_btrace_ops): Init to_can_execute_reverse.
10716 * NEWS: Announce it.
10718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10720 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10721 (forward_target_decr_pc_after_break)
10722 (target_decr_pc_after_break): New.
10723 * target.c (forward_target_decr_pc_after_break)
10724 (target_decr_pc_after_break): New.
10725 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10726 instead of gdbarch_decr_pc_after_break.
10727 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10728 instead of gdbarch_decr_pc_after_break.
10729 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10730 instead of gdbarch_decr_pc_after_break.
10731 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10732 instead of gdbarch_decr_pc_after_break.
10733 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10734 instead of gdbarch_decr_pc_after_break.
10735 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10736 instead of gdbarch_decr_pc_after_break.
10738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10740 * btrace.c: Include regcache.h.
10741 (btrace_add_pc): New.
10742 (btrace_enable): Call btrace_add_pc.
10743 (btrace_is_empty): New.
10744 * btrace.h (btrace_is_empty): New.
10745 * record-btrace.c (require_btrace, record_btrace_info): Call
10748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10750 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10751 Support delta reads.
10752 (linux_disable_btrace): Change return type.
10753 * common/linux-btrace.h (linux_read_btrace): Change parameters
10754 and return type to allow error reporting. Update users.
10755 (linux_disable_btrace): Change return type. Update users.
10756 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10758 (btrace_error): New.
10759 (btrace_block) <begin>: Comment on BEGIN == 0.
10760 * btrace.c (btrace_compute_ftrace): Start from the end of
10762 (btrace_stitch_trace, btrace_clear_history): New.
10763 (btrace_fetch): Read delta trace, return if replaying.
10764 (btrace_clear): Move clear history code to btrace_clear_history.
10765 (parse_xml_btrace): Throw an error if parsing failed.
10766 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10767 and return type to allow error reporting.
10768 (target_read_btrace): Change parameters and return type to allow
10770 * target.c (target_read_btrace): Update.
10771 * remote.c (remote_read_btrace): Support delta reads. Pass
10773 * NEWS: Announce it.
10775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10777 * record.h (record_btrace_frame_unwind)
10778 (record_btrace_tailcall_frame_unwind): New declarations.
10779 * dwarf2-frame: Include record.h
10780 (dwarf2_frame_cfa): Throw an error for btrace frames.
10781 * record-btrace.c: Include hashtab.h.
10782 (btrace_get_bfun_name): New.
10783 (btrace_call_history): Call btrace_get_bfun_name.
10784 (struct btrace_frame_cache): New.
10786 (bfcache_hash, bfcache_eq, bfcache_new): New.
10787 (btrace_get_frame_function): New.
10788 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10789 (record_btrace_frame_this_id): Compute own id.
10790 (record_btrace_frame_prev_register): Provide PC, throw_error
10791 for all other registers.
10792 (record_btrace_frame_sniffer): Detect btrace frames.
10793 (record_btrace_tailcall_frame_sniffer): New.
10794 (record_btrace_frame_dealloc_cache): New.
10795 (record_btrace_frame_unwind): Add new functions.
10796 (record_btrace_tailcall_frame_unwind): New.
10797 (_initialize_record_btrace): Allocate cache.
10798 * btrace.c (btrace_clear): Call reinit_frame_cache.
10799 * NEWS: Announce it.
10801 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10803 * record-btrace.c (record_btrace_set_replay)
10804 (record_btrace_goto_begin, record_btrace_goto_end)
10805 (record_btrace_goto): New.
10806 (init_record_btrace_ops): Initialize them.
10807 * NEWS: Announce it.
10809 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10811 * record-btrace.c (record_btrace_find_new_threads)
10812 (record_btrace_thread_alive): New.
10813 (init_record_btrace_ops): Initialize to_find_new_threads and
10816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10818 * record-btrace.c (record_btrace_resume): New.
10819 (record_btrace_wait): New.
10820 (init_record_btrace_ops): Initialize to_wait and to_resume.
10822 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10824 * record-btrace.c (record_btrace_xfer_partial)
10825 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10826 (record_btrace_allow_memory_access): New.
10827 (init_record_btrace_ops): Initialize new methods.
10828 * target.c (raw_memory_xfer_partial): Bail out if target reports
10829 that this memory is not available.
10831 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10833 * target.h (target_ops) <to_insert_breakpoint>
10834 <to_remove_breakpoint>: Add target_ops parameter.
10835 (forward_target_insert_breakpoint): New.
10836 (forward_target_remove_breakpoint): New.
10837 (memory_remove_breakpoint, memory_insert_breakpoint):
10838 Add target_ops parameter.
10839 * target.c (target_insert_breakpoint): Split into this and ...
10840 (forward_target_insert_breakpoint): ... this.
10841 (target_remove_breakpoint): Split into this and ...
10842 (forward_target_remove_breakpoint): ... this.
10843 (debug_to_insert_breakpoint): Add target_ops parameter.
10844 Call forward_target_insert_breakpoint.
10845 (debug_to_remove_breakpoint): Add target_ops parameter.
10846 Call forward_target_remove_breakpoint.
10847 (update_current_target): Do not inherit or default to_insert_breakpoint
10848 and to_remove_breakpoint.
10849 * corelow.c (ignore): Add target_ops parameter.
10850 * exec.c (ignore): Add target_ops parameter.
10851 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10852 Add target_ops parameter.
10853 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10854 Add target_ops parameter.
10855 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10856 Add target_ops parameter.
10857 * record-full.c (record_full_beneath_to_insert_breakpoint)
10858 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10859 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10860 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10861 (record_full_core_remove_breakpoint): Add target_ops parameter.
10863 (record_full_beneath_to_insert_breakpoint_ops)
10864 (record_full_beneath_to_remove_breakpoint_ops)
10865 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10866 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10867 tmp_to_remove_breakpoint_ops,
10868 record_full_beneath_to_insert_breakpoint_ops, and
10869 record_full_beneath_to_remove_breakpoint_ops.
10870 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10871 (m32r_remove_breakpoint): Add target_ops parameter.
10872 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10873 Add target_ops parameter.
10874 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10875 Add target_ops parameter.
10877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10878 Markus Metzger <markus.t.metzger@intel.com>
10880 * record-btrace.c: Include frame-unwind.h.
10881 (record_btrace_frame_unwind_stop_reason)
10882 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10883 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10885 (init_record_btrace_ops): Install it.
10887 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10889 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10892 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10894 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10897 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10899 * frame-unwind.c: Include target.h.
10900 (frame_unwind_try_unwinder): New function with code from ...
10901 (frame_unwind_find_by_frame): ... here. New variable
10902 unwinder_from_target, call also target_get_unwinder)
10903 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10904 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10905 * target.h (struct target_ops): New fields to_get_unwinder and
10906 to_get_tailcall_unwinder.
10907 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10911 * record-btrace.c (record_btrace_fetch_registers)
10912 (record_btrace_store_registers)
10913 (record_btrace_to_prepare_to_store): New.
10914 (init_record_btrace_ops): Add the above.
10916 2014-01-16 Tom Tromey <tromey@redhat.com>
10918 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10919 * target.h (struct target_ops) <to_prepare_to_store>: Add
10921 (target_prepare_to_store): Add argument.
10922 * target.c (debug_to_prepare_to_store): Add argument.
10923 (update_current_target): Update.
10924 * remote.c (remote_prepare_to_store): Add 'self' argument.
10925 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10926 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10927 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10928 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10930 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10931 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10932 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10933 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10934 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10938 * btrace.h (replay) <replay>: New.
10939 (btrace_is_replaying): New.
10940 * btrace.c (btrace_clear): Free replay iterator.
10941 (btrace_is_replaying): New.
10942 * record-btrace.c (record_btrace_is_replaying): New.
10943 (record_btrace_info): Print insn number if replaying.
10944 (record_btrace_insn_history): Start at replay position.
10945 (record_btrace_call_history): Start at replay position.
10946 (init_record_btrace_ops): Init to_record_is_replaying.
10948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10950 * record-btrace.c (record_btrace_insn_history_range): Include
10952 (record_btrace_insn_history_from): Adjust range.
10953 (record_btrace_call_history_range): Include
10955 (record_btrace_call_history_from): Adjust range.
10956 * NEWS: Announce changes.
10958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10960 * record.h (enum record_print_flag)
10961 <record_print_indent_calls>: New.
10962 * record.c (get_call_history_modifiers): Recognize /c modifier.
10963 (_initialize_record): Document /c modifier.
10964 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10965 Reorder fields. Optionally indent the function name. Update
10967 * NEWS: Announce changes.
10969 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10971 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10975 * btrace.c (ftrace_new_function): Start counting at one.
10976 * record-btrace.c (record_btrace_info): Adjust number of calls
10978 * NEWS: Announce it.
10980 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10982 * record-btrace.c (btrace_call_history_insn_range): Print
10983 insn range as [begin, end].
10985 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10987 * btrace.h (struct btrace_func_link): New.
10988 (enum btrace_function_flag): New.
10989 (struct btrace_inst): Rename to ...
10990 (struct btrace_insn): ...this. Update all users.
10991 (struct btrace_func) <ibegin, iend>: Remove.
10992 (struct btrace_func_link): New.
10993 (struct btrace_func): Rename to ...
10994 (struct btrace_function): ...this. Update all users.
10995 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10996 (number, level, flags>: New.
10997 (struct btrace_insn_iterator): Rename to ...
10998 (struct btrace_insn_history): ...this.
11000 (struct btrace_insn_iterator, btrace_call_iterator): New.
11001 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11002 (struct btrace_target_info) <begin, end, level>
11003 <insn_history, call_history>: New.
11004 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11005 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11006 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11007 (btrace_call_number, btrace_call_begin, btrace_call_end)
11008 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11009 (btrace_find_function_by_number, btrace_set_insn_history)
11010 (btrace_set_call_history): New.
11011 * btrace.c (btrace_init_insn_iterator)
11012 (btrace_init_func_iterator, compute_itrace): Remove.
11013 (ftrace_print_function_name, ftrace_print_filename)
11014 (ftrace_skip_file): Change
11015 parameter to const.
11016 (ftrace_init_func): Remove.
11017 (ftrace_debug): Use new btrace_function fields.
11018 (ftrace_function_switched): Also consider gaining and
11019 losing symbol information).
11020 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11021 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11022 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11024 (ftrace_new_function): Move. Remove debug print.
11025 (ftrace_update_lines, ftrace_update_insns): New.
11026 (ftrace_update_function): Check for call, ret, and jump.
11027 (compute_ftrace): Renamed to ...
11028 (btrace_compute_ftrace): ...this. Rewritten to compute call
11030 (btrace_fetch, btrace_clear): Updated.
11031 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11032 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11033 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11034 (btrace_call_number, btrace_call_begin, btrace_call_end)
11035 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11036 (btrace_find_function_by_number, btrace_set_insn_history)
11037 (btrace_set_call_history): New.
11038 * record-btrace.c (require_btrace): Use new btrace thread
11040 (record_btrace_info, btrace_insn_history)
11041 (record_btrace_insn_history, record_btrace_insn_history_range):
11042 Use new btrace thread info fields and new iterator.
11043 (btrace_func_history_src_line): Rename to ...
11044 (btrace_call_history_src_line): ...this. Use new btrace
11045 thread info fields.
11046 (btrace_func_history): Rename to ...
11047 (btrace_call_history): ...this. Use new btrace thread info
11048 fields and new iterator.
11049 (record_btrace_call_history, record_btrace_call_history_range):
11050 Use new btrace thread info fields and new iterator.
11052 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11054 * frame.h (frame_id_build_unavailable_stack_special): New.
11055 * frame.c (frame_id_build_unavailable_stack_special): New.
11057 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11059 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11060 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11061 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11063 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11064 (i386_insn_is_jump, i386_jmp_p): New.
11065 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11066 insn_is_jump to gdbarch.
11067 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11068 * gdbarch.h: Regenerated.
11069 * gdbarch.c: Regenerated.
11070 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11071 (default_insn_is_jump): New.
11072 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11073 (default_insn_is_jump): New.
11075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11077 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11079 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11080 (btrace_read_type) <btrace_read_new>: Change to ...
11081 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11083 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11085 * common/linux-btrace.c (linux_read_btrace): Free trace from
11086 previous iteration.
11088 2014-01-15 Doug Evans <dje@google.com>
11090 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11093 2014-01-15 Tom Tromey <tromey@redhat.com>
11095 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11096 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11097 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11098 (set_objfile_main_name): New function.
11099 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11100 language_of_main>: New fields.
11101 (set_objfile_main_name): Declare.
11102 * symtab.c (find_main_name): Loop over objfiles to find the main
11104 (set_main_name): Now static.
11105 (get_main_info): Add comment.
11106 * symtab.h (set_main_name): Don't declare.
11108 2014-01-15 Tom Tromey <tromey@redhat.com>
11110 * symtab.c (main_progspace_key): New global.
11111 (struct main_info): New.
11112 (name_of_main, language_of_main): Remove.
11113 (get_main_info, main_info_cleanup): New function.
11114 (set_main_name, main_name, main_language): Use get_main_info.
11115 (_initialize_symtab): Initialize main_progspace_key.
11117 2014-01-15 Tom Tromey <tromey@redhat.com>
11119 * dbxread.c (process_one_symbol): Update.
11120 * dwarf2read.c (read_partial_die): Update.
11121 * symfile.c (set_initial_language): Call main_language.
11122 * symtab.c (language_of_main): Now static.
11123 (set_main_name): Add 'lang' parameter.
11124 (find_main_name): Update.
11125 (main_language): New function.
11126 (symtab_observer_executable_changed): Update.
11127 * symtab.h (set_main_name): Update.
11128 (language_of_main): Remove.
11129 (main_language): Declare.
11131 2014-01-15 Tom Tromey <tromey@redhat.com>
11133 * symfile.c (init_entry_point_info): Use new "initialized" field.
11135 * objfiles.h (struct entry_point) <initialized>: New field.
11136 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11137 (struct objfile) <ei>: ...here. Remove.
11138 * objfiles.c (entry_point_address_query): Update.
11140 2014-01-15 Tom Tromey <tromey@redhat.com>
11142 * objfiles.c (entry_point_address_query): Relocate entry point
11144 (objfile_relocate1): Do not relocate entry point address.
11145 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11146 <the_bfd_section_index>: New field.
11147 * symfile.c (init_entry_point_info): Find the entry point's
11150 2014-01-15 Tom Tromey <tromey@redhat.com>
11152 * solib-frv.c (enable_break): Use entry_point_address_query.
11154 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11156 * NEWS: Add note on improved process record-replay on
11157 arm*-linux* targets.
11159 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11161 * arm-tdep.c (enum arm_record_result): New enum.
11162 (arm_record_unsupported_insn): New function.
11163 (arm_record_coproc_data_proc): Removed.
11164 (thumb2_record_ld_st_multiple): New function.
11165 (thumb2_record_ld_st_dual_ex_tbb): New function.
11166 (thumb2_record_data_proc_sreg_mimm): New function.
11167 (thumb2_record_ps_dest_generic): New function.
11168 (thumb2_record_branch_misc_cntrl): New function.
11169 (thumb2_record_str_single_data): New function.
11170 (thumb2_record_ld_mem_hints): New function.
11171 (thumb2_record_ld_word): New function.
11172 (thumb2_record_lmul_lmla_div): New function.
11173 (thumb2_record_decode_insn_handler): New function.
11174 (decode_insn): Add thumb32 instruction handlers.
11176 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11178 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11179 (struct arm_linux_record_tdep): Declare.
11180 (arm_canonicalize_syscall): New function.
11181 (arm_all_but_pc_registers_record): New function.
11182 (arm_linux_syscall_record): New function.
11183 (arm_linux_init_abi): Add syscall recording constructs.
11184 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11185 decoding. (arm_record_coproc_data_proc): Update arm syscall
11187 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11188 <arm_syscall_record>: New field.
11189 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11192 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11194 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11195 register for push instruction recording.
11197 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11199 * arm-tdep.c (thumb_record_misc): Update to correct logical
11200 error while recording ldm, ldmia and pop instructions.
11202 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11204 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11206 2014-01-15 Pedro Alves <palves@redhat.com>
11208 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11209 (go32_resume, go32_fetch_registers, store_register)
11210 (go32_store_registers, go32_prepare_to_store)
11211 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11212 (go32_create_inferior, go32_can_run, go32_terminal_init)
11213 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11216 2014-01-15 Tom Tromey <tromey@redhat.com>
11218 * target.h (async_callback_ftype): New typedef.
11219 (struct target_ops) <to_async>: Use it.
11221 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11223 * python/py-value.c (get_field_type): Remove unnecessary curly
11224 braces for single-statement if block.
11226 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11228 * python/py-type.c (convert_field): Add missing empty line
11229 after declarations.
11231 2014-01-14 Doug Evans <dje@google.com>
11233 * symfile.h (expand_symtabs_matching): Renamed from
11234 expand_partial_symbol_names. Update prototype.
11235 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11236 * symfile.c (expand_symtabs_matching): Renamed from
11237 expand_partial_symbol_names. New args file_matcher, kind.
11238 Rename arg fun to symbol_matcher.
11239 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11240 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11241 ada_expand_partial_symbol_name.
11242 (ada_make_symbol_completion_list): Update to call
11243 expand_symtabs_matching.
11244 (ada_add_global_exceptions): Call expand_symtabs_matching.
11245 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11246 call map_symbol_filenames.
11247 * symtab.c (sources_info): Update to call map_symbol_filenames.
11248 (search_symbols): Call expand_symtabs_matching.
11249 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11250 (default_make_symbol_completion_list_break_on): Update to call
11251 expand_symtabs_matching.
11252 (make_source_files_completion_list): Update to call
11253 map_symbol_filenames.
11255 2014-01-14 Doug Evans <dje@google.com>
11257 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11258 (expand_symtabs_symbol_matcher_ftype): New typedef.
11259 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11260 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11261 * symfile.c (expand_partial_symbol_names): Update to use
11262 expand_symtabs_symbol_matcher_ftype.
11263 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11264 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11265 Arg name_matcher renamed to symbol_matcher.
11266 * psymtab.c (recursively_search_psymtabs): Update to use
11267 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11269 (expand_symtabs_matching_via_partial): Update to use
11270 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11271 Arg name_matcher renamed to symbol_matcher.
11273 2014-01-14 Doug Evans <dje@google.com>
11275 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11276 (map_partial_symbol_filenames): Ditto.
11277 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11278 (map_partial_symbol_filenames): Ditto.
11279 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11280 (map_partial_symbol_filenames): Ditto.
11281 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11282 (map_partial_symbol_filenames): Ditto.
11283 * symtab.c: Delete #include "psymtab.h".
11285 2014-01-14 Pedro Alves <palves@redhat.com>
11286 Tom Tromey <tromey@redhat.com>
11288 * infrun.c (use_displaced_stepping): Use find_record_target
11289 instead of RECORD_IS_USED.
11290 (adjust_pc_after_break): Use record_full_is_used instead of
11292 * record-btrace.c (record_btrace_open): Call record_preopen
11293 instead of checking RECORD_IS_USED.
11294 * record-full.c (record_full_shortname)
11295 (record_full_core_shortname): New globals.
11296 (record_full_is_used): New function.
11297 (find_full_open): Call record_preopen instead of checking
11299 (init_record_full_ops): Set the target's shortname to
11300 record_full_shortname.
11301 (init_record_full_core_ops): Set the target's shortname to
11302 record_full_core_shortname.
11303 * record-full.h (record_full_is_used): Declare.
11304 * record.c (find_record_target): Make extern.
11305 (record_preopen): New function.
11306 * record.h (RECORD_IS_USED): Delete macro.
11307 (find_record_target, record_preopen): Declare functions.
11309 2014-01-14 Yao Qi <yao@codesourcery.com>
11311 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11312 'len''s type to ULONGEST.
11313 (core_xfer_shared_libraries_aix): Likewise.
11314 * gdbarch.c, gdbarch.h: Regenerated.
11315 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11316 Change type of 'len' to ULONGEST.
11317 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11318 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11320 2014-01-14 Yao Qi <yao@codesourcery.com>
11322 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11323 type of 'len' to ULONGEST.
11324 (linux_xfer_osdata_processgroups): Likewise.
11325 (linux_xfer_osdata_threads): Likewise.
11326 (linux_xfer_osdata_fds): Likewise.
11327 (linux_xfer_osdata_isockets): Likewise.
11328 (linux_xfer_osdata_shm): Likewise.
11329 (linux_xfer_osdata_sem): Likewise.
11330 (linux_xfer_osdata_msg): Likewise.
11331 (linux_common_xfer_osdata): Likewise.
11332 (struct osdata_type) <getter>: Likewise.
11333 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11336 2014-01-14 Yao Qi <yao@codesourcery.com>
11338 * target.h (target_xfer_partial_ftype): Update.
11339 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11341 * aix-thread.c (aix_thread_xfer_partial): Change type of
11342 argument 'len' to ULONGEST.
11343 * auxv.c (procfs_xfer_auxv): Likewise.
11344 (ld_so_xfer_auxv): Likewise.
11345 (memory_xfer_auxv): Likewise.
11346 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11347 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11348 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11349 * corelow.c (core_xfer_partial): Likewise.
11350 * ctf.c (ctf_xfer_partial): Likewise.
11351 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11353 (darwin_read_dyld_info): Likewise.
11354 (darwin_xfer_partial): Likewise.
11355 * exec.c (section_table_xfer_memory_partial): Likewise.
11356 (exec_xfer_partial): Likewise.
11357 * exec.h (section_table_xfer_memory_partial): Update
11359 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11360 instead of plongest.
11361 (gnu_xfer_partial): Likewise.
11362 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11363 (ia64_hpux_xfer_solib_got): Likewise.
11364 (ia64_hpux_xfer_partial): Likewise.
11365 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11366 * inf-ptrace.c (inf_ptrace_xfer_partial):
11367 * inf-ttrace.c (inf_ttrace_xfer_partial):
11368 * linux-nat.c (linux_xfer_siginfo): Likewise.
11369 (linux_nat_xfer_partial): Likewise.
11370 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11371 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11372 * monitor.c (monitor_xfer_memory): Likewise.
11373 (monitor_xfer_partial): Likewise.
11374 * procfs.c (procfs_xfer_partial): Likewise.
11375 * record-full.c (record_full_xfer_partial): Likewise.
11376 (record_full_core_xfer_partial): Likewise.
11377 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11378 instead of plongest.
11379 (gdbsim_xfer_partial): Likewise.
11380 * remote.c (remote_xfer_partial): Likewise.
11381 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11382 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11384 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11385 (rs6000_xfer_shared_libraries): Likewise.
11386 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11387 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11388 (sparc_xfer_partial): Likewise.
11389 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11390 (spu_xfer_partial): Likewise.
11391 * spu-multiarch.c (spu_xfer_partial): Likewise.
11392 * target.c (target_read_live_memory): Likewise.
11393 (memory_xfer_live_readonly_partial): Likewise.
11394 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11395 (target_xfer_partial, default_xfer_partial): Likewise.
11396 (current_xfer_partial): Likewise.
11397 * tracepoint.c (tfile_xfer_partial): Likewise.
11398 * windows-nat.c (windows_xfer_memory): Likewise. Call
11399 pulongest instead of plongest.
11400 (windows_xfer_partial): Likewise.
11401 (windows_xfer_shared_libraries): Likewise.
11403 2014-01-14 Yao Qi <yao@codesourcery.com>
11405 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11406 target_xfer_partial_ftype.
11408 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11412 * valops.c (value_struct_elt_bitpos): New function
11413 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11414 object to 'None' if the field name is an empty string ("").
11415 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11416 attribute to look for a field when 'name' is 'None'.
11417 (get_field_type): New function
11419 2014-01-13 Doug Evans <dje@google.com>
11422 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11423 (try_open_dwop_file): Ditto.
11424 * gdb_bfd.c: #include "vec.h".
11425 (bfdp): New typedef.
11426 (struct gdb_bfd_data): New member included_bfds.
11427 (gdb_bfd_unref): Unref all included bfds.
11428 (gdb_bfd_record_inclusion): New function.
11429 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11431 2014-01-13 Tom Tromey <tromey@redhat.com>
11433 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11435 2014-01-13 Tom Tromey <tromey@redhat.com>
11437 * defs.h (use_windows): Remove.
11438 * gdb.c (main): Update.
11439 * main.c (captured_main, gdb_main): Update.
11440 * main.h (struct captured_main_args) <use_windows>: Remove.
11441 * top.c (use_windows): Remove.
11443 2014-01-13 Tom Tromey <tromey@redhat.com>
11445 * defs.h (deprecated_flush_hook): Remove.
11447 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11450 * linux-thread-db.c (try_thread_db_load): Add parameter
11451 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11452 (try_thread_db_load_from_pdir_1): Move it there from here.
11453 (try_thread_db_load_from_sdir): Update caller.
11454 (try_thread_db_load_from_dir): Move it there from here.
11456 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11458 * regformats/regdat.sh: Always rewrite the register file.
11460 2014-01-13 Pedro Alves <palves@redhat.com>
11462 * Makefile.in (CHECK_HEADERS): New variable.
11463 (check-headers:): New rule.
11465 2014-01-13 Tom Tromey <tromey@redhat.com>
11467 * cli/cli-setshow.c (do_set_command): Update.
11468 * defs.h (deprecated_set_hook): Remove.
11469 * top.c (deprecated_set_hook): Remove.
11471 2014-01-13 Pedro Alves <palves@redhat.com>
11473 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11474 the tracepoint if the PC is a pseudo-register.
11476 2014-01-13 Tom Tromey <tromey@redhat.com>
11478 * defs.h (XCALLOC): Remove.
11479 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11480 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11481 * dwarf2loc.c (allocate_piece_closure): Likewise.
11482 * elfread.c (elf_symfile_segments): Likewise.
11483 (elf_symfile_segments): Likewise.
11484 * gdbtypes.c (copy_type_recursive): Likewise.
11485 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11486 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11487 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11489 * mt-tdep.c (mt_gdbarch_init): Likewise.
11490 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11492 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11493 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11494 * registry.c (registry_alloc_data): Likewise.
11495 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11496 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11497 * serial.c (serial_fdopen_ops): Likewise.
11498 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11500 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11501 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11504 2014-01-13 Tom Tromey <tromey@redhat.com>
11506 * defs.h (XMALLOC): Remove.
11507 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11508 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11509 * cli-out.c (struct ui_out *): Likewise.
11510 * cli/cli-dump.c (add_dump_command): Likewise.
11511 (add_dump_command): Likewise.
11512 * complaints.c (get_complaints): Likewise.
11513 (find_complaint): Likewise.
11514 * dwarf2-frame.c (execute_cfa_program): Likewise.
11515 * dwarf2read.c (abbrev_table_read_table): Likewise.
11516 * gdbarch.sh: Likewise.
11517 * gdbarch.c: Rebuild.
11518 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11519 * interps.c (interp_new): Likewise.
11520 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11521 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11522 * mi/mi-console.c (mi_console_file_new): Likewise.
11523 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11524 * mi/mi-out.c (mi_out_new): Likewise.
11525 * mi/mi-parse.c (mi_parse): Likewise.
11526 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11527 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11528 * observer.c (xalloc_observer_list_node): Likewise.
11529 * regcache.c (regcache_xmalloc_1): Likewise.
11530 * reggroups.c (reggroup_new): Likewise.
11531 (_initialize_reggroup): Likewise.
11532 * registry.c (register_data_with_cleanup): Likewise.
11533 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11534 * ser-base.c (serial_ttystate): Likewise.
11535 * ser-mingw.c (make_pipe_state): Likewise.
11536 * ser-pipe.c (pipe_open): Likewise.
11537 * serial.c (serial_open): Likewise.
11538 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11539 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11540 (tui_alloc_win_info): Likewise.
11541 (tui_add_content_elements): Likewise.
11542 * tui/tui-file.c (tui_file_new): Likewise.
11543 * tui/tui-out.c (tui_out_new): Likewise.
11544 * ui-file.c (mem_file_new): Likewise.
11545 * ui-out.c (push_level): Likewise.
11546 (make_cleanup_ui_out_end): Likewise.
11547 (append_header_to_list): Likewise.
11548 (ui_out_new): Likewise.
11549 * user-regs.c (user_reg_add_builtin): Likewise.
11551 2014-01-13 Tom Tromey <tromey@redhat.com>
11553 * defs.h (XZALLOC): Remove.
11554 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11555 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11556 (get_ada_tasks_inferior_data): Likewise.
11557 * auto-load.c (get_auto_load_pspace_data): Likewise.
11558 * auxv.c (get_auxv_inferior_data): Likewise.
11559 * bfd-target.c (target_bfd_reopen): Likewise.
11560 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11561 (deprecated_insert_raw_breakpoint): Likewise.
11562 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11563 * corelow.c (core_open): Likewise.
11564 * darwin-nat.c (darwin_check_new_threads): Likewise.
11565 (darwin_attach_pid): Likewise.
11566 * dummy-frame.c (dummy_frame_push): Likewise.
11567 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11568 * dwarf2loc.c (allocate_piece_closure): Likewise.
11569 * elfread.c (elf_symfile_segments): Likewise.
11570 * eval.c (ptrmath_type_p): Likewise.
11571 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11572 * gdbtypes.c (alloc_type_arch): Likewise.
11573 (alloc_type_instance): Likewise.
11574 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11575 * inf-child.c (inf_child_can_use_agent): Likewise.
11576 * inflow.c (get_inflow_inferior_data): Likewise.
11577 * infrun.c (save_infcall_suspend_state): Likewise.
11578 * jit.c (jit_reader_load): Likewise.
11579 (get_jit_objfile_data): Likewise.
11580 (get_jit_program_space_data): Likewise.
11581 (jit_object_open_impl): Likewise.
11582 (jit_symtab_open_impl): Likewise.
11583 (jit_block_open_impl): Likewise.
11584 (jit_frame_sniffer): Likewise.
11585 * linux-fork.c (add_fork): Likewise.
11586 * maint.c (make_command_stats_cleanup): Likewise.
11587 * objfiles.c (get_objfile_pspace_data): Likewise.
11588 * opencl-lang.c (struct lval_closure): Likewise.
11589 * osdata.c (osdata_start_osdata): Likewise.
11590 * progspace.c (new_address_space): Likewise.
11591 (add_program_space): Likewise.
11592 * remote-sim.c (get_sim_inferior_data): Likewise.
11593 * sh-tdep.c (sh_gdbarch_init): Likewise.
11594 * skip.c (Ignore): Likewise.
11595 (skip_delete_command): Likewise.
11596 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11597 (library_list_start_library): Likewise.
11598 (solib_aix_current_sos): Likewise.
11599 * solib-darwin.c (get_darwin_info): Likewise.
11600 (darwin_current_sos): Likewise.
11601 * solib-dsbt.c (get_dsbt_info): Likewise.
11602 * solib-ia64-hpux.c (new_so_list): Likewise.
11603 (ia64_hpux_get_solib_linkage_addr): Likewise.
11604 * solib-spu.c (append_ocl_sos): Likewise.
11605 (spu_current_sos): Likewise.
11606 * solib-svr4.c (get_svr4_info): Likewise.
11607 (svr4_keep_data_in_core): Likewise.
11608 (library_list_start_library): Likewise.
11609 (svr4_default_sos): Likewise.
11610 (svr4_read_so_list): Likewise.
11611 * solib-target.c (library_list_start_library): Likewise.
11612 (solib_target_current_sos): Likewise.
11613 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11614 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11615 * symfile.c (default_symfile_segments): Likewise.
11616 * target-descriptions.c (tdesc_data_init): Likewise.
11617 (tdesc_create_reg): Likewise.
11618 (struct tdesc_type *): Likewise.
11619 (tdesc_create_vector): Likewise.
11620 (tdesc_set_struct_size): Likewise.
11621 (struct tdesc_type *): Likewise.
11622 (tdesc_free_feature): Likewise.
11623 (tdesc_create_feature): Likewise.
11624 * windows-nat.c (windows_add_thread): Likewise.
11625 (windows_make_so): Likewise.
11626 * xml-support.c (gdb_xml_body_text): Likewise.
11627 (gdb_xml_create_parser_and_cleanup): Likewise.
11628 (xml_process_xincludes): Likewise.
11629 * xml-syscall.c (allocate_syscalls_info): Likewise.
11630 (syscall_create_syscall_desc): Likewise.
11632 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11634 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11635 function, with code from i386_stap_parse_special_token.
11636 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11637 (i386_stap_parse_special_token): Move code to the two functions
11638 above; simplify it.
11640 2014-01-09 Pedro Alves <palves@redhat.com>
11641 Hui Zhu <hui@codesourcery.com>
11644 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11645 bp_err_string. Don't mark the location shlib_disabled if the
11646 error thrown wasn't a generic or memory error. Catch errors
11647 thrown while inserting breakpoints in overlayed code. Output
11648 error message of software breakpoints.
11649 * remote.c (remote_insert_breakpoint): If this breakpoint has
11650 target-side commands but this stub doesn't support Z0 packets,
11651 throw NOT_SUPPORTED_ERROR error.
11652 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11653 * target.h (target_insert_breakpoint): Extend comment.
11654 (target_insert_hw_breakpoint): Add comment.
11656 2014-01-08 Pedro Alves <palves@redhat.com>
11658 * remote.c (remote_add_thread): Add threads silently if starting
11660 (remote_notice_new_inferior): If in all-stop, and starting up,
11661 don't call notice_new_inferior.
11662 (get_current_thread): New function, factored out from ...
11663 (add_current_inferior_and_thread): ... this. Adjust.
11664 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11665 found any thread, then select the remote's current thread as GDB's
11666 current thread too.
11668 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11670 * NEWS: Create a new section for the next release branch.
11671 Rename the section of the current branch, now that it has
11674 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11676 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11677 * version.in: Bump version to 7.7.50.DATE-cvs.
11679 2014-01-08 Yao Qi <yao@codesourcery.com>
11681 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11682 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11683 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11685 2014-01-08 Yao Qi <yao@codesourcery.com>
11687 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11688 return value of bfd_get_filename to symbol_file_add_from_bfd.
11690 2014-01-08 Pierre Muller <muller@sourceware.org>
11693 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11694 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11695 to prim_record_mininal_symbol_and_info.
11696 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11697 in call to prim_record_minimal_symbol_and_info.
11698 (read_pe_exported_syms): Set index field of section_data.
11700 2014-01-07 Andrew Pinski <apinski@cavium.com>
11702 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11703 * features/aarch64.c: Regenerate.
11705 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11707 * target.c (return_null): Define.
11708 (update_current_target): Use it instead of return_zero for
11709 functions that return a pointer.
11711 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11713 * source.c (add_path): Fix check for duplicated paths in the previously
11716 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11718 * ada-lang.c: Remove duplicated include statements.
11719 * alphabsd-nat.c: Ditto.
11720 * amd64-darwin-tdep.c: Ditto.
11721 * amd64fbsd-nat.c: Ditto.
11722 * auto-load.c: Ditto.
11724 * breakpoint.c: Ditto.
11725 * dbxread.c: Ditto.
11726 * fork-child.c: Ditto.
11727 * gdb_usleep.c: Ditto.
11728 * i386-darwin-tdep.c: Ditto.
11729 * i386fbsd-nat.c: Ditto.
11731 * inferior.c: Ditto.
11732 * jv-lang.c: Ditto.
11733 * linux-nat.c: Ditto.
11734 * linux-tdep.c: Ditto.
11735 * m68kbsd-nat.c: Ditto.
11736 * m68klinux-nat.c: Ditto.
11737 * microblaze-tdep.c: Ditto.
11738 * mips-linux-tdep.c: Ditto.
11739 * mn10300-tdep.c: Ditto.
11740 * nto-tdep.c: Ditto.
11741 * opencl-lang.c: Ditto.
11743 * printcmd.c: Ditto.
11744 * regcache.c: Ditto.
11745 * remote-m32r-sdi.c: Ditto.
11747 * symfile.c: Ditto.
11749 * tilegx-linux-nat.c: Ditto.
11750 * tilegx-tdep.c: Ditto.
11751 * tracepoint.c: Ditto.
11753 * vaxbsd-nat.c: Ditto.
11754 * windows-nat.c: Ditto.
11755 * xtensa-tdep.c: Ditto.
11757 2014-01-07 Yao Qi <yao@codesourcery.com>
11759 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11761 2014-01-07 Yao Qi <yao@codesourcery.com>
11762 Joel Brobecker <brobecker@adacore.com>
11764 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11765 (pdc_write_regs): Likewise.
11766 (fetch_regs_kernel_thread): Likewise.
11767 (store_regs_kernel_thread): Likewise.
11769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11771 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11772 tagged type objects to their actual type.
11774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11776 * ada-valprint.c (print_field_values): Add "language" parameter.
11777 Update calls to print_field_values and print_variant_part.
11778 Pass new parameter "language" in call to val_print instead
11779 of "current_language". Replace call to ada_val_print by call
11781 (print_variant_part): Add "language" parameter.
11782 (ada_val_print_struct_union): Update call to print_field_values.
11784 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11786 * ada-valprint.c (ui_memcpy): Delete.
11787 (ada_print_floating): Update documentation. Add empty line
11788 between between function documentation and implementation.
11789 Delete variable "buffer". Use ui_file_xstrdup in place of
11790 ui_file_put. Minor adjustments following this change.
11792 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11794 * ada-valprint.c (ada_val_print_string): New function,
11795 extracted from ada_val_print_array.
11796 (ada_val_print_array): Replace extracted code by call
11797 to ada_val_print_string followed by a return. Move
11798 "else" branch to the function's top block.
11800 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11802 * ada-valprint.c (ada_val_print_array): Move implementation
11803 down. Rename parameter "offset" and "val" into "offset_aligned"
11804 and "original_value" respectively. Add parameter "offset".
11806 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11808 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11809 re-organizing the code. Change the "???" message printed
11810 when target type is a TYPE_CODE_UNDEF into
11811 "<ref to undefined type>".
11813 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11815 * ada-valprint.c (print_record): Delete, implementation inlined...
11816 (ada_val_print_struct_union): ... here. Remove call to
11817 ada_check_typedef in inlined implementation.
11819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11821 * ada-valprint.c (ada_val_print_gnat_array): New function,
11822 extracted from ada_val_print_1;
11823 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11824 (ada_val_print_flt, ada_val_print_struct_union)
11825 (ada_val_print_ref): Likewise.
11826 (ada_val_print_1): Delete variables i and elttype.
11827 Replace extracted-out code by call to corresponding
11830 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11832 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11834 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11836 * ada-valprint.c (ada_val_print_1): Replace calls to
11837 ada_val_print_1 by calls to val_print.
11839 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11841 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11842 Update calls to self accordingly. Replace calls to c_val_print
11843 by calls to val_print.
11845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11847 * ada-valprint.c (print_record): Delete declaration.
11848 (adjust_type_signedness, ada_val_print_1): Likewise.
11849 (ada_val_print): Move function implementation down.
11850 (print_variant_part, print_field_values, print_record):
11851 Move function implementation up.
11853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11855 * python/py-type.c (typy_get_name): New function.
11856 (type_object_getset): Add entry for attribute "name".
11857 * NEWS: Add entry mentioning this new attribute.
11859 2014-01-07 Yao Qi <yao@codesourcery.com>
11861 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11864 2014-01-07 Yao Qi <yao@codesourcery.com>
11866 * gnu-nat.c (info_port_rights): Add qualifier const to
11869 2014-01-07 Yao Qi <yao@codesourcery.com>
11871 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11873 2014-01-07 Yao Qi <yao@codesourcery.com>
11875 * gnu-nat.c (make_inf) Update declaration.
11876 (make_inf): Make it static.
11877 (inf_set_traced): Likewise.
11878 (inf_port_to_thread, inf_task_died_status): Likewise.
11880 2014-01-07 Yao Qi <yao@codesourcery.com>
11882 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11884 2014-01-07 Yao Qi <yao@codesourcery.com>
11886 * gnu-nat.c (_initialize_gnu_nat): Declare.
11888 2014-01-07 Yao Qi <yao@codesourcery.com>
11890 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11892 (struct gdbarch_info) <byte_order>: Change type to
11894 <byte_order_for_code>: Likewise.
11895 * gdbarch.c, gdbarch.h: Regenerated.
11897 2014-01-06 Sasha Smundak <asmundak@google.com>
11899 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11901 2014-01-06 Tom Tromey <tromey@redhat.com>
11903 * doublest.c (convert_doublest_to_floatformat): Use const, not
11905 * somread.c (som_symtab_read): Likewise.
11907 2014-01-07 Hui Zhu <hui@codesourcery.com>
11909 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11910 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11911 (gdb_bfd_fopen): Ditto.
11912 (gdb_bfd_openr): Ditto.
11913 (gdb_bfd_openw): Ditto.
11914 (gdb_bfd_openr_iovec): Ditto.
11915 (gdb_bfd_fdopenr): Ditto.
11916 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11917 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11919 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11921 * symfile-mem.c (symbol_file_add_from_memory): Removed
11922 gdb_bfd_stash_filename.
11924 2014-01-03 Doug Evans <dje@google.com>
11926 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11929 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11931 Update year range in copyright notice of all files.
11933 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11935 * top.c (print_gdb_version): Set copyright year to 2014.
11937 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11939 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11941 For older changes see ChangeLog-2013.
11947 version-control: never