1 2014-08-11 Doug Evans <dje@google.com>
3 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4 message, it is redundant with "Reading symbols from ..." message.
6 2014-08-10 Doug Evans <xdje42@gmail.com>
8 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
10 2014-08-09 Yao Qi <yao@codesourcery.com>
13 * remote.c (remote_xfer_partial): Remove dead code.
15 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
17 * ia64-linux-tdep.c: Include "regset.h".
18 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
19 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
20 (ia64_linux_supply_fpregset): New function.
21 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
22 (ia64_linux_regset_from_core_section): New function.
23 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
26 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
28 * m68klinux-tdep.c: Include "regset.h".
29 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
30 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
31 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
32 (m68k_linux_regset_from_core_section): New function.
33 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
36 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
38 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
39 function. Move logic to...
40 (tilegx_linux_regmap): ... this new register map.
41 (tilegx_linux_regset): Refer to register map, replace supply
42 method by regcache_supply_regset, and add collect method.
43 * tilegx-tdep.h (enum tilegx_regnum): New enum value
44 TILEGX_FIRST_EASY_REGNUM.
46 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
48 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
49 that calls regcache_supply_regset and handles the EPC register
50 separately. Move main logic to...
51 (score7_linux_gregmap): ... this new register map.
52 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
53 (score7_linux_gregset): Refer to register map. Add collect method.
54 (score7_linux_regset_from_core_section): Replace
55 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
56 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
57 (struct regset): Delete unused forward declaraction.
58 (struct pt_regs): Delete structure definition.
59 (elf_gregset_t): Delete typedef.
61 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
63 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
64 (nios2_core_regset): Add collect method.
66 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
68 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
69 platform-independent and don't write to read-only input buffer.
70 (m32r_linux_collect_gregset): New function.
71 (m32r_linux_gregset): Add collect method.
73 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
75 * hppa-linux-tdep.c (greg_map): Rename to...
76 (hppa_linux_gregmap): ... this. Also convert to
77 regcache_map_entry format.
78 (hppa_linux_supply_regset): Delete function.
79 (hppa_linux_supply_fpregset): Delete function. Move logic to...
80 (hppa_linux_fpregmap): ... this new register map.
81 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
82 register map, replace supply method by regcache_supply_regset, and
83 add collect method regcache_collect_regset.
85 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
87 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
88 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
89 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
90 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
91 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
92 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
93 (frv_linux_supply_gregset): Replace main logic by call to
94 regcache_supply_regset, but keep clearing gr32-gr63.
95 (frv_linux_supply_fpregset): Delete function.
96 (frv_linux_gregset): Refer to appropriate register map and add
97 regcache_collect_regset as the collect method.
98 (frv_linux_fpregset): Likewise. Also exchange the supply method
99 by regcache_supply_regset.
101 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
103 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
104 by call to alpha_supply_int_regs.
105 (alpha_linux_collect_gregset): New function.
106 (alpha_linux_supply_fpregset): Replace logic by call to
107 alpha_supply_fp_regs.
108 (alpha_linux_collect_fpregset): New function.
109 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
111 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
113 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
114 by call to regcache_collect_regset.
115 (supply_gregset, supply_fpregset): Call regcache_supply_regset
116 instead of aarch64_linux_supply_gregset/_fpregset.
117 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
118 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
120 (aarch64_linux_supply_gregset, supply_gregset_from_core)
121 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
122 functions. Move logic to ...
123 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
125 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
126 refer to new register maps, replace *_regset_from_core by
127 regcache_supply_regset, and also use regcache_collect_regset.
128 * aarch64-linux-tdep.h: Include "regset.h".
129 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
131 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
132 macros, moved from C source file.
133 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
134 variable declarations.
136 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
138 * s390-linux-nat.c: Include "regset.h".
139 (regmap_gregset): Delete macro.
140 (s390_64_regmap_gregset): New register map for
141 regcache_supply/_collect_regset.
142 (s390_64_gregset): New regset.
143 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
144 (regmap_fpregset): Delete macro.
145 (s390_native_supply, s390_native_collect): Delete functions.
146 (supply_gregset, fill_gregset): Replace s390-specific regmap
147 handling by a call to regcache_supply/_collect_regset.
148 (supply_fpregset, fill_fpregset): Call regcache_supply/
149 _collect_regset instead of s390_native_supply/_collect.
150 (fetch_regset, store_regset): Likewise. Also change the last
151 parameter to a regset instead of a regmap.
152 (s390_linux_fetch_inferior_registers)
153 (390_linux_store_inferior_registers): Adjust last parameter in
154 calls to fetch_regset and store_regset.
155 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
156 (s390_gregmap): ... this. Also make static const and convert to
157 regcache_map_entry format.
158 (s390x_regmap_gregset): Delete.
159 (s390_regmap_fpregset): Rename to...
160 (s390_fpregmap): ... this. Make static const and convert to
161 regcache_map_entry format.
162 (s390_regmap_upper, s390_regmap_last_break)
163 (s390x_regmap_last_break, s390_regmap_system_call)
164 (s390_regmap_tdb): Likewise.
165 (s390_supply_regset, s390_collect_regset): Remove functions.
166 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
168 (s390_gregset, s390_fpregset, s390_upper_regset)
169 (s390_last_break_regset, s390x_last_break_regset)
170 (s390_system_call_regset, s390_tdb_regset): Make global and
171 replace s390_supply/_collect_regset by regcache_supply/
173 (s390x_gregset): Delete.
174 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
175 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
176 (s390_regmap_fpregset, s390_regmap_last_break)
177 (s390x_regmap_last_break, s390_regmap_system_call)
178 (s390_regmap_tdb): Delete global variable declarations.
179 (s390_gregset, s390_fpregset, s390_last_break_regset)
180 (s390x_last_break_regset, s390_system_call_regset)
181 (s390_tdb_regset): New global variable declarations.
183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
185 * regcache.c: Include "regset.h".
186 (regcache_transfer_regset): New local function.
187 (regcache_supply_regset, regcache_collect_regset): New functions.
188 * regcache.h (struct regcache_map_entry): New structure.
189 (REGCACHE_MAP_SKIP): New enum value.
190 (regcache_supply_regset, regcache_collect_regset): New prototypes.
192 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
194 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
195 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
196 (ppc_linux_collect_gregset ): Likewise.
197 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
198 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
199 (ppc_collect_vrregset): Likewise.
200 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
203 2014-08-07 Yao Qi <yao@codesourcery.com>
205 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
206 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
207 * remote.c (remote_read_bytes): Likewise.
209 2014-08-07 Yao Qi <yao@codesourcery.com>
211 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
213 2014-08-07 Yao Qi <yao@codesourcery.com>
216 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
217 TARGET_XFER_OK instead of 0.
219 2014-08-07 Gary Benson <gbenson@redhat.com>
221 * common/common-defs.h: Include errno.h.
222 * defs.h: Do not include errno.h.
223 * ada-typeprint.c: Likewise.
224 * c-typeprint.c: Likewise.
225 * core-regset.c: Likewise.
226 * corefile.c: Likewise.
227 * corelow.c: Likewise.
228 * event-loop.c: Likewise.
229 * f-typeprint.c: Likewise.
230 * gnu-nat.c: Likewise.
231 * go32-nat.c: Likewise.
232 * i386gnu-nat.c: Likewise.
233 * m2-typeprint.c: Likewise.
234 * nat/linux-btrace.c: Likewise.
235 * p-typeprint.c: Likewise.
236 * procfs.c: Likewise.
237 * remote-sim.c: Likewise.
238 * rs6000-nat.c: Likewise.
239 * target.c: Likewise.
240 * typeprint.c: Likewise.
241 * ui-file.c: Likewise.
242 * valops.c: Likewise.
243 * valprint.c: Likewise.
245 2014-08-07 Gary Benson <gbenson@redhat.com>
247 * common/common-defs.h: Include string.h.
248 * aarch64-tdep.c: Do not include string.h.
249 * ada-exp.y: Likewise.
250 * ada-lang.c: Likewise.
251 * ada-lex.l: Likewise.
252 * ada-typeprint.c: Likewise.
253 * ada-valprint.c: Likewise.
254 * aix-thread.c: Likewise.
255 * alpha-linux-tdep.c: Likewise.
256 * alpha-mdebug-tdep.c: Likewise.
257 * alpha-nat.c: Likewise.
258 * alpha-osf1-tdep.c: Likewise.
259 * alpha-tdep.c: Likewise.
260 * alphanbsd-tdep.c: Likewise.
261 * amd64-dicos-tdep.c: Likewise.
262 * amd64-linux-tdep.c: Likewise.
263 * amd64-nat.c: Likewise.
264 * amd64-sol2-tdep.c: Likewise.
265 * amd64fbsd-tdep.c: Likewise.
266 * amd64obsd-tdep.c: Likewise.
267 * arch-utils.c: Likewise.
268 * arm-linux-nat.c: Likewise.
269 * arm-linux-tdep.c: Likewise.
270 * arm-tdep.c: Likewise.
271 * arm-wince-tdep.c: Likewise.
272 * armbsd-tdep.c: Likewise.
273 * armnbsd-nat.c: Likewise.
274 * armnbsd-tdep.c: Likewise.
275 * armobsd-tdep.c: Likewise.
276 * avr-tdep.c: Likewise.
277 * ax-gdb.c: Likewise.
278 * ax-general.c: Likewise.
279 * bcache.c: Likewise.
280 * bfin-tdep.c: Likewise.
281 * breakpoint.c: Likewise.
282 * build-id.c: Likewise.
283 * buildsym.c: Likewise.
285 * c-lang.c: Likewise.
286 * c-typeprint.c: Likewise.
287 * c-valprint.c: Likewise.
288 * charset.c: Likewise.
289 * cli-out.c: Likewise.
290 * cli/cli-cmds.c: Likewise.
291 * cli/cli-decode.c: Likewise.
292 * cli/cli-dump.c: Likewise.
293 * cli/cli-interp.c: Likewise.
294 * cli/cli-logging.c: Likewise.
295 * cli/cli-script.c: Likewise.
296 * cli/cli-setshow.c: Likewise.
297 * cli/cli-utils.c: Likewise.
298 * coffread.c: Likewise.
299 * common/agent.c: Likewise.
300 * common/buffer.c: Likewise.
301 * common/buffer.h: Likewise.
302 * common/common-utils.c: Likewise.
303 * common/filestuff.c: Likewise.
304 * common/filestuff.c: Likewise.
305 * common/format.c: Likewise.
306 * common/print-utils.c: Likewise.
307 * common/rsp-low.c: Likewise.
308 * common/signals.c: Likewise.
309 * common/vec.h: Likewise.
310 * common/xml-utils.c: Likewise.
311 * core-regset.c: Likewise.
312 * corefile.c: Likewise.
313 * corelow.c: Likewise.
314 * cp-abi.c: Likewise.
315 * cp-name-parser.y: Likewise.
316 * cp-support.c: Likewise.
317 * cp-valprint.c: Likewise.
318 * cris-tdep.c: Likewise.
320 * darwin-nat.c: Likewise.
321 * dbxread.c: Likewise.
322 * dcache.c: Likewise.
323 * demangle.c: Likewise.
324 * dicos-tdep.c: Likewise.
325 * disasm.c: Likewise.
326 * doublest.c: Likewise.
328 * dummy-frame.c: Likewise.
329 * dwarf2-frame.c: Likewise.
330 * dwarf2loc.c: Likewise.
331 * dwarf2read.c: Likewise.
332 * elfread.c: Likewise.
333 * environ.c: Likewise.
335 * event-loop.c: Likewise.
336 * exceptions.c: Likewise.
338 * expprint.c: Likewise.
340 * f-lang.c: Likewise.
341 * f-typeprint.c: Likewise.
342 * f-valprint.c: Likewise.
343 * fbsd-nat.c: Likewise.
344 * findcmd.c: Likewise.
345 * findvar.c: Likewise.
346 * fork-child.c: Likewise.
348 * frv-linux-tdep.c: Likewise.
349 * frv-tdep.c: Likewise.
351 * gdb_bfd.c: Likewise.
352 * gdbarch.c: Likewise.
353 * gdbarch.sh: Likewise.
354 * gdbtypes.c: Likewise.
355 * gnu-nat.c: Likewise.
356 * gnu-v2-abi.c: Likewise.
357 * gnu-v3-abi.c: Likewise.
358 * go-exp.y: Likewise.
359 * go-lang.c: Likewise.
360 * go32-nat.c: Likewise.
361 * guile/guile.c: Likewise.
362 * guile/scm-auto-load.c: Likewise.
363 * hppa-hpux-tdep.c: Likewise.
364 * hppa-linux-nat.c: Likewise.
365 * hppanbsd-tdep.c: Likewise.
366 * hppaobsd-tdep.c: Likewise.
367 * i386-cygwin-tdep.c: Likewise.
368 * i386-dicos-tdep.c: Likewise.
369 * i386-linux-tdep.c: Likewise.
370 * i386-nto-tdep.c: Likewise.
371 * i386-sol2-tdep.c: Likewise.
372 * i386-tdep.c: Likewise.
373 * i386bsd-tdep.c: Likewise.
374 * i386gnu-nat.c: Likewise.
375 * i386nbsd-tdep.c: Likewise.
376 * i386obsd-tdep.c: Likewise.
377 * i387-tdep.c: Likewise.
378 * ia64-libunwind-tdep.c: Likewise.
379 * ia64-linux-nat.c: Likewise.
380 * inf-child.c: Likewise.
381 * inf-ptrace.c: Likewise.
382 * inf-ttrace.c: Likewise.
383 * infcall.c: Likewise.
384 * infcmd.c: Likewise.
385 * inflow.c: Likewise.
386 * infrun.c: Likewise.
387 * interps.c: Likewise.
388 * iq2000-tdep.c: Likewise.
389 * irix5-nat.c: Likewise.
390 * jv-exp.y: Likewise.
391 * jv-lang.c: Likewise.
392 * jv-typeprint.c: Likewise.
393 * jv-valprint.c: Likewise.
394 * language.c: Likewise.
395 * linux-fork.c: Likewise.
396 * linux-nat.c: Likewise.
397 * lm32-tdep.c: Likewise.
398 * m2-exp.y: Likewise.
399 * m2-typeprint.c: Likewise.
400 * m32c-tdep.c: Likewise.
401 * m32r-linux-nat.c: Likewise.
402 * m32r-linux-tdep.c: Likewise.
403 * m32r-rom.c: Likewise.
404 * m32r-tdep.c: Likewise.
405 * m68hc11-tdep.c: Likewise.
406 * m68k-tdep.c: Likewise.
407 * m68kbsd-tdep.c: Likewise.
408 * m68klinux-nat.c: Likewise.
409 * m68klinux-tdep.c: Likewise.
410 * m88k-tdep.c: Likewise.
411 * machoread.c: Likewise.
412 * macrocmd.c: Likewise.
414 * mdebugread.c: Likewise.
415 * mem-break.c: Likewise.
416 * memattr.c: Likewise.
417 * memory-map.c: Likewise.
418 * mep-tdep.c: Likewise.
419 * mi/mi-cmd-break.c: Likewise.
420 * mi/mi-cmd-disas.c: Likewise.
421 * mi/mi-cmd-env.c: Likewise.
422 * mi/mi-cmd-stack.c: Likewise.
423 * mi/mi-cmd-var.c: Likewise.
424 * mi/mi-cmds.c: Likewise.
425 * mi/mi-console.c: Likewise.
426 * mi/mi-getopt.c: Likewise.
427 * mi/mi-interp.c: Likewise.
428 * mi/mi-main.c: Likewise.
429 * mi/mi-parse.c: Likewise.
430 * microblaze-rom.c: Likewise.
431 * microblaze-tdep.c: Likewise.
432 * mingw-hdep.c: Likewise.
433 * minidebug.c: Likewise.
434 * minsyms.c: Likewise.
435 * mips-irix-tdep.c: Likewise.
436 * mips-linux-tdep.c: Likewise.
437 * mips-tdep.c: Likewise.
438 * mips64obsd-tdep.c: Likewise.
439 * mipsnbsd-tdep.c: Likewise.
440 * mipsread.c: Likewise.
441 * mn10300-linux-tdep.c: Likewise.
442 * mn10300-tdep.c: Likewise.
443 * monitor.c: Likewise.
444 * moxie-tdep.c: Likewise.
445 * mt-tdep.c: Likewise.
446 * nat/linux-btrace.c: Likewise.
447 * nat/linux-osdata.c: Likewise.
448 * nat/linux-procfs.c: Likewise.
449 * nat/linux-ptrace.c: Likewise.
450 * nat/linux-waitpid.c: Likewise.
451 * nbsd-tdep.c: Likewise.
452 * nios2-linux-tdep.c: Likewise.
453 * nto-procfs.c: Likewise.
454 * nto-tdep.c: Likewise.
455 * objc-lang.c: Likewise.
456 * objfiles.c: Likewise.
457 * opencl-lang.c: Likewise.
459 * osdata.c: Likewise.
461 * p-lang.c: Likewise.
462 * p-typeprint.c: Likewise.
464 * posix-hdep.c: Likewise.
465 * ppc-linux-nat.c: Likewise.
466 * ppc-sysv-tdep.c: Likewise.
467 * ppcfbsd-tdep.c: Likewise.
468 * ppcnbsd-tdep.c: Likewise.
469 * ppcobsd-tdep.c: Likewise.
470 * printcmd.c: Likewise.
471 * procfs.c: Likewise.
472 * prologue-value.c: Likewise.
473 * python/py-auto-load.c: Likewise.
474 * python/py-gdb-readline.c: Likewise.
475 * ravenscar-thread.c: Likewise.
476 * regcache.c: Likewise.
477 * registry.c: Likewise.
478 * remote-fileio.c: Likewise.
479 * remote-m32r-sdi.c: Likewise.
480 * remote-mips.c: Likewise.
481 * remote-notif.c: Likewise.
482 * remote-sim.c: Likewise.
483 * remote.c: Likewise.
484 * reverse.c: Likewise.
485 * rs6000-aix-tdep.c: Likewise.
486 * ser-base.c: Likewise.
487 * ser-go32.c: Likewise.
488 * ser-mingw.c: Likewise.
489 * ser-pipe.c: Likewise.
490 * ser-tcp.c: Likewise.
491 * ser-unix.c: Likewise.
492 * serial.c: Likewise.
493 * sh-tdep.c: Likewise.
494 * sh64-tdep.c: Likewise.
495 * shnbsd-tdep.c: Likewise.
497 * sol-thread.c: Likewise.
498 * solib-dsbt.c: Likewise.
499 * solib-frv.c: Likewise.
500 * solib-osf.c: Likewise.
501 * solib-som.c: Likewise.
502 * solib-spu.c: Likewise.
503 * solib-target.c: Likewise.
505 * somread.c: Likewise.
506 * source.c: Likewise.
507 * sparc-nat.c: Likewise.
508 * sparc-sol2-tdep.c: Likewise.
509 * sparc-tdep.c: Likewise.
510 * sparc64-tdep.c: Likewise.
511 * sparc64fbsd-tdep.c: Likewise.
512 * sparc64nbsd-tdep.c: Likewise.
513 * sparcnbsd-tdep.c: Likewise.
514 * spu-linux-nat.c: Likewise.
515 * spu-multiarch.c: Likewise.
516 * spu-tdep.c: Likewise.
517 * stabsread.c: Likewise.
519 * std-regs.c: Likewise.
520 * symfile.c: Likewise.
521 * symmisc.c: Likewise.
522 * symtab.c: Likewise.
523 * target.c: Likewise.
524 * thread.c: Likewise.
525 * tilegx-linux-nat.c: Likewise.
526 * tilegx-tdep.c: Likewise.
528 * tracepoint.c: Likewise.
529 * tui/tui-command.c: Likewise.
530 * tui/tui-data.c: Likewise.
531 * tui/tui-disasm.c: Likewise.
532 * tui/tui-file.c: Likewise.
533 * tui/tui-layout.c: Likewise.
534 * tui/tui-out.c: Likewise.
535 * tui/tui-regs.c: Likewise.
536 * tui/tui-source.c: Likewise.
537 * tui/tui-stack.c: Likewise.
538 * tui/tui-win.c: Likewise.
539 * tui/tui-windata.c: Likewise.
540 * tui/tui-winsource.c: Likewise.
541 * typeprint.c: Likewise.
542 * ui-file.c: Likewise.
543 * ui-out.c: Likewise.
544 * user-regs.c: Likewise.
546 * v850-tdep.c: Likewise.
547 * valarith.c: Likewise.
548 * valops.c: Likewise.
549 * valprint.c: Likewise.
551 * varobj.c: Likewise.
552 * vax-tdep.c: Likewise.
553 * vaxnbsd-tdep.c: Likewise.
554 * vaxobsd-tdep.c: Likewise.
555 * windows-nat.c: Likewise.
556 * xcoffread.c: Likewise.
557 * xml-support.c: Likewise.
558 * xstormy16-tdep.c: Likewise.
559 * xtensa-linux-nat.c: Likewise.
561 2014-08-07 Gary Benson <gbenson@redhat.com>
563 * common/common-defs.h: Include gdb_assert.h.
564 * aarch64-tdep.c: Do not include gdb_assert.h.
565 * addrmap.c: Likewise.
566 * aix-thread.c: Likewise.
567 * alpha-linux-tdep.c: Likewise.
568 * alpha-mdebug-tdep.c: Likewise.
569 * alphanbsd-tdep.c: Likewise.
570 * amd64-nat.c: Likewise.
571 * amd64-tdep.c: Likewise.
572 * amd64bsd-nat.c: Likewise.
573 * amd64fbsd-nat.c: Likewise.
574 * amd64fbsd-tdep.c: Likewise.
575 * amd64nbsd-nat.c: Likewise.
576 * amd64nbsd-tdep.c: Likewise.
577 * amd64obsd-nat.c: Likewise.
578 * amd64obsd-tdep.c: Likewise.
579 * arch-utils.c: Likewise.
580 * arm-tdep.c: Likewise.
581 * armbsd-tdep.c: Likewise.
583 * bcache.c: Likewise.
584 * bfin-tdep.c: Likewise.
585 * blockframe.c: Likewise.
586 * breakpoint.c: Likewise.
587 * bsd-kvm.c: Likewise.
588 * bsd-uthread.c: Likewise.
589 * buildsym.c: Likewise.
591 * c-lang.c: Likewise.
592 * charset.c: Likewise.
593 * cleanups.c: Likewise.
594 * cli-out.c: Likewise.
595 * cli/cli-decode.c: Likewise.
596 * cli/cli-dump.c: Likewise.
597 * cli/cli-logging.c: Likewise.
598 * cli/cli-script.c: Likewise.
599 * cli/cli-utils.c: Likewise.
600 * coffread.c: Likewise.
601 * common/common-utils.c: Likewise.
602 * common/queue.h: Likewise.
603 * common/signals.c: Likewise.
604 * common/vec.h: Likewise.
605 * complaints.c: Likewise.
606 * completer.c: Likewise.
607 * corelow.c: Likewise.
608 * cp-abi.c: Likewise.
609 * cp-name-parser.y: Likewise.
610 * cp-namespace.c: Likewise.
611 * cp-support.c: Likewise.
612 * cris-tdep.c: Likewise.
613 * dbxread.c: Likewise.
614 * dictionary.c: Likewise.
615 * doublest.c: Likewise.
617 * dummy-frame.c: Likewise.
618 * dwarf2-frame-tailcall.c: Likewise.
619 * dwarf2-frame.c: Likewise.
620 * dwarf2expr.c: Likewise.
621 * dwarf2loc.c: Likewise.
622 * dwarf2read.c: Likewise.
624 * event-loop.c: Likewise.
625 * exceptions.c: Likewise.
626 * expprint.c: Likewise.
627 * f-valprint.c: Likewise.
628 * fbsd-nat.c: Likewise.
629 * findvar.c: Likewise.
630 * frame-unwind.c: Likewise.
632 * frv-tdep.c: Likewise.
634 * gdb-dlfcn.c: Likewise.
635 * gdb_bfd.c: Likewise.
636 * gdbarch.c: Likewise.
637 * gdbarch.sh: Likewise.
638 * gdbtypes.c: Likewise.
639 * gnu-nat.c: Likewise.
640 * gnu-v3-abi.c: Likewise.
641 * go-lang.c: Likewise.
642 * guile/scm-exception.c: Likewise.
643 * guile/scm-gsmob.c: Likewise.
644 * guile/scm-lazy-string.c: Likewise.
645 * guile/scm-math.c: Likewise.
646 * guile/scm-pretty-print.c: Likewise.
647 * guile/scm-safe-call.c: Likewise.
648 * guile/scm-utils.c: Likewise.
649 * guile/scm-value.c: Likewise.
650 * h8300-tdep.c: Likewise.
651 * hppa-hpux-nat.c: Likewise.
652 * hppa-tdep.c: Likewise.
653 * hppanbsd-tdep.c: Likewise.
654 * hppaobsd-tdep.c: Likewise.
655 * i386-darwin-nat.c: Likewise.
656 * i386-darwin-tdep.c: Likewise.
657 * i386-nto-tdep.c: Likewise.
658 * i386-tdep.c: Likewise.
659 * i386bsd-nat.c: Likewise.
660 * i386fbsd-tdep.c: Likewise.
661 * i386gnu-nat.c: Likewise.
662 * i386nbsd-tdep.c: Likewise.
663 * i386obsd-tdep.c: Likewise.
664 * i387-tdep.c: Likewise.
665 * ia64-libunwind-tdep.c: Likewise.
666 * ia64-tdep.c: Likewise.
667 * inf-ptrace.c: Likewise.
668 * inf-ttrace.c: Likewise.
669 * infcall.c: Likewise.
670 * infcmd.c: Likewise.
671 * infrun.c: Likewise.
672 * inline-frame.c: Likewise.
673 * interps.c: Likewise.
674 * jv-lang.c: Likewise.
675 * jv-typeprint.c: Likewise.
676 * linux-fork.c: Likewise.
677 * linux-nat.c: Likewise.
678 * linux-thread-db.c: Likewise.
679 * m32c-tdep.c: Likewise.
680 * m32r-linux-nat.c: Likewise.
681 * m32r-tdep.c: Likewise.
682 * m68k-tdep.c: Likewise.
683 * m68kbsd-nat.c: Likewise.
684 * m68kbsd-tdep.c: Likewise.
685 * m88k-tdep.c: Likewise.
686 * machoread.c: Likewise.
687 * macroexp.c: Likewise.
688 * macrotab.c: Likewise.
690 * mdebugread.c: Likewise.
691 * memory-map.c: Likewise.
692 * mep-tdep.c: Likewise.
693 * mi/mi-common.c: Likewise.
694 * microblaze-tdep.c: Likewise.
695 * mingw-hdep.c: Likewise.
696 * mips-linux-nat.c: Likewise.
697 * mips-linux-tdep.c: Likewise.
698 * mips-tdep.c: Likewise.
699 * mips64obsd-tdep.c: Likewise.
700 * mipsnbsd-tdep.c: Likewise.
701 * mn10300-linux-tdep.c: Likewise.
702 * mn10300-tdep.c: Likewise.
703 * moxie-tdep.c: Likewise.
704 * mt-tdep.c: Likewise.
705 * nat/linux-btrace.c: Likewise.
706 * nat/linux-osdata.c: Likewise.
707 * nat/linux-ptrace.c: Likewise.
708 * nat/mips-linux-watch.c: Likewise.
709 * nios2-linux-tdep.c: Likewise.
710 * nios2-tdep.c: Likewise.
711 * objc-lang.c: Likewise.
712 * objfiles.c: Likewise.
713 * obsd-nat.c: Likewise.
714 * opencl-lang.c: Likewise.
717 * ppc-linux-nat.c: Likewise.
718 * ppc-sysv-tdep.c: Likewise.
719 * ppcfbsd-nat.c: Likewise.
720 * ppcfbsd-tdep.c: Likewise.
721 * ppcnbsd-nat.c: Likewise.
722 * ppcnbsd-tdep.c: Likewise.
723 * ppcobsd-nat.c: Likewise.
724 * ppcobsd-tdep.c: Likewise.
725 * printcmd.c: Likewise.
726 * procfs.c: Likewise.
727 * prologue-value.c: Likewise.
728 * psymtab.c: Likewise.
729 * python/py-lazy-string.c: Likewise.
730 * python/py-value.c: Likewise.
731 * regcache.c: Likewise.
732 * reggroups.c: Likewise.
733 * registry.c: Likewise.
734 * remote-sim.c: Likewise.
735 * remote.c: Likewise.
736 * rs6000-aix-tdep.c: Likewise.
737 * rs6000-tdep.c: Likewise.
738 * s390-linux-tdep.c: Likewise.
739 * score-tdep.c: Likewise.
740 * ser-base.c: Likewise.
741 * ser-mingw.c: Likewise.
742 * sh-tdep.c: Likewise.
743 * sh64-tdep.c: Likewise.
744 * solib-darwin.c: Likewise.
745 * solib-spu.c: Likewise.
746 * solib-svr4.c: Likewise.
747 * source.c: Likewise.
748 * sparc-nat.c: Likewise.
749 * sparc-sol2-tdep.c: Likewise.
750 * sparc-tdep.c: Likewise.
751 * sparc64-sol2-tdep.c: Likewise.
752 * sparc64-tdep.c: Likewise.
753 * sparc64fbsd-tdep.c: Likewise.
754 * sparc64nbsd-tdep.c: Likewise.
755 * sparc64obsd-tdep.c: Likewise.
756 * sparcnbsd-tdep.c: Likewise.
757 * sparcobsd-tdep.c: Likewise.
758 * spu-multiarch.c: Likewise.
759 * spu-tdep.c: Likewise.
760 * stabsread.c: Likewise.
762 * symfile.c: Likewise.
763 * symtab.c: Likewise.
764 * target-descriptions.c: Likewise.
765 * target-memory.c: Likewise.
766 * target.c: Likewise.
767 * tic6x-linux-tdep.c: Likewise.
768 * tic6x-tdep.c: Likewise.
769 * tilegx-linux-nat.c: Likewise.
770 * tilegx-tdep.c: Likewise.
772 * tramp-frame.c: Likewise.
773 * tui/tui-out.c: Likewise.
774 * tui/tui-winsource.c: Likewise.
775 * ui-out.c: Likewise.
776 * user-regs.c: Likewise.
778 * v850-tdep.c: Likewise.
779 * valops.c: Likewise.
781 * varobj.c: Likewise.
782 * vax-nat.c: Likewise.
783 * xml-syscall.c: Likewise.
784 * xml-tdesc.c: Likewise.
785 * xstormy16-tdep.c: Likewise.
786 * xtensa-linux-nat.c: Likewise.
787 * xtensa-tdep.c: Likewise.
789 2014-08-07 Gary Benson <gbenson@redhat.com>
791 * common/common-defs.h: Include common-utils.h.
792 * defs.h: Do not include common-utils.h.
793 * common/gdb_assert.h: Likewise.
794 * darwin-nat.h: Likewise.
795 * nat/linux-btrace.c: Likewise.
796 * target/waitstatus.h: Likewise.
798 2014-08-07 Gary Benson <gbenson@redhat.com>
800 * common/common-defs.h: Include ptid.h.
801 * defs.h: Do not include ptid.h.
802 * inferior.h: Likewise.
803 * infrun.h: Likewise.
804 * nat/linux-btrace.h: Likewise.
805 * nat/linux-osdata.h: Likewise.
806 * target/waitstatus.h: Likewise.
808 2014-08-07 Gary Benson <gbenson@redhat.com>
810 * common/common-defs.h: Include gdb_locale.h.
811 * defs.h: Do not include gdb_locale.h.
813 2014-08-07 Gary Benson <gbenson@redhat.com>
815 * common/common-defs.h: Include gdb/signals.h.
816 * defs.h: Do not include gdb/signals.h.
818 2014-08-07 Gary Benson <gbenson@redhat.com>
820 * common/common-defs.h: Include pathmax.h.
821 * defs.h: Do not include pathmax.h.
823 2014-08-07 Gary Benson <gbenson@redhat.com>
825 * common/common-defs.h: Include libiberty.h.
826 * defs.h: Do not include libiberty.h.
827 * common/queue.h: Likewise.
828 * cp-name-parser.y: Likewise.
829 * mi/mi-cmd-catch.c: Likewise.
830 * python/python.c: Likewise.
832 2014-08-07 Gary Benson <gbenson@redhat.com>
834 * common/common-defs.h: Include ansidecl.h.
835 * defs.h: Do not include ansidecl.h.
836 * common/buffer.h: Likewise.
837 * common/common-utils.h: Likewise.
839 2014-08-07 Gary Benson <gbenson@redhat.com>
841 * common/common-defs.h: Include stddef.h.
842 * defs.h: Do not include stddef.h.
843 * common/common-utils.h: Likewise.
844 * amd64fbsd-nat.c: Likewise.
845 * bcache.c: Likewise.
846 * charset.c: Likewise.
847 * common/buffer.h: Likewise.
848 * common/vec.h: Likewise.
849 * i386bsd-nat.c: Likewise.
850 * nat/linux-btrace.h: Likewise.
851 * ppcfbsd-nat.c: Likewise.
852 * ppcnbsd-tdep.h: Likewise.
853 * ppcobsd-nat.c: Likewise.
854 * ppcobsd-tdep.h: Likewise.
855 * python/py-gdb-readline.c: Likewise.
857 2014-08-07 Gary Benson <gbenson@redhat.com>
859 * common/common-defs.h: Include stdarg.h.
860 * defs.h: Do not include stdarg.h.
861 * ada-lang.c: Likewise.
862 * common/common-utils.h: Likewise.
863 * guile/scm-string.c: Likewise.
864 * guile/scm-utils.c: Likewise.
865 * m32c-tdep.c: Likewise.
867 2014-08-07 Gary Benson <gbenson@redhat.com>
869 * common/common-defs.h: Include stdlib.h.
870 * defs.h: Do not include stdlib.h.
871 * addrmap.c: Likewise.
872 * bcache.c: Likewise.
873 * common/buffer.c: Likewise.
874 * common/common-utils.c: Likewise.
875 * cp-name-parser.y: Likewise.
876 * go32-nat.c: Likewise.
877 * mn10300-linux-tdep.c: Likewise.
878 * nat/linux-osdata.c: Likewise.
879 * tui/tui.c: Likewise.
880 * windows-nat.c: Likewise.
882 2014-08-07 Gary Benson <gbenson@redhat.com>
884 * common/common-defs.h: Include stdio.h.
885 * defs.h: Do not include stdio.h.
886 * ada-lang.c: Likewise.
887 * common/buffer.c: Likewise.
888 * common/common-utils.c: Likewise.
889 * cp-name-parser.y: Likewise.
890 * gnu-nat.c: Likewise.
891 * go32-nat.c: Likewise.
892 * i386gnu-nat.c: Likewise.
893 * proc-api.c: Likewise.
894 * proc-events.c: Likewise.
895 * proc-flags.c: Likewise.
896 * proc-why.c: Likewise.
897 * python/python-internal.h: Likewise.
898 * target-memory.c: Likewise.
899 * tui/tui-io.c: Likewise.
900 * tui/tui.c: Likewise.
902 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
904 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
905 (scan_dyntag_auxv): Same.
907 2014-08-06 Yao Qi <yao@codesourcery.com>
909 * amd64-linux-nat.c: Remove duplicated include
911 * i386-linux-nat.c: Likewise.
913 2014-08-06 Yao Qi <yao@codesourcery.com>
915 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
916 operand" with "Special opcode" in comments.
918 2014-08-05 Gary Benson <gbenson@redhat.com>
920 * interps.c (initialize_interps): Remove prototype.
921 (interpreter_initialized): Remove static global.
922 (interp_add): Do not call initialize_interps.
923 (initialize_interps): Remove function.
925 2014-08-05 Gary Benson <gbenson@redhat.com>
927 * utils.c (vwarning): Remove spurious va_end.
929 2014-08-05 Alan Modra <amodra@gmail.com>
931 * charset.c (convert_between_encodings): Cast result of obstack_base.
932 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
933 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
934 (read_unwind_info): Use size_t for some locals.
935 * jit.c (finalize_symtab): Likewise.
936 * utils.c (hashtab_obstack_allocate): Likewise.
937 * symmisc.c (print_objfile_statistics): Update format strings.
939 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
941 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
942 (Changes in GDB 7.8): ... here.
944 2014-08-04 Tom Tromey <tromey@redhat.com>
946 * target.c (set_targetdebug): New function.
947 (initialize_targets): Pass set_targetdebug when creating "set
950 2014-08-01 Joel Brobecker <brobecker@adacore.com>
952 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
953 if detecting a variable-sized field that is not the last field.
954 Fix struct type length computation.
956 2014-08-01 Joel Brobecker <brobecker@adacore.com>
958 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
961 2014-08-01 Joel Brobecker <brobecker@adacore.com>
963 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
964 Remove "+ 8" offset in computation of CHAIN_VMA.
966 2014-07-31 Doug Evans <dje@google.com>
968 * inflow.c (child_terminal_inferior): Add comment.
969 (child_terminal_ours_for_output): Add comment.
970 (child_terminal_ours): Add comment.
971 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
972 (linux_nat_terminal_ours): Add comment.
974 2014-07-31 Gary Benson <gbenson@redhat.com>
976 * common/btrace-common.h: Do not include defs.h or server.h.
977 * nat/mips-linux-watch.h: Likewise.
978 * gdb-dlfcn.h: Do not include defs.h.
979 * tracefile.h: Likewise.
981 2014-07-30 Roland McGrath <mcgrathr@google.com>
983 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
985 2014-07-30 Tom Tromey <tromey@redhat.com>
987 * bsd-kvm.c (bsd_kvm_open): Constify.
988 * corelow.c (core_open): Constify.
989 * ctf.c (ctf_open): Constify.
990 * dbug-rom.c (dbug_open): Constify.
991 * exec.c (exec_open): Constify.
992 * m32r-rom.c (m32r_open, mon2000_open): Constify.
993 * microblaze-rom.c (picobug_open): Constify.
994 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
996 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
997 * record-btrace.c (record_btrace_open): Constify.
998 * record-full.c (record_full_core_open_1, record_full_open_1)
999 (record_full_open): Constify.
1000 * remote-m32r-sdi.c (m32r_open): Constify.
1001 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1002 (rockhopper_open, lsi_open): Constify.
1003 * remote-sim.c (gdbsim_open): Constify.
1004 * remote.c (remote_open, extended_remote_open, remote_open_1):
1006 * target.h (struct target_ops) <to_open>: Make "arg" const.
1007 * tracefile-tfile.c (tfile_open): Constify.
1009 2014-07-30 Tom Tromey <tromey@redhat.com>
1011 * breakpoint.c (map_breakpoint_numbers): Update.
1012 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1013 (get_number_const): New function.
1014 (get_number): Rewrite using get_number_const.
1015 (init_number_or_range): Make "string" const.
1016 (number_is_in_list): Make "list" const.
1017 * cli/cli-utils.h (get_number_const): Declare.
1018 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1019 (init_number_or_range, number_is_in_list): Update.
1020 * printcmd.c (map_display_numbers): Update.
1021 * value.c (value_from_history_ref): Constify.
1022 * value.h (value_from_history_ref): Update.
1024 2014-07-30 Tom Tromey <tromey@redhat.com>
1026 * corefile.c (hook_type, call_extra_exec_file_hooks)
1027 (specify_exec_file_hook): Constify.
1028 * exec.c (exec_file_attach): Make "filename" const.
1029 * gdbcore.h (deprecated_exec_file_display_hook)
1030 (specify_exec_file_hook, exec_file_attach): Constify.
1031 * main.c (captured_main): Use catch_command_errors_const.
1033 2014-07-30 Tom Tromey <tromey@redhat.com>
1035 * target.c (open_target): New function.
1036 (add_target_with_completer, add_deprecated_target_alias): Use
1037 set_cmd_sfunc, set_cmd_context.
1038 (debug_to_open): Remove.
1039 (setup_target_debug): Update.
1041 2014-07-30 Yao Qi <yao@codesourcery.com>
1043 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1045 * parse.c (exp_iterate): Update comments.
1047 2014-07-30 Gary Benson <gbenson@redhat.com>
1049 * common/common-defs.h: New file.
1050 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1051 * defs.h: Include common-defs.h.
1052 Do not include config.h or build-gnulib/config.h.
1054 2014-07-30 Gary Benson <gbenson@redhat.com>
1056 * common/common-utils.h: Do not include config.h.
1057 * nat/linux-btrace.h: Likewise.
1059 2014-07-30 Gary Benson <gbenson@redhat.com>
1061 * btrace.c: Include defs.h.
1062 * common/ptid.c: Include defs.h or server.h as appropriate.
1063 * nat/mips-linux-watch.c: Likewise.
1065 2014-07-29 Tom Tromey <tromey@redhat.com>
1067 * target.c (target_is_pushed): Simplify.
1069 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1073 2014-07-29 Yao Qi <yao@codesourcery.com>
1076 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1078 2014-07-28 Doug Evans <xdje42@gmail.com>
1081 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1082 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1085 2014-07-28 Will Newton <will.newton@linaro.org>
1087 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1088 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1089 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1090 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1091 (THUMB2_EABI_SYSCALL): Likewise.
1092 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1094 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1095 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1097 2014-07-27 Doug Evans <xdje42@gmail.com>
1099 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1101 2014-07-27 Doug Evans <xdje42@gmail.com>
1103 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1105 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1106 Doug Evans <xdje42@gmail.com>
1109 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1110 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1111 * configure.ac: Try to use guild to compile an scm file, if it fails
1112 then disable guile support.
1113 * configure: Regenerate.
1114 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1116 (GUILE_COMPILED_FILES): New variable.
1117 (GUILE_FILES) Update.
1118 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1119 (stamp-guile): Compile scm files.
1120 * guile/guile.c (boot_guile_support): New function.
1121 (standard_throw_args_p): New function.
1122 (print_standard_throw_error, print_throw_error): New functions.
1123 (handle_boot_error): New function.
1124 (initialize_scheme_side): Rewrite to call boot_guile_support.
1125 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1126 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1128 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1129 Doug Evans <xdje42@gmail.com>
1132 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1133 * guile/lib/gdb/support.scm: New file.
1134 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1135 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1137 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1139 (%assert-type): Ditto, and renamed to assert-type.
1140 (%exception-print-style): Delete.
1142 2014-07-26 Doug Evans <xdje42@gmail.com>
1145 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1146 * configure: Regenerate.
1147 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1149 (PYTHON_FILES): New variable.
1150 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1151 (GUILE_FILES): New variable.
1152 (stamp-python, install-python, uninstall-python): Handle empty
1154 (stamp-guile, install-guile, uninstall-guile): Ditto.
1156 2014-07-26 Doug Evans <xdje42@gmail.com>
1159 * guile/lib/gdb.scm (pretty-printers): Export.
1160 (set-pretty-printers!): Export.
1161 * guile/lib/gdb/printing.scm (gdb module): Update.
1162 (prepend-pretty-printer!, append-pretty-printer!): Update.
1163 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1164 (pretty_printer_list_var): Delete.
1165 (pretty_printer_list): New static global.
1166 (gdbscm_pretty_printers): New function.
1167 (gdbscm_set_pretty_printers_x): New function.
1168 (ppscm_find_pretty_printer_from_gdb): Update.
1169 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1170 (gdbscm_initialize_pretty_printers): Update.
1172 2014-07-26 Doug Evans <xdje42@gmail.com>
1175 * configure.ac: Add check for header gc/gc.h.
1176 Add check for function setenv.
1177 * configure: Regenerate.
1178 * config.in: Regenerate.
1179 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1181 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1183 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1184 variation in gdbarch matching.
1186 2014-07-25 Tom Tromey <tromey@redhat.com>
1188 * exec.c (using_exec_ops): Remove.
1189 (exec_close_1): Update. Remove extraneous block, reindent.
1190 (add_target_sections): Use target_is_pushed.
1192 2014-07-25 Pedro Alves <palves@redhat.com>
1194 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1195 * monitor.c (monitor_create_inferior): Likewise.
1196 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1197 * remote-sim.c (gdbsim_create_inferior): Likewise.
1198 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1199 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1200 * windows-nat.c (do_initial_windows_stuff): Likewise.
1202 2014-07-25 Pedro Alves <palves@redhat.com>
1204 * NEWS: Mention signal passing and "signal" command changes.
1205 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1207 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1209 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1210 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1211 (jump_command): Adjust clear_proceed_status call.
1212 (signal_command): Warn if other thread that are resumed have
1213 signals that will be delivered. Adjust clear_proceed_status call.
1214 (until_next_command, finish_command)
1215 (proceed_after_attach_callback, attach_command_post_wait)
1216 (attach_command): Adjust clear_proceed_status call.
1217 * infrun.c (proceed_after_vfork_done): Likewise.
1218 (proceed_after_attach_callback): Adjust comment.
1219 (clear_proceed_status_thread): Clear stop_signal if not in pass
1221 (clear_proceed_status_callback): Delete.
1222 (clear_proceed_status): New 'step' parameter. Only clear the
1223 proceed status of threads the command being prepared is about to
1225 (proceed): If passed in an explicit signal, override stop_signal
1226 with it. Don't pass the last stop signal to the thread we're
1228 (init_wait_for_inferior): Adjust clear_proceed_status call.
1229 (switch_back_to_stepped_thread): Clear the signal if it should not
1231 * infrun.h (clear_proceed_status): New 'step' parameter.
1232 (user_visible_resume_ptid): Add comment.
1233 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1234 signal is in pass state.
1235 * remote.c (append_pending_thread_resumptions): Likewise.
1236 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1238 2014-07-25 Tom Tromey <tromey@redhat.com>
1240 * target.h (target_stopped_data_address)
1241 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1244 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1246 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1248 (avr_pointer_to_address): Likewise.
1250 2014-07-24 Tom Tromey <tromey@redhat.com>
1252 * monitor.c (compile_pattern): Update.
1253 * target.h (struct target_ops) <to_shortname, to_longname,
1256 2014-07-24 Tom Tromey <tromey@redhat.com>
1258 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1259 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1260 (add_info_alias, add_com): Make "doc" const.
1261 (print_doc_line): Make "str" const.
1262 (delete_cmd): Update.
1263 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1264 (print_doc_line): Update.
1265 * cli/cli-script.c (document_command): Update.
1266 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1267 (add_com, add_info, add_info_alias): Update.
1268 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1269 * python/py-cmd.c (cmdpy_destroyer): Update.
1271 2014-07-24 Tom Tromey <tromey@redhat.com>
1273 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1274 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1275 (help_cmd_list): Constify.
1276 (lookup_cmd): Update.
1277 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1279 (help_cmd_list, apropos_cmd): Update.
1280 * cli/cli-script.c (show_user): Update.
1281 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1282 * cli/cli-setshow.h (cmd_show_list): Update.
1283 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1284 (cmd_show_list): Update.
1285 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1286 * python/py-cmd.c (cmdpy_destroyer): Update.
1288 2014-07-24 Tom Tromey <tromey@redhat.com>
1290 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1291 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1293 * command.h (deprecate_cmd): Update.
1294 * maint.c (maintenance_do_deprecate): Add casts.
1296 2014-07-24 Tom Tromey <tromey@redhat.com>
1298 * cli/cli-decode.c (help_cmd): Make parameter "const".
1299 * cli/cli-decode.h (help_cmd): Update.
1301 2014-07-24 Tom Tromey <tromey@redhat.com>
1303 * stack.c (up_silently_base, down_silently_base): Make argument
1306 2014-07-24 Tom Tromey <tromey@redhat.com>
1308 * solib.c (solib_add): Make "pattern" const.
1309 * solib.h (solib_add): Update.
1311 2014-07-24 Tom Tromey <tromey@redhat.com>
1313 * remote.c (remote_serial_open, print_packet, putpkt)
1314 (putpkt_binary): Constify.
1315 * remote.h (putpkt): Update.
1317 2014-07-24 Tom Tromey <tromey@redhat.com>
1319 * monitor.c (monitor_open): Make "args" const.
1320 * monitor.h (monitor_open): Update.
1322 2014-07-24 Tom Tromey <tromey@redhat.com>
1324 * maint.c (match_bfd_flags): Make "string" const.
1325 (print_bfd_section_info): Remove casts.
1326 (print_objfile_section_info): Make "string" const.
1328 2014-07-24 Tom Tromey <tromey@redhat.com>
1330 * inf-child.c (inf_child_open_target): Make "arg" const.
1331 * inf-child.h (inf_child_open_target): Update.
1333 2014-07-24 Tom Tromey <tromey@redhat.com>
1335 * environ.c (unset_in_environ): Make "var" const.
1336 * environ.h (unset_in_environ): Update.
1338 2014-07-24 Tom Tromey <tromey@redhat.com>
1340 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1342 (scan_filename_with_cleanup): Likewise.
1343 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1344 Make arguments const.
1345 (restore_command): Update.
1347 2014-07-24 Pedro Alves <palves@redhat.com>
1349 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1351 2014-07-24 Tom Tromey <tromey@redhat.com>
1352 Gary Benson <gbenson@redhat.com>
1354 * nat/linux-ptrace.c (additional_flags): New global.
1355 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1356 additional_flags; don't check GDBSERVER.
1357 (linux_ptrace_set_additional_flags): New function.
1358 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1360 * linux-nat.c (_initialize_linux_nat): Call
1361 linux_ptrace_set_additional_flags.
1363 2014-07-24 Tom Tromey <tromey@redhat.com>
1365 * make-target-delegates (munge_type, write_debugmethod): New
1367 (debug_names): New global.
1368 ($TARGET_DEBUG_PRINTER): New global.
1369 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1371 Write debug methods. Generate init_debug_target.
1372 * target-debug.h: New file.
1373 * target-delegates.c: Rebuild.
1374 * target.c: Include target-debug.h.
1375 (debug_target): Hoist definition.
1376 (target_kill, target_get_section_table, target_memory_map)
1377 (target_flash_erase, target_flash_done, target_detach)
1378 (target_disconnect, target_wait, target_resume)
1379 (target_pass_signals, target_program_signals, target_follow_fork)
1380 (target_mourn_inferior, target_search_memory)
1381 (target_thread_address_space, target_close)
1382 (target_find_new_threads, target_core_of_thread)
1383 (target_verify_memory, target_insert_mask_watchpoint)
1384 (target_remove_mask_watchpoint): Remove targetdebug code.
1385 (debug_to_post_attach, debug_to_prepare_to_store)
1386 (debug_to_files_info, debug_to_insert_breakpoint)
1387 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1388 (debug_to_region_ok_for_hw_watchpoint)
1389 (debug_to_can_accel_watchpoint_condition)
1390 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1391 (debug_to_watchpoint_addr_within_range)
1392 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1393 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1394 (debug_to_terminal_init, debug_to_terminal_inferior)
1395 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1396 (debug_to_terminal_save_ours, debug_to_terminal_info)
1397 (debug_to_load, debug_to_post_startup_inferior)
1398 (debug_to_insert_fork_catchpoint)
1399 (debug_to_remove_fork_catchpoint)
1400 (debug_to_insert_vfork_catchpoint)
1401 (debug_to_remove_vfork_catchpoint)
1402 (debug_to_insert_exec_catchpoint)
1403 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1404 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1405 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1406 (setup_target_debug): Call init_debug_target.
1407 * target.h (TARGET_DEBUG_PRINTER): New macro.
1408 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1409 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1411 2014-07-24 Gary Benson <gbenson@redhat.com>
1413 * exceptions.h (throw_vfatal): Renamed to...
1414 (throw_vquit): New declaration.
1415 (throw_quit): Likewise.
1416 * exceptions.c (throw_vfatal): Renamed to...
1417 (throw_vquit): New function.
1418 (throw_quit): Likewise.
1419 (throw_error): Call throw_verror rather than throw_it.
1420 * utils.h (vfatal): Removed.
1422 * utils.c (vfatal): Removed.
1424 (internal_verror): Replaced call to fatal with call to throw_quit.
1425 (quit): Replaced calls to fatal with calls to throw_quit.
1427 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1429 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1432 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1434 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1435 less than zero in conditional expression.
1437 2014-07-23 Tom Tromey <tromey@redhat.com>
1439 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1440 ($INTRO_PART): Don't match whitespace.
1441 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1443 ($METHOD): Add $METHOD_TRAILER.
1445 (scan_target_h): New sub.
1446 Change main loop not to collect state.
1447 * target-delegates.c: Rebuild.
1449 2014-07-23 Gary Benson <gbenson@redhat.com>
1451 * cp-support.c (gdb_demangle): Fix build on systems without
1454 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1456 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1457 for reference entry value target data value.
1459 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1461 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1462 value_available_contents_eq.
1464 2014-07-22 Pedro Alves <palves@redhat.com>
1466 * value.c (allocate_optimized_out_value): Don't mark value as
1469 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1471 * MAINTAINERS (Write After Approval): Update my email address.
1473 2014-07-20 Doug Evans <dje@google.com>
1476 * remote.c (putpkt_binary): Add text to error message.
1478 2014-07-20 Yao Qi <yao@codesourcery.com>
1480 * eval.c: Remove "Chill" from comments.
1481 * gdbtypes.h: Likewise.
1482 * symtab.h: Likewise.
1484 2014-07-20 Yao Qi <yao@codesourcery.com>
1486 * std-operator.def: Update comments to TERNOP_SLICE.
1488 2014-07-20 Yao Qi <yao@codesourcery.com>
1490 * std-operator.def: Remove BINOP_RANGE.
1491 * breakpoint.c (watchpoint_exp_is_const): Update.
1492 * expprint.c (dump_subexp_body_standard): Likewise.
1493 * eval.c (init_array_element): Remove dead code.
1494 (evaluate_subexp_standard): Likewise.
1496 2014-07-20 Yao Qi <yao@codesourcery.com>
1498 * std-operator.def: Remove BINOP_IN.
1499 * breakpoint.c (watchpoint_exp_is_const): Update.
1500 * eval.c (evaluate_subexp_standard): Likewise.
1501 * expprint.c (dump_subexp_body_standard): Likewise.
1503 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1505 * microblaze-tdep.c (microblaze_register_names): Add
1506 the rshr and rslr register names.
1507 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1508 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1509 Use of tdesc_numbered_register. Use of
1510 microblaze_register_g_packet_guesses. Use of
1511 tdesc_use_registers. Use of set_gdbarch_register_type.
1512 (microblaze_register_g_packet_guesses): New.
1513 * microblaze-tdep.h (microblaze_reg_num): Add
1514 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1515 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1516 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1517 * features/microblaze-core.xml: New file.
1518 * features/microblaze-stack-protect.xml: New file.
1519 * features/microblaze-with-stack-protect.c: New file.
1520 * features/microblaze-with-stack-protect.xml: New file.
1521 * features/microblaze.xml: New file.
1522 * features/microblaze.c: New file.
1523 * features/Makefile (microblaze-with-stack-protect): Add
1524 microblaze-with-stack-protect microblaze and microblaze-expedite.
1525 * regformats/microblaze-with-stack-protect.dat: New file.
1526 * regformats/microblaze.dat: New file.
1527 * doc/gdb.texinfo (MicroBlaze Features): Added.
1529 2014-07-18 Tom Tromey <tromey@redhat.com>
1531 * exec.c (exec_ops): Now static.
1532 * exec.h (exec_ops): Don't declare.
1534 2014-07-18 Tom Tromey <tromey@redhat.com>
1536 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1537 to find_target_beneath.
1538 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1539 find_target_beneath.
1540 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1542 2014-07-18 Tom Tromey <tromey@redhat.com>
1545 * utils.c (quit): Use target_supports_terminal_ours.
1546 * target.h (target_supports_terminal_ours): Declare.
1547 * target.c (target_supports_delete_record): Don't check
1548 to_delete_record against NULL.
1549 (target_supports_terminal_ours): New function.
1551 2014-07-18 Tom Tromey <tromey@redhat.com>
1554 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1555 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1556 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1557 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1558 * windows-nat.c (windows_xfer_partial): Always delegate.
1559 * record-btrace.c (record_btrace_xfer_partial): Simplify
1561 (record_btrace_fetch_registers, record_btrace_store_registers)
1562 (record_btrace_prepare_to_store, record_btrace_resume)
1563 (record_btrace_wait, record_btrace_find_new_threads)
1564 (record_btrace_thread_alive): Likewise.
1565 * procfs.c (procfs_xfer_partial): Always delegate.
1566 * corelow.c (core_xfer_partial): Always delegate.
1567 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1569 2014-07-18 Tom Tromey <tromey@redhat.com>
1571 * exec.c (exec_make_note_section): Move earlier.
1573 2014-07-17 Doug Evans <dje@google.com>
1576 * maint.c (count_symtabs_and_blocks): Handle NULL
1577 current_program_space.
1578 (report_command_stats): Check global enabled flag in addition to
1579 recorded enabled flag.
1580 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1582 2014-07-16 Pedro Alves <palves@redhat.com>
1584 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1586 2014-07-16 Tom Tromey <tromey@redhat.com>
1588 * target.h (struct target_ops) <to_delete_record>: Reformat
1591 2014-07-16 Tom Tromey <tromey@redhat.com>
1593 * target-delegates.c: Rebuild.
1595 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1597 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1598 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1599 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1600 (avr_pointer_to_address): Likewise.
1601 (avr_address_class_type_flags): New function.
1602 (avr_address_class_type_flags_to_name): Likewise.
1603 (avr_address_class_name_to_type_flags): Likewise.
1604 (avr_gdbarch_init): Set address_class_type_flags,
1605 address_class_type_flags_to_name and
1606 address_class_name_to_type_flags.
1608 2014-07-15 Pedro Alves <palves@redhat.com>
1610 * linux-nat.c (kill_callback): Save errno and work with saved
1613 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1615 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1617 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1619 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1620 breakpoint support correctly.
1622 2014-07-14 Pedro Alves <palves@redhat.com>
1624 * utils.c (prompt_for_continue): Call target_terminal_ours.
1626 2014-07-14 Pedro Alves <palves@redhat.com>
1628 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1629 catch_errors. Don't re-enable stdin or notify observers where,
1631 (fetch_inferior_event_wrapper): Delete.
1633 2014-07-14 Pedro Alves <palves@redhat.com>
1636 * top.c: Include "inf-loop.h".
1637 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1639 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1641 (gdb_readline_wrapper): Store whether the target is async, and
1644 2014-07-14 Pedro Alves <palves@redhat.com>
1647 * top.c (gdb_readline_wrapper_line): Tweak comment.
1648 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1649 the input handler callback.
1651 2014-07-14 Pedro Alves <palves@redhat.com>
1654 * main.c: Include event-top.h.
1655 (handle_command_errors): New function.
1656 (catch_command_errors, catch_command_errors_const): Use it.
1658 2014-07-14 Pedro Alves <palves@redhat.com>
1660 * exceptions.c (catch_command_errors, catch_command_errors_const):
1662 * exceptions.h (catch_command_errors_ftype)
1663 (catch_command_errors_const_ftype): Moved to main.c.
1664 (catch_command_errors, catch_command_errors_const): Delete
1666 * main.c (catch_command_errors_ftype)
1667 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1668 (catch_command_errors, catch_command_errors_const)): Moved here
1669 from exceptions.c and make static.
1671 2014-07-14 Pedro Alves <palves@redhat.com>
1673 * exceptions.c (print_any_exception): Delete.
1674 (catch_exceptions_with_msg): Use exception_print instead of
1675 print_any_exception.
1676 (catch_errors): Use exception_fprintf instead of
1677 print_any_exception.
1678 (catch_command_errors, catch_command_errors_const): Use
1679 exception_print instead of print_any_exception.
1681 2014-07-14 Pedro Alves <palves@redhat.com>
1683 * infcall.c (run_inferior_call): Set 'sync_execution' while
1684 running the inferior call.
1686 2014-07-14 Pedro Alves <palves@redhat.com>
1688 * value.c (value_contents_equal): Delete function.
1689 * value.h (value_contents_equal): Delete declaration.
1691 2014-07-14 Tom Tromey <tromey@redhat.com>
1694 * gdbtypes.c (is_dynamic_type_internal): New function, from
1696 (is_dynamic_type): Rewrite.
1697 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1698 (resolve_dynamic_struct): Likewise.
1699 (resolve_dynamic_type_internal): New function, from
1700 resolve_dynamic_type.
1701 (resolve_dynamic_type): Rewrite.
1703 2014-07-14 Tom Tromey <tromey@redhat.com>
1705 * target.c (target_require_runnable): Also check record_stratum.
1708 2014-07-11 Yao Qi <yao@codesourcery.com>
1710 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1711 thumb_instruction_restores_sp return true.
1713 2014-07-11 Yao Qi <yao@codesourcery.com>
1715 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1716 (thumb_in_function_epilogue_p): Call
1717 thumb_instruction_restores_sp.
1719 2014-07-11 Yao Qi <yao@codesourcery.com>
1721 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1723 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1725 2014-07-11 Gary Benson <gbenson@redhat.com>
1727 * amd64-linux-nat.c (gdbcore.h): Remove include.
1728 (regset.h): Likewise.
1729 (nat/linux-btrace.h): Likewise.
1730 (btrace.h): Likewise.
1731 (gdb_assert.h): Likewise.
1732 (string.h): Likewise.
1733 (sys/uio.h): Likewise.
1734 (sys/debugreg.h): Likewise.
1735 (sys/syscall.h): Likewise.
1736 (sys/procfs.h): Likewise.
1737 (sys/user.h): Likewise.
1738 (asm/ptrace.h): Likewise.
1739 (i386-nat.h): Likewise.
1740 * i386-linux-nat.c (i386-nat.h): Likewise.
1741 (regset.h): Likewise.
1742 (target.h): Likewise.
1743 (linux-nat.h): Likewise.
1744 (nat/linux-btrace.h): Likewise.
1745 (btrace.h): Likewise.
1746 (gdb_assert.h): Likewise.
1747 (string.h): Likewise.
1748 (sys/uio.h): Likewise.
1749 (sys/user.h): Likewise.
1750 (sys/procfs.h): Likewise.
1751 (sys/reg.h): Likewise.
1752 (sys/debugreg.h): Likewise.
1753 (ORIG_EAX): Remove definition.
1755 2014-07-11 Gary Benson <gbenson@redhat.com>
1757 * i386-linux-nat.h: New file.
1758 * x86-linux-nat.h: Likewise.
1759 * x86-linux-nat.c: Likewise.
1760 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1761 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1762 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1763 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1764 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1765 (PTRACE_SETREGSET): Likewise.
1766 (arch_lwp_info): Now in x86-linux-nat.c.
1767 (have_ptrace_getregset): Now in x86-linux-nat.h.
1768 (x86_linux_dr_get): Now in x86-linux-nat.c.
1769 (x86_linux_dr_set): Likewise.
1770 (x86_linux_dr_get_addr): Likewise.
1771 (x86_linux_dr_get_control): Likewise.
1772 (x86_linux_dr_get_status): Likewise.
1773 (update_debug_registers_callback): Likewise.
1774 (x86_linux_dr_set_control): Likewise.
1775 (x86_linux_dr_set_addr): Likewise.
1776 (x86_linux_prepare_to_resume): Likewise.
1777 (x86_linux_new_thread): Likewise.
1778 (x86_linux_new_fork): Likewise.
1779 (x86_linux_get_thread_area): Likewise.
1780 (super_post_startup_inferior): Likewise.
1781 (x86_linux_child_post_startup_inferior): Likewise.
1782 (AMD64_LINUX_USER64_CS): Likewise.
1783 (AMD64_LINUX_X32_DS): Likewise.
1784 (x86_linux_read_description): Likewise.
1785 (x86_linux_enable_btrace): Likewise.
1786 (x86_linux_disable_btrace): Likewise.
1787 (x86_linux_teardown_btrace): Likewise.
1788 (x86_linux_read_btrace): Likewise.
1789 (x86_linux_create_target): Likewise.
1790 (x86_linux_add_target): Likewise.
1791 * i386-linux-nat.c (x86-linux-nat.h): New include.
1792 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1793 (PTRACE_SETREGSET): Likewise.
1794 (arch_lwp_info): Now in x86-linux-nat.c.
1795 (have_ptrace_getregset): Now in x86-linux-nat.h.
1796 (x86_linux_dr_get): Now in x86-linux-nat.c.
1797 (x86_linux_dr_set): Likewise.
1798 (x86_linux_dr_get_addr): Likewise.
1799 (x86_linux_dr_get_control): Likewise.
1800 (x86_linux_dr_get_status): Likewise.
1801 (update_debug_registers_callback): Likewise.
1802 (x86_linux_dr_set_control): Likewise.
1803 (x86_linux_dr_set_addr): Likewise.
1804 (x86_linux_prepare_to_resume): Likewise.
1805 (x86_linux_new_thread): Likewise.
1806 (x86_linux_new_fork): Likewise.
1807 (x86_linux_get_thread_area): Likewise.
1808 (super_post_startup_inferior): Likewise.
1809 (x86_linux_child_post_startup_inferior): Likewise.
1810 (AMD64_LINUX_USER64_CS): Likewise.
1811 (AMD64_LINUX_X32_DS): Likewise.
1812 (x86_linux_read_description): Likewise.
1813 (x86_linux_enable_btrace): Likewise.
1814 (x86_linux_disable_btrace): Likewise.
1815 (x86_linux_teardown_btrace): Likewise.
1816 (x86_linux_read_btrace): Likewise.
1817 (x86_linux_create_target): Likewise.
1818 (x86_linux_add_target): Likewise.
1820 2014-07-11 Gary Benson <gbenson@redhat.com>
1822 * amd64-linux-nat.c: Comment and whitespace changes.
1823 * i386-linux-nat.c: Comment and whitespace changes.
1825 2014-07-11 Gary Benson <gbenson@redhat.com>
1827 * amd64-linux-nat.c (x86_linux_create_target): New function.
1828 (x86_linux_add_target): Likewise.
1829 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1830 * i386-linux-nat.c (x86_linux_create_target): New function.
1831 (x86_linux_add_target): Likewise.
1832 (_initialize_i386_linux_nat): Delegate to the above new functions.
1834 2014-07-11 Gary Benson <gbenson@redhat.com>
1836 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1837 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1838 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1839 (ps_get_thread_area): Delegate to the above.
1841 2014-07-11 Gary Benson <gbenson@redhat.com>
1843 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1844 x86_linux_read_description. All uses updated. amd64-specific
1845 code conditionalized. Conditionalized i386-specific code added.
1846 Redundant cast removed.
1847 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1848 x86_linux_read_description. All uses updated. i386-specific
1849 code conditionalized. Conditionalized amd64-specific code added.
1850 One sizeof replaced with the actual type it is describing.
1852 2014-07-11 Gary Benson <gbenson@redhat.com>
1854 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1855 x86_linux_dr_get. All uses updated.
1856 (amd64_linux_dr_set): Renamed to
1857 x86_linux_dr_set. All uses updated.
1858 (amd64_linux_dr_get_addr): Renamed to
1859 x86_linux_dr_get_addr. All uses updated.
1860 (amd64_linux_dr_get_control): Renamed to
1861 x86_linux_dr_get_control. All uses updated.
1862 (amd64_linux_dr_get_status): Renamed to
1863 x86_linux_dr_get_status. All uses updated.
1864 (amd64_linux_dr_set_control): Renamed to
1865 x86_linux_dr_set_control. All uses updated.
1866 (amd64_linux_dr_set_addr): Renamed to
1867 x86_linux_dr_set_addr. All uses updated.
1868 (amd64_linux_prepare_to_resume): Renamed to
1869 x86_linux_prepare_to_resume. All uses updated.
1870 (amd64_linux_new_thread): Renamed to
1871 x86_linux_new_thread. All uses updated.
1872 (amd64_linux_new_fork): Renamed to
1873 x86_linux_new_fork. All uses updated.
1874 (amd64_linux_child_post_startup_inferior): Renamed to
1875 x86_linux_child_post_startup_inferior. All uses updated.
1876 (amd64_linux_enable_btrace): Renamed to
1877 x86_linux_enable_btrace. All uses updated.
1878 (amd64_linux_disable_btrace): Renamed to
1879 x86_linux_disable_btrace. All uses updated.
1880 (amd64_linux_teardown_btrace): Renamed to
1881 x86_linux_teardown_btrace. All uses updated.
1882 (amd64_linux_read_btrace): Renamed to
1883 x86_linux_read_btrace. All uses updated.
1884 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1885 x86_linux_dr_get. All uses updated.
1886 (i386_linux_dr_set): Renamed to
1887 x86_linux_dr_set. All uses updated.
1888 (i386_linux_dr_get_addr): Renamed to
1889 x86_linux_dr_get_addr. All uses updated.
1890 (i386_linux_dr_get_control): Renamed to
1891 x86_linux_dr_get_control. All uses updated.
1892 (i386_linux_dr_get_status): Renamed to
1893 x86_linux_dr_get_status. All uses updated.
1894 (i386_linux_dr_set_control): Renamed to
1895 x86_linux_dr_set_control. All uses updated.
1896 (i386_linux_dr_set_addr): Renamed to
1897 x86_linux_dr_set_addr. All uses updated.
1898 (i386_linux_prepare_to_resume): Renamed to
1899 x86_linux_prepare_to_resume. All uses updated.
1900 (i386_linux_new_thread): Renamed to
1901 x86_linux_new_thread. All uses updated.
1902 (i386_linux_new_fork): Renamed to
1903 x86_linux_new_fork. All uses updated.
1904 (i386_linux_child_post_startup_inferior): Renamed to
1905 x86_linux_child_post_startup_inferior. All uses updated.
1906 (i386_linux_enable_btrace): Renamed to
1907 x86_linux_enable_btrace. All uses updated.
1908 (i386_linux_disable_btrace): Renamed to
1909 x86_linux_disable_btrace. All uses updated.
1910 (i386_linux_teardown_btrace): Renamed to
1911 x86_linux_teardown_btrace. All uses updated.
1912 (i386_linux_read_btrace): Renamed to
1913 x86_linux_read_btrace. All uses updated.
1915 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1917 * remote.c (extended_remote_post_attach): New function.
1918 (init_extended_remote_ops): Install it as to_post_attach method.
1920 2014-07-09 Pedro Alves <palves@redhat.com>
1922 * infcmd.c (attach_command_post_wait): Don't call
1923 target_terminal_inferior here.
1924 (attach_command): Call it here instead.
1926 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1928 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1930 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1931 from varobj.c, with additional checks.
1932 (c_varobj_ops): Fill in is_path_expr_parent field.
1933 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1934 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1936 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1938 (varobj_default_is_path_expr_parent): New function.
1939 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1940 (varobj_default_is_path_expr_parent): Declare new function.
1942 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1944 * infcmd.c (finish_backward): Turn internal error into normal error.
1946 2014-07-07 Pedro Alves <palves@redhat.com>
1949 * remote.c (async_handle_remote_sigint)
1950 (async_handle_remote_sigint_twice): Call
1951 gdb_call_async_signal_handler instead of
1952 mark_async_signal_handler.
1954 2014-07-07 Tom Tromey <tromey@redhat.com>
1956 * target-delegates.c: Rebuild.
1957 * target.c (target_info_record): Remove.
1958 * record.c (info_record_command): Unconditionally call
1960 * target.h (struct target_ops) <to_info_record>: Use
1961 TARGET_DEFAULT_IGNORE.
1962 (target_info_record): Remove.
1964 2014-07-07 Tom Tromey <tromey@redhat.com>
1966 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1967 TARGET_DEFAULT_NORETURN.
1968 * target.c (generic_tls_error): New function.
1969 (target_translate_tls_address): Don't search target stack.
1970 * target-delegates.c: Rebuild.
1971 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1973 * linux-thread-db.c (thread_db_get_thread_local_address):
1974 Unconditionally call beneath target.
1976 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1978 * cli/cli-logging.c (pop_output_files): Assign targerr to
1981 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1983 * MAINTAINERS (Write After Approval): Update my email address.
1985 2014-07-02 Gary Benson <gbenson@redhat.com>
1987 * proc-service.c (ps_xfer_memory): Update comment.
1988 (ps_pstop): Remove unused function.
1989 (ps_pcontinue): Likewise.
1990 (ps_lstop): Likewise.
1991 (ps_lcontinue): Likewise.
1992 (ps_lgetxregsize): Likewise.
1993 (ps_lgetxregs): Likewise.
1994 (ps_lsetxregs): Likewise.
1995 (ps_plog): Likewise.
1996 (ps_ptread): Likewise.
1997 (ps_ptwrite): Likewise.
1999 2014-07-01 Mark Wielaard <mjw@redhat.com>
2001 * dwarf2read.c (add_array_cv_type): New function.
2002 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2003 (read_tag_volatile_type): Likewise.
2005 2014-07-01 Tom Tromey <tromey@redhat.com>
2007 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2008 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2009 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2010 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2011 * command.h (cmd_cfunc_ftype): Move earlier.
2012 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2013 (add_com, add_info): Use cmd_cfunc_ftype.
2015 2014-06-30 Tom Tromey <tromey@redhat.com>
2017 * symtab.c (operator_chars): Make parameters and return type
2019 (file_matches): Make "files" const.
2020 (struct search_symbols_data) <files>: Now const.
2021 (search_symbols): Make "regexp" and "files" parameters const.
2023 (symtab_symbol_info): Remove cast.
2024 (rbreak_command): Update.
2025 * symtab.h (search_symbols): Update.
2027 2014-06-27 Yao Qi <yao@codesourcery.com>
2029 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2030 Change parameter type to 'struct thread_info *'. Caller
2032 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2034 * dummy-frame.c (struct dummy_frame_id): New.
2035 (dummy_frame_id_eq): New function.
2036 (struct dummy_frame) <id>: Change its type to 'struct
2038 (dummy_frame_push): Add parameter ptid and save it in
2040 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2042 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2044 (lookup_dummy_frame): Change parameter type to 'struct
2045 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2046 instead of frame_id_eq.
2047 (dummy_frame_pop): Add parameter ptid. Callers updated.
2048 Update comments. Compose dummy_frame_id and pass it to
2050 (dummy_frame_discard): Add parameter ptid.
2051 (dummy_frame_sniffer): Compose dummy_frame_id and call
2052 dummy_frame_id_eq instead of frame_id_eq.
2053 (fprint_dummy_frames): Print ptid.
2054 * dummy-frame.h: Remove comments.
2055 (dummy_frame_push): Add ptid in declaration.
2056 (dummy_frame_pop, dummy_frame_discard): Likewise.
2058 2014-06-26 Tom Tromey <tromey@redhat.com>
2060 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2061 * command.h (error_no_arg): Update.
2063 2014-06-26 Tom Tromey <tromey@redhat.com>
2065 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2066 (do_show_command): Make "arg" const.
2067 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2069 2014-06-26 Tom Tromey <tromey@redhat.com>
2071 * record-full.c (record_full_get_bookmark): Make "args" const.
2072 (record_full_goto_bookmark): Make "raw_bookmark" const.
2073 * record.c (record_goto): New function.
2074 (cmd_record_goto): Use it. Now static.
2075 * record.h (record_goto): Declare.
2076 (cmd_record_goto): Remove declaration.
2077 * target-delegates.c: Rebuild.
2078 * target.h (struct target_ops) <to_get_bookmark,
2079 to_goto_bookmark>: Make parameter const.
2081 2014-06-26 Tom Tromey <tromey@redhat.com>
2083 * defs.h (generic_load): Update.
2084 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2085 * monitor.c (monitor_load): Make "args" const.
2086 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2087 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2089 (mips_load): Make "file" const.
2090 * remote-sim.c (gdbsim_load): Make "args" const.
2091 * remote.c (remote_load): Make "name" const.
2092 * symfile.c (generic_load): Make "args" const.
2093 * target-delegates.c: Rebuild.
2094 * target.c (target_load): Make "arg" const.
2095 (debug_to_load): Make "args" const.
2096 * target.h (struct target_ops) <to_load>: Make parameter const.
2097 (target_load): Update.
2099 2014-06-26 Tom Tromey <tromey@redhat.com>
2102 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2103 (dwarf2_physname, read_partial_die)
2104 (guess_partial_die_structure_name, fixup_partial_die)
2105 (guess_full_die_structure_name, anonymous_struct_prefix)
2106 (dwarf2_name): Use per-BFD obstack.
2108 2014-06-26 Yao Qi <yao@codesourcery.com>
2110 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2111 dummyframe and this_id into inner block below.
2113 2014-06-26 Yao Qi <yao@codesourcery.com>
2115 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2116 with "signal_pass[0]" in the initialization of signal_pass.
2118 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2120 * record-btrace.c (record_btrace_generating_corefile)
2121 (record_btrace_prepare_to_generate_core)
2122 (record_btrace_done_generating_core): New.
2123 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2124 (record_btrace_store_registers, record_btrace_prepare_to_store):
2125 Forward request when generating a core file.
2126 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2127 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2128 to_done_generating_core.
2130 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2132 * target.h (target_ops) <to_prepare_to_generate_core>
2133 <to_done_generating_core>: New.
2134 (target_prepare_to_generate_core, target_done_generating_core): New.
2135 * target.c (target_prepare_to_generate_core)
2136 (target_done_generating_core): New.
2137 * target-delegates.c: Regenerate.
2138 * gcore.c: (write_gcore_file): Rename to ...
2139 (write_gcore_file_1): ...this.
2140 (write_gcore_file): Call target_prepare_to_generate_core
2141 and target_done_generating_core.
2143 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2145 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2146 * gcore.c (write_gcore_file): Free memory returned from
2147 make_corefile_notes.
2148 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2149 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2151 2014-06-24 Yao Qi <yao@codesourcery.com>
2153 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2154 (arm_linux_init_abi): Set skip_trampoline_code with
2155 gdbarch_skip_trampoline_code instead of
2156 find_solib_trampoline_target.
2158 2014-06-24 Yao Qi <yao@codesourcery.com>
2160 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2161 arm_skip_bx_reg returns non-zero.
2163 2014-06-24 Yao Qi <yao@codesourcery.com>
2165 * arm-tdep.c (arm_skip_bx_reg): New function.
2166 (arm_skip_stub): Call arm_skip_bx_reg.
2168 2014-06-23 Don Breazeal <donb@codesourcery.com>
2170 * MAINTAINERS: Add myself as write-after-approval maintainer.
2172 2014-06-23 Pedro Alves <palves@redhat.com>
2174 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2175 DR_CONTROL before setting DR0..DR3.
2176 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2177 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2178 bits of DR_CONTROL related to the debug register slot being
2179 disabled. If all slots are vacant, clear local slowdown as well,
2180 and assert DR_CONTROL is 0.
2182 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2184 * python/lib/gdb/command/xmethods.py
2185 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2186 current progspace only if the string "progspace" matches LOCUS_RE.
2188 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2190 Fix --with-system-readline with readline-6.3 patch 5.
2191 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2192 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2195 2014-06-20 Tom Tromey <tromey@redhat.com>
2197 * dwarf2read.c (dw2_get_real_path): Use correct type in
2199 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2201 2014-06-20 Gary Benson <gbenson@redhat.com>
2203 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2204 * common/glibc_thread_db.h: Likewise.
2205 * common/i386-cpuid.h: Likewise.
2206 * common/i386-gcc-cpuid.h: Likewise.
2207 * common/linux-btrace.h: Likewise.
2208 * common/linux-osdata.h: Likewise.
2209 * common/linux-procfs.h: Likewise.
2210 * common/linux-ptrace.h: Likewise.
2211 * common/mips-linux-watch.h: Likewise.
2212 * common/linux-btrace.c: Moved to nat.
2213 * common/linux-osdata.c: Likewise.
2214 * common/linux-procfs.c: Likewise.
2215 * common/linux-ptrace.c: Likewise.
2216 * common/mips-linux-watch.c: Likewise.
2217 * nat/gdb_thread_db.h: Moved from common.
2218 * nat/glibc_thread_db.h: Likewise.
2219 * nat/i386-cpuid.h: Likewise.
2220 * nat/i386-gcc-cpuid.h: Likewise.
2221 * nat/linux-btrace.c: Likewise.
2222 * nat/linux-btrace.h: Likewise.
2223 * nat/linux-osdata.c: Likewise.
2224 * nat/linux-osdata.h: Likewise.
2225 * nat/linux-procfs.c: Likewise.
2226 * nat/linux-procfs.h: Likewise.
2227 * nat/linux-ptrace.c: Likewise.
2228 * nat/linux-ptrace.h: Likewise.
2229 * nat/mips-linux-watch.c: Likewise.
2230 * nat/mips-linux-watch.h: Likewise.
2231 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2232 (object file files): Reordered.
2233 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2234 of glibc_thread_db.h.
2236 2014-06-20 Gary Benson <gbenson@redhat.com>
2238 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2239 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2240 (i386_dr_low): Likewise.
2241 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2242 (i386_dr_low_set_addr): Likewise.
2243 (i386_dr_low_get_addr): Likewise.
2244 (i386_dr_low_can_set_control): Likewise.
2245 (i386_dr_low_set_control): Likewise.
2246 (i386_dr_low_get_control): Likewise.
2247 (i386_dr_low_get_status): Likewise.
2248 (i386_get_debug_register_length): Likewise.
2249 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2250 (i386_dr_low): Likewise.
2251 * nat/i386-dregs.c (i386-low.h): Remove include.
2252 (i386-nat.h): Likewise.
2253 (nat/i386-dregs.h): New include.
2254 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2255 (i386_dr_low_set_addr): Likewise.
2256 (i386_dr_low_get_addr): Likewise.
2257 (i386_dr_low_can_set_control): Likewise.
2258 (i386_dr_low_set_control): Likewise.
2259 (i386_dr_low_get_control): Likewise.
2260 (i386_dr_low_get_status): Likewise.
2261 (i386_get_debug_register_length): Likewise.
2262 (debug_hw_points): Likewise.
2264 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2266 * Makefile.in (SFILES): Add d-exp.y.
2267 (YYFILES): Add d-exp.c.
2268 (YYOBJ): Add d-exp.o.
2269 (local-maintainer-clean): Delete d-exp.c.
2270 * d-exp.y: New file.
2271 * d-lang.h (d_parse): New declaration.
2272 (d_error): New declaration.
2273 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2274 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2275 PREC_ORDER operators.
2276 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2278 2014-06-19 Yao Qi <yao@codesourcery.com>
2280 * gdbthread.h (any_running): Remove the declaration.
2281 * thread.c (any_running): Remove.
2283 2014-06-19 Yao Qi <yao@codesourcery.com>
2285 * gdbthread.h (struct thread_info) <state>: Change its type to
2286 'enum thread_state'. Update comments.
2288 2014-06-19 Pedro Alves <palves@redhat.com>
2290 * gdbthread.h (ALL_THREADS): Delete.
2291 (ALL_NON_EXITED_THREADS): New macro.
2292 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2293 instead of ALL_THREADS.
2294 * infrun.c (find_thread_needs_step_over)
2295 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2296 instead of ALL_THREADS.
2297 * record-btrace.c (record_btrace_open)
2298 (record_btrace_stop_recording, record_btrace_close)
2299 (record_btrace_is_replaying, record_btrace_resume)
2300 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2301 * remote.c (append_pending_thread_resumptions): Likewise.
2302 * thread.c (thread_apply_all_command): Likewise.
2304 2014-06-19 Gary Benson <gbenson@redhat.com>
2306 * i386-nat.c (i386_stopped_by_watchpoint):
2307 Use i386_dr_stopped_by_watchpoint.
2308 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2309 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2311 2014-06-19 Gary Benson <gbenson@redhat.com>
2313 * nat/i386-dregs.c: New file.
2314 * Makefile.in (i386-dregs.o): New rule.
2315 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2316 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2317 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2318 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2319 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2320 * config/i386/go32.mh (NATDEPFILES): Likewise.
2321 * config/i386/linux.mh (NATDEPFILES): Likewise.
2322 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2323 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2324 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2325 * i386-nat.h (debug_hw_points): New declaration.
2326 * i386-nat.c (breakpoint.h): Remove include.
2327 (command.h): Likewise.
2328 (target.h): Likewise.
2329 (gdb_assert.h): Likewise.
2330 (debug_hw_points): Made nonstatic.
2331 (debug_printf): Now in i386-dregs.c.
2332 (TARGET_HAS_DR_LEN_8): Likewise.
2333 (DR_CONTROL_SHIFT): Likewise.
2334 (DR_CONTROL_SIZE): Likewise.
2335 (DR_RW_EXECUTE): Likewise.
2336 (DR_RW_WRITE): Likewise.
2337 (DR_RW_READ): Likewise.
2338 (DR_RW_IORW): Likewise.
2339 (DR_LEN_1): Likewise.
2340 (DR_LEN_2): Likewise.
2341 (DR_LEN_4): Likewise.
2342 (DR_LEN_8): Likewise.
2343 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2344 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2345 (DR_ENABLE_SIZE): Likewise.
2346 (DR_LOCAL_SLOWDOWN): Likewise.
2347 (DR_GLOBAL_SLOWDOWN): Likewise.
2348 (DR_CONTROL_RESERVED): Likewise.
2349 (I386_DR_CONTROL_MASK): Likewise.
2350 (I386_DR_VACANT): Likewise.
2351 (I386_DR_LOCAL_ENABLE): Likewise.
2352 (I386_DR_GLOBAL_ENABLE): Likewise.
2353 (I386_DR_DISABLE): Likewise.
2354 (I386_DR_SET_RW_LEN): Likewise.
2355 (I386_DR_GET_RW_LEN): Likewise.
2356 (I386_DR_WATCH_HIT): Likewise.
2357 (i386_wp_op_t): Likewise.
2358 (i386_show_dr): Likewise.
2359 (i386_length_and_rw_bits): Likewise.
2360 (i386_insert_aligned_watchpoint): Likewise.
2361 (i386_remove_aligned_watchpoint): Likewise.
2362 (i386_handle_nonaligned_watchpoint): Likewise.
2363 (i386_update_inferior_debug_regs): Likewise.
2364 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2365 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2366 (i386_region_ok_for_watchpoint):
2367 Use i386_dr_region_ok_for_watchpoint.
2368 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2370 2014-06-19 Gary Benson <gbenson@redhat.com>
2372 * i386-nat.c (i386_insert_hw_breakpoint): Use
2373 i386_insert_watchpoint.
2374 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2376 2014-06-19 Gary Benson <gbenson@redhat.com>
2378 * i386-nat.c (i386_dr_show): Renamed to
2379 i386_show_dr and made static. All uses updated.
2380 (i386_dr_length_and_rw_bits): Renamed to
2381 i386_length_and_rw_bits and made static.
2383 (i386_dr_insert_aligned_watchpoint): Renamed to
2384 i386_insert_aligned_watchpoint and made static.
2386 (i386_dr_remove_aligned_watchpoint): Renamed to
2387 i386_remove_aligned_watchpoint and made static.
2389 (i386_dr_update_inferior_debug_regs): Renamed to
2390 i386_update_inferior_debug_regs and made static.
2392 * nat/i386-dregs.h (i386_dr_show): Removed.
2393 (i386_dr_length_and_rw_bits): Likewise.
2394 (i386_dr_insert_aligned_watchpoint): Likewise.
2395 (i386_dr_remove_aligned_watchpoint): Likewise.
2396 (i386_dr_update_inferior_debug_regs): Likewise.
2398 2014-06-19 Gary Benson <gbenson@redhat.com>
2400 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2401 * configure: Regenerate.
2402 * config.in: Likewise.
2403 * main.c (signal.h): New include.
2404 (setup_alternate_signal_stack): New function.
2405 (captured_main): Call the above.
2406 * cp-support.c (signal.h): New include.
2407 (catch_demangler_crashes): New flag.
2408 (SIGJMP_BUF): New define.
2409 (SIGSETJMP): Likewise.
2410 (SIGLONGJMP): Likewise.
2411 (gdb_demangle_jmp_buf): New static global.
2412 (gdb_demangle_attempt_core_dump): Likewise.
2413 (gdb_demangle_signal_handler): New function.
2414 (gdb_demangle): If catch_demangler_crashes is set, install the
2415 above signal handler before calling bfd_demangle, and restore
2416 the original signal handler afterwards. Display the offending
2417 symbol and call demangler_warning the first time a segmentation
2419 (_initialize_cp_support): New maint set/show command.
2421 2014-06-19 Gary Benson <gbenson@redhat.com>
2423 * utils.h (resource_limit_kind): New enum.
2424 (can_dump_core): New declaration.
2425 (warn_cant_dump_core): Likewise.
2426 (dump_core): Likewise.
2427 * utils.c (dump_core): Made nonstatic. Added new
2428 parameter "limit_kind".
2429 (can_dump_core): Made nonstatic. Moved printing code to...
2430 (warn_cant_dump_core): New function.
2431 (can_dump_core_warn): Likewise.
2432 (internal_vproblem): Replace calls to can_dump_core with
2433 calls to can_dump_core_warn. Supply new argument to each.
2435 2014-06-19 Gary Benson <gbenson@redhat.com>
2437 * utils.h (demangler_vwarning): New declaration.
2438 (demangler_warning): Likewise.
2439 * utils.c (struct internal_problem)
2440 <user_settable_should_quit>: New field.
2441 <user_settable_should_dump_core>: Likewise
2442 (internal_error_problem): Add values for above new fields.
2443 (internal_warning_problem): Likewise.
2444 (demangler_warning_problem): New static global.
2445 (demangler_vwarning): New function.
2446 (demangler_warning): Likewise.
2447 (add_internal_problem_command): Selectively add commands.
2448 (_initialize_utils): New internal problem command.
2449 * maint.c (maintenance_demangler_warning): New function.
2450 (_initialize_maint_cmds): New command.
2452 2014-06-18 Tom Tromey <tromey@redhat.com>
2454 * f-valprint.c (info_common_command_for_block): Update.
2455 * symtab.h (struct general_symbol_info) <common_block>: Now
2458 2014-06-18 Tom Tromey <tromey@redhat.com>
2460 * symtab.h (struct symtab) <blockvector>: Now const.
2461 * ada-lang.c (ada_add_global_exceptions): Update.
2462 * buildsym.c (augment_type_symtab): Update.
2463 * dwarf2read.c (dw2_lookup_symbol): Update.
2464 * jit.c (finalize_symtab): Update.
2465 * jv-lang.c (add_class_symtab_symbol): Update.
2466 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2468 * objfiles.c (objfile_relocate1): Update.
2469 * psymtab.c (lookup_symbol_aux_psymtabs)
2470 (maintenance_check_psymtabs): Update.
2471 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2473 * spu-tdep.c (spu_catch_start): Update.
2474 * symmisc.c (dump_symtab_1): Update.
2475 * symtab.c (lookup_global_symbol_from_objfile)
2476 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2477 (basic_lookup_transparent_type_quick)
2478 (basic_lookup_transparent_type, find_pc_sect_symtab)
2479 (find_pc_sect_line, search_symbols): Update.
2480 * block.c (find_block_in_blockvector): Make "bl" const.
2481 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2483 (blockvector_contains_pc): Make "bv" const.
2484 (block_for_pc_sect): Update.
2485 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2486 (blockvector_contains_pc): Update.
2487 * breakpoint.c (resolve_sal_pc): Update.
2488 * inline-frame.c (block_starting_point_at): Update.
2490 2014-06-18 Tom Tromey <tromey@redhat.com>
2492 * completer.c (complete_line): Make "line_buffer" const.
2493 * completer.h (complete_line): Update.
2495 2014-06-18 Tom Tromey <tromey@redhat.com>
2497 * symtab.c (add_macro_name): Remove unneeded cast.
2499 2014-06-18 Tom Tromey <tromey@redhat.com>
2501 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2502 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2504 2014-06-18 Tom Tromey <tromey@redhat.com>
2506 * probe.c (info_probes_for_ops): Make "arg" const.
2507 * probe.h (info_probes_for_ops): Update.
2509 2014-06-18 Tom Tromey <tromey@redhat.com>
2511 * varobj.c (varobj_create): Update.
2512 * valops.c (value_of_this): Update.
2513 * tracepoint.c (add_local_symbols, scope_info): Update.
2514 * symtab.h (struct general_symbol_info) <block>: Now const.
2515 * symtab.c (skip_prologue_sal)
2516 (default_make_symbol_completion_list_break_on)
2517 (skip_prologue_using_sal): Update.
2518 * stack.h (iterate_over_block_locals)
2519 (iterate_over_block_local_vars): Update.
2520 * stack.c (print_frame_args): Update.
2521 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2523 (get_selected_block): Make return type const.
2524 * python/py-frame.c (frapy_block): Update.
2525 * python/py-block.c (gdbpy_block_for_pc): Update.
2526 * p-exp.y (%union) <bval>: Now const.
2527 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2528 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2529 * m2-exp.y (%union) <bval>: Now const.
2530 * linespec.c (get_current_search_block): Make return type const.
2531 (create_sals_line_offset, find_label_symbols): Update.
2532 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2534 (block_starting_point_at): Make "block" const.
2535 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2536 (check_exception_resume): Update.
2537 * guile/scm-frame.c (gdbscm_frame_block): Update.
2538 * guile/scm-block.c (gdbscm_lookup_block): Update.
2539 * frame.h (get_frame_block): Update.
2540 (get_selected_block): Make return type const.
2541 * frame.c (frame_id_inner): Update.
2542 * f-valprint.c (info_common_command_for_block)
2543 (info_common_command): Update.
2544 * dwarf2loc.c (dwarf2_find_location_expression)
2545 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2546 (locexpr_describe_location_piece): Update.
2547 * c-exp.y (%union) <bval>: Now const.
2548 * breakpoint.c (resolve_sal_pc): Update.
2549 * blockframe.c (get_frame_block):Make return type const.
2550 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2551 (block_innermost_frame): Update.
2552 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2553 (block_for_pc, block_for_pc_sect): Update.
2554 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2556 (block_for_pc_sect, block_for_pc): Make return type const.
2557 * ax-gdb.c (gen_expr): Update.
2558 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2559 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2560 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2561 (ada_read_var_value): Update.
2562 * ada-exp.y (struct name_info) <block>: Now const.
2564 (block_lookup): Constify.
2566 2014-06-18 Gary Benson <gbenson@redhat.com>
2568 * nat/i386-dregs.h: New file.
2569 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2570 * i386-nat.h (i386-dregs.h): New include.
2571 (DR_FIRSTADDR): Now in i386-dregs.h.
2572 (DR_LASTADDR): Likewise.
2573 (DR_NADDR): Likewise.
2574 (DR_STATUS): Likewise.
2575 (DR_CONTROL): Likewise.
2576 (i386_debug_reg_state): Likewise.
2577 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2579 2014-06-18 Don Breazeal <donb@codesourcery.com>
2581 * breakpoint.c (set_longjmp_breakpoint): Call
2582 momentary_breakpoint_from_master with additional argument.
2583 (set_longjmp_breakpoint_for_call_dummy): Call
2584 momentary_breakpoint_from_master with additional argument.
2585 (set_std_terminate_breakpoint): Call
2586 momentary_breakpoint_from_master with additional argument.
2587 (momentary_breakpoint_from_master): Add argument to function
2588 definition and use it to initialize structure member flag.
2589 (clone_momentary_breakpoint): Call
2590 momentary_breakpoint_from_master with additional argument.
2591 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2592 member flags set in momentary_breakpoint_from_master.
2594 2014-06-18 Gary Benson <gbenson@redhat.com>
2596 * i386-nat.c (i386_show_dr): Renamed to
2597 i386_dr_show and made nonstatic. All uses updated.
2598 (i386_length_and_rw_bits): Renamed to
2599 i386_dr_length_and_rw_bits and made nonstatic.
2601 (i386_insert_aligned_watchpoint): Renamed to
2602 i386_dr_insert_aligned_watchpoint and made nonstatic.
2604 (i386_remove_aligned_watchpoint): Renamed to
2605 i386_dr_remove_aligned_watchpoint and made nonstatic.
2607 (i386_update_inferior_debug_regs): Renamed to
2608 i386_dr_update_inferior_debug_regs and made nonstatic.
2611 2014-06-18 Gary Benson <gbenson@redhat.com>
2613 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2614 (i386_dr_low_can_set_control): Likewise.
2615 (i386_dr_low_set_addr): Likewise.
2616 (i386_dr_low_set_control): Likewise.
2617 (i386_dr_low_get_addr): Likewise.
2618 (i386_dr_low_get_status): Likewise.
2619 (i386_dr_low_get_control): Likewise.
2620 (i386_insert_aligned_watchpoint): Use new macros.
2621 (i386_update_inferior_debug_regs): Likewise.
2622 (i386_stopped_data_address): Likewise.
2624 2014-06-18 Gary Benson <gbenson@redhat.com>
2626 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2627 New parameter. All uses updated.
2629 2014-06-18 Gary Benson <gbenson@redhat.com>
2631 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2634 2014-06-18 Gary Benson <gbenson@redhat.com>
2636 * i386-nat.c (debug_printf): New macro.
2637 (i386_get_debug_register_length): Likewise.
2638 (TARGET_HAS_DR_LEN_8): Use above macro.
2639 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2640 and printf_unfiltered. Use phex to format values.
2642 2014-06-18 Gary Benson <gbenson@redhat.com>
2644 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2647 2014-06-18 Gary Benson <gbenson@redhat.com>
2649 * i386-nat.c: Comment changes.
2651 2014-06-18 Gary Benson <gbenson@redhat.com>
2653 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2655 2014-06-18 Gary Benson <gbenson@redhat.com>
2657 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2658 (i386_insert_aligned_watchpoint): Likewise.
2659 (i386_remove_aligned_watchpoint): Likewise.
2660 (i386_handle_nonaligned_watchpoint): Likewise.
2662 2014-06-18 Gary Benson <gbenson@redhat.com>
2664 * i386-nat.c: Whitespace changes.
2666 2014-06-17 Samuel Bronson <naesten@gmail.com>
2668 * MAINTAINERS: Update Roland McGrath's email address.
2669 Thanks to Sergio Durigan Junior for pointing out that he left
2670 Red Hat a while ago, and giving me a current address.
2672 2014-06-17 Tom Tromey <tromey@redhat.com>
2674 * utils.h (savestring): Remove declaration.
2676 2014-06-17 Tom Tromey <tromey@redhat.com>
2678 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2680 2014-06-16 Keith Seitz <keiths@redhat.com>
2683 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2684 to update the varobj if inferior_ptid is null_ptid.
2686 2014-06-16 Tom Tromey <tromey@redhat.com>
2688 * target.h (struct target_ops) <to_info_proc>: Make parameter
2690 (target_info_proc): Update.
2691 * target.c (target_info_proc): Make "args" const.
2692 * procfs.c (procfs_info_proc): Update.
2693 * linux-tdep.c (linux_info_proc): Update.
2694 (linux_core_info_proc_mappings): Make "args" const.
2695 (linux_core_info_proc): Update.
2696 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2697 * gdbarch.c: Rebuild.
2698 * gdbarch.h: Rebuild.
2699 * corelow.c (core_info_proc): Update.
2701 2014-06-16 Tom Tromey <tromey@redhat.com>
2703 * target.h (struct target_ops) <to_disconnect>: Make parameter
2705 (target_disconnect): Update.
2706 * target.c (target_disconnect): Make "args" const.
2707 * target-delegates.c: Rebuild.
2708 * remote.c (remote_disconnect): Update.
2709 * record.h (record_disconnect): Update.
2710 * record.c (record_disconnect): Update.
2711 * inf-child.c (inf_child_disconnect): Update.
2713 2014-06-16 Tom Tromey <tromey@redhat.com>
2715 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2716 * target.c (debug_to_rcmd, default_rcmd): Update.
2717 * target-delegates.c: Rebuild.
2718 * remote.c (remote_rcmd): Update.
2719 * monitor.c (monitor_rcmd): Update.
2721 2014-06-16 Pedro Alves <palves@redhat.com>
2723 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2724 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2725 have OBJF_SHARED set.
2726 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2727 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2728 instead of OBJF_USERLOADED.
2729 * objfiles.h (OBJF_SHARED): Update comment.
2730 (userloaded_objfile_contains_address_p): Rename to ...
2731 (shared_objfile_contains_address_p): ... this, and update
2733 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2735 (remove_symbol_file_command): Skip objfiles that don't have
2738 2014-06-16 Tom Tromey <tromey@redhat.com>
2740 * minsyms.h (prim_record_minimal_symbol)
2741 (prim_record_minimal_symbol_and_info): Update comments.
2743 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2745 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2746 or --without-guile, according to how GDB was built.
2748 2014-06-13 Tom Tromey <tromey@redhat.com>
2750 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2752 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2754 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2756 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2757 help_list.Pass all_commands, not -1, to help_list.
2758 * cli/cli-dump.c (dump_command, append_command)
2759 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2760 (binary_dump_command, binary_append_command): Pass all_commands,
2761 not -1, to help_list.
2762 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2764 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2766 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2768 * top.c (set_history): Pass all_commands, not -1, to help_list.
2769 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2770 all_commands, not -1, to help_list.
2771 * symfile.c (overlay_command): Pass all_commands, not -1, to
2773 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2775 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2777 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2779 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2780 not -1, to help_list.
2781 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2782 not -1, to help_list.
2783 * maint.c (maintenance_command, maintenance_info_command)
2784 (maintenance_print_command, maintenance_set_cmd): Pass
2785 all_commands, not -1, to help_list.
2786 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2788 * language.c (set_check): Pass all_commands, not -1, to help_list.
2789 * infcmd.c (unset_command): Pass all_commands, not -1, to
2791 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2793 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2795 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2797 * breakpoint.c (save_command): Pass all_commands, not -1, to
2799 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2800 all_commands, not -1, to help_list.
2802 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2804 * regcache.c (struct register_to_invalidate): New structure.
2805 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2807 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2809 2014-06-12 Yao Qi <yao@codesourcery.com>
2811 * varobj.c (varobj_get_num_children): Call
2812 varobj_is_dynamic_p.
2813 (varobj_list_children): Likewise.
2814 (varobj_update): Likewise. Update comments.
2816 2014-06-12 Yao Qi <yao@codesourcery.com>
2818 * varobj.c (varobj_pretty_printed_p): Rename to ...
2819 (varobj_is_dynamic_p): ... this. New function.
2820 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2821 (varobj_is_dynamic_p): Declare.
2822 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2823 (mi_print_value_p, varobj_update_one): Likewise.
2825 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2826 Yao Qi <yao@codesourcery.com>
2828 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2829 (varobj_get_iterator): Wrap up code for pretty-printer by
2830 "#if HAVE_PYTHON" and "#endif".
2831 (update_dynamic_varobj_children): Likewise.
2833 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2834 Yao Qi <yao@codesourcery.com>
2836 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2837 gdb_python_initialized is false. Move some code from varobj.c.
2838 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2839 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2840 (struct varobj_item): Moved to varobj-iter.h".
2841 (varobj_clear_saved_item): New function.
2842 (update_dynamic_varobj_children): Move python-related code to
2844 (free_variable): Call varobj_clear_saved_item and
2847 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2848 Yao Qi <yao@codesourcery.com>
2850 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2851 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2852 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2853 (py-varobj.o): New rule.
2854 * python/py-varobj.c: New file.
2855 * python/python-internal.h (py_varobj_get_iterator): Declare.
2856 * varobj-iter.h: New file.
2857 * varobj.c: Include "varobj-iter.h"
2858 (struct varobj) <child_iter>: Change its type from "PyObject *"
2859 to "struct varobj_iter *".
2860 <saved_item>: Likewise.
2861 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2862 [HAVE_PYTHON] (varobj_get_iterator): New function.
2863 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2864 python-specific code to python/py-varobj.c.
2865 (install_visualizer): Call varobj_iter_delete instead of
2867 * varobj.h (varobj_ensure_python_env): Declare.
2869 2014-06-12 Yao Qi <yao@codesourcery.com>
2871 * varobj.c (struct varobj_item): New structure.
2872 (create_child_with_value): Update declaration.
2873 (varobj_add_child): Replace arguments 'name' and 'value' with
2874 'item'. All callers updated.
2875 (install_dynamic_child): Likewise.
2876 (update_dynamic_varobj_children): Likewise.
2877 (varobj_add_child): Likewise.
2878 (create_child_with_value): Likewise.
2880 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2882 * NEWS: Create a new section for the next release branch.
2883 Rename the section of the current branch, now that it has
2886 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2888 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2889 * version.in: Bump version to 7.8.50.DATE-cvs.
2891 2014-06-11 Pedro Alves <palves@redhat.com>
2894 * ser-mingw.c (net_windows_socket_check_pending): New function.
2895 (net_windows_select_thread): Ignore spurious wakeups. Use
2896 net_windows_socket_check_pending.
2897 (net_windows_wait_handle): Check for pending events with
2898 ioctlsocket, through net_windows_socket_check_pending, instead of
2899 checking the socket's event.
2901 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2903 * python/python-internal.h (gdb_PyObject_GetAttrString)
2904 (gdb_PyObject_HasAttrString): New inline function definitions.
2905 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2906 char * of the second argument to PyObject_GetAttrString.
2908 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2910 * serial.c (serial_write): Fix index of character to be printed
2911 in call to serial_logchar when serial debug traces are enabled.
2913 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2915 * gdbtypes (resolve_dynamic_range): Add function description.
2917 2014-06-09 Pedro Alves <palves@redhat.com>
2919 * linux-nat.c (linux_child_follow_fork): Initialize status with
2920 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2921 inner block. Only pass the signal to PTRACE_DETACH if in pass
2924 2014-06-09 Gary Benson <gbenson@redhat.com>
2926 * common/signals.c (gdb_signal_from_host): Reorder to separate
2927 the always-available ANSI-standard signals from the signals that
2929 (do_gdb_signal_to_host): Likewise.
2930 * proc-events.c (signal_table): Likewise.
2932 2014-06-08 Hui Zhu <hui@codesourcery.com>
2934 * common/linux-ptrace.c (linux_disable_event_reporting): New
2936 * common/linux-ptrace.h (linux_disable_event_reporting): New
2938 * linux-nat.c (linux_child_follow_fork): Do a single step before
2941 2014-06-07 Keith Seitz <keiths@redhat.com>
2945 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2946 from symbol_matches_domain in symtab.c. All local callers
2947 of symbol_matches_domain updated.
2948 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2949 search STRUCT_DOMAIN.
2950 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2951 independently. standard_lookup will do that automatically.
2952 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2953 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2954 (cp_lookup_symbol_in_namespace): Likewise.
2955 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2956 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2957 may return a STRUCT_DOMAIN match.
2958 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2959 * cp-support.c: Include language.h.
2960 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2962 * psymtab.c (match_partial_symbol): Compare the requested
2963 domain with the symbol's domain directly.
2964 (lookup_partial_symbol): Likewise.
2965 * symtab.c (lookup_symbol_in_language): Explain when/why
2966 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2967 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2968 appropriate languages.
2969 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2970 and moved to ada-lang.c
2971 (lookup_block_symbol): Explain that this function only returns
2972 symbol matching the requested DOMAIN.
2973 Compare the requested domain with the symbol's domain directly.
2974 (iterate_over_symbols): Compare the requested domain with the
2975 symbol's domain directly.
2976 * symtab.h (symbol_matches_domain): Remove.
2978 2014-06-06 Doug Evans <xdje42@gmail.com>
2980 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2981 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2982 (gdbscm_guile_version_is_at_least): Declare.
2983 (gdbscm_scm_string_to_int): Declare.
2984 * guile/guile.c (gdbscm_guile_major_version): New global.
2985 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2986 (guile_datadir): New static global.
2987 (gdbscm_guile_data_directory): New function.
2988 (initialize_scheme_side): Update.
2989 (misc_guile_functions): Add guile-data-directory.
2990 (initialize_gdb_module): Fetch guile version number.
2991 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2992 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2993 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2994 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2996 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2997 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2998 * guile/scm-value.c (gdbscm_value_to_string): Only call
2999 scm_port_conversion_strategy if Guile version >= 2.0.6.
3001 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3003 * main.c (print_gdb_help): Add -q and --silent.
3005 2014-06-06 Gary Benson <gbenson@redhat.com>
3007 * common/signals.c: Remove preprocessor conditionals for
3008 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3009 SIGSEGV and SIGTERM.
3010 * proc-events.c: Likewise.
3012 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3014 * symfile.c (symfile_free_objfile): Remove restriction to
3016 * symfile-mem.c (symbol_file_add_from_memory): Call
3017 add_target_sections_of_objfile.
3019 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3021 * guile/scm-value.c (gdbscm_history_append_x): Use
3022 'vlscm_get_value_smob_arg_unsafe' instead of
3023 'vlscm_scm_to_value'.
3025 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3028 * utils.c (printchar): Don't escape at all if quoter is NUL.
3029 Update function documentation to clarify effect of parameter
3031 * remote.c (escape_buffer): Pass '\\' as the quoter to
3032 fputstrn_unfiltered.
3033 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3034 generate the output.
3035 (mi_solib_unloaded): Same.
3037 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3039 * development.sh: Delete.
3040 * Makefile.in (config.status): Adjust dependency on development.sh.
3041 * configure.ac: Adjust development.sh source call.
3042 * configure: Regenerate.
3044 2014-06-04 Doug Evans <xdje42@gmail.com>
3046 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3047 is_scheme_bkpt, spec.
3048 (bpscm_make_breakpoint_smob): Initialize new members.
3049 (gdbscm_create_breakpoint_x): Split into two ...
3050 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3051 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3052 (scheme_function breakpoint_functions): Update.
3053 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3054 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3055 register-breakpoint!.
3057 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3060 * mem-break.c (z_type_supported): Return zero if
3061 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3063 2014-06-04 Tom Tromey <tromey@redhat.com>
3065 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3066 value_from_contents_and_address_unresolved.
3067 (ada_template_to_fixed_record_type_1): Likewise.
3068 (ada_which_variant_applies): Likewise.
3069 * value.h (value_from_contents_and_address_unresolved): Declare.
3070 * value.c (value_from_contents_and_address_unresolved): New
3072 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3073 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3074 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3076 2014-06-04 Tom Tromey <tromey@redhat.com>
3078 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3080 2014-06-04 Tom Tromey <tromey@redhat.com>
3082 * procfs.c (procfs_attach): Make "args" const.
3083 * windows-nat.c (windows_attach): Make "args" const.
3084 * nto-procfs.c (procfs_attach): Make "args" const.
3085 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3086 * go32-nat.c (go32_attach): Make "args" const.
3087 * gnu-nat.c (gnu_attach): Make "args" const.
3088 * darwin-nat.c (darwin_attach): Make "args" const.
3089 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3090 * linux-nat.c (linux_nat_attach): Make "args" const.
3091 * remote.c (extended_remote_attach_1, extended_remote_attach):
3093 * target.h (struct target_ops) <to_attach>: Make "args" const.
3094 (find_default_attach): Likewise.
3095 * utils.c (parse_pid_to_attach): Make "args" const.
3096 * utils.h (parse_pid_to_attach): Update.
3098 2014-06-04 Tom Tromey <tromey@redhat.com>
3100 * target-delegates.c: Rebuild.
3101 * target.c (default_thread_address_space): New function.
3102 (target_thread_address_space): Simplify.
3103 * target.h (struct target_ops) <to_thread_address_space>: Add
3104 TARGET_DEFAULT_FUNC.
3106 2014-06-04 Doug Evans <xdje42@gmail.com>
3108 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3110 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3112 * record-btrace.c: Include event-loop.h and inf-loop.h.
3113 (record_btrace_resume_exec_dir)
3114 (record_btrace_async_inferior_event_handler)
3115 (record_btrace_handle_async_inferior_event): New.
3116 (record_btrace_open): Create async event handler.
3117 (record_btrace_close): Delete async event handler.
3118 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3119 Mark async event handler.
3120 (record_btrace_execution_direction): New.
3121 (init_record_btrace_ops): Initialize to_execution_direction.
3123 2014-06-03 Doug Evans <xdje42@gmail.com>
3125 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3126 (gdbscm_make_parameter): Ditto.
3128 2014-06-03 Doug Evans <dje@google.com>
3130 * exec.c (exec_close_1): Call clear_section_table instead of
3131 resize_section_table.
3132 (clear_section_table): New function.
3133 (resize_section_table): Make static. Rename arg num_added to
3135 * exec.h (clear_section_table): Declare.
3136 (resize_section_table): Delete.
3137 * progspace.c (release_program_space): Call clear_section_table
3138 instead of resize_section_table.
3140 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3142 * NEWS (Python Scripting): Add entry about the new xmethods
3145 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3147 * python/py-xmethods.c: New file.
3148 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3149 (objfpy_dealloc): XDECREF on the new xmethods field.
3150 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3152 (objfpy_get_xmethods): New function.
3153 (objfile_getset): New entry 'xmethods'.
3154 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3155 (pspy_dealloc): XDECREF on the new xmethods field.
3156 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3158 (pspy_get_xmethods): New function.
3159 (pspace_getset): New entry 'xmethods'.
3160 * python/python-internal.h: Add declarations for new functions.
3161 * python/python.c (_initialize_python): Invoke
3162 gdbpy_initialize_xmethods.
3163 * python/lib/gdb/__init__.py (xmethods): New
3165 * python/lib/gdb/xmethod.py: New file.
3166 * python/lib/gdb/command/xmethods.py: New file.
3168 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3170 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3171 best match method returned by find_overload_match is an xmethod.
3172 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3173 the best matching operator returned by find_overload_match is an
3175 * valops.c: #include "extension.h".
3176 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3177 Return void. The list of matching source methods is returned in
3178 "fn_list" and a vector of matching debug method workers is
3179 returned in "xm_worker_vec". Update all callers.
3180 (value_find_oload_method_list): Likewise.
3181 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3182 non-NULL, then the index of the best matching method in this
3183 vector is returned. Update all callers.
3184 (find_overload_match): Include xmethods while performing overload
3187 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3189 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3190 * extension-priv.h (struct extension_language_ops): Add the
3192 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3193 get_matching_xmethod_workers, get_xmethod_argtypes,
3194 invoke_xmethod, free_xmethod_worker,
3195 free_xmethod_worker_vec): New functions.
3196 * extension.h: #include "common/vec.h".
3197 New function declarations.
3198 (struct xmethod_worker): New struct.
3199 (VEC (xmethod_worker_ptr)): New vector type.
3200 (xmethod_worker_ptr): New typedef.
3201 (xmethod_worker_vec): Likewise.
3202 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3204 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3205 (struct builtin_type): New field "xmethod".
3206 * valarith.c (value_ptradd): Assert that the value argument is not
3208 * valops.c (value_must_coerce_to_target): Return 0 for
3209 lval_xcallable values.
3210 * value.c (struct value): New field XM_WORKER in the field
3212 (value_address, value_raw_address): Return 0 for lval_xcallable
3214 (set_value_address): Assert that the value is not an
3216 (value_free): Free the associated xmethod worker when freeing
3217 lval_xcallable values.
3218 (set_value_component_location): Assert that the WHOLE value is not
3220 (value_of_xmethod, call_xmethod): New functions.
3221 * value.h: Declare "struct xmethod_worker".
3222 Declare new functions value_of_xmethod, call_xmethod.
3224 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3225 Pedro Alves <palves@redhat.com>
3227 PR breakpoints/17000
3228 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3229 New function, extracted from software_breakpoint_inserted_here_p.
3230 (software_breakpoint_inserted_here_p): Replace factored out code
3231 by call to find_non_raw_software_breakpoint_inserted_here.
3232 (bp_target_info_copy_insertion_state): New function.
3233 (bkpt_insert_location): Handle the case of a single-step
3234 breakpoint already inserted at the same address.
3235 (bkpt_remove_location): Handle the case of a single-step
3236 breakpoint still inserted at the same address.
3237 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3238 breakpoint already inserted at the same address.
3239 (deprecated_remove_raw_breakpoint): Handle the case of a
3240 non-raw breakpoint still inserted at the same address.
3241 (find_single_step_breakpoint): New function, extracted from
3242 single_step_breakpoint_inserted_here_p.
3243 (find_single_step_breakpoint): New function,
3244 factored out from single_step_breakpoint_inserted_here_p.
3245 (single_step_breakpoint_inserted_here_p): Reimplement.
3247 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3249 Pushed by Joel Brobecker <brobecker@adacore.com>
3250 * source.c (show_substitute_path_command): Fix display of matching
3253 2014-06-03 Gary Benson <gbenson@redhat.com>
3255 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3257 2014-06-02 Doug Evans <xdje42@gmail.com>
3259 Add parameter support for Guile.
3260 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3261 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3262 (scm-param.o): New rule.
3263 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3264 (gdbscm_misc_error): Declare.
3265 (gdbscm_canonicalize_command_name): Declare.
3266 (gdbscm_scm_to_host_string): Declare.
3267 (gdbscm_scm_from_host_string): Declare.
3268 (gdbscm_initialize_parameters): Declare.
3269 * guile/guile.c (initialize_gdb_module): Call
3270 gdbscm_initialize_parameters.
3271 * guile/lib/gdb.scm: Export parameter symbols.
3272 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3273 cmdscm_canonicalize_name and made public. All callers updated.
3274 * guile/scm-exception.c (gdbscm_misc_error): New function.
3275 * guile/scm-param.c: New file.
3276 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3277 (gdbscm_scm_to_host_string): New function.
3278 (gdbscm_scm_from_host_string): New function.
3279 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3281 2014-06-02 Doug Evans <xdje42@gmail.com>
3283 Add command support for Guile.
3284 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3285 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3286 (scm-cmd.o): New rule.
3287 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3288 (gdbscm_user_error_p): Declare.
3289 (gdbscm_parse_command_name): Declare.
3290 (gdbscm_valid_command_class_p): Declare.
3291 (gdbscm_initialize_commands): Declare.
3292 * guile/guile.c (initialize_gdb_module): Call
3293 gdbscm_initialize_commands.
3294 * guile/lib/gdb.scm: Export command symbols.
3295 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3296 (throw-user-error): New function.
3297 * guile/scm-cmd.c: New file.
3298 * guile/scm-exception.c (user_error_symbol): New static global.
3299 (gdbscm_user_error_p): New function.
3300 (gdbscm_initialize_exceptions): Set user_error_symbol.
3301 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3303 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3305 * top.c (command_loop): Handle comments here...
3306 (command_line_input): ... not here.
3308 2014-06-02 Doug Evans <xdje42@gmail.com>
3310 Add progspace support for Guile.
3311 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3312 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3313 (scm-progspace.o): New rule.
3314 * guile/guile-internal.h (pspace_smob): New typedef.
3315 (psscm_pspace_smob_pretty_printers): Declare.
3316 (psscm_pspace_smob_from_pspace): Declare.
3317 (psscm_scm_from_pspace): Declare.
3318 * guile/guile.c (initialize_gdb_module): Call
3319 gdbscm_initialize_pspaces.
3320 * guile/lib/gdb.scm: Export progspace symbols.
3321 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3323 (append-pretty-printer!): Ditto.
3324 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3326 * guile/scm-progspace.c: New file.
3328 2014-06-03 Alan Modra <amodra@gmail.com>
3330 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3331 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3333 2014-06-02 Doug Evans <dje@google.com>
3335 Add support for skeletonless type units.
3336 * dwarf2read.c (struct dwarf2_per_objfile): New member
3337 n_allocated_type_units.
3338 (struct dwarf2_per_objfile) <tu_stats>: New member
3339 nr_all_type_units_reallocs.
3340 (create_signatured_type_table_from_index): Initialize
3341 n_allocated_type_units
3342 (create_all_type_units): Ditto.
3343 (add_type_unit): Move up in file. New arg slot.
3344 All callers updated. Increase space for all_type_units more
3346 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3347 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3348 (lookup_dwp_signatured_type): Ditto.
3349 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3350 All callers updated.
3351 (build_type_psymtabs_1): Leave type_unit_groups as
3352 NULL if no TUs present.
3353 (print_tu_stats): New function.
3354 (process_skeletonless_type_unit): New function.
3355 (process_dwo_file_for_skeletonless_type_units): New
3357 (process_skeletonless_type_units): New function.
3358 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3359 Call print tu_stats if debugging enabled.
3361 2014-06-02 Pedro Alves <palves@redhat.com>
3363 * breakpoint.c (build_target_command_list): Don't build a command
3364 list if we have any duplicate location that isn't a dprintf.
3366 2014-06-02 Pedro Alves <palves@redhat.com>
3368 * breakpoint.c (dprintf_breakpoint_hit): New function.
3369 (initialize_breakpoint_ops): Install it as dprintf's
3370 breakpoint_hit method.
3372 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3374 * source.c (substitute_path_rule_matches): Simplify using
3375 filename_ncmp instead of FILENAME_CMP.
3377 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3379 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3381 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3383 * configure.ac: When Guile is available, check for the
3384 availability of 'scm_new_smob'.
3385 * configure, config.h.in: Regenerate.
3386 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3389 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3391 * frame.c (struct frame_info): Add stop_string field.
3392 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3393 (get_prev_frame_always): Old content moved into
3394 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3395 TRY_CATCH, handle MEMORY_ERROR exceptions.
3396 (frame_stop_reason_string): New function definition.
3397 * frame.h (unwind_stop_reason_to_string): Extend comment to
3398 mention frame_stop_reason_string.
3399 (frame_stop_reason_string): New function declaration.
3400 * stack.c (frame_info): Switch to frame_stop_reason_string.
3401 (backtrace_command_1): Switch to frame_stop_reason_string.
3402 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3403 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3404 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3406 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3408 * frame.c (frame_stop_reason_string): Rename to ...
3409 (unwind_stop_reason_to_string): this.
3410 * frame.h (frame_stop_reason_string): Rename to ...
3411 (unwind_stop_reason_to_string): this.
3412 * stack.c (frame_info): Update call to frame_stop_reason_string.
3413 (backtrace_command_1): Likewise.
3414 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3415 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3417 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3419 * frame.c (remove_prev_frame): New function.
3420 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3423 2014-05-29 Pedro Alves <palves@redhat.com>
3425 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3426 and make it const. When a single-step decays to a continue,
3427 clear 'step', not 'hw_step'. Pass whether the caller wanted
3428 to step to user_visible_resume_ptid, not what we ask the
3431 2014-05-29 Pedro Alves <palves@redhat.com>
3433 * infrun.c (process_event_stop_test, handle_step_into_function)
3434 (handle_step_into_function_backward): Adjust.
3435 Don't set the even thread's stop_step and call stop_waiting before
3436 calling end_stepping_range. Instead do that ...
3437 (end_stepping_range): ... here. Take an ecs pointer parameter.
3439 2014-05-29 Pedro Alves <palves@redhat.com>
3441 * infrun.c (stop_stepping): Rename to ...
3442 (stop_waiting): ... this.
3443 (proceed): Update comment.
3444 (process_event_stop_test, handle_inferior_event)
3445 (handle_signal_stop, handle_step_into_function)
3446 (handle_step_into_function_backward): Update.
3448 2014-05-29 Pedro Alves <palves@redhat.com>
3450 * infcall.c (run_inferior_call): Don't check whether the current
3451 thread is running after the proceed call.
3453 2014-05-29 Pedro Alves <palves@redhat.com>
3454 Tom Tromey <tromey@redhat.com>
3456 * NEWS: Mention "maint set target-async", "set mi-async", and that
3457 background execution commands are now always available.
3458 * target.h (target_async_permitted): Update comment.
3459 * target.c (target_async_permitted, target_async_permitted_1):
3461 (set_target_async_command): Rename to ...
3462 (maint_set_target_async_command): ... this.
3463 (show_target_async_command): Rename to ...
3464 (maint_show_target_async_command): ... this.
3465 (_initialize_target): Adjust.
3466 * infcmd.c (prepare_execution_command): Make extern.
3467 * inferior.h (prepare_execution_command): Declare.
3468 * infrun.c (set_observer_mode): Leave target async alone.
3469 * mi/mi-interp.c (mi_interpreter_init): Install
3470 mi_on_sync_execution_done as sync_execution_done observer.
3471 (mi_on_sync_execution_done): New function.
3472 (mi_execute_command_input_handler): Don't print the prompt if we
3473 just started a synchronous command with an async target.
3474 (mi_on_resume): Check sync_execution before printing prompt.
3475 * mi/mi-main.h (mi_async_p): Declare.
3476 * mi/mi-main.c: Include gdbcmd.h.
3477 (mi_async_p): New function.
3478 (mi_async, mi_async_1): New globals.
3479 (set_mi_async_command, show_mi_async_command, mi_async): New
3481 (exec_continue): Call prepare_execution_command.
3482 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3483 (mi_execute_async_cli_command): Use mi_async_p.
3484 (_initialize_mi_main): Install "set mi-async". Make
3485 "target-async" a deprecated alias.
3487 2014-05-29 Pedro Alves <palves@redhat.com>
3489 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3490 (_initialize_cli_interp): Adjust.
3491 * event-loop.c: Include "observer.h".
3492 (start_event_loop): Notify 'command_error' observers instead of
3493 calling display_gdb_prompt. Remove FIXME comment.
3494 * event-top.c (display_gdb_prompt): Remove call into the
3496 * inf-loop.c: Include "observer.h".
3497 (inferior_event_handler): Notify 'command_error' observers instead
3498 of calling display_gdb_prompt.
3499 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3500 observers instead of calling display_gdb_prompt.
3501 * interps.c (interp_set): Don't call display_gdb_prompt.
3502 (current_interp_display_prompt_p): Delete.
3503 * interps.h (interp_prompt_p): Delete declaration.
3504 (interp_prompt_p_ftype): Delete.
3505 (struct interp_procs) <prompt_proc_p>: Delete field.
3506 (current_interp_display_prompt_p): Delete declaration.
3507 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3508 (_initialize_mi_interp): Adjust.
3509 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3510 'command_error' observers.
3511 (tui_on_sync_execution_done, tui_on_command_error): New
3513 (tui_display_prompt_p): Delete.
3514 (_initialize_tui_interp): Adjust.
3516 2014-05-29 Pedro Alves <palves@redhat.com>
3519 * cli/cli-interp.c: Include infrun.h and observer.h.
3520 (cli_uiout, cli_interp): New globals.
3521 (cli_on_signal_received, cli_on_end_stepping_range)
3522 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3524 (cli_interpreter_init): Install them as 'end_stepping_range',
3525 'signal_received' 'signal_exited', 'exited' and 'no_history'
3527 (_initialize_cli_interp): Remove cli_interp local.
3528 * infrun.c (handle_inferior_event): Call the several stop reason
3529 observers instead of printing the stop reason directly.
3530 (end_stepping_range): New function.
3531 (print_end_stepping_range_reason, print_signal_exited_reason)
3532 (print_exited_reason, print_signal_received_reason)
3533 (print_no_history_reason): Make static, and add an uiout
3534 parameter. Print to that instead of to CURRENT_UIOUT.
3535 * infrun.h (print_end_stepping_range_reason)
3536 (print_signal_exited_reason, print_exited_reason)
3537 (print_signal_received_reason print_no_history_reason): New
3539 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3541 <cli_uiout>: New field.
3542 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3543 uiout for CLI output. Install 'signal_received',
3544 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3546 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3547 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3548 (mi_on_no_history): New functions.
3549 (ui_out_free_cleanup): Delete function.
3550 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3551 instead use the one already stored in the MI interpreter data.
3552 (mi_ui_out): Adjust.
3553 * tui/tui-interp.c: Include infrun.h and observer.h.
3554 (tui_interp): New global.
3555 (tui_on_signal_received, tui_on_end_stepping_range)
3556 (tui_on_signal_exited, tui_on_exited)
3557 (tui_on_no_history): New functions.
3558 (tui_init): Install them as 'end_stepping_range',
3559 'signal_received' 'signal_exited', 'exited' and 'no_history'
3561 (_initialize_tui_interp): Delete tui_interp local.
3563 2014-05-29 Pedro Alves <palves@redhat.com>
3566 * linux-nat.c (linux_nat_resume_callback): Rename the second
3567 parameter to 'except'. Skip LP if it points to EXCEPT.
3568 (linux_nat_resume): Don't mark the event lwp as not stopped
3569 before resuming sibling lwps. Instead ask
3570 linux_nat_resume_callback to skip the event lwp. Mark it as not
3571 stopped after actually resuming it.
3572 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3574 (wait_lwp): Mark the lwp as stopped here.
3575 (stop_wait_callback): Mark the lwp as not stopped right after
3576 resuming it. Don't mark lwps as stopped here.
3577 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3578 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3580 2014-05-29 Pedro Alves <palves@redhat.com>
3583 * infrun.c (resume): Determine how much to resume depending on
3584 whether the caller wanted a step, not whether we can hardware step
3585 the target. Mark all threads that we intend to run as running,
3586 unless we're calling an inferior function.
3587 (normal_stop): If the thread is running an infcall, don't finish
3589 * target.c (target_resume): Don't mark threads as running here.
3591 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3593 * serial.c (_initialize_serial): Remove support for
3594 the "set remotebaud" and "show remotebaud" commands.
3595 * NEWS: Add entry documenting the removal of that command.
3597 2014-05-28 Yao Qi <yao@codesourcery.com>
3599 * charset.c: Fix typo in comments.
3601 2014-05-27 Gary Benson <gbenson@redhat.com>
3603 * utils.c (internal_vproblem): Prompt for a bug report.
3605 2014-05-26 Andy Wingo <wingo@igalia.com>
3607 * guile/scm-arch.c (arscm_mark_arch_smob):
3608 * guile/scm-block.c (bkscm_mark_block_smob)
3609 (bkscm_mark_block_syms_progress_smob):
3610 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3611 * guile/scm-exception.c (exscm_mark_exception_smob):
3612 * guile/scm-frame.c (frscm_mark_frame_smob):
3613 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3614 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3615 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3616 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3617 (ppscm_mark_pretty_printer_worker_smob):
3618 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3619 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3620 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3621 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3623 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3626 2014-05-26 Andy Wingo <wingo@igalia.com>
3627 Doug Evans <xdje42@gmail.com>
3629 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3630 empty_base_class. All uses updated.
3631 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3632 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3634 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3635 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3636 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3637 (gdbscm_gsmob_has_property_p, add_property_name)
3638 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3639 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3640 (gdb-object-has-property?, gdb-object-properties): Remove.
3641 (gdb-object-kind): Renamed from gsmob-kind.
3643 2014-05-26 Andy Wingo <wingo@igalia.com>
3645 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3646 * configure: Regenerate.
3648 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3650 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3652 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3654 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3655 (replay_memory_access_read_only, replay_memory_access_read_write)
3656 (replay_memory_access_types, replay_memory_access)
3657 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3658 (cmd_set_record_btrace, cmd_show_record_btrace)
3659 (cmd_show_replay_memory_access): New.
3660 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3661 (record_btrace_remove_breakpoint): Replace
3662 record_btrace_allow_memory_access with replay_memory_access.
3663 (_initialize_record_btrace): Add commands.
3664 * NEWS: Announce it.
3666 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3668 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3670 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3672 * MAINTAINERS (Write After Approval): Move self back from
3675 2014-05-22 Pedro Alves <palves@redhat.com>
3677 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3678 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3679 (disable_randomization, enum exec_direction_kind)
3680 (execution_direction, stop_registers, start_remote)
3681 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3682 (wait_for_inferior, normal_stop, get_last_target_status)
3683 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3684 (insert_step_resume_breakpoint_at_sal)
3685 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3686 (set_step_info, print_stop_event, signal_stop_state)
3687 (signal_print_state, signal_pass_state, signal_stop_update)
3688 (signal_print_update, signal_pass_update)
3689 (update_signals_program_target, clear_exit_convenience_vars)
3690 (displaced_step_dump_bytes, update_observer_mode)
3691 (signal_catch_update, gdb_signal_from_command): Move
3693 * infrun.h: ... to this new file.
3694 * amd64-tdep.c: Include infrun.h.
3695 * annotate.c: Include infrun.h.
3696 * arch-utils.c: Include infrun.h.
3697 * arm-linux-tdep.c: Include infrun.h.
3698 * arm-tdep.c: Include infrun.h.
3699 * break-catch-sig.c: Include infrun.h.
3700 * breakpoint.c: Include infrun.h.
3701 * common/agent.c: Include infrun.h instead of inferior.h.
3702 * corelow.c: Include infrun.h.
3703 * event-top.c: Include infrun.h.
3704 * go32-nat.c: Include infrun.h.
3705 * i386-tdep.c: Include infrun.h.
3706 * inf-loop.c: Include infrun.h.
3707 * infcall.c: Include infrun.h.
3708 * infcmd.c: Include infrun.h.
3709 * infrun.c: Include infrun.h.
3710 * linux-fork.c: Include infrun.h.
3711 * linux-nat.c: Include infrun.h.
3712 * linux-thread-db.c: Include infrun.h.
3713 * monitor.c: Include infrun.h.
3714 * nto-tdep.c: Include infrun.h.
3715 * procfs.c: Include infrun.h.
3716 * record-btrace.c: Include infrun.h.
3717 * record-full.c: Include infrun.h.
3718 * remote-m32r-sdi.c: Include infrun.h.
3719 * remote-mips.c: Include infrun.h.
3720 * remote-notif.c: Include infrun.h.
3721 * remote-sim.c: Include infrun.h.
3722 * remote.c: Include infrun.h.
3723 * reverse.c: Include infrun.h.
3724 * rs6000-tdep.c: Include infrun.h.
3725 * s390-linux-tdep.c: Include infrun.h.
3726 * solib-irix.c: Include infrun.h.
3727 * solib-osf.c: Include infrun.h.
3728 * solib-svr4.c: Include infrun.h.
3729 * target.c: Include infrun.h.
3730 * top.c: Include infrun.h.
3731 * windows-nat.c: Include infrun.h.
3732 * mi/mi-interp.c: Include infrun.h.
3733 * mi/mi-main.c: Include infrun.h.
3734 * python/py-threadevent.c: Include infrun.h.
3736 2014-05-22 Pedro Alves <palves@redhat.com>
3738 * infrun.c (handle_inferior_event): Store the exit code for
3739 --return-child-result here, instead of ...
3740 (print_exited_reason): ... here.
3742 2014-05-21 Pedro Alves <palves@redhat.com>
3745 * gdbthread.h (struct thread_control_state): New field
3747 * infrun.c (follow_fork): Copy the new thread control field to the
3749 (clear_proceed_status_thread): Clear the new thread control field.
3750 (proceed): Set the new thread control field.
3751 * interps.h (command_interp): Declare.
3752 * interps.c (command_interpreter): New global.
3753 (command_interp): New function.
3754 (interp_exec): Set `command_interpreter' while here.
3755 * cli-out.c (cli_uiout_dtor): New function.
3756 (cli_ui_out_impl): Install it.
3757 * mi/mi-interp.c: Include cli-out.h.
3758 (mi_cmd_interpreter_exec): Add comment.
3759 (restore_current_uiout_cleanup): New function.
3760 (ui_out_free_cleanup): New function.
3761 (mi_on_normal_stop): If finishing an execution command started by
3762 a CLI command, or any kind of breakpoint-like event triggered,
3763 print the stop event to the output (CLI) stream.
3764 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3766 2014-05-21 Pedro Alves <palves@redhat.com>
3768 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3769 current source line having changed.
3770 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3771 * infrun.c (normal_stop): Adjust call to
3772 set_current_sal_from_frame.
3773 * source.c (clear_lines_listed_range): New function.
3774 (set_current_source_symtab_and_line, identify_source_line): Clear
3775 the lines listed range.
3776 (line_info): Handle the first "info line" after the current source
3777 line having changed.
3778 * stack.c (print_stack_frame): Remove center handling.
3779 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3782 2014-05-21 Pedro Alves <palves@redhat.com>
3784 * inf-child.c (inf_child_mourn_inferior): New function.
3785 * inf-child.h (inf_child_mourn_inferior): New declaration.
3786 * darwin-nat.c (darwin_mourn_inferior): Use
3787 inf_child_mourn_inferior.
3788 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3789 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3790 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3791 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3792 * windows-nat.c (windows_mourn_inferior): Likewise.
3794 2014-05-21 Doug Evans <xdje42@gmail.com>
3796 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3798 2014-05-21 Doug Evans <xdje42@gmail.com>
3800 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3801 (gdbscm_out_of_range_error): Ditto.
3802 (gdbscm_memory_error): Ditto.
3803 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3804 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3805 (gdbscm_out_of_range_error): Update.
3806 (gdbscm_memory_error): Update.
3807 (gdbscm_scm_to_target_string_unsafe): Delete.
3809 2014-05-21 Pedro Alves <palves@redhat.com>
3811 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3813 (inf_child_open_target): New function.
3814 (inf_child_open): Use inf_child_open_target to push the target
3815 instead of erroring out.
3816 (inf_child_disconnect, inf_child_close)
3817 (inf_child_maybe_unpush_target): New functions.
3818 (inf_child_target): Install inf_child_disconnect and
3819 inf_child_close. Store a pointer to the returned object.
3820 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3822 * target.c (auto_connect_native_target): New global.
3823 (show_default_run_target): New function.
3824 (find_default_run_target): Return NULL if automatically connecting
3825 to the native target is disabled.
3826 (_initialize_target): Install set/show auto-connect-native-target.
3827 * NEWS: Mention "set auto-connect-native-target", and "target
3829 * linux-nat.c (super_close): New global.
3830 (linux_nat_close): Call super_close.
3831 (linux_nat_add_target): Store a pointer to the base class's
3833 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3834 inf_child_maybe_unpush.
3835 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3837 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3838 the inferior. Use inf_child_maybe_unpush_target.
3839 (inf_ttrace_attach): Don't push the target if it is already
3841 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3842 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3843 after mourning the inferior. Use inf_child_maybe_unpush_target.
3844 (darwin_attach_pid): Don't push the target if it is already
3846 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3847 mourning the inferior. Use inf_child_maybe_unpush_target.
3848 (gnu_detach): Use inf_child_maybe_unpush_target.
3849 * go32-nat.c (go32_create_inferior): Don't push the target if it
3851 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3852 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3853 (procfs_open): Rename to ...
3854 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3855 comments. Can target_preopen before changing node. Call
3856 inf_child_open_target to push the target explicitly.
3857 (procfs_attach): Don't push the target if it is already pushed.
3858 (procfs_detach): Use inf_child_maybe_unpush_target.
3859 (procfs_create_inferior): Don't push the target if it is already
3861 (nto_native_ops): New global.
3862 (procfs_open): Reimplement.
3863 (procfs_native_open): New function.
3864 (init_procfs_targets): Install procfs_native_open as to_open of
3865 "target native". Store a pointer to the "native" target in
3867 * procfs.c (procfs_attach): Don't push the target if it is already
3869 (procfs_detach): Use inf_child_maybe_unpush_target.
3870 (procfs_mourn_inferior): Only unpush the target after mourning the
3871 inferior. Use inf_child_maybe_unpush_target.
3872 (procfs_init_inferior): Don't push the target if it is already
3874 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3875 if it is already pushed.
3877 2014-05-21 Pedro Alves <palves@redhat.com>
3879 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3880 and "procfs" targets are now called "native" instead.
3882 2014-05-21 Pedro Alves <palves@redhat.com>
3884 * go32-nat.c (go32_open): Delete.
3885 (go32_target): Don't override the to_open method.
3887 2014-05-21 Pedro Alves <palves@redhat.com>
3889 * nto-procfs.c (procfs_can_run): New function.
3890 (nto_procfs_ops): New global.
3891 (init_procfs_targets): New, based on procfs_target. Install
3892 "target native" in addition to "target procfs".
3893 (_initialize_procfs): Call init_procfs_targets instead of adding
3896 2014-05-21 Pedro Alves <palves@redhat.com>
3898 * windows-nat.c (windows_target): Don't override to_shortname,
3899 to_longname or to_doc.
3901 2014-05-21 Pedro Alves <palves@redhat.com>
3903 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3906 2014-05-21 Pedro Alves <palves@redhat.com>
3908 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3909 to_shortname, to_longname or to_doc.
3911 2014-05-21 Pedro Alves <palves@redhat.com>
3913 * go32-nat.c (go32_target): Don't override to_shortname,
3914 to_longname or to_doc.
3916 2014-05-21 Pedro Alves <palves@redhat.com>
3918 * inf-child.c (inf_child_open): Remove mention of "child".
3919 (inf_child_target): Rename target to "native" instead of "child".
3921 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3923 * Makefile.in (SFILES): Delete "regset.c".
3924 (COMMON_OBS): Delete "regset.o".
3926 * regset.h (regset_alloc): Delete prototype.
3928 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3930 * sparc-linux-tdep.c (sparc32_linux_gregset)
3931 (sparc32_linux_fpregset): New static regset structures.
3932 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3933 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3935 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3936 (sparc64_linux_fpregset): New static regset structures.
3937 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3938 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3939 New static regset structures.
3940 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3941 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3942 New static regset structures.
3943 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3944 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3945 New static regset structures.
3946 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3947 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3948 New static regset structures.
3949 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3951 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3953 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3954 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3955 register maps ("regmaps") from "*regset" to "*regmap". Do this
3956 for all regmap types and variables.
3957 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3958 (sparc32_linux_supply_core_gregset)
3959 (sparc32_linux_collect_core_gregset)
3960 (sparc32_linux_supply_core_fpregset)
3961 (sparc32_linux_collect_core_fpregset): Likewise.
3962 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3963 (sparc_gregmap, sparc_fpregmap): ... these.
3964 (sparc_supply_gregset, sparc_collect_gregset)
3965 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3966 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3967 (_initialize_sparc_nat): Rename regmaps.
3968 * sparc-nat.h (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-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3974 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3975 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3977 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3979 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3980 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3981 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3983 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3984 (sparc32_bsd_fpregset): Rename to...
3985 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3986 (sparc32_bsd_fpregmap): ... these.
3987 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3988 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3989 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3990 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3991 (struct sparc_gregmap, struct sparc_fpregmap)
3992 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3993 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3994 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3995 (sparc32_supply_regset, sparc32_collect_gregset)
3996 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3998 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3999 (sparc64_linux_ptrace_gregmap): ... this.
4000 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4001 (_initialize_sparc64_linux_nat): Rename regmaps.
4002 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4003 (sparc64_linux_core_gregmap): ... this.
4004 (sparc64_linux_supply_core_gregset)
4005 (sparc64_linux_collect_core_gregset)
4006 (sparc64_linux_supply_core_fpregset)
4007 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4008 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4009 (sparc64_sol2_fpregset): Rename to...
4010 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4011 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4012 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4014 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4015 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4016 (sparc64_bsd_fpregset): Rename to...
4017 (struct sparc_gregmap, sparc64_sol2_gregmap)
4018 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4019 (sparc64_bsd_fpregmap): ... these.
4020 (sparc64_supply_gregset, sparc64_collect_gregset)
4021 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4023 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4024 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4025 (sparc64fbsd_gregmap): ... this.
4026 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4027 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4029 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4030 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4031 (sparc64nbsd_collect_fpregset): Likewise.
4032 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4033 (sparc64nbsd_gregmap): ... this.
4034 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4036 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4037 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4038 (sparc64obsd_gregmap): ... this.
4039 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4041 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4042 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4043 (sparc32nbsd_gregmap): ... this.
4044 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4049 * score-tdep.c (score7_linux_gregset): New static regset
4051 (score7_linux_regset_from_core_section): Remove dynamic regset
4053 (score_gdbarch_init): Drop allocation of tdep structure.
4054 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4056 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4058 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4060 (am33_regset_from_core_section): Remove dynamic regset
4063 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4065 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4066 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4068 (mips_linux_regset_from_core_section): Remove dynamic regset
4070 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4071 'gregset64', 'fpregset', and 'fpregset64'.
4072 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4073 deleted tdep fields.
4075 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4077 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4079 (amd64_regset_from_core_section): Remove dynamic regset
4081 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4083 (amd64obsd_regset_from_core_section): Remove dynamic regset
4085 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4087 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4088 x86-common regset supply function.
4089 * i386-tdep.c (i386_collect_gregset): Make static.
4090 (i386_gregset): New global regset structure.
4091 (i386_fpregset, i386_xstateregset): New static regset structures.
4092 (i386_regset_from_core_section): Remove dynamic regset
4094 (i386_gdbarch_init): Remove initialization of tdep fields
4095 'gregset', 'fpregset', and 'xstateregset'.
4096 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4097 'fpregset', and 'xstateregset'.
4098 (i386_collect_gregset): Remove prototype.
4099 (i386_gregset): New declaration.
4100 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4102 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4105 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4107 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4108 (arm_linux_vfpregset): New static regset structures.
4109 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4111 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4112 and 'vfpregset' fields.
4114 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4116 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4117 (aarch64_linux_fpregset): New static regset structures.
4118 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4119 of regset structures.
4120 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4123 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4125 * regset.h (struct regset): Remove gdbarch field.
4126 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4127 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4128 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4130 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4131 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4132 (ppc32_linux_vsxregset): Likewise.
4133 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4134 via the regcache instead of the regset.
4135 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4136 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4137 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4138 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4141 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4143 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4144 Constify structures.
4145 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4146 (alphanbsd_aout_gregset): Likewise.
4147 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4148 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4150 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4151 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4153 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4154 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4155 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4156 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4157 * m88k-tdep.c (m88k_gregset): Likewise.
4158 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4159 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4160 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4161 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4162 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4163 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4164 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4165 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4166 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4168 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4169 * sh-tdep.h (sh_corefile_gregset): Likewise.
4170 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4171 * vax-tdep.c (vax_gregset): Likewise.
4173 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4175 Fix TLS access for -static -pthread.
4176 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4177 (try_thread_db_load_1): Initialize it.
4178 (thread_db_get_thread_local_address): Call it if LM is zero.
4179 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4180 * target.h (struct target_ops) (to_get_thread_local_address): Add
4181 load_module_addr comment.
4183 2014-05-21 Pedro Alves <palves@redhat.com>
4185 * dcache.c (dcache_read_memory_partial): If reading the cache line
4186 fails, fallback to reading just the memory the caller wanted.
4188 2014-05-20 Doug Evans <dje@google.com>
4190 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4191 instead of get_current_arch.
4193 2014-05-20 Pedro Alves <palves@redhat.com>
4195 * NEWS: Mention that compare-sections now works with all targets.
4197 * remote.c (PACKET_qCRC): New enum value.
4198 (remote_verify_memory): Don't send qCRC if the target has no
4199 execution. Use packet_support/packet_ok. If the target doesn't
4200 support the qCRC packet, fallback to a deep memory copy.
4201 (compare_sections_command): Say "target image" instead of "remote
4203 (_initialize_remote): Add PACKET_qCRC to the list of config
4204 packets that have no associated command. Extend comment.
4205 * target.c (simple_verify_memory, default_verify_memory): New
4207 * target.h (struct target_ops) <to_verify_memory>: Default to
4208 default_verify_memory.
4209 (simple_verify_memory): New declaration.
4210 * target-delegates.c: Regenerate.
4212 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4214 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4216 2014-05-20 Hui Zhu <hui@codesourcery.com>
4217 Yao Qi <yao@codesourcery.com>
4220 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4221 and change address of sp and pc.
4223 2014-05-19 Tom Tromey <tromey@redhat.com>
4225 * gdbtypes.c (rank_function): Use XNEWVEC.
4226 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4228 2014-05-19 Doug Evans <dje@google.com>
4230 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4231 build_type_unit_groups and moved closer to only caller. Remove
4232 arguments. All references updated. Remove outdated .gdb_index
4234 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4235 build_type_psymtabs_1.
4237 2014-05-19 Doug Evans <dje@google.com>
4239 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4240 n_type_unit_groups, all_type_unit_groups. All uses removed.
4241 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4242 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4243 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4244 (add_type_unit_group_to_table): Delete.
4246 2014-05-19 Doug Evans <dje@google.com>
4248 * eval.c (evaluate_subexp_standard): Add some comments.
4250 2014-05-17 Doug Evans <xdje42@gmail.com>
4252 * progspace.c (remove_program_space): Delete, unused.
4253 * progspace.h (remove_program_space): Ditto.
4255 2014-05-17 Doug Evans <xdje42@gmail.com>
4257 * inferior.c (prune_inferiors): Fix comment.
4258 (remove_inferior_command): Call prune_program_spaces.
4260 2014-05-16 Doug Evans <dje@google.com>
4262 New command line option -D.
4264 * main.c (set_gdb_data_directory): New function.
4265 (captured_main): Recognize -D. Flag error for --data-directory "".
4266 Call set_gdb_data_directory.
4267 (print_gdb_help): Print --data-directory, -D.
4268 * main.h (set_gdb_data_directory): Declare.
4269 * top.c (staged_gdb_datadir): New static global.
4270 (set_gdb_datadir): Call set_gdb_data_directory
4271 (show_gdb_datadir): New function.
4272 (init_main): Update init of data-directory parameter.
4274 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4276 Import the "dirfd" gnulib module.
4277 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4278 * gnulib/aclocal.m4: Update.
4279 * gnulib/config.in: Update.
4280 * gnulib/configure: Update.
4281 * gnulib/import/Makefile.am: Update.
4282 * gnulib/import/Makefile.in: Update.
4283 * gnulib/import/dirfd.c: New.
4284 * gnulib/import/m4/dirfd.m4: New.
4285 * gnulib/import/m4/gnulib-cache.m4: Update.
4286 * gnulib/import/m4/gnulib-comp.m4: Update.
4288 2014-05-16 Pierre Muller <muller@sourceware.org>
4289 Yao Qi <yao@codesourcery.com>
4291 * valprint.c (print_wchar): Move the code on checking whether
4292 W is a printable wide char to the default branch of switch
4293 statement below. Call wchar_printable instead of gdb_iswprint.
4295 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4297 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4298 ldr.w and ldrd instructions.
4300 2014-05-15 Doug Evans <dje@google.com>
4302 * dwarf2read.c (read_structure_type): Delete outdated comments.
4304 2014-05-14 Tom Tromey <tromey@redhat.com>
4306 * macrocmd.c (print_macro_definition): Reindent.
4308 2014-05-13 Doug Evans <xdje42@gmail.com>
4310 * python/py-cmd.c (cmdpy_completer): Add comment.
4311 (completers): Make const.
4313 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4315 * infrun.c (resume): Remove should_resume (unused). Move up
4316 declaration of resume_ptid.
4318 2014-05-13 Tom Tromey <tromey@redhat.com>
4320 * language.h (unop_type_check): Remove.
4321 (binop_type_check): Don't declare.
4323 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4325 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4326 call to regcache_raw_collect.
4328 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4330 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4331 mi_console->quote as the quoting character.
4333 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4335 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4337 2014-04-29 Tom Tromey <tromey@redhat.com>
4339 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4340 "show debug varobj".
4342 2014-05-07 Kyle McMartin <kyle@redhat.com>
4344 Pushed by Joel Brobecker <brobecker@adacore.com>.
4345 * aarch64-tdep.c (aarch64_software_single_step): New function.
4346 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4347 with aarch64_software_single_step.
4349 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4353 2014-05-05 Keith Seitz <keiths@redhat.com>
4355 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4356 variable or history value is successfully parsed.
4358 2014-05-05 Yao Qi <yao@codesourcery.com>
4359 Pedro Alves <palves@redhat.com>
4361 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4362 address of blocks that intersects the requested range. Trim
4363 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4365 * ctf.c (ctf_xfer_partial): Likewise.
4367 2014-05-05 Yao Qi <yao@codesourcery.com>
4369 * printcmd.c (display_command): Remove the check to
4370 target_has_execution.
4372 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4374 * ppcobsd-nat.c: Include "obsd-nat.h".
4375 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4377 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4379 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4381 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4382 and 16-bit signed and unsigned arguments. Update comment.
4383 (stap_parse_probe_arguments): Extend code to handle such
4384 arguments. Use warning instead of complaint to notify about
4385 unrecognized bitness.
4387 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4389 PR breakpoints/16889
4390 * stap-probe.c (stap_parse_probe_arguments): Simplify
4391 check for non-prefixed probes (i.e., probes whose
4392 arguments do not start with "N@"). Always set the
4393 argument type to a sane value.
4395 2014-05-01 David Taylor <dtaylor@emc.com>
4397 * remote.c (compare_sections_command): Add -r option to compare
4398 all loadable read-only sections.
4400 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4402 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4403 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4405 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4406 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4407 Remove unused CORE_ADDR argument. Update all callers.
4409 2014-04-29 Pedro Alves <palves@redhat.com>
4411 * remote.c (struct packet_config) <detect>: Extend comment.
4412 (add_packet_config_cmd): Don't set the config's detect or support
4414 (init_all_packet_configs): Also initialize the config's 'detect'
4416 (reset_all_packet_configs_support): New function.
4417 (remote_open_1): Call reset_all_packet_configs_support instead of
4418 init_all_packet_configs.
4419 (_initialize_remote): Initialize all packet configs. Assert that
4420 all packets have an associated command, except a few known
4423 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4425 * dwarf2read.c (read_subrange_type): Handle dynamic
4426 DW_AT_lower_bound attributes.
4428 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4430 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4431 dynamic bounds before computing its upper bound.
4432 (ada_discrete_type_low_bound): Same as above with the lower bound.
4434 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4436 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4437 range types. Adjust the array handling implementation to
4438 take advantage of this change.
4439 (resolve_dynamic_range): New function, mostly extracted from
4440 resolve_dynamic_bounds.
4441 (resolve_dynamic_array): New function, mostly extracted from
4442 resolve_dynamic_bounds.
4443 (resolve_dynamic_bounds): Delete.
4444 (resolve_dynamic_type): Reimplement. Add handling of
4445 TYPE_CODE_RANGE types.
4447 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4449 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4450 handling of parallel ___XA types.
4452 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4454 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4455 unnecessary second call to static_unwrap_type.
4457 2014-04-27 Hui Zhu <hui@codesourcery.com>
4459 * stack.c (print_frame_info): Call do_gdb_disassembly with
4460 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4462 2014-04-26 Doug Evans <xdje42@gmail.com>
4464 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4466 2014-04-25 Pedro Alves <palves@redhat.com>
4469 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4470 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4471 and newline from built string.
4472 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4473 (linux_ptrace_attach_fail_reason): ... this.
4474 * linux-nat.c (linux_nat_attach): Adjust to use
4475 linux_ptrace_attach_fail_reason.
4477 2014-04-25 Pedro Alves <palves@redhat.com>
4479 * remote.c (struct remote_state): Remove multi_process_aware,
4480 non_stop_aware, cond_tracepoints, cond_breakpoints,
4481 breakpoint_commands, fast_tracepoints, static_tracepoints,
4482 install_in_trace, disconnected_tracing,
4483 enable_disable_tracepoints, string_tracing, and
4484 augmented_libraries_svr4_read fields.
4485 (remote_multi_process_p): Move further below in the file.
4486 (struct packet_config): Add comments.
4487 (update_packet_config): Delete function.
4488 (show_packet_config_cmd): Use packet_config_support.
4489 (add_packet_config_cmd): Use NULL as set callback.
4490 (packet_ok): "set remote foo-packet"-style commands no longer
4491 change config->supported -- adjust.
4492 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4493 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4494 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4495 (PACKET_QNonStop, PACKET_multiprocess_feature)
4496 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4497 (PACKET_DisconnectedTracing_feature)
4498 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4499 (set_remote_protocol_packet_cmd): Delete function.
4500 (packet_config_support, packet_support): New functions.
4501 (set_remote_protocol_Z_packet_cmd): Don't call
4502 update_packet_config.
4503 (remote_query_attached, remote_pass_signals)
4504 (remote_program_signals, remote_threads_info)
4505 (remote_threads_extra_info, remote_start_remote): Use
4507 (remote_start_remote): Use packet_config_support and
4509 (init_all_packet_configs): Set all packets to unknown support,
4510 instead of calling update_packet_config.
4511 (remote_check_symbols): Use packet_support.
4512 (remote_supported_packet): Unconditionally set the packet config's
4514 (remote_multi_process_feature, remote_non_stop_feature)
4515 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4516 (remote_breakpoint_commands_feature)
4517 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4518 (remote_install_in_trace_feature)
4519 (remote_disconnected_tracing_feature)
4520 (remote_enable_disable_tracepoint_feature)
4521 (remote_string_tracing_feature)
4522 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4523 (remote_protocol_features): Adjust to use remote_supported_packet
4524 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4525 "ConditionalTracepoints", "ConditionalBreakpoints",
4526 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4527 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4528 "EnableDisableTracepoints", and "tracenz".
4529 (remote_query_supported): Use packet_support.
4530 (remote_open_1): Adjust.
4531 (extended_remote_attach_1): Use packet_support. Switch on the
4532 result of packet_ok instead of checking whether the packet ended
4534 (remote_vcont_resume): Use packet_support.
4535 (remote_resume, remote_stop_ns, fetch_register_using_p)
4536 (remote_prepare_to_store, store_register_using_P)
4537 (check_binary_download, remote_write_bytes): Use packet_support.
4538 (remote_vkill): Use packet_support. Switch on the result of
4539 packet_ok instead of checking whether the packet ended up
4541 (extended_remote_supports_disable_randomization): Use
4543 (extended_remote_run): Switch on the result of packet_ok instead
4544 of checking whether the packet ended up disabled.
4545 (remote_insert_breakpoint, remote_remove_breakpoint)
4546 (remote_insert_watchpoint, remote_remove_watchpoint)
4547 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4549 (remote_search_memory): Use packet_config_support.
4550 (remote_get_thread_local_address, remote_get_tib_address)
4551 (remote_hostio_send_command, remote_can_execute_reverse): Use
4553 (remote_supports_cond_tracepoints)
4554 (remote_supports_cond_breakpoints)
4555 (remote_supports_fast_tracepoints)
4556 (remote_supports_static_tracepoints)
4557 (remote_supports_install_in_trace)
4558 (remote_supports_enable_disable_tracepoint)
4559 (remote_supports_string_tracing)
4560 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4561 the packet config says the feature is enabled or disabled.
4562 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4563 (remote_get_trace_status): Use packet_support.
4564 (remote_set_disconnected_tracing): Adjust to check whether the
4565 feature is enabled with packet_support.
4566 (remote_set_trace_buffer_size, remote_use_agent)
4567 (remote_can_use_agent, remote_supports_btrace): Use
4569 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4570 Use packet_config_support.
4571 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4572 the packet config says the feature is enabled or disabled.
4573 (set_range_stepping): Use packet_support.
4575 2014-04-25 Tom Tromey <tromey@redhat.com>
4577 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4580 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4582 * NEWS: Mention support for C99 variable length arrays.
4584 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4586 * ada-lang.c (standard_exc): Expand introductory comment.
4588 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4589 Walfred Tedeschi <walfred.tedeschi@intel.com>
4591 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4593 (amd64_linux_read_description): Add code to handle AVX512 xstate
4594 mask and return respective tdesc.
4595 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4596 and features/i386/x32-avx512-linux.c.
4597 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4598 (amd64_linux_core_read_description): Add code to handle AVX512
4599 xstate mask and return respective tdesc.
4600 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4601 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4603 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4604 (tdesc_amd64_avx512_linux): New prototype.
4605 (tdesc_x32_avx512_linux): Likewise.
4606 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4607 features/i386/x32-avx512.c.
4608 (amd64_ymm_avx512_names): New register names for pseudo
4610 (amd64_ymmh_avx512_names): New register names for raw registers
4612 (amd64_k_names): New register names for K registers.
4613 (amd64_zmmh_names): New register names for ZMM raw registers.
4614 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4615 (amd64_xmm_avx512_names): New register names for XMM16-31
4617 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4619 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4620 if feature is present.
4621 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4622 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4623 (AMD64_NUM_REGS): Adjust to new number of registers.
4624 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4625 registers supplied via XSTATE by AVX512 registers.
4626 (i386_linux_read_description): Add case for AVX512.
4627 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4628 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4629 (i386_linux_core_read_description): Add case for AVX512.
4630 (i386_linux_init_abi): Install supported register note section
4632 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4634 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4635 registers to be number of zmm7h + 1.
4636 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4637 * i386-tdep.c: Include features/i386/i386-avx512.c.
4638 (i386_zmm_names): Add ZMM pseudo register names array.
4639 (i386_zmmh_names): Add ZMM raw register names array.
4640 (i386_k_names): Add K raw register names array.
4641 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4642 registers. AVX512 has 16 more ZMM registers than there are YMM
4644 (i386_zmmh_regnum_p): Add function to look up register number of
4646 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4647 (i386_k_regnum_p): Likewise for K raw registers.
4648 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4649 registers added by AVX512.
4650 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4651 registers added by AVX512.
4652 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4654 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4655 (i386_pseudo_register_name): Add ZMM pseudo registers.
4656 (i386_zmm_type): Construct and return vector registers type for ZMM
4658 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4659 ZMM0-31 pseudo registers and K registers.
4660 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4661 and YMM16-31 registers from register cache.
4662 (i386_pseudo_register_write): Add code to write K, ZMM and
4664 (i386_register_reggroup_p): Add code to include/exclude AVX512
4665 registers in/from respective register groups.
4666 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4667 registers if feature is present in xcr0.
4668 (i386_gdbarch_init): Add code to initialize AVX512 feature
4669 variables in tdep structure, wire in pseudo registers and call
4670 initialize_tdesc_i386_avx512.
4671 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4673 (i386_regnum): Add AVX512 registers.
4674 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4675 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4676 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4677 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4679 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4680 (i386_ymm_avx512_regnum_p): Likewise.
4681 (i386_k_regnum_p): Likewise.
4682 (i386_zmm_regnum_p): Likewise.
4683 (i386_zmmh_regnum_p): Likewise.
4684 * i387-tdep.c : Update year in copyright notice.
4685 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4687 (XSAVE_YMM_AVX512_ADDR): New macro.
4688 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4690 (XSAVE_XMM_AVX512_ADDR): New macro.
4691 (xsave_avx512_k_offset): New table for K register offsets in
4693 (XSAVE_AVX512_K_ADDR): New macro.
4694 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4696 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4697 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4699 (i387_collect_xsave): Add code to collect AVX512 registers from
4701 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4702 of XMM16-31 registers.
4703 (I387_NUM_K_REGS): New define for number of K registers.
4704 (I387_K0_REGNUM): New define for K0 register number.
4705 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4706 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4707 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4709 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4710 (I387_XMM16_REGNUM): New define for XMM16 register number.
4711 (I387_YMM0_REGNUM): New define for YMM0 register number.
4712 (I387_KEND_REGNUM): New define for last K register number.
4713 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4714 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4716 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4718 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4720 * features/Makefile: Add AVX512 related files.
4721 * features/i386/32bit-avx512.xml: New file.
4722 * features/i386/64bit-avx512.xml: Likewise.
4723 * features/i386/amd64-avx512-linux.c: Likewise.
4724 * features/i386/amd64-avx512-linux.xml: Likewise.
4725 * features/i386/amd64-avx512.c: Likewise.
4726 * features/i386/amd64-avx512.xml: Likewise.
4727 * features/i386/i386-avx512-linux.c: Likewise.
4728 * features/i386/i386-avx512-linux.xml: Likewise.
4729 * features/i386/i386-avx512.c: Likewise.
4730 * features/i386/i386-avx512.xml: Likewise.
4731 * features/i386/x32-avx512-linux.c: Likewise.
4732 * features/i386/x32-avx512-linux.xml: Likewise.
4733 * features/i386/x32-avx512.c: Likewise.
4734 * features/i386/x32-avx512.xml: Likewise.
4735 * regformats/i386/amd64-avx512-linux.dat: New file.
4736 * regformats/i386/amd64-avx512.dat: Likewise.
4737 * regformats/i386/i386-avx512-linux.dat: Likewise.
4738 * regformats/i386/i386-avx512.dat: Likewise.
4739 * regformats/i386/x32-avx512-linux.dat: Likewise.
4740 * regformats/i386/x32-avx512.dat: Likewise.
4741 * NEWS: Add note about new support for AVX512.
4744 2014-04-23 Pedro Alves <palves@redhat.com>
4746 * breakpoint.c (insert_bp_location): Tolerate errors if the
4747 breakpoint is set in a user-loaded objfile.
4748 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4749 location is marked shlib_disabled. If the breakpoint is set in a
4750 user-loaded objfile is a GDB-side memory breakpoint, validate it
4751 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4752 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4754 * mem-break.c (memory_validate_breakpoint): New function.
4755 * objfiles.c (userloaded_objfile_contains_address_p): New
4757 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4758 * target.h (memory_validate_breakpoint): New declaration.
4760 2014-04-23 Pedro Alves <palves@redhat.com>
4762 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4763 the breakpoint is set in a shared library, only suppress
4764 errors for software breakpoints, not hardware breakpoints.
4766 2014-04-22 Pedro Alves <palves@redhat.com>
4768 * infrun.c (schedlock_applies): New function, factored out from
4769 find_thread_needs_step_over.
4770 (find_thread_needs_step_over): Use it.
4771 (switch_back_to_stepped_thread): Always clear trap_expected if the
4772 step over is finished. Return early if scheduler locking applies.
4773 Look for the stepping thread and a potential step-over thread with
4775 (currently_stepping_or_nexting_callback): Delete.
4777 2014-04-22 Nick Clifton <nickc@redhat.com>
4779 * NEWS: Mention that ARM sim now supports tracing.
4781 2014-04-22 Yao Qi <yao@codesourcery.com>
4783 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4785 * tracefile.c (tracefile_fetch_registers): ... it. New
4787 * tracefile.h (tracefile_fetch_registers): Declare.
4788 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4789 tracefile_fetch_registers.
4791 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4794 * windows-nat.c (thread_rec): Don't display a warning when
4795 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4796 fails for any reason, set th->suspended to -1, so that we don't
4797 try to resume such a thread. Also, don't return NULL in these
4798 cases, to avoid completely ruin the session due to "PC register is
4799 not available" error.
4800 (do_windows_fetch_inferior_registers): Check errors in
4801 GetThreadContext call.
4802 (windows_continue): Accept an additional argument KILLED; if not
4803 zero, ignore errors in the SetThreadContext call, since the
4804 inferior was killed and is shutting down.
4805 (windows_resume, get_windows_debug_event)
4806 (windows_create_inferior, windows_mourn_inferior)
4807 (windows_kill_inferior): All callers of windows_continue changed
4808 to adjust to its new calling sequence.
4810 2014-04-19 Yao Qi <yao@codesourcery.com>
4812 * ctf.c (ctf_open): Call post_create_inferior.
4814 2014-04-19 Yao Qi <yao@codesourcery.com>
4816 * ctf.c (handle_id): New static variable.
4817 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4818 value. Get the declaration of event "register" and get length
4819 of field "contents".
4821 2014-04-19 Yao Qi <yao@codesourcery.com>
4823 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4825 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4827 * valops.c (oload_method_static): Remove unnecessary argument
4828 METHOD. Update all callers.
4830 2014-04-18 Pedro alves <palves@redhat.com>
4831 Tom Tromey <tromey@redhat.com>
4834 * frame.c (get_prev_frame_1): Rename to ...
4835 (get_prev_frame_always): ... this, and make extern. Adjust.
4836 (skip_artificial_frames): Use get_prev_frame_always.
4837 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4838 (get_frame_unwind_stop_reason): Adjust to rename.
4839 * frame.h (get_prev_frame_always): Declare.
4840 * inline-frame.c: Include frame.h.
4841 (inline_frame_this_id): Use get_prev_frame_always.
4843 2014-04-18 Tristan Gingold <gingold@adacore.com>
4845 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4846 code by using bfd_mach_o_get_base_address.
4848 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4850 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4851 (spu_ax_pseudo_register_collect): New function.
4852 (spu_ax_pseudo_register_push_stack): Likewise.
4853 (spu_dwarf_reg_to_regnum): Likewise.
4854 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4856 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4858 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4859 Replace FRAME argument with FRAME_ID.
4860 * gdbarch.c, gdbarch.h: Regenerate.
4861 * findvar.c (default_value_from_register): Add GDBARCH argument;
4862 replace FRAME by FRAME_ID. No longer call get_frame_id.
4863 (value_from_register): Update call to gdbarch_value_from_register.
4864 * value.h (default_value_from_register): Update prototype.
4865 * s390-linux-tdep.c (s390_value_from_register): Update interface
4866 and call to default_value_from_register.
4867 * spu-tdep.c (spu_value_from_register): Likewise.
4869 * findvar.c (address_from_register): Remove TYPE argument.
4870 Do not call value_from_register; use gdbarch_value_from_register
4871 with null_frame_id instead.
4872 * value.h (address_from_register): Update prototype.
4873 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4874 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4875 address_from_register interface change.
4877 2014-04-17 Yao Qi <yao@codesourcery.com>
4879 * gdbtypes.h: Update comments to link to types and macros'
4882 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4884 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4886 2014-04-16 Keith Seitz <keiths@redhat.com>
4889 * dwarf2read.c (skip_one_die): Check that all relative-offset
4890 sibling DIEs fall within range of the current reader's buffer.
4891 (read_partial_die): Likewise.
4893 2014-04-16 Keith Seitz <keiths@redhat.com>
4896 * cp-namespace.c (lookup_symbol_file): If the type name of
4897 `this' is NULL, return immediately.
4899 2014-04-14 Keith Seitz <keiths@redhat.com>
4902 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4903 from symbol_matches_domain in symtab.c. All local callers
4904 of symbol_matches_domain updated.
4905 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4906 search STRUCT_DOMAIN.
4907 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4908 independently. standard_lookup will do that automatically.
4909 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4910 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4911 (cp_lookup_symbol_in_namespace): Likewise.
4912 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4913 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4914 may return a STRUCT_DOMAIN match.
4915 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4916 * cp-support.c: Include language.h.
4917 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4919 * psymtab.c (match_partial_symbol): Compare the requested
4920 domain with the symbol's domain directly.
4921 (lookup_partial_symbol): Likewise.
4922 * symtab.c (lookup_symbol_in_language): Explain when/why
4923 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4924 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4925 appropriate languages.
4926 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4927 and moved to ada-lang.c
4928 (lookup_block_symbol): Explain that this function only returns
4929 symbol matching the requested DOMAIN.
4930 Compare the requested domain with the symbol's domain directly.
4931 (iterate_over_symbols): Compare the requested domain with the
4932 symbol's domain directly.
4933 * symtab.h (symbol_matches_domain): Remove.
4935 2014-04-14 Tom Tromey <tromey@redhat.com>
4938 * c-exp.y (type_aggregate_p): New function.
4939 (qualified_name, classify_inner_name): Use it.
4940 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4941 and TYPE_TARGET_TYPE of an enum type.
4942 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4944 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4945 handle TYPE_DECLARED_CLASS.
4946 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4948 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4949 * valops.c (enum_constant_from_type): New function.
4950 (value_aggregate_elt): Use it.
4951 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4954 2014-04-14 Tom Tromey <tromey@redhat.com>
4956 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4957 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4959 * value.h (value_aggregate_elt): Update.
4961 2014-04-14 Tom Tromey <tromey@redhat.com>
4963 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4965 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4967 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4968 (evaluate_subexp_standard): Pass noside argument.
4969 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4970 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4971 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4972 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4973 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4975 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4977 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4978 points to a constant blob.
4980 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4982 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4983 property and store it as the high bound and flag the range accordingly.
4984 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4985 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4986 * gdbtypes.h (enum range_flags): New enum.
4987 (struct range_bounds): Add flags member.
4989 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4991 * c-typeprint.c (c_type_print_varspec_suffix): Added
4992 check for not yet resolved high bound. If unresolved, print
4993 "variable length" string to the console instead of random
4996 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4998 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5000 (ada_template_to_fixed_record_type_1): Likewise.
5001 (ada_to_fixed_type_1): Likewise.
5002 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5003 (cp_print_value): Likewise.
5004 * d-valprint.c (dynamic_array_type): Likewise.
5005 * findvar.c (address_of_variable): Likewise.
5006 * jv-valprint.c (java_value_print): Likewise.
5007 * valops.c (value_ind): Likewise.
5008 * value.c (coerce_ref): Likewise.
5010 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5012 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5013 value and retrieve the dynamic type size.
5015 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5017 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5018 passed to sizeof is dynamic evaluate the argument to compute the length.
5020 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5021 Joel Brobecker <brobecker@adacore.com>
5023 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5024 (dwarf2_evaluate_property): New function.
5025 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5026 * dwarf2read.c (attr_to_dynamic_prop): New function.
5027 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5029 * gdbtypes.c: Include dwarf2loc.h.
5030 (is_dynamic_type): New function.
5031 (resolve_dynamic_type): New function.
5032 (resolve_dynamic_bounds): New function.
5033 (get_type_length): New function.
5034 (check_typedef): Use get_type_length to compute type length.
5035 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5036 (TYPE_LOW_BOUND_KIND): New macro.
5037 (is_dynamic_type): New function prototype.
5038 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5039 to resolve dynamic properties of the type. Update comment.
5040 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5042 2014-04-14 Richard Henderson <rth@redhat.com>
5044 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5046 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5047 Doug Evans <xdje42@gmail.com>
5049 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5050 dereference TYPE_CODE_REF values.
5052 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5054 Revert the following changes due to regressions:
5056 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5057 (dwarf2_evaluate_property): New function.
5058 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5059 * dwarf2read.c (attr_to_dynamic_prop): New function.
5060 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5062 * gdbtypes.c: Include dwarf2loc.h.
5063 (is_dynamic_type): New function.
5064 (resolve_dynamic_type): New function.
5065 (resolve_dynamic_bounds): New function.
5066 (get_type_length): New function.
5067 (check_typedef): Use get_type_length to compute type length.
5068 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5069 (TYPE_LOW_BOUND_KIND): New macro.
5070 (is_dynamic_type): New function prototype.
5071 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5072 to resolve dynamic properties of the type. Update comment.
5073 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5075 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5076 passed to sizeof is dynamic evaluate the argument to compute the length.
5078 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5079 value and retrieve the dynamic type size.
5081 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5082 (ada_template_to_fixed_record_type_1): Likewise.
5083 (ada_to_fixed_type_1): Likewise.
5084 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5085 (cp_print_value): Likewise.
5086 * d-valprint.c (dynamic_array_type): Likewise.
5087 * eval.c (evaluate_subexp_with_coercion): Likewise.
5088 * findvar.c (address_of_variable): Likewise.
5089 * jv-valprint.c (java_value_print): Likewise.
5090 * valops.c (value_ind): Likewise.
5091 * value.c (coerce_ref): Likewise.
5093 * c-typeprint.c (c_type_print_varspec_suffix): Added
5094 check for not yet resolved high bound. If unresolved, print
5095 "variable length" string to the console instead of random
5098 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5099 property and store it as the high bound and flag the range accordingly.
5100 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5101 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5102 * gdbtypes.h (enum range_flags): New enum.
5103 (struct range_bounds): Add flags member.
5105 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5106 points to a constant blob.
5108 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5109 (evaluate_subexp_standard): Pass noside argument.
5110 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5111 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5112 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5113 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5114 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5116 2014-04-11 Keith Seitz <keiths@redhat.com>
5119 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5120 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5123 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5125 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5126 (evaluate_subexp_standard): Pass noside argument.
5127 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5128 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5129 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5130 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5131 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5133 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5135 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5136 points to a constant blob.
5138 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5140 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5141 property and store it as the high bound and flag the range accordingly.
5142 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5143 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5144 * gdbtypes.h (enum range_flags): New enum.
5145 (struct range_bounds): Add flags member.
5147 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5149 * c-typeprint.c (c_type_print_varspec_suffix): Added
5150 check for not yet resolved high bound. If unresolved, print
5151 "variable length" string to the console instead of random
5154 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5156 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5157 (ada_template_to_fixed_record_type_1): Likewise.
5158 (ada_to_fixed_type_1): Likewise.
5159 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5160 (cp_print_value): Likewise.
5161 * d-valprint.c (dynamic_array_type): Likewise.
5162 * eval.c (evaluate_subexp_with_coercion): Likewise.
5163 * findvar.c (address_of_variable): Likewise.
5164 * jv-valprint.c (java_value_print): Likewise.
5165 * valops.c (value_ind): Likewise.
5166 * value.c (coerce_ref): Likewise.
5168 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5170 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5171 value and retrieve the dynamic type size.
5173 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5175 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5176 passed to sizeof is dynamic evaluate the argument to compute the length.
5178 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5180 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5181 (dwarf2_evaluate_property): New function.
5182 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5183 * dwarf2read.c (attr_to_dynamic_prop): New function.
5184 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5186 * gdbtypes.c: Include dwarf2loc.h.
5187 (is_dynamic_type): New function.
5188 (resolve_dynamic_type): New function.
5189 (resolve_dynamic_bounds): New function.
5190 (get_type_length): New function.
5191 (check_typedef): Use get_type_length to compute type length.
5192 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5193 (TYPE_LOW_BOUND_KIND): New macro.
5194 (is_dynamic_type): New function prototype.
5195 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5196 to resolve dynamic properties of the type. Update comment.
5197 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5199 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5201 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5202 declaring high/low bounds and change uses accordingly. Call
5203 create_range_type instead of create_static_range_type.
5204 * gdbtypes.c (create_range_type): New function.
5205 (create_range_type): Convert bounds into struct bound_prop and pass
5206 them to create_range_type.
5207 * gdbtypes.h (struct bound_prop): New struct.
5208 (create_range_type): New function prototype.
5209 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5210 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5211 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5213 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5215 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5217 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5218 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5219 * ada-lang.c: All uses of create_range_type updated.
5220 * coffread.c: All uses of create_range_type updated.
5221 * dwarf2read.c: All uses of create_range_type updated.
5222 * f-exp.y: All uses of create_range_type updated.
5223 * m2-valprint.c: All uses of create_range_type updated.
5224 * mdebugread.c: All uses of create_range_type updated.
5225 * stabsread.c: All uses of create_range_type updated.
5226 * valops.c: All uses of create_range_type updated.
5227 * valprint.c: All uses of create_range_type updated.
5229 2014-04-10 Pedro Alves <palves@redhat.com>
5231 * breakpoint.c (single_step_breakpoints)
5232 (single_step_gdbarch): Move up in the file.
5233 (one_breakpoint_xfer_memory): New function, factored out from ...
5234 (breakpoint_xfer_memory): ... here. Also process single-step
5237 2014-04-09 Tristan Gingold <gingold@adacore.com>
5239 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5241 (darwin_decode_exception_message): Free port only after use.
5243 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5245 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5246 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5247 when setting the size of call_length.
5249 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5251 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5252 dereference TYPE_CODE_REF values.
5254 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5256 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5257 end of warning message.
5259 2014-04-03 Doug Evans <dje@google.com>
5261 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5262 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5264 2014-04-02 Alan Modra <amodra@gmail.com>
5266 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5267 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5268 (struct symbol_file_add_from_memory_args): Add size field.
5269 (find_vdso_size): New function.
5270 (add_vsyscall_page): Attempt to find vdso size.
5272 2014-04-01 Doug Evans <dje@google.com>
5274 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5276 2014-04-01 Tristan Gingold <gingold@adacore.com>
5278 * darwin-nat.c (darwin_encode_reply): Add prototype.
5279 (darwin_decode_exception_message): Reply to unknown inferiors.
5280 (darwin_decode_message): Handle message by id. Ignore message
5281 to unknown inferior.
5282 (darwin_wait): Discard unknown messages, add debug trace.
5284 2014-03-31 Doug Evans <dje@google.com>
5286 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5289 2014-03-31 Doug Evans <dje@google.com>
5291 New option "set print symbol-loading".
5293 * solib.c (solib_read_symbols): Only print symbol loading messages
5295 (solib_add): If symbol loading is in "brief" mode, notify user
5296 symbols are being loaded.
5297 (reload_shared_libraries_1): Ditto.
5298 * symfile.c (print_symbol_loading_off): New static global.
5299 (print_symbol_loading_brief): New static global.
5300 (print_symbol_loading_full): New static global.
5301 (print_symbol_loading_enums): New static global.
5302 (print_symbol_loading): New static global.
5303 (print_symbol_loading_p): New function.
5304 (symbol_file_add_with_addrs): Only print symbol loading messages
5306 (_initialize_symfile): Register "print symbol-loading" set/show
5308 * symfile.h (print_symbol_loading_p): Declare.
5310 2014-03-30 Doug Evans <xdje42@gmail.com>
5312 * infrun.c (set_last_target_status): New function.
5313 (handle_inferior_event): Call it.
5315 2014-03-30 Doug Evans <xdje42@gmail.com>
5317 * inferior.h (enum stop_kind): Improve comment.
5319 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5321 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5322 a reference, strip the reference layer before calling
5323 the lang_ops value_has_mutated callback.
5325 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5327 Remove some globals from our parser.
5328 * language.c (unk_lang_parser): Add "struct parser_state"
5330 * language.h (struct language_defn) <la_parser>: Likewise.
5331 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5332 (initialize_expout): Add "struct parser_state" argument.
5333 Rewrite function to use the parser state.
5334 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5335 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5336 write_exp_elt_longcst, write_exp_elt_dblcst,
5337 write_exp_elt_decfloatcst, write_exp_elt_type,
5338 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5339 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5340 write_dollar_variable): Likewise.
5341 (parse_exp_in_context_1): Use parser state.
5342 (insert_type_address_space): Add "struct parser_state" argument.
5344 (increase_expout_size): New function.
5345 * parser-defs.h: Forward declare "struct language_defn" and
5346 "struct parser_state".
5347 (expout, expout_size, expout_ptr): Remove extern declarations.
5348 (parse_gdbarch, parse_language): Rewrite macro declarations to
5349 accept the parser state.
5350 (struct parser_state): New struct.
5351 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5352 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5353 write_exp_elt_decfloatcst, write_exp_elt_type,
5354 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5355 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5356 write_exp_msymbol, write_dollar_variable,
5357 mark_struct_expression, insert_type_address_space): Add "struct
5358 parser_state" argument.
5359 (increase_expout_size): New function.
5360 * utils.c (do_clear_parser_state): New function.
5361 (make_cleanup_clear_parser_state): Likewise.
5362 * utils.h (make_cleanup_clear_parser_state): New function
5364 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5365 Update calls to write_exp* in order to pass the parser state.
5366 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5367 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5368 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5369 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5370 * stap-probe.c (stap_parse_register_operand): Likewise.
5371 (stap_parse_single_operand): Likewise.
5372 (stap_parse_argument_1): Likewise.
5373 (stap_parse_argument): Use parser state.
5374 * stap-probe.h: Include "parser-defs.h".
5375 (struct stap_parse_info) <pstate>: New field.
5376 * c-exp.y (parse_type): Rewrite to use parser state.
5377 (yyparse): Redefine to c_parse_internal.
5378 (pstate): New global variable.
5379 (parse_number): Add "struct parser_state" argument.
5380 (write_destructor_name): Likewise.
5381 (type_exp): Update calls to write_exp* and similars in order to
5383 (exp1, exp, variable, qualified_name, space_identifier,
5384 typename, typebase): Likewise.
5385 (write_destructor_name, parse_number, lex_one_token,
5386 classify_name, classify_inner_name, c_parse): Add "struct
5387 parser_state" argument. Update function to use parser state.
5388 * c-lang.h: Forward declare "struct parser_state".
5389 (c_parse): Add "struct parser_state" argument.
5390 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5391 (yyparse): Redefine macro to ada_parse_internal.
5392 (pstate): New variable.
5393 (write_int, write_object_renaming, write_var_or_type,
5394 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5395 type_int, type_long, type_long_long, type_float, type_double,
5396 type_long_double, type_char, type_boolean, type_system_address):
5397 Add "struct parser_state" argument.
5398 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5399 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5400 var_or_type, aggregate, aggregate_component_list,
5401 positional_list, others, component_group,
5402 component_associations): Update calls to write_exp* and similar
5403 functions in order to use parser state.
5404 (ada_parse, write_var_from_sym, write_int,
5405 write_exp_op_with_string, write_object_renaming,
5406 find_primitive_type, write_selectors, write_ambiguous_var,
5407 write_var_or_type, write_name_assoc, type_int, type_long,
5408 type_long_long, type_float, type_double, type_long_double,
5409 type_char, type_boolean, type_system_address): Add "struct
5410 parser_state" argument. Adjust function to use parser state.
5411 * ada-lang.c (parse): Likewise.
5412 * ada-lang.h: Forward declare "struct parser_state".
5413 (ada_parse): Add "struct parser_state" argument.
5414 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5415 calls to both functions.
5416 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5418 (yyparse): Redefine macro to f_parse_internal.
5419 (pstate): New variable.
5420 (parse_number): Add "struct parser_state" argument.
5421 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5422 and similars in order to use parser state.
5423 (parse_number): Adjust code to use parser state.
5425 (f_parse): New function.
5426 * f-lang.h: Forward declare "struct parser_state".
5427 (f_parse): Add "struct parser_state" argument.
5428 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5430 (yyparse): Redefine macro for java_parse_internal.
5431 (pstate): New variable.
5432 (push_expression_name, push_expression_name, insert_exp): Add
5433 "struct parser_state" argument.
5434 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5435 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5436 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5437 PostIncrementExpression, PostDecrementExpression,
5438 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5439 UnaryExpressionNotPlusMinus, CastExpression,
5440 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5441 RelationalExpression, EqualityExpression, AndExpression,
5442 ExclusiveOrExpression, InclusiveOrExpression,
5443 ConditionalAndExpression, ConditionalOrExpression,
5444 ConditionalExpression, Assignment, LeftHandSide): Update
5445 calls to write_exp* and similars in order to use parser state.
5446 (parse_number): Ajust code to use parser state.
5448 (java_parse): New function.
5449 (push_variable): Add "struct parser_state" argument. Adjust
5450 code to user parser state.
5451 (push_fieldnames, push_qualified_expression_name,
5452 push_expression_name, insert_exp): Likewise.
5453 * jv-lang.h: Forward declare "struct parser_state".
5454 (java_parse): Add "struct parser_state" argument.
5455 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5457 (yyparse): Redefine macro to m2_parse_internal.
5458 (pstate): New variable.
5459 (type_exp, exp, fblock, variable, type): Update calls to
5460 write_exp* and similars to use parser state.
5462 (m2_parse): New function.
5463 * m2-lang.h: Forward declare "struct parser_state".
5464 (m2_parse): Add "struct parser_state" argument.
5465 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5466 * objc-lang.h: Forward declare "struct parser_state".
5467 (end_msglist): Add "struct parser_state" argument.
5468 * p-exp.y (parse_type): Rewrite macro to use parser state.
5469 (yyparse): Redefine macro to pascal_parse_internal.
5470 (pstate): New variable.
5471 (parse_number): Add "struct parser_state" argument.
5472 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5473 write_exp* and similars in order to use parser state.
5474 (parse_number, yylex): Adjust code to use parser state.
5475 (pascal_parse): New function.
5476 * p-lang.h: Forward declare "struct parser_state".
5477 (pascal_parse): Add "struct parser_state" argument.
5478 * go-exp.y (parse_type): Rewrite macro to use parser state.
5479 (yyparse): Redefine macro to go_parse_internal.
5480 (pstate): New variable.
5481 (parse_number): Add "struct parser_state" argument.
5482 (type_exp, exp1, exp, variable, type): Update calls to
5483 write_exp* and similars in order to use parser state.
5484 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5485 to use parser state.
5486 (go_parse): Likewise.
5487 * go-lang.h: Forward declare "struct parser_state".
5488 (go_parse): Add "struct parser_state" argument.
5490 2014-03-27 Doug Evans <dje@google.com>
5492 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5494 2014-03-27 Doug Evans <dje@google.com>
5496 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5497 Remove argument abbrev_section. All callers updated.
5499 2014-03-27 Doug Evans <dje@google.com>
5501 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5502 addr_base, ranges_base.
5504 2014-03-26 Keith Seitz <keiths@redhat.com>
5506 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5507 types, not VAR_DOMAIN.
5509 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5511 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5513 * features/nios2-linux.c: Regenerated.
5514 * features/nios2.c: Regenerated.
5516 2014-03-25 Pedro Alves <palves@redhat.com>
5518 * cli/cli-script.c (script_from_file): Force the interpreter to
5521 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5523 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5524 small stack allocation.
5526 2014-03-24 Tristan Gingold <gingold@adacore.com>
5528 * darwin-nat.c (exc_server): Remove unused prototype.
5529 (darwin_dump_message): Correctly display data on x86_64.
5530 (darwin_encode_reply): Fix style.
5531 Add comments and fix indentation.
5533 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5535 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5537 2014-03-22 Doug Evans <xdje42@gmail.com>
5539 * infcmd.c: Whitespace fixes.
5540 (interrupt_command): Merge two function comments into one.
5542 2014-03-22 Doug Evans <xdje42@gmail.com>
5544 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5547 2014-03-22 Yao Qi <yao@codesourcery.com>
5549 * remote.c (target_read_live_memory): Remove.
5550 (memory_xfer_live_readonly_partial): Rename it to
5551 remote_xfer_live_readonly_partial. Remove argument 'object'.
5552 All callers updated. Call remote_read_bytes_1
5553 instead of target_read_live_memory.
5554 * tracepoint.c (set_traceframe_number): Remove.
5555 (make_cleanup_restore_traceframe_number): Likewise .
5556 * tracepoint.h (set_traceframe_number): Remove declaration.
5557 (make_cleanup_restore_traceframe_number): Likewise.
5559 2014-03-22 Yao Qi <yao@codesourcery.com>
5561 * remote.c (remote_read_bytes): Move code on reading from the
5563 (remote_read_bytes_1): ... here. New function.
5565 2014-03-22 Yao Qi <yao@codesourcery.com>
5567 * ctf.c (ctf_xfer_partial): Check the return value of
5568 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5569 return TARGET_XFER_UNAVAILABLE.
5570 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5571 * target.c (target_read_live_memory): Move it to remote.c.
5572 (memory_xfer_live_readonly_partial): Likewise.
5573 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5574 * remote.c (target_read_live_memory): Moved from target.c.
5575 (memory_xfer_live_readonly_partial): Likewise.
5576 (remote_read_bytes): Factored out from
5577 memory_xfer_partial_1.
5579 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5581 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5584 2014-03-21 Pedro Alves <palves@redhat.com>
5586 * infrun.c (normal_stop): Extend comment.
5588 2014-03-21 Hui Zhu <hui@codesourcery.com>
5589 Pedro Alves <palves@redhat.com>
5591 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5593 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5594 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5595 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5597 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5599 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5600 `z' formatted output modifier.
5602 2014-03-20 Tom Tromey <tromey@redhat.com>
5603 Sergio Durigan Junior <sergiodj@redhat.com>
5605 * probe.c (parse_probes): Turn assert into an ordinary error.
5606 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5607 exceptions when parsing probes. Rearrange the code for clarity.
5609 2014-03-20 Tom Tromey <tromey@redhat.com>
5612 * top.c (execute_command): Only dispatch events if the command
5615 2014-03-20 Tom Tromey <tromey@redhat.com>
5618 * infcall.c: Include event-top.h.
5619 (run_inferior_call): Call async_disable_stdin if needed.
5621 2014-03-20 Pedro Alves <palves@redhat.com>
5623 * infrun.c (prepare_to_proceed): Delete.
5624 (thread_still_needs_step_over): New function.
5625 (find_thread_needs_step_over): New function.
5626 (proceed): If the current thread needs a step-over, set its
5627 steping_over_breakpoint flag. Adjust to use
5628 find_thread_needs_step_over instead of prepare_to_proceed.
5629 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5630 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5632 (switch_back_to_stepped_thread): Step over breakpoints of all
5633 threads not the stepping thread, before switching back to the
5636 2014-03-20 Pedro Alves <palves@redhat.com>
5638 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5640 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5641 * infrun.c (saved_singlestep_ptid)
5642 (stepping_past_singlestep_breakpoint): Delete.
5643 (resume): Remove stepping_past_singlestep_breakpoint handling.
5644 (proceed): Store the prev_pc of the stepping thread too.
5645 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5647 (enum infwait_states): Delete infwait_thread_hop_state.
5648 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5650 (handle_inferior_event): Adjust.
5651 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5652 handling and the thread-hop code. Before removing single-step
5653 breakpoints, check whether the thread hit a single-step breakpoint
5654 of another thread. If it did, the trap is not a random signal.
5655 (switch_back_to_stepped_thread): If the event thread hit a
5656 single-step breakpoint, unblock it before switching to the
5657 stepping thread. Handle the case of the stepped thread having
5659 (keep_going): Handle the case of the current thread moving past a
5660 single-step breakpoint.
5662 2014-03-20 Pedro Alves <palves@redhat.com>
5665 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5666 are being stepped over.
5667 (breakpoint_address_match): Make extern.
5668 * breakpoint.h (breakpoint_address_match): New declaration.
5669 * inferior.h (stepping_past_instruction_at): New declaration.
5670 * infrun.c (struct step_over_info): New type.
5671 (step_over_info): New global.
5672 (set_step_over_info, clear_step_over_info)
5673 (stepping_past_instruction_at): New functions.
5674 (handle_inferior_event): Clear the step-over info when
5675 trap_expected is cleared.
5676 (resume): Remove now stale comment.
5677 (clear_proceed_status): Clear step-over info.
5678 (proceed): Adjust step-over handling to set or clear the step-over
5679 info instead of removing all breakpoints.
5680 (handle_signal_stop): When setting up a thread-hop, don't remove
5682 (stop_stepping): Clear step-over info.
5683 (keep_going): Adjust step-over handling to set or clear step-over
5684 info and then always inserting breakpoints, instead of removing
5685 all breakpoints when stepping over one.
5687 2014-03-20 Pedro Alves <palves@redhat.com>
5689 * infrun.c (previous_inferior_ptid): Adjust comment.
5690 (deferred_step_ptid): Delete.
5691 (infrun_thread_ptid_changed, prepare_to_proceed)
5692 (init_wait_for_inferior): Adjust.
5693 (handle_signal_stop): Delete deferred_step_ptid handling.
5695 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5698 * defs.h (sync_quit_force_run): New declaration.
5699 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5700 * event-top.c (async_sigterm_handler): New declaration.
5701 (async_sigterm_token): New variable.
5702 (async_init_signals): Create also async_sigterm_token.
5703 (async_sigterm_handler): New function.
5704 (sync_quit_force_run): New variable.
5705 (handle_sigterm): Replace quit_force call by other calls.
5706 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5708 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5710 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5711 offset into SPE pseudo registers.
5713 2014-03-18 Pedro Alves <palves@redhat.com>
5716 * inferior.h (print_stop_event): Declare.
5717 * infrun.c (print_stop_event): New, factored out from ...
5718 (normal_stop): ... this.
5719 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5720 of bpstat_print/print_stack_frame.
5722 2014-03-17 Tom Tromey <tromey@redhat.com>
5724 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5726 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5728 * ada-lang.c (decode_constrained_packed_array): Perform a
5729 minimal coercion for reference with coerce_ref instead of
5732 2014-03-17 Tristan Gingold <gingold@adacore.com>
5734 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5735 (darwin_solib_create_inferior_hook): Emit a warning if version
5738 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
5740 * python/py-value.c (get_field_flag): Cast flag_name argument to
5741 PyObject_GetAttrString to support Python 2.4.
5743 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5745 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5746 (Global Maintainers): Remove Jan Kratochvil.
5748 2014-03-14 Pedro Alves <palves@redhat.com>
5750 * inferior.h (terminal_ours_for_output): Rename to ...
5751 (child_terminal_ours_for_output): ... this.
5752 (terminal_save_ours): Rename to ...
5753 (child_terminal_save_ours): ... this.
5754 (terminal_ours): Rename to ...
5755 (child_terminal_ours): ... this.
5756 (terminal_inferior): Rename to ...
5757 (child_terminal_inferior): ... this.
5758 (terminal_init_inferior): Rename to ...
5759 (child_terminal_init_inferior): ... this.
5760 (terminal_init_inferior_with_pgrp): Rename to ...
5761 (child_terminal_init_inferior_with_pgrp): ... this.
5762 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5763 (child_terminal_init_with_pgrp): ... this.
5764 (terminal_save_ours): Rename to ...
5765 (child_terminal_save_ours): ... this.
5766 (terminal_init_inferior): Rename to ...
5767 (child_terminal_init): ... this. Adjust.
5768 (terminal_inferior): Rename to ...
5769 (child_terminal_inferior): ... this.
5770 (terminal_ours_for_output): Rename to ...
5771 (child_terminal_ours_for_output): ... this. Adjust.
5772 (terminal_ours): Rename to ...
5773 (child_terminal_ours): ... this.
5774 (terminal_ours_1): Rename to ...
5775 (child_terminal_ours_1): ... this. Adjust.
5776 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5777 * windows-nat.c (do_initial_windows_stuff): Adjust.
5778 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5779 (gnu_terminal_init): ... this. Adjust.
5780 (gnu_target): Adjust.
5781 * inf-child.c (inf_child_target): Adjust.
5783 2014-03-13 Doug Evans <xdje42@gmail.com>
5786 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5789 2014-03-13 Doug Evans <xdje42@gmail.com>
5791 * value.c (record_latest_value): Call release_value_or_incref
5792 instead of release_value.
5794 2014-03-13 Pedro Alves <palves@redhat.com>
5796 * procfs.c (procfs_target): Don't override to_shortname,
5797 to_longname or to_doc.
5799 2014-03-13 Pedro Alves <palves@redhat.com>
5801 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5802 Unix in user visible strings.
5804 2014-03-12 Stan Shebs <stan@codesourcery.com>
5806 * gdbtypes.h: Annotate comments for Doxygen, add a page
5807 block comment with some general info.
5809 2014-03-12 Pedro Alves <palves@redhat.com>
5811 * infcmd.c (prepare_execution_command): New function, factored out
5812 from several execution commands.
5813 (run_command_1, continue_command, step_1, jump_command)
5814 (signal_command, until_command, advance_command, finish_command)
5815 (attach_command): Use prepare_execution_command.
5817 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5819 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5822 (struct arm_linux_thread_points): Removed.
5823 (struct arm_linux_process_info): New.
5824 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5825 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5826 (arm_linux_find_breakpoints_by_tid): Removed.
5827 (struct arch_lwp_info): New.
5828 (arm_linux_find_process_pid): New functions.
5829 (arm_linux_add_process): New functions.
5830 (arm_linux_process_info_get): New functions.
5831 (arm_linux_forget_process): New function.
5832 (arm_linux_get_debug_reg_state): New function.
5833 (struct update_registers_data): New.
5834 (update_registers_callback): New function.
5835 (arm_linux_insert_hw_breakpoint1): Updated.
5836 (arm_linux_remove_hw_breakpoint1): Updated.
5837 (arm_linux_insert_hw_breakpoint): Updated.
5838 (arm_linux_remove_hw_breakpoint): Updated.
5839 (arm_linux_insert_watchpoint): Updated.
5840 (arm_linux_remove_watchpoint): Updated.
5841 (arm_linux_new_thread): Updated.
5842 (arm_linux_prepare_to_resume): New function.
5843 (arm_linux_new_fork): New function.
5844 (_initialize_arm_linux_nat): Updated.
5846 2014-03-12 Pedro Alves <palves@redhat.com>
5848 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5850 2014-03-12 Tom Tromey <tromey@redhat.com>
5852 * inf-child.c (return_zero): New function.
5853 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5854 * aix-thread.c (aix_thread_inferior_created): New function.
5855 (aix_thread_attach): Remove.
5856 (init_aix_thread_ops): Don't set to_attach.
5857 (_initialize_aix_thread): Register inferior_created observer.
5858 * corelow.c (init_core_ops): Don't set to_attach or
5860 * exec.c (init_exec_ops): Don't set to_attach or
5862 * infcmd.c (run_command_1): Use find_run_target. Make direct
5864 (attach_command): Use find_attach_target. Make direct target
5866 * record-btrace.c (init_record_btrace_ops): Don't set
5868 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5870 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5871 set to_create_inferior.
5872 * target.c (complete_target_initialization): Add assertion.
5873 (target_create_inferior): Remove.
5874 (find_default_attach, find_default_create_inferior): Remove.
5875 (find_attach_target, find_run_target): New functions.
5876 (find_default_is_async_p, find_default_can_async_p)
5877 (target_supports_non_stop, target_attach): Remove.
5878 (init_dummy_target): Don't set to_create_inferior or
5879 to_supports_non_stop.
5880 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5881 TARGET_DEFAULT_FUNC.
5882 <to_create_inferior>: Add comment.
5883 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5884 TARGET_DEFAULT_RETURN.
5885 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5886 (find_attach_target, find_run_target): Declare.
5887 (target_create_inferior): Remove.
5888 (target_has_execution_1): Update comment.
5889 (target_supports_non_stop): Remove.
5890 * target-delegates.c: Rebuild.
5892 2014-03-12 Pedro Alves <palves@redhat.com>
5894 * inf-child.h: Update comment to not mention Unix.
5896 2014-03-12 Pedro Alves <palves@redhat.com>
5898 * inf-child.c: Update top comment to not mention Unix. Add
5899 generic comment describing how this target is meant to be used.
5900 (inf_child_post_attach, inf_child_post_startup_inferior)
5901 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5904 2014-03-12 Pedro Alves <palves@redhat.com>
5906 * nto-procfs.c: Include inf-child.h.
5907 (procfs_ops): Delete global.
5908 (procfs_can_run): Delete method.
5909 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5910 target pointer instead of referencing procfs_ops.
5911 (procfs_prepare_to_store): Delete.
5912 (init_procfs_ops): Delete function.
5913 (procfs_target): New function, based on init_procfs_ops, but
5914 inherit inf_child_target.
5915 (_initialize_procfs): Use procfs_target.
5917 2014-03-12 Pedro Alves <palves@redhat.com>
5919 * windows-nat.c: Include inf-child.h.
5920 (windows_ops): Delete global.
5921 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5923 (init_windows_ops): Delete function.
5924 (windows_target): New function, based on init_windows_ops, but
5925 inherit inf_child_target.
5926 (_initialize_windows_nat): Use windows_target. Install x86
5927 specific target methods here.
5929 2014-03-10 Doug Evans <xdje42@gmail.com>
5931 * guile/guile.c (call_initialize_gdb_module): New function.
5932 (initialize_guile): Replace call to scm_init_guile with call to
5935 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5937 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5938 in call to TYPE_CODE macro.
5940 2014-03-10 Jerome Guitton <guitton@adacore.com>
5942 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5943 Resolve tagged types to full view.
5945 2014-03-10 Hui Zhu <hui@codesourcery.com>
5947 * target.h (target_insert_breakpoint): Remove "hardware" from its
5950 2014-03-07 Doug Evans <dje@google.com>
5952 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5954 2014-03-07 Doug Evans <dje@google.com>
5956 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5957 Remove unused local comp_dir_attr. Assert exactly one of
5958 stub_comp_unit_die, stub_comp_dir is non-NULL.
5960 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5962 * target.h (complete_target_initialization, add_target):
5965 2014-03-07 Pedro Alves <palves@redhat.com>
5967 * go32-nat.c: Include inf-child.h.
5968 (go32_ops): Delete global.
5969 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5971 (go32_create_inferior): Push the passed in target pointer instead
5972 of referencing go32_ops.
5973 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5974 (go32_target): New function, based on init_go32_ops, but inherit
5976 (_initialize_go32_nat): Use go32_target. Move parts of
5979 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5981 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5982 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5983 SYMBOL_VALUE_ADDRESS.
5984 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5986 2014-03-06 Yao Qi <yao@codesourcery.com>
5988 * breakpoint.c (get_tracepoint_by_number): Remove argument
5989 optional_p. All callers updated. Adjust comments. Update
5991 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5993 2014-03-06 Yao Qi <yao@codesourcery.com>
5995 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5996 early if get_number returns zero. Use 'p' instead of 'args'.
5998 2014-03-06 Yao Qi <yao@codesourcery.com>
6000 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6003 2014-03-06 Yao Qi <yao@codesourcery.com>
6005 PR breakpoints/16508
6006 * tracepoint.c (check_trace_running): New function.
6007 (trace_find_command): Move code to check_trace_running and
6008 call check_trace_running.
6009 (trace_find_pc_command): Likewise.
6010 (trace_find_tracepoint_command): Likewise.
6011 (trace_find_line_command): Likewise.
6012 (trace_find_range_command): Likewise.
6013 * tracepoint.h (check_trace_running): Likewise.
6014 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6016 2014-03-06 Yao Qi <yao@codesourcery.com>
6018 * target.h (struct target_ops) <to_traceframe_info>: Use
6019 TARGET_DEFAULT_NORETURN (tcomplain ()).
6020 * target-delegates.c: Regenerated.
6022 2014-03-05 Pedro Alves <palves@redhat.com>
6025 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6026 void. Update comment.
6027 (dcache_xfer_memory): Delete.
6028 (dcache_read_memory_partial): New, based on the read bits of
6030 (dcache_update): Add status parameter. Use ULONGEST for len, and
6031 adjust. Discard cache lines if the reason for the update was
6033 * dcache.h (dcache_xfer_memory): Delete declaration.
6034 (dcache_read_memory_partial): New declaration.
6035 (dcache_update): Update prototype.
6036 * target.c (raw_memory_xfer_partial): Update the dcache here.
6037 (memory_xfer_partial_1): Don't handle dcache writes here.
6039 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6041 * remote-sim.c (gdbsim_load): Add const to prog.
6043 2014-03-03 Tom Tromey <tromey@redhat.com>
6045 * elfread.c (probe_key): Change to bfd_data.
6046 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6047 now per-BFD, not per-objfile.
6048 * stap-probe.c (stap_probe_destroy): Update comment.
6049 (handle_stap_probe): Allocate on the per-BFD obstack.
6051 2014-03-03 Tom Tromey <tromey@redhat.com>
6053 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6054 * breakpoint.c (create_longjmp_master_breakpoint): Use
6056 (add_location_to_breakpoint, bkpt_probe_insert_location)
6057 (bkpt_probe_remove_location): Update.
6058 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6059 * elfread.c (elf_symfile_relocate_probe): Remove.
6060 (elf_probe_fns): Update.
6061 (insert_exception_resume_breakpoint): Change type of "probe"
6062 parameter to bound_probe.
6063 (check_exception_resume): Update.
6064 * objfiles.c (objfile_relocate1): Don't relocate probes.
6065 * probe.c (bound_probe_s): New typedef.
6066 (parse_probes): Use get_probe_address. Set sal's objfile.
6067 (find_probe_by_pc): Return a bound_probe.
6068 (collect_probes): Return a VEC(bound_probe_s).
6069 (compare_probes): Update.
6070 (gen_ui_out_table_header_info): Change type of "probes"
6072 (info_probes_for_ops): Update.
6073 (get_probe_address): New function.
6074 (probe_safe_evaluate_at_pc): Update.
6075 * probe.h (struct probe_ops) <get_probe_address>: New field.
6076 <set_semaphore, clear_semaphore>: Add objfile parameter.
6077 (struct probe) <objfile>: Remove field.
6079 <address>: Update comment.
6080 (struct bound_probe): New.
6081 (find_probe_by_pc): Return a bound_probe.
6082 (get_probe_address): Declare.
6083 * solib-svr4.c (struct probe_and_action) <address>: New field.
6084 (hash_probe_and_action, equal_probe_and_action): Update.
6085 (register_solib_event_probe): Add address parameter.
6086 (solib_event_probe_at): Update.
6087 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6089 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6090 (stap_get_probe_address): New function.
6091 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6092 (compile_probe_arg): Update.
6093 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6095 (handle_stap_probe): Don't relocate the probe.
6096 (stap_relocate): Remove.
6097 (stap_gen_info_probes_table_values): Update.
6098 (stap_probe_ops): Remove stap_relocate.
6099 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6100 (debug_sym_probe_fns): Update.
6101 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6102 * symtab.c (init_sal): Use memset.
6103 * symtab.h (struct symtab_and_line) <objfile>: New field.
6104 * tracepoint.c (start_tracing, stop_tracing): Update.
6106 2014-03-03 Tom Tromey <tromey@redhat.com>
6108 * probe.h (parse_probes, find_probe_by_pc)
6109 (find_probes_in_objfile): Fix comments.
6111 2014-03-02 Doug Evans <xdje42@gmail.com>
6113 * infrun.c (handle_signal_stop): Replace test for
6114 TARGET_WAITKIND_STOPPED with an assert.
6116 2014-03-02 Doug Evans <xdje42@gmail.com>
6118 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6120 2014-03-02 Doug Evans <xdje42@gmail.com>
6122 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6124 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6126 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6128 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6130 * i386obsd-nat.c: Include "obsd-nat.h".
6131 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6133 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6135 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6137 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6139 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6141 * mips64obsd-nat.c: Include "obsd-nath".
6142 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6144 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6146 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6148 * amd64obsd-nat.c: Include "obsd-nat,h.
6149 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6151 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6153 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6155 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6156 (find_overload_match): Update call to find_oload_champ.
6157 (find_oload_champ_namespace_loop): Likewise
6159 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6161 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6163 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6164 * config/sparc/obsd64.mh: New file.
6165 * sparc64obsd-nat.c: New file.
6167 * obsd-nat.h: New file.
6168 * obsd-nat.c: New file.
6169 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6170 (ALLDEPFILES): Add obsd-nat.c.
6172 2014-02-28 Tom Tromey <tromey@redhat.com>
6174 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6175 * cli-out.h (cli_ui_out_impl): Now const.
6176 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6177 * ui-out.c (struct ui_out) <impl>: Now const.
6178 (default_ui_out_impl): Now const.
6179 (ui_out_new): Make 'impl' parameter const.
6180 * ui-out.h (ui_out_new): Update.
6182 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6184 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6186 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6188 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6190 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6192 Additional PR 8882 fix.
6193 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6195 2014-02-27 Pedro Alves <palves@redhat.com>
6197 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6200 2014-02-27 Pedro Alves <palves@redhat.com>
6203 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6204 * nat/linux-waitpid.c: Include string.h.
6205 (status_to_str): Moved here and made extern.
6206 * nat/linux-waitpid.h (status_to_str): New declaration.
6208 2014-02-27 Hui Zhu <hui@codesourcery.com>
6211 * infrun.c (ptid_match): Move ...
6212 * common/ptid.c (ptid_match): ... here.
6213 * inferior.h (ptid_match): Move ...
6214 * common/ptid.h (ptid_match): ... here.
6216 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6218 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6219 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6222 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6224 * obsd-tdep.c (obsd_auxv_parse): New function.
6225 (obsd_init_abi): Set auxv_parse.
6227 * gdbarch.sh (auxv_parse): New.
6228 * gdbarch.h: Regenerated.
6229 * gdbarch.c: Regenerated.
6230 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6232 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6234 * guile/scm-value.c (gdbscm_history_append_x): New function.
6235 (value_functions): Add it.
6237 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6239 * dwarf2read.c (attr_value_as_address): New function.
6240 (dwarf2_find_base_address, read_call_site_scope): Use
6241 attr_value_as_address in place of DW_ADDR.
6242 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6243 the low and high addresses. Slight rework of the handling
6244 of the high pc being a constant form, and limit it to
6245 DWARF verson 4 or higher.
6246 (dwarf2_record_block_ranges): Likewise.
6247 (read_partial_die): Likewise.
6248 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6250 2014-02-26 Tom Tromey <tromey@redhat.com>
6252 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6254 2014-02-26 Tom Tromey <tromey@redhat.com>
6256 * elfread.c (elf_read_minimal_symbols): Return early if
6257 minimal symbols have already been read. Add "ei" parameter.
6258 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6259 * minsyms.c (prim_record_minimal_symbol_full): Update.
6260 * objfiles.h (struct objstats) <n_minsyms>: Move...
6261 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6262 * symmisc.c (print_objfile_statistics): Update.
6264 2014-02-26 Tom Tromey <tromey@redhat.com>
6266 * elfread.c (elf_read_minimal_symbols): New function, from
6268 (elf_symfile_read): Call it.
6270 2014-02-26 Tom Tromey <tromey@redhat.com>
6272 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6273 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6274 (lookup_minimal_symbol_solib_trampoline)
6275 (lookup_minimal_symbol_by_pc_section_1)
6276 (lookup_minimal_symbol_and_objfile): Update.
6277 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6278 Don't allocate a minimal symbol if minsyms have already been read.
6279 (build_minimal_symbol_hash_tables): Update.
6280 (install_minimal_symbols): Do nothing if minsyms already read.
6281 Use the per-BFD obstack.
6282 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6283 * objfiles.c (allocate_objfile): Call
6284 terminate_minimal_symbol_table later.
6285 (have_minimal_symbols): Update.
6286 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6287 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6288 Move from struct objfile.
6289 <minsyms_read>: New field.
6290 (struct objfile) <msymbols, minimal_symbol_count,
6291 msymbol_hash, msymbol_demangled_hash>: Move.
6292 (ALL_OBJFILE_MSYMBOLS): Update.
6293 * symfile.c (read_symbols): Set minsyms_read.
6294 (reread_symbols): Update.
6295 * symmisc.c (dump_objfile, dump_msymbols): Update.
6297 2014-02-26 Tom Tromey <tromey@redhat.com>
6299 * minsyms.c (msymbols_sort): Remove.
6300 * minsyms.h (msymbols_sort): Remove.
6301 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6302 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6303 * elfread.c (elf_symtab_read): Don't add section offsets.
6304 * xcoffread.c (record_minimal_symbol): Don't add section offset
6305 to minimal symbol address.
6306 * somread.c (text_offset, data_offset): Remove.
6307 (som_symtab_read): Don't add section offsets to minimal symbol
6309 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6310 Don't add section offsets to minimal symbols.
6311 * coffread.c (coff_symtab_read): Don't add section offsets
6312 to minimal symbol addresses.
6313 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6314 to minimal symbol addresses.
6315 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6316 section offset to minimal symbol addresses.
6317 * mdebugread.c (parse_partial_symbols): Don't add section
6318 offset to minimal symbol addresses.
6319 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6320 offset to minimal symbol addresses.
6322 2014-02-26 Tom Tromey <tromey@redhat.com>
6324 * ada-lang.c (ada_main_name): Update.
6325 (ada_add_standard_exceptions): Update.
6326 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6327 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6328 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6329 * auxv.c (ld_so_xfer_auxv): Update.
6330 * avr-tdep.c (avr_scan_prologue): Update.
6331 * ax-gdb.c (gen_var_ref): Update.
6332 * blockframe.c (get_pc_function_start)
6333 (find_pc_partial_function_gnu_ifunc): Update.
6334 * breakpoint.c (create_overlay_event_breakpoint)
6335 (create_longjmp_master_breakpoint)
6336 (create_std_terminate_master_breakpoint)
6337 (create_exception_master_breakpoint): Update.
6338 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6339 * c-valprint.c (c_val_print): Update.
6340 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6341 * common/agent.c (agent_look_up_symbols): Update.
6342 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6343 * dwarf2loc.c (call_site_to_target_addr): Update.
6344 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6345 * elfread.c (elf_gnu_ifunc_record_cache)
6346 (elf_gnu_ifunc_resolve_by_got): Update.
6347 * findvar.c (default_read_var_value): Update.
6348 * frame.c (inside_main_func): Update.
6349 * frv-tdep.c (frv_frame_this_id): Update.
6350 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6351 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6353 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6354 (hppa_hpux_find_dummy_bpaddr): Update.
6355 * hppa-tdep.c (hppa_symbol_address): Update.
6356 * infcmd.c (until_next_command): Update.
6357 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6359 * linespec.c (minsym_found, add_minsym): Update.
6360 * linux-nat.c (get_signo): Update.
6361 * linux-thread-db.c (inferior_has_bug): Update.
6362 * m32c-tdep.c (m32c_return_value)
6363 (m32c_m16c_address_to_pointer): Update.
6364 * m32r-tdep.c (m32r_frame_this_id): Update.
6365 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6366 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6367 * maint.c (maintenance_translate_address): Update.
6368 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6369 (frob_address): New function.
6370 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6371 frob_address. Rename parameter to "pc_in".
6372 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6374 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6376 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6377 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6378 * objc-lang.c (find_objc_msgsend): Update.
6379 * objfiles.c (objfile_relocate1): Update.
6380 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6381 * p-valprint.c (pascal_val_print): Update.
6382 * parse.c (write_exp_msymbol): Update.
6383 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6384 (ppc_elfv2_skip_entrypoint): Update.
6385 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6386 * printcmd.c (build_address_symbolic, msym_info)
6387 (address_info): Update.
6388 * proc-service.c (ps_pglobal_lookup): Update.
6389 * psymtab.c (find_pc_sect_psymtab_closer)
6390 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6391 Change msymbol parameter to bound_minimal_symbol.
6392 * ravenscar-thread.c (get_running_thread_id): Update.
6393 * remote.c (remote_check_symbols): Update.
6394 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6396 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6397 * solib-dsbt.c (lm_base): Update.
6398 * solib-frv.c (lm_base, main_got): Update.
6399 * solib-irix.c (locate_base): Update.
6400 * solib-som.c (som_solib_create_inferior_hook)
6401 (link_map_start): Update.
6402 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6403 * solib-svr4.c (elf_locate_base, enable_break): Update.
6404 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6405 (flush_ea_cache): Update.
6406 * stabsread.c (define_symbol, scan_file_globals): Update.
6407 * stack.c (find_frame_funname): Update.
6408 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6409 (debug_qf_find_pc_sect_symtab): Update.
6410 * symfile.c (simple_read_overlay_table)
6411 (simple_overlay_update): Update.
6412 * symfile.h (struct quick_symbol_functions)
6413 <find_pc_sect_symtab>: Change type of msymbol to
6414 bound_minimal_symbol.
6415 * symmisc.c (dump_msymbols): Update.
6416 * symtab.c (find_pc_sect_symtab_via_partial)
6417 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6418 (search_symbols, print_msymbol_info): Update.
6419 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6420 (MSYMBOL_VALUE_ADDRESS): Redefine.
6421 (BMSYMBOL_VALUE_ADDRESS): New macro.
6422 * tracepoint.c (scope_info): Update.
6423 * tui/tui-disasm.c (tui_find_disassembly_address)
6424 (tui_get_begin_asm_address): Update.
6425 * valops.c (find_function_in_inferior): Update.
6426 * value.c (value_static_field, value_fn_field): Update.
6428 2014-02-26 Tom Tromey <tromey@redhat.com>
6430 * ada-lang.c (ada_update_initial_language): Update.
6431 (ada_main_name, ada_has_this_exception_support): Update.
6432 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6433 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6434 * arm-tdep.c (arm_skip_stub): Update.
6435 * auxv.c (ld_so_xfer_auxv): Update.
6436 * avr-tdep.c (avr_scan_prologue): Update.
6437 * ax-gdb.c (gen_var_ref): Update.
6438 * breakpoint.c (struct breakpoint_objfile_data)
6439 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6440 type to bound_minimal_symbol.
6441 (create_overlay_event_breakpoint)
6442 (create_longjmp_master_breakpoint)
6443 (create_std_terminate_master_breakpoint)
6444 (create_exception_master_breakpoint): Update.
6445 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6446 * c-exp.y (classify_name): Update.
6447 * coffread.c (coff_symfile_read): Update.
6448 * common/agent.c (agent_look_up_symbols): Update.
6449 * d-lang.c (d_main_name): Update.
6450 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6451 * dec-thread.c (enable_dec_thread): Update.
6452 * dwarf2loc.c (call_site_to_target_addr): Update.
6453 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6454 * eval.c (evaluate_subexp_standard): Update.
6455 * findvar.c (struct minsym_lookup_data) <result>: Change type
6456 to bound_minimal_symbol.
6458 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6459 * frame.c (inside_main_func): Update.
6460 * frv-tdep.c (frv_frame_this_id): Update.
6461 * gcore.c (call_target_sbrk): Update.
6462 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6463 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6465 * go-lang.c (go_main_name): Update.
6466 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6467 (hppa_hpux_find_import_stub_for_addr): Update.
6468 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6469 Update. Change return type.
6470 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6472 * jit.c (jit_breakpoint_re_set_internal): Update.
6473 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6475 * linux-nat.c (get_signo): Update.
6476 * linux-thread-db.c (inferior_has_bug): Update
6477 * m32c-tdep.c (m32c_return_value)
6478 (m32c_m16c_address_to_pointer): Update.
6479 * m32r-tdep.c (m32r_frame_this_id): Update.
6480 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6481 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6482 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6483 lookup_minimal_symbol. Change return type.
6484 (lookup_minimal_symbol): Remove.
6485 (lookup_bound_minimal_symbol): Update.
6486 (lookup_minimal_symbol_text): Change return type.
6487 (lookup_minimal_symbol_solib_trampoline): Change return type.
6488 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6489 (lookup_minimal_symbol_solib_trampoline): Change return type.
6490 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6491 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6492 (value_nsstring, find_imps): Update.
6493 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6494 * p-lang.c (pascal_main_name): Update.
6495 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6496 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6497 * proc-service.c (ps_pglobal_lookup): Update.
6498 * ravenscar-thread.c (get_running_thread_msymbol): Change
6500 (has_ravenscar_runtime, get_running_thread_id): Update.
6501 * remote.c (remote_check_symbols): Update.
6502 * sol-thread.c (ps_pglobal_lookup): Update.
6503 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6504 * solib-dsbt.c (lm_base): Update.
6505 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6507 * solib-irix.c (locate_base): Update.
6508 * solib-som.c (som_solib_create_inferior_hook)
6509 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6511 * solib-spu.c (spu_enable_break): Update.
6512 * solib-svr4.c (elf_locate_base, enable_break): Update.
6513 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6514 (flush_ea_cache): Update.
6515 * stabsread.c (define_symbol): Update.
6516 * symfile.c (simple_read_overlay_table): Update.
6517 * symtab.c (find_pc_sect_line): Update.
6518 * tracepoint.c (scope_info): Update.
6519 * tui-disasm.c (tui_get_begin_asm_address): Update.
6520 * value.c (value_static_field): Update.
6522 2014-02-26 Tom Tromey <tromey@redhat.com>
6524 * minsyms.c (prim_record_minimal_symbol_full): Use
6525 SET_MSYMBOL_VALUE_ADDRESS.
6526 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6527 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6528 SET_MSYMBOL_VALUE_ADDRESS.
6529 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6530 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6532 2014-02-26 Tom Tromey <tromey@redhat.com>
6534 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6535 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6536 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6537 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6538 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6539 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6540 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6541 * ada-lang.c (ada_main_name): Update.
6542 (ada_lookup_simple_minsym): Update.
6543 (ada_make_symbol_completion_list): Update.
6544 (ada_add_standard_exceptions): Update.
6545 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6546 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6547 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6548 * arm-tdep.c (skip_prologue_function): Update.
6549 (arm_skip_stack_protector, arm_skip_stub): Update.
6550 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6551 (arm_wince_skip_main_prologue): Update.
6552 * auxv.c (ld_so_xfer_auxv): Update.
6553 * avr-tdep.c (avr_scan_prologue): Update.
6554 * ax-gdb.c (gen_var_ref): Update.
6555 * block.c (call_site_for_pc): Update.
6556 * blockframe.c (get_pc_function_start): Update.
6557 (find_pc_partial_function_gnu_ifunc): Update.
6558 * breakpoint.c (create_overlay_event_breakpoint): Update.
6559 (create_longjmp_master_breakpoint): Update.
6560 (create_std_terminate_master_breakpoint): Update.
6561 (create_exception_master_breakpoint): Update.
6562 (resolve_sal_pc): Update.
6563 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6564 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6566 * c-valprint.c (c_val_print): Update.
6567 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6568 * coffread.c (coff_symfile_read): Update.
6569 * common/agent.c (agent_look_up_symbols): Update.
6570 * dbxread.c (find_stab_function_addr): Update.
6571 (end_psymtab): Update.
6572 * dwarf2loc.c (call_site_to_target_addr): Update.
6573 (func_verify_no_selftailcall): Update.
6574 (tailcall_dump): Update.
6575 (call_site_find_chain_1): Update.
6576 (dwarf_expr_reg_to_entry_parameter): Update.
6577 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6578 (elf_gnu_ifunc_resolve_by_got): Update.
6579 * f-valprint.c (info_common_command): Update.
6580 * findvar.c (read_var_value): Update.
6581 * frame.c (get_prev_frame_1): Update.
6582 (inside_main_func): Update.
6583 * frv-tdep.c (frv_skip_main_prologue): Update.
6584 (frv_frame_this_id): Update.
6585 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6586 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6587 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6588 (gnuv3_skip_trampoline): Update.
6589 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6590 (hppa64_hpux_in_solib_call_trampoline): Update.
6591 (hppa_hpux_skip_trampoline_code): Update.
6592 (hppa64_hpux_search_dummy_call_sequence): Update.
6593 (hppa_hpux_find_import_stub_for_addr): Update.
6594 (hppa_hpux_find_dummy_bpaddr): Update.
6595 * hppa-tdep.c (hppa_symbol_address)
6596 (hppa_lookup_stub_minimal_symbol): Update.
6597 * i386-tdep.c (i386_skip_main_prologue): Update.
6598 (i386_pe_skip_trampoline_code): Update.
6599 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6600 * infcall.c (get_function_name): Update.
6601 * infcmd.c (until_next_command): Update.
6602 * jit.c (jit_breakpoint_re_set_internal): Update.
6603 (jit_inferior_init): Update.
6604 * linespec.c (minsym_found): Update.
6605 (add_minsym): Update.
6606 * linux-fork.c (info_checkpoints_command): Update.
6607 * linux-nat.c (get_signo): Update.
6608 * linux-thread-db.c (inferior_has_bug): Update.
6609 * m32c-tdep.c (m32c_return_value): Update.
6610 (m32c_m16c_address_to_pointer): Update.
6611 (m32c_m16c_pointer_to_address): Update.
6612 * m32r-tdep.c (m32r_frame_this_id): Update.
6613 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6614 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6615 * maint.c (maintenance_translate_address): Update.
6616 * minsyms.c (add_minsym_to_hash_table): Update.
6617 (add_minsym_to_demangled_hash_table): Update.
6618 (msymbol_objfile): Update.
6619 (lookup_minimal_symbol): Update.
6620 (iterate_over_minimal_symbols): Update.
6621 (lookup_minimal_symbol_text): Update.
6622 (lookup_minimal_symbol_by_pc_name): Update.
6623 (lookup_minimal_symbol_solib_trampoline): Update.
6624 (lookup_minimal_symbol_by_pc_section_1): Update.
6625 (lookup_minimal_symbol_and_objfile): Update.
6626 (prim_record_minimal_symbol_full): Update.
6627 (compare_minimal_symbols): Update.
6628 (compact_minimal_symbols): Update.
6629 (build_minimal_symbol_hash_tables): Update.
6630 (install_minimal_symbols): Update.
6631 (terminate_minimal_symbol_table): Update.
6632 (find_solib_trampoline_target): Update.
6633 (minimal_symbol_upper_bound): Update.
6634 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6635 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6636 (mips_skip_pic_trampoline_code): Update.
6637 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6638 * objc-lang.c (selectors_info): Update.
6639 (classes_info): Update.
6640 (find_methods): Update.
6641 (find_imps): Update.
6642 (find_objc_msgsend): Update.
6643 * objfiles.c (objfile_relocate1): Update.
6644 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6645 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6646 * p-valprint.c (pascal_val_print): Update.
6647 * parse.c (write_exp_msymbol): Update.
6648 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6649 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6650 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6651 * printcmd.c (build_address_symbolic): Update.
6653 (address_info): Update.
6654 * proc-service.c (ps_pglobal_lookup): Update.
6655 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6656 (find_pc_sect_psymtab): Update.
6657 * python/py-framefilter.c (py_print_frame): Update.
6658 * ravenscar-thread.c (get_running_thread_id): Update.
6659 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6661 * remote.c (remote_check_symbols): Update.
6662 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6663 (rs6000_skip_trampoline_code): Update.
6664 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6665 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6666 * solib-dsbt.c (lm_base): Update.
6667 * solib-frv.c (lm_base): Update.
6669 * solib-irix.c (locate_base): Update.
6670 * solib-som.c (som_solib_create_inferior_hook): Update.
6671 (som_solib_desire_dynamic_linker_symbols): Update.
6672 (link_map_start): Update.
6673 * solib-spu.c (spu_enable_break): Update.
6674 (ocl_enable_break): Update.
6675 * solib-svr4.c (elf_locate_base): Update.
6676 (enable_break): Update.
6677 * spu-tdep.c (spu_get_overlay_table): Update.
6678 (spu_catch_start): Update.
6679 (flush_ea_cache): Update.
6680 * stabsread.c (define_symbol): Update.
6681 (scan_file_globals): Update.
6682 * stack.c (find_frame_funname): Update.
6683 (frame_info): Update.
6684 * symfile.c (simple_read_overlay_table): Update.
6685 (simple_overlay_update): Update.
6686 * symmisc.c (dump_msymbols): Update.
6687 * symtab.c (fixup_section): Update.
6688 (find_pc_sect_line): Update.
6689 (skip_prologue_sal): Update.
6690 (search_symbols): Update.
6691 (print_msymbol_info): Update.
6692 (rbreak_command): Update.
6693 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6694 (completion_list_objc_symbol): Update.
6695 (default_make_symbol_completion_list_break_on): Update.
6696 * tracepoint.c (scope_info): Update.
6697 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6698 (tui_get_begin_asm_address): Update.
6699 * valops.c (find_function_in_inferior): Update.
6700 * value.c (value_static_field): Update.
6701 (value_fn_field): Update.
6703 2014-02-26 Tom Tromey <tromey@redhat.com>
6705 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6706 bound minimal symbols. Move code that knows about minsym
6708 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6710 * minsyms.h (minimal_symbol_upper_bound): Declare.
6711 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6712 minimal_symbol_upper_bound.
6714 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6716 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6717 Use the type's name if its basic type does not have a tag.
6719 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6721 * dwarf2read.c (read_subrange_type): Add comment.
6723 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6725 * dwarf2read.c (update_enumeration_type_from_children): New
6726 function, mostly extracted from process_structure_scope.
6727 (read_enumeration_type): Call update_enumeration_type_from_children.
6728 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6729 and flag_flag_enum fields.
6731 2014-02-26 Pedro Alves <palves@redhat.com>
6733 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6734 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6735 to_xfer_partial method.
6737 2014-02-26 Pedro Alves <palves@redhat.com>
6739 * target.c (complete_target_initialization): Don't install
6740 default_xfer_partial as to_xfer_partial hook.
6742 (update_current_target): Don't INHERIT nor de_fault
6743 deprecated_xfer_memory. Delete de_fault macro.
6744 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6745 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6746 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6749 2014-02-26 Pedro Alves <palves@redhat.com>
6751 * go32-nat.c (my_write_child): New function.
6752 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6753 (go32_xfer_partial): New function.
6754 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6755 Instead install a to_xfer_partial hook.
6757 2014-02-26 Pedro Alves <palves@redhat.com>
6759 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6760 to_xfer_partial helper. Rewrite.
6761 (procfs_xfer_partial): New function.
6762 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6763 Install a to_xfer_partial hook.
6765 2014-02-26 Pedro Alves <palves@redhat.com>
6767 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6768 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6769 (m32r_xfer_partial): New function.
6770 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6771 Install a to_xfer_partial hook.
6773 2014-02-26 Pedro Alves <palves@redhat.com>
6775 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6777 (mips_xfer_partial): New function.
6778 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6779 hook. Install a to_xfer_partial hook.
6781 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6783 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6784 * gdbtypes.c (create_array_type_with_stride): New function,
6785 renaming create_array_type, but with an added parameter
6786 called "bit_stride".
6787 (create_array_type): Re-implement using
6788 create_array_type_with_stride.
6789 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6790 and DW_AT_bit_stride attributes.
6792 2014-02-26 Pedro Alves <palves@redhat.com>
6794 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6795 task-specific breakpoints.
6797 2014-02-25 Pedro Alves <palves@redhat.com>
6799 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6800 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6802 2014-02-25 Stan Shebs <stan@codesourcery.com>
6804 * defs.h: Annotate comments for Doxygen.
6806 2014-02-25 Tom Tromey <tromey@redhat.com>
6808 * target.h (target_ignore): Don't declare.
6809 * target.c (target_ignore): Remove.
6811 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6814 * auto-load.c (auto_load_objfile_script_1): Change filename to
6817 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6819 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6820 documentation. Adjust prototype to match the target_ops
6821 to_xfer_partial method. Adjust implementation accordingly.
6823 2014-02-25 Hui Zhu <hui@codesourcery.com>
6825 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6828 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6830 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6831 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6832 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6833 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6834 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6835 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6836 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6837 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6839 (rl78_register_type): Use a data pointer type for SP and
6840 new pseudo registers mentioned above. Use a 16 bit integer
6841 type for all other register pairs.
6842 (rl78_register_name, rl78_g10_register_name): Update for
6843 new pseudo registers.
6844 (rl78_pseudo_register_read): Likewise.
6845 (rl78_pseudo_register_write): Likewise.
6846 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6847 to the newly added pseudo registers.
6849 2014-02-24 Doug Evans <dje@google.com>
6851 * value.c (record_latest_value): Fix comment.
6852 * printcmd.c (print_command_1): Remove code to handle -1 return from
6853 record_latest_value.
6855 2014-02-24 Pedro Alves <palves@redhat.com>
6857 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6858 deprecated_xfer_memory hook.
6859 (procfs_xfer_partial): Call procfs_xfer_memory instead
6860 of the deprecated_xfer_memory target hook.
6861 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6864 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6866 * windows-nat.c (windows_xfer_shared_libraries): Return
6867 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6868 requested object is TARGET_OBJECT_LIBRARIES.
6870 2014-02-24 Yao Qi <yao@codesourcery.com>
6872 * target.h (enum target_xfer_status)
6873 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6874 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6876 * corefile.c (memory_error_message): User updated.
6877 * exec.c (section_table_read_available_memory): Likewise.
6878 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6879 * target.c (target_xfer_status_to_string): Likewise.
6880 (raw_memory_xfer_partial): Likewise.
6881 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6882 * valops.c (read_value_memory): Likewise.
6883 * exec.h: Update comments.
6885 2014-02-24 Yao Qi <yao@codesourcery.com>
6887 * target.c (target_xfer_status_to_string): Rename argument err
6889 * target.h (target_xfer_status_to_string): Update declaration.
6890 Replace target_xfer_error_to_string with
6891 target_xfer_status_to_string in comment.
6893 2014-02-24 Yao Qi <yao@codesourcery.com>
6895 * mips-linux-nat.c (super_close): Update its type.
6896 (mips_linux_close): Pass 'self' to super_close.
6898 2014-02-24 Yao Qi <yao@codesourcery.com>
6900 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6901 * corefile.c (read_memory): Adjusted.
6902 * target.c (target_write_with_progress): Adjusted.
6904 2014-02-23 Yao Qi <yao@codesourcery.com>
6908 2013-10-25 Yao Qi <yao@codesourcery.com>
6910 * remote.c (remote_traceframe_info): Return early if
6911 traceframe is not selected.
6913 2013-07-19 Yao Qi <yao@codesourcery.com>
6915 * target.c (update_current_target): Change the default action
6916 of 'to_traceframe_info' from tcomplain to return_zero.
6917 * target.h (struct target_ops) <to_traceframe_info>: Add more
6920 2014-02-23 Yao Qi <yao@codesourcery.com>
6922 * valops.c (read_value_memory): Rewrite it. Call
6923 target_xfer_partial in a loop.
6924 * exec.h (section_table_available_memory): Remove declaration.
6925 Move comments to ...
6926 * exec.c (section_table_available_memory): ... here. Make it
6929 2014-02-23 Yao Qi <yao@codesourcery.com>
6931 * exec.c (section_table_read_available_memory): New function.
6932 * exec.h (section_table_read_available_memory): Declare.
6933 * ctf.c (ctf_xfer_partial): Call
6934 section_table_read_available_memory.
6935 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6937 2014-02-23 Yao Qi <yao@codesourcery.com>
6939 * ctf.c (ctf_xfer_partial): Move code to ...
6940 * exec.c (exec_read_partial_read_only): ... it. New function.
6941 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6942 * tracefile.c: Include "exec.h".
6943 * exec.h (exec_read_partial_read_only): Declare.
6945 2014-02-23 Yao Qi <yao@codesourcery.com>
6947 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6948 (tfile_has_memory): Remove.
6949 (init_tfile_ops): Don't set fields to_has_all_memory and
6950 to_has_memory of tfile_ops.
6951 * tracefile.c (tracefile_has_all_memory): New function.
6952 (tracefile_has_memory): New function.
6953 (init_tracefile_ops): Initialize fields to_has_all_memory and
6954 to_has_memory of 'ops'.
6956 2014-02-23 Yao Qi <yao@codesourcery.com>
6958 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6959 (ctf_thread_alive, ctf_get_trace_status): Remove.
6960 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6962 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6963 (tfile_has_stack, tfile_has_registers): Remove.
6964 (tfile_thread_alive): Remove.
6965 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6967 * tracefile.c (tracefile_has_stack): New function.
6968 (tracefile_has_registers): New function.
6969 (tracefile_thread_alive): New function.
6970 (tracefile_get_trace_status): New function.
6971 (init_tracefile_ops): New function.
6972 * tracefile.h (init_tracefile_ops): Declare.
6974 2014-02-23 Yao Qi <yao@codesourcery.com>
6976 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6977 (O_LARGEFILE): Likewise.
6978 (tfile_ops): Likewise.
6979 (TRACE_HEADER_SIZE): Likewise.
6980 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6981 (cur_data_size): Likewise.
6982 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6983 (tfile_close, tfile_files_info): Likewise.
6984 (tfile_get_trace_status): Likewise.
6985 (tfile_get_tracepoint_status): Likewise.
6986 (tfile_get_traceframe_address): Likewise.
6987 (tfile_trace_find, match_blocktype): Likewise.
6988 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6989 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6990 (tfile_get_trace_state_variable_value): Likewise.
6991 (tfile_has_all_memory, tfile_has_memory): Likewise.
6992 (tfile_has_stack, tfile_has_registers): Likewise.
6993 (tfile_thread_alive, build_traceframe_info): Likewise.
6994 (tfile_traceframe_info, init_tfile_ops): Likewise.
6995 (_initialize_tracepoint): Don't call init_tfile_ops
6996 and add_target_with_completer.
6997 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6998 exec.h, completer.h and filenames.h.
6999 (_initialize_tracefile_tfile): New function.
7001 2014-02-23 Yao Qi <yao@codesourcery.com>
7003 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7005 (HFILES_NO_SRCDIR): Add tracefile.h.
7006 * ctf.c: Include "tracefile.h".
7007 * tracefile.h: New file.
7008 * tracefile.c: New file
7009 * tracefile-tfile.c: New file.
7010 * tracepoint.c: Include "tracefile.h".
7011 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7012 (stop_reason_names): Add const.
7013 (trace_file_writer_xfree): Move it to tracefile.c.
7014 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7015 (trace_save_ctf): Likewise.
7016 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7017 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7018 (tfile_write_header, tfile_write_regblock_type): Likewise.
7019 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7020 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7021 (tfile_write_raw_data, tfile_end): Likewise.
7022 (tfile_trace_file_writer_new): Likewise.
7023 (free_uploaded_tp): Make it extern.
7024 (free_uploaded_tsv): Make it extern.
7025 (_initialize_tracepoint): Move code to register command 'tsave'
7027 * tracepoint.h (stop_reason_names): Declare.
7028 (struct trace_frame_write_ops): Move it to tracefile.h.
7029 (struct trace_file_write_ops): Likewise.
7030 (struct trace_file_writer): Likewise.
7031 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7033 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7038 (get_cores_used_by_process): New parameter num_cores, use it.
7039 (linux_xfer_osdata_processes): Pass num_cores to it.
7040 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7043 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7045 * target.c (memory_xfer_partial): Fix length arg in call to
7046 breakpoint_xfer_memory.
7048 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7051 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7052 number comes after the + or - signs. Adjust length of register
7053 name to be extracted.
7055 2014-02-20 Tom Tromey <tromey@redhat.com>
7057 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7058 (ada_varobj_ops): Mark "extern".
7060 2014-02-20 Tom Tromey <tromey@redhat.com>
7062 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7064 2014-02-20 Doug Evans <xdje42@gmail.com>
7066 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7067 All callers updated.
7068 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7069 All callers updated.
7070 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7071 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7073 2014-02-20 lin zuojian <manjian2006@gmail.com>
7074 Joel Brobecker <brobecker@adacore.com>
7075 Doug Evans <xdje42@gmail.com>
7078 * dwarf2read.c (struct die_info): New member in_process.
7079 (reset_die_in_process): New function.
7080 (process_die): Set it at the start, reset when returning.
7081 (inherit_abstract_dies): Only call process_die if origin_child_die
7082 not already being processed.
7084 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7086 * windows-nat.c (handle_unload_dll): Add function documentation.
7087 (do_initial_windows_stuff): Add comment explaining why we wait
7088 until after inferior initialization has finished before
7089 processing all DLLs.
7091 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7093 * windows-nat.c (get_module_name): Delete.
7094 (windows_get_exec_module_filename): New function, mostly
7095 inspired from get_module_name.
7096 (windows_pid_to_exec_file): Replace call to get_module_name
7097 by call to windows_get_exec_module_filename.
7099 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7101 * windows-nat.c (handle_load_dll): Rewrite this function's
7102 introductory comment. Remove code using get_module_name
7103 to get the DLL's name.
7105 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7107 * windows-nat.c (get_windows_debug_event): Ignore
7108 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7109 if windows_initialization_done == 0.
7110 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7111 Adjust implementation to always load all DLLs.
7112 (do_initial_windows_stuff): Replace call to
7113 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7115 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7117 * windows-nat.c (_initialize_windows_nat): Deprecate the
7118 "dll-symbols" command. Turn the "add-shared-symbol-files"
7119 and "assf" aliases into commands, and deprecate them as well.
7120 * NEWS: Add entry explaining that "dll-symbols" and its two
7121 aliases are now deprecated.
7123 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7125 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7126 new-line in debug string. Remove trailing spaces.
7128 2014-02-19 Stan Shebs <stan@codesourcery.com>
7130 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7132 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7134 * NEWS: Add entry for the new feature
7135 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7138 2014-02-19 Stan Shebs <stan@codesourcery.com>
7140 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7142 2014-02-19 Pedro Alves <palves@redhat.com>
7144 * common/ptid.h (struct ptid): Mention that process_stratum
7145 targets should prefer ptid.lwp.
7147 2014-02-19 Pedro Alves <palves@redhat.com>
7149 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7150 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7151 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7152 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7153 store remote thread ids rather than ptid.tid.
7154 (_initialize_remote): Adjust.
7156 2014-02-19 Tom Tromey <tromey@redhat.com>
7158 * target.c (target_get_unwinder): Rewrite.
7159 (target_get_tailcall_unwinder): Rewrite.
7160 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7161 (record_btrace_to_get_tailcall_unwinder): New function.
7162 (init_record_btrace_ops): Update.
7163 * target.h (struct target_ops) <to_get_unwinder,
7164 to_get_tailcall_unwinder>: Now function pointers. Use
7165 TARGET_DEFAULT_RETURN.
7167 2014-02-19 Tom Tromey <tromey@redhat.com>
7169 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7171 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7173 2014-02-19 Tom Tromey <tromey@redhat.com>
7175 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7177 * target-delegates.c: Rebuild.
7178 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7179 TARGET_DEFAULT_FUNC.
7180 * target.c (default_target_decr_pc_after_break): Rename from
7181 forward_target_decr_pc_after_break. Simplify.
7182 (target_decr_pc_after_break): Rely on delegation.
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target.c (update_current_target): Do not INHERIT to_doc or
7187 to_magic. Do not de_fault to_open or to_close.
7189 2014-02-19 Tom Tromey <tromey@redhat.com>
7191 * gcore.h (objfile_find_memory_regions): Declare.
7192 * gcore.c (objfile_find_memory_regions): No longer static. Add
7194 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7195 * exec.c: Include gcore.h.
7196 (exec_set_find_memory_regions): Remove.
7197 (exec_find_memory_regions): Remove.
7198 (exec_do_find_memory_regions): Remove.
7199 (init_exec_ops): Update.
7200 * defs.h (exec_set_find_memory_regions): Remove.
7202 2014-02-19 Tom Tromey <tromey@redhat.com>
7204 * target-delegates.c: Rebuild.
7205 * target.h (struct target_ops) <to_extra_thread_info,
7206 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7207 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7208 not 0, in TARGET_DEFAULT_RETURN.
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7212 * target.c (complete_target_initialization): Remove casts. Use
7213 return_zero_has_execution.
7214 (return_zero): Add "ignore" argument.
7215 (return_zero_has_execution): New function.
7216 (init_dummy_target): Remove casts. Use
7217 return_zero_has_execution.
7219 2014-02-19 Tom Tromey <tromey@redhat.com>
7221 * target.c (update_current_target): Update comments. Do not
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7226 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7228 * corelow.c (core_read_description): Delegate when needed.
7229 * remote.c (remote_read_description): Delegate when needed.
7230 * target-delegates.c: Rebuild.
7231 * target.c (target_read_description): Rewrite.
7232 * target.h (struct target_ops) <to_read_description>: Update
7233 comment. Use TARGET_DEFAULT_RETURN.
7235 2014-02-19 Tom Tromey <tromey@redhat.com>
7237 * target-delegates.c: Rebuild.
7238 * target.c (update_current_target): Don't inherit or default
7240 (find_default_run_target): Check against delegate_can_run.
7241 * target.h (struct target_ops) <to_can_run>: Use
7242 TARGET_DEFAULT_RETURN.
7244 2014-02-19 Tom Tromey <tromey@redhat.com>
7246 * target-delegates.c: Rebuild.
7247 * target.c (target_disconnect): Unconditionally delegate.
7248 * target.h (struct target_ops) <to_disconnect>: Use
7249 TARGET_DEFAULT_NORETURN.
7251 2014-02-19 Tom Tromey <tromey@redhat.com>
7253 * record.c (record_stop): Unconditionally delegate.
7254 * target-delegates.c: Rebuild.
7255 * target.c (target_stop_recording): Unconditionally delegate.
7256 * target.h (struct target_ops) <to_stop_recording>: Use
7257 TARGET_DEFAULT_IGNORE.
7259 2014-02-19 Tom Tromey <tromey@redhat.com>
7261 * target-delegates.c: Rebuild.
7262 * target.c (target_enable_btrace): Unconditionally delegate.
7263 * target.h (struct target_ops) <to_enable_btrace>: Use
7264 TARGET_DEFAULT_NORETURN.
7266 2014-02-19 Tom Tromey <tromey@redhat.com>
7268 * target-delegates.c: Rebuild.
7269 * target.c (target_read_btrace): Unconditionally delegate.
7270 * target.h (struct target_ops) <to_read_btrace>: Use
7271 TARGET_DEFAULT_NORETURN.
7273 2014-02-19 Tom Tromey <tromey@redhat.com>
7275 * target-delegates.c: Rebuild.
7276 * target.c (target_teardown_btrace): Unconditionally delegate.
7277 * target.h (struct target_ops) <to_teardown_btrace>: Use
7278 TARGET_DEFAULT_NORETURN.
7280 2014-02-19 Tom Tromey <tromey@redhat.com>
7282 * target-delegates.c: Rebuild.
7283 * target.c (target_disable_btrace): Unconditionally delegate.
7284 * target.h (struct target_ops) <to_disable_btrace>: Use
7285 TARGET_DEFAULT_NORETURN.
7287 2014-02-19 Tom Tromey <tromey@redhat.com>
7289 * target-delegates.c: Rebuild.
7290 * target.c (default_search_memory): New function.
7291 (simple_search_memory): Update comment.
7292 (target_search_memory): Unconditionally delegate.
7293 * target.h (struct target_ops) <to_search_memory>: Use
7294 TARGET_DEFAULT_FUNC.
7296 2014-02-19 Tom Tromey <tromey@redhat.com>
7298 * auxv.c (default_auxv_parse): No longer static.
7299 (target_auxv_parse): Unconditionally delegate.
7300 * auxv.h (default_auxv_parse): Declare.
7301 * target-delegates.c: Rebuild.
7302 * target.c: Include auxv.h.
7303 * target.h (struct target_ops) <to_auxv_parse>: Use
7304 TARGET_DEFAULT_FUNC.
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7308 * target-delegates.c: Rebuild.
7309 * target.c (target_memory_map): Unconditionally delegate.
7310 * target.h (struct target_ops) <to_memory_map>: Use
7311 TARGET_DEFAULT_RETURN.
7313 2014-02-19 Tom Tromey <tromey@redhat.com>
7315 * target-delegates.c: Rebuild.
7316 * target.c (target_thread_alive): Unconditionally delegate.
7317 * target.h (struct target_ops) <to_thread_alive>: Use
7318 TARGET_DEFAULT_RETURN.
7320 2014-02-19 Tom Tromey <tromey@redhat.com>
7322 * target-delegates.c: Rebuild.
7323 * target.c (target_save_record): Unconditionally delegate.
7324 * target.h (struct target_ops) <to_save_record>: Use
7325 TARGET_DEFAULT_NORETURN.
7327 2014-02-19 Tom Tromey <tromey@redhat.com>
7329 * target-delegates.c: Rebuild.
7330 * target.c (target_delete_record): Unconditionally delegate.
7331 * target.h (struct target_ops) <to_delete_record>: Use
7332 TARGET_DEFAULT_NORETURN.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target-delegates.c: Rebuild.
7337 * target.c (target_record_is_replaying): Unconditionally
7339 * target.h (struct target_ops) <to_record_is_replaying>: Use
7340 TARGET_DEFAULT_RETURN.
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7344 * target-delegates.c: Rebuild.
7345 * target.c (target_goto_record_begin): Unconditionally delegate.
7346 * target.h (struct target_ops) <to_goto_record_begin>: Use
7347 TARGET_DEFAULT_NORETURN.
7349 2014-02-19 Tom Tromey <tromey@redhat.com>
7351 * target-delegates.c: Rebuild.
7352 * target.c (target_goto_record_end): Unconditionally delegate.
7353 * target.h (struct target_ops) <to_goto_record_end>: Use
7354 TARGET_DEFAULT_NORETURN.
7356 2014-02-19 Tom Tromey <tromey@redhat.com>
7358 * target-delegates.c: Rebuild.
7359 * target.c (target_goto_record): Unconditionally delegate.
7360 * target.h (struct target_ops) <to_goto_record>: Use
7361 TARGET_DEFAULT_NORETURN.
7363 2014-02-19 Tom Tromey <tromey@redhat.com>
7365 * target-delegates.c: Rebuild.
7366 * target.c (target_insn_history): Unconditionally delegate.
7367 * target.h (struct target_ops) <to_insn_history>: Use
7368 TARGET_DEFAULT_NORETURN.
7370 2014-02-19 Tom Tromey <tromey@redhat.com>
7372 * target-delegates.c: Rebuild.
7373 * target.c (target_insn_history_from): Unconditionally delegate.
7374 * target.h (struct target_ops) <to_insn_history_from>: Use
7375 TARGET_DEFAULT_NORETURN.
7377 2014-02-19 Tom Tromey <tromey@redhat.com>
7379 * target-delegates.c: Rebuild.
7380 * target.c (target_insn_history_range): Unconditionally delegate.
7381 * target.h (struct target_ops) <to_insn_history_range>: Use
7382 TARGET_DEFAULT_NORETURN.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target-delegates.c: Rebuild.
7387 * target.c (target_call_history): Unconditionally delegate.
7388 * target.h (struct target_ops) <to_call_history>: Use
7389 TARGET_DEFAULT_NORETURN.
7391 2014-02-19 Tom Tromey <tromey@redhat.com>
7393 * target-delegates.c: Rebuild.
7394 * target.c (target_call_history_from): Unconditionally delegate.
7395 * target.h (struct target_ops) <to_call_history_from>: Use
7396 TARGET_DEFAULT_NORETURN.
7398 2014-02-19 Tom Tromey <tromey@redhat.com>
7400 * target-delegates.c: Rebuild.
7401 * target.c (target_call_history_range): Unconditionally delegate.
7402 * target.h (struct target_ops) <to_call_history_range>: Use
7403 TARGET_DEFAULT_NORETURN.
7405 2014-02-19 Tom Tromey <tromey@redhat.com>
7407 * target-delegates.c: Rebuild.
7408 * target.c (target_verify_memory): Unconditionally delegate.
7409 * target.h (struct target_ops) <to_verify_memory>: Use
7410 TARGET_DEFAULT_NORETURN.
7412 2014-02-19 Tom Tromey <tromey@redhat.com>
7414 * target-delegates.c: Rebuild.
7415 * target.c (target_core_of_thread): Unconditionally delegate.
7416 * target.h (struct target_ops) <to_core_of_thread>: Use
7417 TARGET_DEFAULT_RETURN.
7419 2014-02-19 Tom Tromey <tromey@redhat.com>
7421 * target-delegates.c: Rebuild.
7422 * target.c (target_flash_done): Unconditionally delegate.
7423 * target.h (struct target_ops) <to_flash_done>: Use
7424 TARGET_DEFAULT_NORETURN.
7426 2014-02-19 Tom Tromey <tromey@redhat.com>
7428 * target-delegates.c: Rebuild.
7429 * target.c (target_flash_erase): Unconditionally delegate.
7430 * target.h (struct target_ops) <to_flash_erase>: Use
7431 TARGET_DEFAULT_NORETURN.
7433 2014-02-19 Tom Tromey <tromey@redhat.com>
7435 * target-delegates.c: Rebuild.
7436 * target.c (target_get_section_table): Unconditionally delegate.
7437 * target.h (struct target_ops) <to_get_section_table>: Use
7438 TARGET_DEFAULT_RETURN.
7440 2014-02-19 Tom Tromey <tromey@redhat.com>
7442 * target-delegates.c: Rebuild.
7443 * target.c (target_pid_to_str): Unconditionally delegate.
7444 (init_dummy_target): Don't initialize to_pid_to_str.
7445 (default_pid_to_str): Rename from dummy_pid_to_str.
7446 * target.h (struct target_ops) <to_pid_to_str>: Use
7447 TARGET_DEFAULT_FUNC.
7449 2014-02-19 Tom Tromey <tromey@redhat.com>
7451 * target-delegates.c: Rebuild.
7452 * target.c (target_find_new_threads): Unconditionally delegate.
7453 * target.h (struct target_ops) <to_find_new_threads>: Use
7454 TARGET_DEFAULT_RETURN.
7456 2014-02-19 Tom Tromey <tromey@redhat.com>
7458 * target-delegates.c: Rebuild.
7459 * target.c (target_program_signals): Unconditionally delegate.
7460 * target.h (struct target_ops) <to_program_signals>: Use
7461 TARGET_DEFAULT_IGNORE.
7463 2014-02-19 Tom Tromey <tromey@redhat.com>
7465 * target-delegates.c: Rebuild.
7466 * target.c (target_pass_signals): Unconditionally delegate.
7467 * target.h (struct target_ops) <to_pass_signals>: Use
7468 TARGET_DEFAULT_IGNORE.
7470 2014-02-19 Tom Tromey <tromey@redhat.com>
7472 * target-delegates.c: Rebuild.
7473 * target.c (default_mourn_inferior): New function.
7474 (target_mourn_inferior): Unconditionally delegate.
7475 * target.h (struct target_ops) <to_mourn_inferior>: Use
7476 TARGET_DEFAULT_FUNC.
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7480 * target-delegates.c: Rebuild.
7481 * target.c (default_follow_fork): New function.
7482 (target_follow_fork): Unconditionally delegate.
7483 * target.h (struct target_ops) <to_follow_fork>: Use
7484 TARGET_DEFAULT_FUNC.
7486 2014-02-19 Tom Tromey <tromey@redhat.com>
7488 * target-delegates.c: Rebuild.
7489 * target.c (target_kill): Unconditionally delegate.
7490 * target.h (struct target_ops) <to_kill>: Use
7491 TARGET_DEFAULT_NORETURN.
7493 2014-02-19 Tom Tromey <tromey@redhat.com>
7495 * target-delegates.c: Rebuild.
7496 * target.c (target_masked_watch_num_registers): Unconditionally
7498 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7499 Use TARGET_DEFAULT_RETURN.
7501 2014-02-19 Tom Tromey <tromey@redhat.com>
7503 * target-delegates.c: Rebuild.
7504 * target.c (target_remove_mask_watchpoint): Unconditionally
7506 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7507 TARGET_DEFAULT_RETURN.
7509 2014-02-19 Tom Tromey <tromey@redhat.com>
7511 * target-delegates.c: Rebuild.
7512 * target.c (target_insert_mask_watchpoint): Unconditionally
7514 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7515 TARGET_DEFAULT_RETURN.
7517 2014-02-19 Tom Tromey <tromey@redhat.com>
7519 * target-delegates.c: Rebuild.
7520 * target.c (target_ranged_break_num_registers): Unconditionally
7522 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7523 Use TARGET_DEFAULT_RETURN.
7525 2014-02-19 Tom Tromey <tromey@redhat.com>
7527 * target-delegates.c: Rebuild.
7528 * target.c (target_fetch_registers): Unconditionally delegate.
7529 * target.h (struct target_ops) <to_fetch_registers>: Use
7530 TARGET_DEFAULT_NORETURN.
7532 2014-02-19 Tom Tromey <tromey@redhat.com>
7534 * target-delegates.c: Rebuild.
7535 * target.c (update_current_target): Don't inherit or default
7537 * target.h (struct target_ops) <to_stop>: Use
7538 TARGET_DEFAULT_IGNORE.
7540 2014-02-19 Tom Tromey <tromey@redhat.com>
7542 * target-delegates.c: Rebuild.
7543 * target.c (update_current_target): Don't inherit or default
7544 to_can_run_breakpoint_commands.
7545 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7546 Use TARGET_DEFAULT_RETURN.
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target-delegates.c: Rebuild.
7551 * target.c (update_current_target): Don't inherit or default
7552 to_supports_evaluation_of_breakpoint_conditions.
7553 * target.h (struct target_ops)
7554 <to_supports_evaluation_of_breakpoint_conditions>: Use
7555 TARGET_DEFAULT_RETURN.
7557 2014-02-19 Tom Tromey <tromey@redhat.com>
7559 * target-delegates.c: Rebuild.
7560 * target.c (update_current_target): Don't inherit or default
7561 to_augmented_libraries_svr4_read.
7562 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7563 Use TARGET_DEFAULT_RETURN.
7565 2014-02-19 Tom Tromey <tromey@redhat.com>
7567 * target-delegates.c: Rebuild.
7568 * target.c (update_current_target): Don't inherit or default
7570 * target.h (struct target_ops) <to_can_use_agent>: Use
7571 TARGET_DEFAULT_RETURN.
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target-delegates.c: Rebuild.
7576 * target.c (update_current_target): Don't inherit or default
7578 * target.h (struct target_ops) <to_use_agent>: Use
7579 TARGET_DEFAULT_NORETURN.
7581 2014-02-19 Tom Tromey <tromey@redhat.com>
7583 * target-delegates.c: Rebuild.
7584 * target.c (update_current_target): Don't inherit or default
7586 (return_null): Remove.
7587 * target.h (struct target_ops) <to_traceframe_info>: Use
7588 TARGET_DEFAULT_RETURN.
7590 2014-02-19 Tom Tromey <tromey@redhat.com>
7592 * target-delegates.c: Rebuild.
7593 * target.c (update_current_target): Don't inherit or default
7594 to_static_tracepoint_markers_by_strid.
7595 * target.h (struct target_ops)
7596 <to_static_tracepoint_markers_by_strid>: Use
7597 TARGET_DEFAULT_NORETURN.
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7601 * target-delegates.c: Rebuild.
7602 * target.c (update_current_target): Don't inherit or default
7603 to_static_tracepoint_marker_at.
7604 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7605 Use TARGET_DEFAULT_RETURN.
7607 2014-02-19 Tom Tromey <tromey@redhat.com>
7609 * target-delegates.c: Rebuild.
7610 * target.c (update_current_target): Don't inherit or default
7612 * target.h (struct target_ops) <to_set_permissions>: Use
7613 TARGET_DEFAULT_IGNORE.
7615 2014-02-19 Tom Tromey <tromey@redhat.com>
7617 * target-delegates.c: Rebuild.
7618 * target.c (update_current_target): Don't inherit or default
7620 * target.h (struct target_ops) <to_get_tib_address>: Use
7621 TARGET_DEFAULT_NORETURN.
7623 2014-02-19 Tom Tromey <tromey@redhat.com>
7625 * target-delegates.c: Rebuild.
7626 * target.c (update_current_target): Don't inherit or default
7628 * target.h (struct target_ops) <to_set_trace_notes>: Use
7629 TARGET_DEFAULT_RETURN.
7631 2014-02-19 Tom Tromey <tromey@redhat.com>
7633 * target-delegates.c: Rebuild.
7634 * target.c (update_current_target): Don't initialize
7635 to_set_trace_buffer_size.
7636 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7637 TARGET_DEFAULT_IGNORE.
7639 2014-02-19 Tom Tromey <tromey@redhat.com>
7641 * target-delegates.c: Rebuild.
7642 * target.c (update_current_target): Don't inherit or default
7643 to_set_circular_trace_buffer.
7644 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7645 TARGET_DEFAULT_IGNORE.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target-delegates.c: Rebuild.
7650 * target.c (update_current_target): Don't inherit or default
7651 to_set_disconnected_tracing.
7652 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7653 TARGET_DEFAULT_IGNORE.
7655 2014-02-19 Tom Tromey <tromey@redhat.com>
7657 * target-delegates.c: Rebuild.
7658 * target.c (update_current_target): Don't inherit or default
7659 to_get_min_fast_tracepoint_insn_len.
7660 (return_minus_one): Remove.
7661 * target.h (struct target_ops)
7662 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7664 2014-02-19 Tom Tromey <tromey@redhat.com>
7666 * target-delegates.c: Rebuild.
7667 * target.c (update_current_target): Don't inherit or default
7668 to_get_raw_trace_data.
7669 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7670 TARGET_DEFAULT_NORETURN.
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7674 * target-delegates.c: Rebuild.
7675 * target.c (update_current_target): Don't inherit or default
7676 to_upload_trace_state_variables.
7677 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7678 Use TARGET_DEFAULT_RETURN.
7680 2014-02-19 Tom Tromey <tromey@redhat.com>
7682 * target-delegates.c: Rebuild.
7683 * target.c (update_current_target): Don't inherit or default
7684 to_upload_tracepoints.
7685 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7686 TARGET_DEFAULT_RETURN.
7688 2014-02-19 Tom Tromey <tromey@redhat.com>
7690 * target-delegates.c: Rebuild.
7691 * target.c (update_current_target): Don't inherit or default
7693 * target.h (struct target_ops) <to_save_trace_data>: Use
7694 TARGET_DEFAULT_NORETURN.
7696 2014-02-19 Tom Tromey <tromey@redhat.com>
7698 * target-delegates.c: Rebuild.
7699 * target.c (update_current_target): Don't inherit or default
7700 to_get_trace_state_variable_value.
7701 * target.h (struct target_ops)
7702 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target-delegates.c: Rebuild.
7707 * target.c (update_current_target): Don't inherit or default
7709 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7711 2014-02-19 Tom Tromey <tromey@redhat.com>
7713 * target-delegates.c: Rebuild.
7714 * target.c (update_current_target): Don't inherit or default
7716 * target.h (struct target_ops) <to_trace_stop>: Use
7717 TARGET_DEFAULT_NORETURN.
7719 2014-02-19 Tom Tromey <tromey@redhat.com>
7721 * target-delegates.c: Rebuild.
7722 * target.c (update_current_target): Don't inherit or default
7723 to_get_tracepoint_status.
7724 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7725 TARGET_DEFAULT_NORETURN.
7727 2014-02-19 Tom Tromey <tromey@redhat.com>
7729 * target-delegates.c: Rebuild.
7730 * target.c (update_current_target): Don't inherit or default
7731 to_get_trace_status.
7732 * target.h (struct target_ops) <to_get_trace_status>: Use
7733 TARGET_DEFAULT_RETURN.
7735 2014-02-19 Tom Tromey <tromey@redhat.com>
7737 * target-delegates.c: Rebuild.
7738 * target.c (update_current_target): Don't inherit or default
7740 * target.h (struct target_ops) <to_trace_start>: Use
7741 TARGET_DEFAULT_NORETURN.
7743 2014-02-19 Tom Tromey <tromey@redhat.com>
7745 * target-delegates.c: Rebuild.
7746 * target.c (update_current_target): Don't inherit or default
7747 to_trace_set_readonly_regions.
7748 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7749 Use TARGET_DEFAULT_NORETURN.
7751 2014-02-19 Tom Tromey <tromey@redhat.com>
7753 * target-delegates.c: Rebuild.
7754 * target.c (update_current_target): Don't inherit or default
7755 to_disable_tracepoint.
7756 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7757 TARGET_DEFAULT_NORETURN.
7759 2014-02-19 Tom Tromey <tromey@redhat.com>
7761 * target-delegates.c: Rebuild.
7762 * target.c (update_current_target): Don't inherit or default
7763 to_enable_tracepoint.
7764 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7765 TARGET_DEFAULT_NORETURN.
7767 2014-02-19 Tom Tromey <tromey@redhat.com>
7769 * target-delegates.c: Rebuild.
7770 * target.c (update_current_target): Don't inherit or default
7771 to_download_trace_state_variable.
7772 * target.h (struct target_ops) <to_download_trace_state_variable>:
7773 Use TARGET_DEFAULT_NORETURN.
7775 2014-02-19 Tom Tromey <tromey@redhat.com>
7777 * target-delegates.c: Rebuild.
7778 * target.c (update_current_target): Don't inherit or default
7779 to_can_download_tracepoint.
7780 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7781 TARGET_DEFAULT_RETURN.
7783 2014-02-19 Tom Tromey <tromey@redhat.com>
7785 * target-delegates.c: Rebuild.
7786 * target.c (update_current_target): Don't inherit or default
7787 to_download_tracepoint.
7788 * target.h (struct target_ops) <to_download_tracepoint>: Use
7789 TARGET_DEFAULT_NORETURN.
7791 2014-02-19 Tom Tromey <tromey@redhat.com>
7793 * target-delegates.c: Rebuild.
7794 * target.c (update_current_target): Don't inherit or default
7796 * target.h (struct target_ops) <to_trace_init>: Use
7797 TARGET_DEFAULT_RETURN.
7799 2014-02-19 Tom Tromey <tromey@redhat.com>
7801 * target-delegates.c: Rebuild.
7802 * target.c (update_current_target): Don't inherit or default
7803 to_supports_string_tracing.
7804 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7805 TARGET_DEFAULT_RETURN.
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7809 * target-delegates.c: Rebuild.
7810 * target.c (update_current_target): Don't inherit or default
7811 to_supports_enable_disable_tracepoint.
7812 * target.h (struct target_ops)
7813 <to_supports_enable_disable_tracepoint>: Use
7814 TARGET_DEFAULT_RETURN.
7816 2014-02-19 Tom Tromey <tromey@redhat.com>
7818 * target-delegates.c: Rebuild.
7819 * target.c (update_current_target): Don't inherit or default
7820 to_supports_multi_process.
7821 * target.h (struct target_ops) <to_supports_multi_process>: Use
7822 TARGET_DEFAULT_RETURN.
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7826 * target-delegates.c: Rebuild.
7827 * target.c (update_current_target): Don't inherit or default
7828 to_get_ada_task_ptid.
7829 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7830 TARGET_DEFAULT_FUNC.
7832 2014-02-19 Tom Tromey <tromey@redhat.com>
7834 * target-delegates.c: Rebuild.
7835 * target.c (update_current_target): Don't inherit or default
7836 to_thread_architecture.
7837 * target.h (struct target_ops) <to_thread_architecture>: Use
7838 TARGET_DEFAULT_FUNC.
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7842 * target-delegates.c: Rebuild.
7843 * target.c (update_current_target): Don't inherit or default
7844 to_execution_direction.
7845 * target.h (struct target_ops) <to_execution_direction>: Use
7846 TARGET_DEFAULT_FUNC.
7848 2014-02-19 Tom Tromey <tromey@redhat.com>
7850 * target-delegates.c: Rebuild.
7851 * target.c (update_current_target): Don't inherit or default
7852 to_can_execute_reverse.
7853 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7854 TARGET_DEFAULT_RETURN.
7855 (target_can_execute_reverse): Unconditionally delegate.
7857 2014-02-19 Tom Tromey <tromey@redhat.com>
7859 * target-delegates.c: Rebuild.
7860 * target.c (update_current_target): Don't inherit or default
7862 (dummy_goto_bookmark): Remove.
7863 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7864 * target.h (struct target_ops) <to_goto_bookmark>: Use
7865 TARGET_DEFAULT_NORETURN.
7867 2014-02-19 Tom Tromey <tromey@redhat.com>
7869 * target-delegates.c: Rebuild.
7870 * target.c (update_current_target): Don't inherit or default
7872 (dummy_get_bookmark): Remove.
7873 (init_dummy_target): Don't inherit or default to_get_bookmark.
7874 * target.h (struct target_ops) <to_get_bookmark>: Use
7875 TARGET_DEFAULT_NORETURN
7877 2014-02-19 Tom Tromey <tromey@redhat.com>
7879 * target-delegates.c: Rebuild.
7880 * target.c (update_current_target): Don't inherit or default
7881 to_make_corefile_notes.
7882 (init_dummy_target): Don't initialize to_make_corefile_notes.
7883 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7884 TARGET_DEFAULT_FUNC.
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7890 to_find_memory_regions.
7891 (init_dummy_target): Don't initialize to_find_memory_regions.
7892 * target.h (struct target_ops) <to_find_memory_regions>: Use
7893 TARGET_DEFAULT_FUNC.
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7897 * target-delegates.c: Rebuild.
7898 * target.c (update_current_target): Don't inherit or default
7900 * target.h (struct target_ops) <to_log_command>: Use
7901 TARGET_DEFAULT_IGNORE.
7902 (target_log_command): Unconditionally delegate.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * target-delegates.c: Rebuild.
7907 * target.c (update_current_target): Don't inherit or default
7908 to_pid_to_exec_file.
7909 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7910 TARGET_DEFAULT_RETURN.
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7914 * target-delegates.c: Rebuild.
7915 * target.c (update_current_target): Don't inherit or default
7917 (target_thread_name): Unconditionally delegate.
7918 * target.h (struct target_ops) <to_thread_name>: Use
7919 TARGET_DEFAULT_RETURN.
7921 2014-02-19 Tom Tromey <tromey@redhat.com>
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_extra_thread_info.
7926 * target.h (struct target_ops) <to_extra_thread_info>: Use
7927 TARGET_DEFAULT_RETURN.
7929 2014-02-19 Tom Tromey <tromey@redhat.com>
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7934 * target.h (struct target_ops) <to_has_exited>: Use
7935 TARGET_DEFAULT_RETURN..
7937 2014-02-19 Tom Tromey <tromey@redhat.com>
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_set_syscall_catchpoint.
7942 (return_one): Remove.
7943 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7944 TARGET_DEFAULT_RETURN.
7946 2014-02-19 Tom Tromey <tromey@redhat.com>
7948 * target-delegates.c: Rebuild.
7949 * target.c (update_current_target): Don't inherit or default
7950 to_insert_exec_catchpoint.
7951 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7952 TARGET_DEFAULT_RETURN.
7954 2014-01-08 Tom Tromey <tromey@redhat.com>
7956 * target-delegates.c: Rebuild.
7957 * target.c (update_current_target): Don't inherit or default
7958 to_insert_exec_catchpoint.
7959 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7960 TARGET_DEFAULT_RETURN.
7962 2014-02-19 Tom Tromey <tromey@redhat.com>
7964 * target-delegates.c: Rebuild.
7965 * target.c (update_current_target): Don't inherit or default
7966 to_remove_vfork_catchpoint.
7967 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7968 TARGET_DEFAULT_RETURN.
7970 2014-02-19 Tom Tromey <tromey@redhat.com>
7972 * target-delegates.c: Rebuild.
7973 * target.c (update_current_target): Don't inherit or default
7974 to_insert_vfork_catchpoint.
7975 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7976 TARGET_DEFAULT_RETURN.
7978 2014-02-19 Tom Tromey <tromey@redhat.com>
7980 * target-delegates.c: Rebuild.
7981 * target.c (update_current_target): Don't inherit or default
7982 to_remove_fork_catchpoint.
7983 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7984 TARGET_DEFAULT_RETURN.
7986 2014-02-19 Tom Tromey <tromey@redhat.com>
7988 * target-delegates.c: Rebuild.
7989 * target.c (update_current_target): Don't inherit or default
7990 to_insert_fork_catchpoint.
7991 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7992 TARGET_DEFAULT_RETURN.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * target-delegates.c: Rebuild.
7997 * target.c (update_current_target): Don't inherit or default
7998 to_post_startup_inferior.
7999 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8000 TARGET_DEFAULT_IGNORE.
8002 2014-02-19 Tom Tromey <tromey@redhat.com>
8004 * target-delegates.c: Rebuild.
8005 * target.c (update_current_target): Don't inherit or default
8007 * target.h (struct target_ops) <to_load>: Use
8008 TARGET_DEFAULT_NORETURN.
8010 2014-02-19 Tom Tromey <tromey@redhat.com>
8012 * target-delegates.c: Rebuild.
8013 * target.c (update_current_target): Don't inherit or default
8015 * target.h (struct target_ops) <to_terminal_info>: Use
8016 TARGET_DEFAULT_FUNC.
8018 2014-02-19 Tom Tromey <tromey@redhat.com>
8020 * target-delegates.c: Rebuild.
8021 * target.c (update_current_target): Don't inherit or default
8022 to_terminal_save_ours.
8023 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8024 TARGET_DEFAULT_IGNORE.
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8028 * target-delegates.c: Rebuild.
8029 * target.c (update_current_target): Don't inherit or default
8031 * target.h (struct target_ops) <to_terminal_ours>: Use
8032 TARGET_DEFAULT_IGNORE.
8034 2014-02-19 Tom Tromey <tromey@redhat.com>
8036 * target-delegates.c: Rebuild.
8037 * target.c (update_current_target): Don't inherit or default
8038 to_terminal_ours_for_output.
8039 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8040 TARGET_DEFAULT_IGNORE.
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8044 * target-delegates.c: Rebuild.
8045 * target.c (update_current_target): Don't inherit or default
8046 to_terminal_inferior.
8047 * target.h (struct target_ops) <to_terminal_inferior>: Use
8048 TARGET_DEFAULT_IGNORE.
8050 2014-02-19 Tom Tromey <tromey@redhat.com>
8052 * target-delegates.c: Rebuild.
8053 * target.c (update_current_target): Don't inherit or default
8055 * target.h (struct target_ops) <to_terminal_init>: Use
8056 TARGET_DEFAULT_IGNORE.
8058 2014-02-19 Tom Tromey <tromey@redhat.com>
8060 * target-delegates.c: Rebuild.
8061 * target.c (update_current_target): Don't inherit or default
8062 to_can_accel_watchpoint_condition.
8063 * target.h (struct target_ops)
8064 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8066 2014-02-19 Tom Tromey <tromey@redhat.com>
8068 * target-delegates.c: Rebuild.
8069 * target.c (update_current_target): Don't inherit or default
8070 to_region_ok_for_hw_watchpoint.
8071 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8072 Use TARGET_DEFAULT_FUNC.
8074 2014-02-19 Tom Tromey <tromey@redhat.com>
8076 * target-delegates.c: Rebuild.
8077 * target.c (update_current_target): Don't inherit or default
8078 to_watchpoint_addr_within_range.
8079 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8080 Use TARGET_DEFAULT_FUNC.
8082 2014-02-19 Tom Tromey <tromey@redhat.com>
8084 * target-delegates.c: Rebuild.
8085 * target.c (update_current_target): Don't inherit or default
8086 to_remove_watchpoint.
8087 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8088 TARGET_DEFAULT_NORETURN.
8090 2014-02-19 Tom Tromey <tromey@redhat.com>
8092 * target-delegates.c: Rebuild.
8093 * target.c (update_current_target): Don't inherit or default
8094 to_insert_watchpoint.
8095 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8096 TARGET_DEFAULT_RETURN.
8098 2014-02-19 Tom Tromey <tromey@redhat.com>
8100 * target-delegates.c: Rebuild.
8101 * target.c (update_current_target): Don't inherit or default
8102 to_remove_hw_breakpoint.
8103 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8104 TARGET_DEFAULT_RETURN.
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * target-delegates.c: Rebuild.
8109 * target.c (update_current_target): Don't inherit or default
8110 to_insert_hw_breakpoint.
8111 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8112 TARGET_DEFAULT_RETURN.
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * target-delegates.c: Rebuild.
8117 * target.c (update_current_target): Don't inherit or default
8118 to_can_use_hw_breakpoint.
8119 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8120 TARGET_DEFAULT_RETURN.
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * target-delegates.c: Rebuild.
8125 * target.c (update_current_target): Don't inherit or default
8127 * target.h (struct target_ops) <to_files_info>: Use
8128 TARGET_DEFAULT_IGNORE.
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8132 * target-delegates.c: Rebuild.
8133 * target.c (update_current_target): Don't inherit or default
8135 * target.h (struct target_ops) <to_store>: Use
8136 TARGET_DEFAULT_NORETURN.
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target-delegates.c: Rebuild.
8141 * target.c (update_current_target): Don't inherit or default
8143 * target.h (struct target_ops) <to_post_attach>: Use
8144 TARGET_DEFAULT_IGNORE.
8146 2014-02-19 Tom Tromey <tromey@redhat.com>
8148 * target-delegates.c: Rebuild.
8149 * target.c (update_current_target): Don't inherit or default
8151 (default_rcmd): New function.
8152 (do_monitor_command): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_rmcd>: Use
8154 TARGET_DEFAULT_FUNC.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (init_dummy_target): Don't initialize to_attach.
8160 (target_attach): Unconditionally delegate.
8161 * target.h (struct target_ops) <to_attach>: Use
8162 TARGET_DEFAULT_FUNC.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target-delegates.c: Rebuild.
8167 * target.c (target_detach): Unconditionally delegate.
8168 (init_dummy_target): Don't initialize to_detach.
8169 * target.h (struct target_ops) <to_detach>: Use
8170 TARGET_DEFAULT_IGNORE.
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8174 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8176 (target_augmented_libraries_svr4_read): Add argument.
8177 * target.c (update_current_target): Update.
8178 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * target.h (struct target_ops) <to_call_history_range>: Add
8185 * target.c (target_call_history_range): Add argument.
8186 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8188 (record_btrace_call_history_from): Update.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target.h (struct target_ops) <to_call_history_from>: Add
8194 * target.c (target_call_history_from): Add argument.
8195 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target.h (struct target_ops) <to_call_history>: Add argument.
8201 * target.c (target_call_history): Add argument.
8202 * record-btrace.c (record_btrace_call_history): Add 'self'
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8207 * target.h (struct target_ops) <to_insn_history_range>: Add
8209 * target.c (target_insn_history_range): Add argument.
8210 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8212 (record_btrace_insn_history_from): Update.
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8216 * target.h (struct target_ops) <to_insn_history_from>: Add
8218 * target.c (target_insn_history_from): Add argument.
8219 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target.h (struct target_ops) <to_insn_history>: Add argument.
8225 * target.c (target_insn_history): Add argument.
8226 * record-btrace.c (record_btrace_insn_history): Add 'self'
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * target.h (struct target_ops) <to_goto_record>: Add argument.
8232 * target.c (target_goto_record): Add argument.
8233 * record-full.c (record_full_goto): Add 'self' argument.
8234 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8239 * target.c (target_goto_record_end): Add argument.
8240 * record-full.c (record_full_goto_end): Add 'self' argument.
8241 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target.h (struct target_ops) <to_goto_record_begin>: Add
8247 * target.c (target_goto_record_begin): Add argument.
8248 * record-full.c (record_full_goto_begin): Add 'self' argument.
8249 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * target.h (struct target_ops) <to_record_is_replaying>: Add
8256 * target.c (target_record_is_replaying): Add argument.
8257 * record-full.c (record_full_is_replaying): Add 'self' argument.
8258 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8260 (record_btrace_xfer_partial, record_btrace_store_registers)
8261 (record_btrace_prepare_to_store, record_btrace_resume)
8262 (record_btrace_wait, record_btrace_decr_pc_after_break)
8263 (record_btrace_find_new_threads, record_btrace_thread_alive):
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8268 * target.h (struct target_ops) <to_delete_record>: Add argument.
8269 * target.c (target_delete_record): Add argument.
8270 * record-full.c (record_full_delete): Add 'self' argument.
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8274 * target.h (struct target_ops) <to_save_record>: Add argument.
8275 * target.c (target_save_record): Add argument.
8276 * record-full.c (record_full_save): Add 'self' argument.
8277 (record_full_save): Add 'self' argument.
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8281 * target.h (struct target_ops) <to_info_record>: Add argument.
8282 * target.c (target_info_record): Add argument.
8283 * record.c (info_record_command): Add argument.
8284 * record-full.c (record_full_info): Add 'self' argument.
8285 * record-btrace.c (record_btrace_info): Add 'self' argument.
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8289 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8290 * target.c (target_stop_recording): Add argument.
8291 * record.c (record_stop): Add argument.
8292 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8297 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8298 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8299 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8301 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8302 (_initialize_amd64_linux_nat): Use it.
8303 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8304 (_initialize_i386_linux_nat): Use it.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8309 * target.c (target_teardown_btrace): Add argument.
8310 * remote.c (remote_teardown_btrace): Add 'self' argument.
8311 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8313 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8319 * target.c (target_disable_btrace): Add argument.
8320 * remote.c (remote_disable_btrace): Add 'self' argument.
8321 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8323 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8328 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8329 * target.c (target_enable_btrace): Add argument.
8330 * remote.c (remote_enable_btrace): Add 'self' argument.
8331 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8333 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8339 (target_can_use_agent): Add argument.
8340 * target.c (update_current_target): Update.
8341 * remote.c (remote_can_use_agent): Add 'self' argument.
8342 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8346 * target.h (struct target_ops) <to_use_agent>: Add argument.
8347 (target_use_agent): Add argument.
8348 * target.c (update_current_target): Update.
8349 * remote.c (remote_use_agent): Add 'self' argument.
8350 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8355 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8356 (target_traceframe_info): Add argument.
8357 * target.c (update_current_target): Update.
8358 * remote.c (remote_traceframe_info): Add 'self' argument.
8359 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8361 2014-02-19 Tom Tromey <tromey@redhat.com>
8363 * target.h (target_static_tracepoint_markers_by_strid): Add
8365 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8367 * target.c (update_current_target): Update.
8368 * remote.c (struct target_ops)
8369 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8370 * linux-nat.c (struct target_ops)
8371 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8377 (target_static_tracepoint_marker_at): Add argument.
8378 * target.c (update_current_target): Update.
8379 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8384 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8385 (target_set_permissions): Add argument.
8386 * target.c (update_current_target): Update.
8387 * remote.c (remote_set_permissions): Add 'self' argument.
8388 (remote_start_remote): Update.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8393 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8394 (target_get_tib_address): Add argument.
8395 * target.c (update_current_target): Update.
8396 * remote.c (remote_get_tib_address): Add 'self' argument.
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8401 (target_set_trace_notes): Add argument.
8402 * target.c (update_current_target): Update.
8403 * remote.c (remote_set_trace_notes): Add 'self' argument.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8407 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8409 (target_set_trace_buffer_size): Add argument.
8410 * target.c (update_current_target): Update.
8411 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8417 (target_set_circular_trace_buffer): Add argument.
8418 * target.c (update_current_target): Update.
8419 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8426 (target_set_disconnected_tracing): Add argument.
8427 * target.c (update_current_target): Update.
8428 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8430 2014-02-19 Tom Tromey <tromey@redhat.com>
8432 * target.h (struct target_ops)
8433 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8434 (target_get_min_fast_tracepoint_insn_len): Add argument.
8435 * target.c (update_current_target): Update.
8436 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8441 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8443 (target_get_raw_trace_data): Add argument.
8444 * target.c (update_current_target): Update.
8445 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8451 (target_upload_trace_state_variables): Add argument.
8452 * target.c (update_current_target): Update.
8453 * remote.c (remote_upload_trace_state_variables): Add 'self'
8455 (remote_start_remote): Update.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8461 (target_upload_tracepoints): Add argument.
8462 * target.c (update_current_target): Update.
8463 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8464 (remote_start_remote): Update.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8469 (target_save_trace_data): Add argument.
8470 * target.c (update_current_target): Update.
8471 * remote.c (remote_save_trace_data): Add 'self' argument.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8477 * target.h (struct target_ops)
8478 <to_get_trace_state_variable_value>: Add argument.
8479 (target_get_trace_state_variable_value): Add argument.
8480 * target.c (update_current_target): Update.
8481 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8483 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8488 * target.h (struct target_ops) <to_trace_find>: Add argument.
8489 (target_trace_find): Add argument.
8490 * target.c (update_current_target): Update.
8491 * remote.c (remote_trace_find): Add 'self' argument.
8492 * ctf.c (ctf_trace_find): Add 'self' argument.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8497 (target_trace_stop): Add argument.
8498 * target.c (update_current_target): Update.
8499 * remote.c (remote_trace_stop): Add 'self' argument.
8501 2014-02-19 Tom Tromey <tromey@redhat.com>
8503 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8504 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8506 (target_get_tracepoint_status): Add argument.
8507 * target.c (update_current_target): Update.
8508 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8513 * target.h (struct target_ops) <to_get_trace_status>: Add
8515 (target_get_trace_status): Add argument.
8516 * target.c (update_current_target): Update.
8517 * remote.c (remote_get_trace_status): Add 'self' argument.
8518 (remote_start_remote, remote_can_download_tracepoint): Update.
8519 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8521 2014-02-19 Tom Tromey <tromey@redhat.com>
8523 * target.h (struct target_ops) <to_trace_start>: Add argument.
8524 (target_trace_start): Add argument.
8525 * target.c (update_current_target): Update.
8526 * remote.c (remote_trace_start): Add 'self' argument.
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8532 (target_trace_set_readonly_regions): Add argument.
8533 * target.c (update_current_target): Update.
8534 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8541 (target_disable_tracepoint): Add argument.
8542 * target.c (update_current_target): Update.
8543 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8549 (target_enable_tracepoint): Add argument.
8550 * target.c (update_current_target): Update.
8551 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target.h (struct target_ops) <to_download_trace_state_variable>:
8557 (target_download_trace_state_variable): Add argument.
8558 * target.c (update_current_target): Update.
8559 * remote.c (remote_download_trace_state_variable): Add 'self'
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8566 (target_can_download_tracepoint): Add argument.
8567 * target.c (update_current_target): Update.
8568 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target.h (struct target_ops) <to_download_tracepoint>: Add
8574 (target_download_tracepoint): Add argument.
8575 * target.c (update_current_target): Update.
8576 * remote.c (remote_download_tracepoint): Add 'self' argument.
8578 2014-02-19 Tom Tromey <tromey@redhat.com>
8580 * target.h (struct target_ops) <to_trace_init>: Add argument.
8581 (target_trace_init): Add argument.
8582 * target.c (update_current_target): Update.
8583 * remote.c (remote_trace_init): Add 'self' argument.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8588 * target.c (target_fileio_readlink): Add argument.
8589 * remote.c (remote_hostio_readlink): Add 'self' argument.
8590 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8594 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8595 * target.c (target_fileio_unlink): Add argument.
8596 * remote.c (remote_hostio_unlink): Add 'self' argument.
8597 (remote_file_delete): Update.
8598 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8602 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8603 * target.c (target_fileio_close): Add argument.
8604 * remote.c (remote_hostio_close): Add 'self' argument.
8605 (remote_hostio_close_cleanup): Update.
8606 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8608 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8613 * target.c (target_fileio_pread): Add argument.
8614 * remote.c (remote_hostio_pread): Add 'self' argument.
8615 (remote_bfd_iovec_pread, remote_file_get): Update.
8616 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8621 * target.c (target_fileio_pwrite): Add argument.
8622 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8623 (remote_file_put): Update.
8624 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8629 * target.c (target_fileio_open): Add argument.
8630 * remote.c (remote_hostio_open): Add 'self' argument.
8631 (remote_bfd_iovec_open): Add 'self' argument.
8632 (remote_file_put): Add 'self' argument.
8633 (remote_file_get): Add 'self' argument.
8634 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8640 (target_can_run_breakpoint_commands): Add argument.
8641 * target.c (update_current_target): Update.
8642 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8644 (remote_insert_breakpoint): Add 'self' argument.
8645 (remote_insert_hw_breakpoint): Add 'self' argument.
8646 (remote_can_run_breakpoint_commands): Add 'self' argument.
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target.h (struct target_ops)
8651 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8652 (target_supports_evaluation_of_breakpoint_conditions): Add
8654 * target.c (update_current_target): Update.
8655 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8657 (remote_insert_breakpoint): Add 'self' argument.
8658 (remote_insert_hw_breakpoint): Add 'self' argument.
8659 (remote_supports_cond_breakpoints): Add 'self' argument.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8665 (target_supports_string_tracing): Add argument.
8666 * target.c (update_current_target): Update.
8667 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target.h (struct target_ops)
8672 <to_supports_disable_randomization>: Add argument.
8673 * target.c (find_default_supports_disable_randomization): Add
8675 (target_supports_disable_randomization): Add argument.
8676 (find_default_supports_disable_randomization): Add 'self'
8678 * remote.c (extended_remote_supports_disable_randomization): Add
8680 (remote_supports_disable_randomization): Add 'self' argument.
8681 (extended_remote_create_inferior): Update.
8682 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target.h (struct target_ops)
8688 <to_supports_enable_disable_tracepoint>: Add argument.
8689 (target_supports_enable_disable_tracepoint): Add argument.
8690 * target.c (update_current_target): Update.
8691 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target.h (struct target_ops) <to_supports_multi_process>: Add
8698 (target_supports_multi_process): Add argument.
8699 * target.c (update_current_target): Update.
8700 * remote.c (remote_supports_multi_process): Add 'self' argument.
8701 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8703 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target.h (struct target_ops) <to_execution_direction>: Add
8710 (target_execution_direction): Add argument.
8711 * target.c (default_execution_direction): Add 'self' argument.
8712 * record-full.c (record_full_execution_direction): Add 'self'
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8719 (target_can_execute_reverse): Add argument.
8720 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8721 * record-full.c (record_full_can_execute_reverse): Add 'self'
8723 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8729 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8731 (target_get_ada_task_ptid): Add argument.
8732 * target.c (update_current_target): Update.
8733 (default_get_ada_task_ptid): Add 'self' argument.
8734 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8735 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8736 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8738 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8740 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8742 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8744 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8745 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8751 (target_goto_bookmark): Add argument.
8752 * target.c (dummy_goto_bookmark): Add 'self' argument.
8753 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8758 (target_get_bookmark): Add argument.
8759 * target.c (dummy_get_bookmark): Add 'self' argument.
8760 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8766 (target_make_corefile_notes): Add argument.
8767 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8768 * procfs.c (procfs_make_note_section): Add 'self' argument.
8769 (procfs_make_note_section): Add 'self' argument.
8770 (procfs_make_note_section): Add 'self' argument.
8771 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8773 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8774 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8775 * exec.c (exec_make_note_section): Add 'self' argument.
8776 (exec_make_note_section): Add 'self' argument.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target.h (struct target_ops) <to_find_memory_regions>: Add
8782 (target_find_memory_regions): Add argument.
8783 * target.c (dummy_find_memory_regions): Add 'self' argument.
8784 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8785 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8786 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8787 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8788 * exec. (exec_do_find_memory_regions): New global.
8789 (exec_set_find_memory_regions): Rewrite.
8790 (exec_find_memory_regions): New function.
8791 (init_exec_ops): Use exec_find_memory_regions.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * target.h (struct target_ops) <to_supports_non_stop>: Add
8797 * target.c (find_default_supports_non_stop): Add argument.
8798 (target_supports_non_stop): Add argument.
8799 (find_default_supports_non_stop): Add 'self' argument.
8800 * remote.c (remote_supports_non_stop): Add 'self' argument.
8801 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8805 * target.h (struct target_ops) <to_log_command>: Add argument.
8806 (target_log_command): Add argument.
8807 * serial.h (serial_log_command): Add 'self' argument.
8808 * serial.c (serial_log_command): Add 'self' argument.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8813 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8815 (target_pid_to_exec_file): Add argument.
8816 * target.c (debug_to_pid_to_exec_file): Add argument.
8817 (update_current_target): Update.
8818 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8819 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8820 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8821 (linux_handle_extended_wait): Update.
8822 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8823 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8824 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8825 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target.h (struct target_ops) <to_rcmd>: Add argument.
8830 (target_rcmd): Add argument.
8831 * target.c (debug_to_rcmd): Add argument.
8832 (update_current_target, do_monitor_command): Update.
8833 * remote.c (remote_rcmd): Add 'self' argument.
8834 * monitor.c (monitor_rcmd): Add 'self' argument.
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8838 * windows-nat.c (windows_stop): Add 'self' argument.
8839 * target.h (struct target_ops) <to_stop>: Add argument.
8840 * target.c (target_stop): Add argument.
8841 (debug_to_stop): Add argument.
8842 (update_current_target): Update.
8843 * remote.c (remote_stop): Add 'self' argument.
8844 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8845 (gdbsim_cntrl_c): Update.
8846 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8847 * procfs.c (procfs_stop): Add 'self' argument.
8848 * nto-procfs.c (procfs_stop): Add 'self' argument.
8849 * monitor.c (monitor_stop): Add 'self' argument.
8850 (monitor_open): Update.
8851 * linux-nat.c (linux_nat_stop): Add argument.
8852 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8853 * gnu-nat.c (gnu_stop): Add 'self' argument.
8854 * darwin-nat.c (darwin_stop): Add 'self' argument.
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target.h (struct target_ops) <to_thread_name>: Add argument.
8859 * target.c (target_thread_name): Add argument.
8860 (update_current_target): Update.
8861 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8865 * target.h (struct target_ops) <to_extra_thread_info>: Add
8867 (target_extra_thread_info): Add argument.
8868 * target.c (update_current_target): Update.
8869 * remote.c (remote_threads_extra_info): Add 'self' argument.
8870 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8872 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8873 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8874 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8876 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8878 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8880 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8885 * target.h (struct target_ops) <to_program_signals>: Add argument.
8886 * target.c (target_program_signals): Add argument.
8887 * remote.c (remote_program_signals): Add 'self' argument.
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8892 * target.c (target_pass_signals): Add argument.
8893 * remote.c (remote_pass_signals): Add 'self' argument.
8894 (remote_start_remote): Update.
8895 * procfs.c (procfs_pass_signals): Add 'self' argument.
8896 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8897 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8898 (linux_nat_create_inferior, linux_nat_attach): Update.
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8902 * windows-nat.c (windows_can_run): Add 'self' argument.
8903 * target.h (struct target_ops) <to_can_run>: Add argument.
8904 (target_can_run): Add argument.
8905 * target.c (debug_to_can_run): Add argument.
8906 (update_current_target): Update.
8907 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8908 * inf-child.c (inf_child_can_run): Add 'self' argument.
8909 * go32-nat.c (go32_can_run): Add 'self' argument.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target.h (struct target_ops) <to_has_exited>: Add argument.
8914 (target_has_exited): Add argument.
8915 * target.c (debug_to_has_exited): Add argument.
8916 (update_current_target): Update.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8922 (target_set_syscall_catchpoint): Add argument.
8923 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8925 * target.c (update_current_target): Update.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8931 (target_remove_exec_catchpoint): Add argument.
8932 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8933 (update_current_target): Update.
8934 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8939 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8941 (target_insert_exec_catchpoint): Add argument.
8942 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8943 (update_current_target): Update.
8944 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8949 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8951 (target_remove_vfork_catchpoint): Add argument.
8952 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8953 (update_current_target): Update.
8954 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8959 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8961 (target_insert_vfork_catchpoint): Add argument.
8962 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8963 (update_current_target): Update.
8964 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8971 (target_remove_fork_catchpoint): Add argument.
8972 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8973 (update_current_target): Update.
8974 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8979 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8981 (target_insert_fork_catchpoint): Add argument.
8982 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8983 (update_current_target): Update.
8984 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8991 (target_post_startup_inferior): Add argument.
8992 * target.c (debug_to_post_startup_inferior): Add argument.
8993 (update_current_target): Update.
8994 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8996 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8998 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9000 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9002 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9004 (super_post_startup_inferior): Likewise.
9005 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9007 (super_post_startup_inferior): Likewise.
9008 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9009 Add 'self' argument.
9010 (super_post_startup_inferior): Likewise.
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target.h (struct target_ops) <to_load>: Add argument.
9015 * target.c (target_load): Add argument.
9016 (debug_to_load): Add argument.
9017 (update_current_target): Update.
9018 * remote.c (remote_load): Add 'self' argument.
9019 * remote-sim.c (gdbsim_load): Add 'self' argument.
9020 * remote-mips.c (mips_load): Add 'self' argument.
9021 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9022 * monitor.c (monitor_load): Add 'self' argument.
9023 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9027 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9028 (target_terminal_info): Add argument.
9029 * target.c (debug_to_terminal_info): Add argument.
9030 (default_terminal_info): Likewise.
9031 * inflow.c (child_terminal_info): Add 'self' argument.
9032 * inferior.h (child_terminal_info): Add 'self' argument.
9033 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9037 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9039 (target_terminal_save_ours): Add argument.
9040 * target.c (debug_to_terminal_save_ours): Add argument.
9041 (update_current_target): Update.
9042 * inflow.c (terminal_save_ours): Add 'self' argument.
9043 * inferior.h (terminal_save_ours): Add 'self' argument.
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9048 (target_terminal_ours): Add argument.
9049 * target.c (debug_to_terminal_ours): Add argument.
9050 (update_current_target): Update.
9051 * remote.c (remote_terminal_ours): Add 'self' argument.
9052 (remote_close): Update.
9053 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9054 * inflow.c (terminal_ours): Add 'self' argument.
9055 * inferior.h (terminal_ours): Add 'self' argument.
9056 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9058 2014-02-19 Pedro Alves <palves@redhat.com>
9059 Tom Tromey <tromey@redhat.com>
9061 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9063 (target_terminal_ours_for_output): Add argument.
9064 * target.c (debug_to_terminal_ours_for_output): Add argument.
9065 (update_current_target): Update.
9066 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9067 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9068 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9072 * target.h (struct target_ops) <to_terminal_inferior>: Add
9074 * target.c (target_terminal_inferior): Add argument.
9075 (update_current_target): Update.
9076 * remote.c (remote_terminal_inferior): Add 'self' argument.
9077 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9078 * inflow.c (terminal_inferior): Add 'self' argument.
9079 * inferior.h (terminal_inferior): Add 'self' argument.
9080 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9081 (go32_terminal_inferior): Add 'self' argument.
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9085 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9086 (target_terminal_init): Add argument.
9087 * target.c (debug_to_terminal_init): Add argument.
9088 (update_current_target): Update.
9089 * inflow.c (terminal_init_inferior): Add 'self' argument.
9090 * inferior.h (terminal_init_inferior): Add 'self' argument.
9091 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9092 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * target.h (struct target_ops)
9097 <to_can_accel_watchpoint_condition>: Add argument.
9098 (target_can_accel_watchpoint_condition): Add argument.
9099 * target.c (debug_to_can_accel_watchpoint_condition): Add
9101 (update_current_target): Update.
9102 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9109 (target_region_ok_for_hw_watchpoint): Add argument.
9110 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9111 (default_region_ok_for_hw_watchpoint): Add argument.
9112 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9113 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9115 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9117 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9119 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9121 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9123 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9125 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9126 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9128 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9129 Add 'self' argument.
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9135 (target_insert_watchpoint): Add argument.
9136 * target.c (debug_to_insert_watchpoint): Add argument.
9137 (update_current_target): Update.
9138 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9139 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9140 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9141 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9142 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9143 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9145 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9146 (procfs_insert_hw_watchpoint): Add 'self' argument.
9147 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9149 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9151 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9153 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9154 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9156 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9163 (target_remove_watchpoint): Add argument.
9164 * target.c (debug_to_remove_watchpoint): Add argument.
9165 (update_current_target): Update.
9166 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9167 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9168 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9169 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9170 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9171 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9173 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9174 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9176 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9178 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9180 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9181 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9183 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9190 (target_remove_hw_breakpoint): Add argument.
9191 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9192 (update_current_target): Update.
9193 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9194 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9196 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9197 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9199 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9206 (target_insert_hw_breakpoint): Add argument.
9207 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9208 (update_current_target): Update.
9209 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9210 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9212 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9213 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9214 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9216 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9223 (target_can_use_hardware_watchpoint): Add argument.
9224 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9225 (update_current_target): Update.
9226 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9228 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9230 * remote.c (remote_check_watch_resources): Add 'self' argument.
9231 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9232 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9234 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9235 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9237 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9239 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9241 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9243 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9245 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9247 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9248 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9250 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target.h (struct target_ops) <to_post_attach>: Add argument.
9256 (target_post_attach): Add argument.
9257 * target.c (debug_to_post_attach): Add argument.
9258 (update_current_target): Update.
9259 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9260 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9261 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9262 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9263 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * windows-nat.c (windows_close): Add 'self' argument.
9268 * tracepoint.c (tfile_close): Add 'self' argument.
9269 * target.h (struct target_ops) <to_close>: Add argument.
9270 * target.c (target_close): Add argument.
9271 (update_current_target): Update.
9272 * remote.c (remote_close): Add 'self' argument.
9273 * remote-sim.c (gdbsim_close): Add 'self' argument.
9274 * remote-mips.c (mips_close): Add 'self' argument.
9275 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9276 * record-full.c (record_full_close): Add 'self' argument.
9277 * record-btrace.c (record_btrace_close): Add 'self' argument.
9278 * monitor.h (monitor_close): Add 'self' argument.
9279 * monitor.c (monitor_close): Add 'self' argument.
9280 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9281 * linux-nat.c (linux_nat_close): Add argument.
9282 * go32-nat.c (go32_close): Add 'self' argument.
9283 * exec.c (exec_close_1): Add 'self' argument.
9284 * ctf.c (ctf_close): Add 'self' argument.
9285 * corelow.c (core_close): Add 'self' argument.
9286 (core_close_cleanup): Update.
9287 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9288 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * remote.c (remote_load): New function.
9293 (init_remote_ops): Use it.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9299 * common/linux-btrace.h (linux_supports_btrace): Update.
9300 * remote.c (remote_supports_btrace): Add "self" argument.
9301 * target-delegates.c: Rebuild.
9302 * target.c (target_supports_btrace): Remove.
9303 * target.h (struct target_ops) <to_supports_btrace>: Add
9304 target_ops argument.
9305 (target_supports_btrace): New define.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * record-full.c (record_full_beneath_to_resume_ops)
9310 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9311 (record_full_beneath_to_wait)
9312 (record_full_beneath_to_store_registers_ops)
9313 (record_full_beneath_to_store_registers)
9314 (record_full_beneath_to_xfer_partial_ops)
9315 (record_full_beneath_to_xfer_partial)
9316 (record_full_beneath_to_insert_breakpoint_ops)
9317 (record_full_beneath_to_insert_breakpoint)
9318 (record_full_beneath_to_remove_breakpoint_ops)
9319 (record_full_beneath_to_remove_breakpoint)
9320 (record_full_beneath_to_stopped_by_watchpoint)
9321 (record_full_beneath_to_stopped_data_address)
9322 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9323 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9324 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9325 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9326 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9327 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9328 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9329 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9330 (record_full_resume, record_full_wait_1)
9331 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9332 (record_full_store_registers, record_full_xfer_partial)
9333 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9334 (record_full_async, record_full_core_xfer_partial): Use target
9336 * target-delegates.c: Rebuild.
9337 * target.c (current_xfer_partial): Remove.
9338 (update_current_target): Do not INHERIT or de_fault
9339 to_insert_breakpoint, to_remove_breakpoint,
9340 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9341 to_is_async_p, to_async. Do not set to_xfer_partial field.
9342 (default_xfer_partial): Simplify.
9343 (current_xfer_partial): Remove.
9344 (target_wait, target_resume): Simplify.
9345 (find_default_can_async_p, find_default_is_async_p): Update.
9346 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9347 to_xfer_partial, to_stopped_by_watchpoint,
9348 to_stopped_data_address.
9349 (target_store_registers): Simplify.
9350 (forward_target_remove_breakpoint)
9351 (forward_target_insert_breakpoint): Remove.
9352 (target_remove_breakpoint, target_insert_breakpoint)
9353 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9354 * target.h (struct target_ops) <to_resume, to_wait,
9355 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9356 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9357 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9359 (forward_target_remove_breakpoint)
9360 (forward_target_insert_breakpoint): Remove.
9361 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9363 (record_btrace_insert_breakpoint): Delegate directly.
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: New file.
9369 * target.c: Include target-delegates.c.
9370 (init_dummy_target): Call install_dummy_methods.
9371 (complete_target_initialization): Call install_delegators.
9372 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9373 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9374 * make-target-delegates: New file.
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9378 * record.c (find_record_target): Use find_target_at.
9379 * target.c (find_target_at): New function.
9380 * target.h (find_target_at): Declare.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9386 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9388 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9389 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9391 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9393 * linux-nat.c (save_sigtrap): Update.
9394 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9395 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9396 (linux_nat_close): Update.
9397 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9399 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9401 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9402 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9403 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9404 (tmp_to_async): Add 'ops' argument.
9405 (record_full_stopped_by_watchpoint, record_full_async)
9406 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9408 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9409 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9410 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9411 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9412 (remote_is_async_p, remote_async): Add 'ops' argument.
9413 (remote_stopped_data_address): Update.
9414 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9415 * target.c (update_current_target)
9416 (find_default_can_async_p, find_default_is_async_p): Update.
9417 (init_dummy_target): Update.
9418 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9419 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9420 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9421 (target_can_async_p, target_is_async_p, target_async)
9422 (target_stopped_by_watchpoint): Update.
9424 2014-02-19 Yao Qi <yao@codesourcery.com>
9427 * gdbarch.sh: Remove startup_gdbarch.
9428 * gdbarch.c: Regenerated.
9429 * gdbarch.h: Likewise.
9431 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9433 * rl78-tdep.c (rl78_g10_register_name): New function.
9434 (rl78_return_value): Add g10 support.
9435 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9438 2014-02-17 Doug Evans <xdje42@gmail.com>
9440 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9441 (SUBDIR_GUILE_SRCS): Ditto.
9442 (scm-gsmob.o): Ditto.
9444 2014-02-17 Yao Qi <yao@codesourcery.com>
9446 * gnu-nat.c (ILL_RPC): Declare defined function.
9448 2014-02-17 Yao Qi <yao@codesourcery.com>
9450 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9451 mach_msg_type_number_t.
9452 (gnu_write_inferior): Likewise.
9454 2014-02-17 Yao Qi <yao@codesourcery.com>
9456 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9458 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9459 (inf_validate_procs, inf_signal): Likewise.
9460 (S_exception_raise_request): Likewise.
9461 (do_mach_notify_dead_name): Likewise.
9462 (steal_exc_port): Likewise.
9463 (gnu_read_inferior): Change 'copy_count''s type to
9464 mach_msg_type_number_t.
9465 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9468 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9470 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9471 flag. Adjust all users; in particular...
9472 (gnu_wait): ..., don't decrement its value in here...
9473 (gnu_create_inferior): ..., and instead set the flag in here,
9474 around the startup_inferior call, and call that one with
9475 START_INFERIOR_TRAPS_EXPECTED.
9477 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9478 (ILL_RPC): ... new macro.
9479 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9480 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9481 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9482 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9483 functions with ILL_RPC macro.
9484 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9485 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9486 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9487 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9488 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9489 (S_proc_getlogin_reply, S_proc_getsid_reply)
9490 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9491 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9492 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9493 (S_proc_getnports_reply, S_proc_is_important_reply)
9494 (S_proc_get_code_reply): New stub functions, generated with
9497 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9498 collected the type check structures.
9500 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9502 2014-02-14 Doug Evans <dje@google.com>
9504 * target.c (target_write_partial): Fix result type.
9506 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9508 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9509 the proper offsets to access fpregset_t.
9511 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9513 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9514 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9515 * h8300-tdep.c (setmachinelist): Remove global.
9516 * hppa-tdep.c (hppa_sigtramp): Remove global.
9517 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9518 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9519 * ravenscar-thread.c (update_target_observer): Remove global.
9520 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9522 2014-02-12 Tom Tromey <tromey@redhat.com>
9524 * common/rsp-low.c: Update comments.
9525 * common/rsp-low.h: Update comments.
9527 2014-02-12 Tom Tromey <tromey@redhat.com>
9529 * common/rsp-low.c (convert_ascii_to_int): Remove.
9530 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9532 2014-02-12 Tom Tromey <tromey@redhat.com>
9534 * common/rsp-low.h (unhexify): Don't declare.
9535 * common/rsp-low.c (unhexify): Remove.
9537 2014-02-12 Tom Tromey <tromey@redhat.com>
9539 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9540 * common/rsp-low.c (convert_int_to_ascii): Remove.
9542 2014-02-12 Tom Tromey <tromey@redhat.com>
9544 * common/rsp-low.h (hexify): Don't declare.
9545 * common/rsp-low.c (hexify): Remove.
9547 2014-02-12 Tom Tromey <tromey@redhat.com>
9549 * common/rsp-low.c (hexify): Never take strlen of argument.
9551 2014-02-12 Tom Tromey <tromey@redhat.com>
9553 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9554 * remote.c (extended_remote_run, remote_rcmd)
9555 (remote_download_trace_state_variable, remote_save_trace_data)
9556 (remote_set_trace_notes): Update.
9557 * tracepoint.c (encode_source_string, tfile_write_status)
9558 (tfile_write_uploaded_tsv): Update.
9560 2014-02-12 Tom Tromey <tromey@redhat.com>
9562 * tracepoint.c: Include rsp-low.h.
9563 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9564 * remote.c: Include rsp-low.h.
9565 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9566 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9567 (remote_unescape_input): Move to common/rsp-low.c.
9568 * common/rsp-low.h: New file.
9569 * common/rsp-low.c: New file.
9570 * Makefile.in (SFILES): Add common/rsp-low.c.
9571 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9572 (COMMON_OBS): Add rsp-low.o.
9573 (rsp-low.o): New target.
9575 2014-02-12 Tom Tromey <tromey@redhat.com>
9577 * utils.h: Include print-utils.h.
9578 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9579 (int_string, core_addr_to_string, core_addr_to_string_nz)
9580 (hex_string, hex_string_custom): Don't declare.
9581 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9582 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9583 (hex_string_custom, int_string, core_addr_to_string)
9584 (core_addr_to_string_nz, host_address_to_string): Move to
9585 common/print-utils.c.
9586 * common/print-utils.h: New file.
9587 * common/print-utils.c: New file
9588 * Makefile.in (SFILES): Add common/print-utils.c.
9589 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9590 (COMMON_OBS): Add print-utils.o.
9591 (print-utils.o): New target.
9593 2014-02-12 Tom Tromey <tromey@redhat.com>
9595 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9597 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9599 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9601 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9603 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9604 if a PT_IO ptrace request returns sucessfully but indicates that 0
9605 bytes were transferred.
9607 2014-02-12 Pedro Alves <palves@redhat.com>
9608 Kevin Buettner <kevinb@redhat.com>
9610 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9611 TYPE_INSTANCE_FLAG_CODE_SPACE.
9613 2014-02-12 Pedro Alves <palves@redhat.com>
9615 * h8300-tdep.c (pseudo_from_raw_register)
9616 (raw_from_pseudo_register): New functions.
9617 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9620 2014-02-12 Pedro Alves <palves@redhat.com>
9622 * h8300-tdep.c (h8300_register_sim_regno): New function.
9623 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9624 gdbarch_register_sim_regno hook.
9626 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9628 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9630 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9632 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9634 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9636 * obsd-tdep.h (obsd_init_abi): New prototype.
9637 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9638 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9639 (obsd_init_abi): New functions.
9640 * i386obsd-tdep.c: Include "obsd-tdep.h".
9641 (i386obsd_init_abi): Call obsd_init_abi.
9642 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9643 (amd64obsd_init_abi): Call obsd_init_abi.
9644 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9645 obsd-tdep.c to gdb_target_obs.
9647 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9649 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9650 double float arguments to 16-byte in the argument slots.
9652 2014-02-11 Doug Evans <xdje42@gmail.com>
9654 * configure.ac: Don't crash if pkg-config is not found and guile
9655 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9657 * configure: Regenerate.
9659 2014-02-11 Yao Qi <yao@codesourcery.com>
9661 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9662 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9663 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9664 * gnu-nat.c (gnu_xfer_memory): Likewise.
9665 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9666 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9667 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9668 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9670 2014-02-11 Yao Qi <yao@codesourcery.com>
9672 * target.h (enum target_xfer_error): Rename to ...
9673 (enum target_xfer_status): ... it. New. All users updated.
9674 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9676 (TARGET_XFER_STATUS_ERROR_P): New macro.
9677 (target_xfer_error_to_string): Remove declaration.
9678 (target_xfer_status_to_string): Declare.
9679 (target_xfer_partial_ftype): Adjust it.
9680 (struct target_ops) <to_xfer_partial>: Return
9681 target_xfer_status. Add argument xfered_len. Update
9683 * target.c (target_xfer_error_to_string): Rename to ...
9684 (target_xfer_status_to_string): ... it. New. All callers
9686 (target_read_live_memory): Likewise. Call target_xfer_partial
9687 instead of target_read.
9688 (memory_xfer_live_readonly_partial): Return
9689 target_xfer_status. Add argument xfered_len.
9690 (raw_memory_xfer_partial): Likewise.
9691 (memory_xfer_partial_1): Likewise.
9692 (memory_xfer_partial): Likewise.
9693 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9694 properly. Update debug message.
9695 (default_xfer_partial, current_xfer_partial): Likewise.
9696 (target_write_partial): Likewise.
9697 (target_read_partial): Likewise. All callers updated.
9698 (read_whatever_is_readable): Likewise.
9699 (target_write_with_progress): Likewise.
9700 (target_read_alloc_1): Likewise.
9702 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9703 * auxv.c (procfs_xfer_auxv): Likewise.
9704 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9705 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9706 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9707 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9708 * corefile.c (read_memory): Adjust.
9709 * corelow.c (core_xfer_partial): Likewise.
9710 * ctf.c (ctf_xfer_partial): Likewise.
9711 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9713 (darwin_xfer_partial): Likewise.
9714 * exec.c (section_table_xfer_memory_partial): Likewise. All
9716 (exec_xfer_partial): Likewise.
9717 * exec.h (section_table_xfer_memory_partial): Update
9719 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9721 (gnu_xfer_partial): Likewise.
9722 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9723 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9724 (ia64_hpux_xfer_solib_got): Likewise.
9725 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9726 type of 'partial_len' to ULONGEST.
9727 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9728 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9729 (linux_nat_xfer_partial): Likewise.
9730 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9731 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9732 * monitor.c (monitor_xfer_memory): Likewise.
9733 (monitor_xfer_partial): Likewise.
9734 * procfs.c (procfs_xfer_partial): Likewise.
9735 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9736 * record-full.c (record_full_xfer_partial): Likewise.
9737 (record_full_core_xfer_partial): Likewise.
9738 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9739 (gdbsim_xfer_partial): Likewise.
9740 * remote.c (remote_write_bytes_aux): Likewise. All callers
9742 (remote_write_bytes, remote_read_bytes): Likewise. All
9744 (remote_flash_erase): Likewise. All callers updated.
9745 (remote_write_qxfer): Likewise. All callers updated.
9746 (remote_read_qxfer): Likewise. All callers updated.
9747 (remote_xfer_partial): Likewise.
9748 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9749 (rs6000_xfer_shared_libraries): Likewise.
9750 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9751 (sol_thread_xfer_partial): Likewise.
9752 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9753 (sparc_xfer_partial): Likewise.
9754 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9756 (spu_xfer_partial): Likewise.
9757 * spu-multiarch.c (spu_xfer_partial): Likewise.
9758 * tracepoint.c (tfile_xfer_partial): Likewise.
9759 * windows-nat.c (windows_xfer_memory): Likewise.
9760 (windows_xfer_shared_libraries): Likewise.
9761 (windows_xfer_partial): Likewise.
9762 * valprint.c: Replace 'target_xfer_error' with
9763 'target_xfer_status' in comments.
9765 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9767 Checked in by Joel Brobecker <brobecker@adacore.com>.
9768 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9770 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9772 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9773 function parameters.
9775 2014-02-10 Will Newton <will.newton@linaro.org>
9777 * elfread.c (elf_rel_plt_read): Look for a .got section if
9778 looking up .got.plt fails.
9779 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9780 on address passed to elf_gnu_ifunc_record_cache.
9781 (elf_gnu_ifunc_resolve_addr): Likewise.
9782 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9784 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9786 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9787 (X_RETTURN): New macro.
9788 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9790 * sparc64-tdep.c (sparc64_init_abi): Hook
9791 sparc_in_function_epilogue_p.
9793 2014-02-10 Gary Benson <gbenson@redhat.com>
9795 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9796 Rename name_matcher to symbol_matcher.
9798 2014-02-10 Gary Benson <gbenson@redhat.com>
9800 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9801 Use expand_symtabs_file_matcher_ftype and
9802 expand_symtabs_symbol_matcher_ftype.
9804 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9806 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9807 (struct ada_symbol_cache): New.
9808 (ada_free_symbol_cache): Forward declare.
9809 (struct ada_pspace_data): New.
9810 (ada_pspace_data_handle): New static global.
9811 (get_ada_pspace_data, ada_pspace_data_cleanup)
9812 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9813 (cache_space, cache): Delete, now folded inside struct
9815 (ada_get_symbol_cache): New function.
9816 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9818 (_initialize_ada_language): Remove initialization of cache_space.
9819 Move call to observer_attach_inferior_exit up, grouping it
9820 with the other observer registrations inside this function.
9821 Rename command to be more general. Add call to
9822 register_program_space_data_with_cleanup.
9824 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9826 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9827 ada_new_objfile_observer.
9828 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9829 (_initialize_tasks): Update uses of ada_new_objfile_observer
9830 and ada_tasks_normal_stop_observer.
9832 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9834 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9835 returned by the 'Length attribute to integer.
9837 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9839 * ada-lang.c (_initialize_ada_language): Initialize
9840 cache_space obstack.
9842 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9844 * ada-lang.c (HASH_SIZE): New macro.
9845 (struct cache_entry): New type.
9846 (cache_space, cache): New static globals.
9847 (ada_clear_symbol_cache, find_entry): New functions.
9848 (lookup_cached_symbol, cache_symbol): Implement.
9849 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9850 (_initialize_ada_language): Attach ada_new_objfile_observer
9851 and ada_free_objfile_observer.
9853 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9855 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9856 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9857 struct block * parameter.
9858 (ada_lookup_symbol_list_worker): Constify local variable "block".
9859 Remove cast which is no longer necessary.
9861 2014-02-10 Doug Evans <xdje42@gmail.com>
9863 Add Guile as an extension language.
9864 * NEWS: Mention Guile scripting.
9865 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9866 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9867 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9868 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9869 (CLIBS): Add GUILE_LIBS.
9870 (install-guile): New rule.
9871 (guile.o): New rule.
9872 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9873 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9874 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9875 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9876 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9877 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9878 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9879 * configure.ac: New option --with-guile.
9880 * configure: Regenerate.
9881 * config.in: Regenerate.
9882 * auto-load.c: Remove #include "python/python.h". Add #include
9883 "gdb/section-scripts.h".
9884 (source_section_scripts): Handle Guile scripts.
9885 (_initialize_auto_load): Add name of Guile objfile script to
9886 scripts-directory help text.
9887 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9888 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9889 (struct breakpoint): New member scm_bp_object.
9890 * defs.h (enum command_control_type): New value guile_control.
9891 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9893 (show_user): Update comment.
9894 (_initialize_cli_cmds): Update help text for "show user". Update help
9895 text for max-user-call-depth.
9896 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9898 (multi_line_command_p): Add guile_control.
9899 (print_command_lines): Handle guile_control.
9900 (execute_control_command, recurse_read_control_structure): Ditto.
9901 (process_next_line): Recognize "guile" commands.
9902 * disasm.c (gdb_disassemble_info): Make non-static.
9903 * disasm.h: #include "dis-asm.h".
9904 (struct gdbarch): Add forward decl.
9905 (gdb_disassemble_info): Declare.
9906 * extension.c: #include "guile/guile.h".
9907 (extension_languages): Add guile.
9908 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9909 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9910 * gdbtypes.c (get_unsigned_type_max): New function.
9911 (get_signed_type_minmax): New function.
9912 * gdbtypes.h (get_unsigned_type_max): Declare.
9913 (get_signed_type_minmax): Declare.
9914 * guile/README: New file.
9915 * guile/guile-internal.h: New file.
9916 * guile/guile.c: New file.
9917 * guile/guile.h: New file.
9918 * guile/scm-arch.c: New file.
9919 * guile/scm-auto-load.c: New file.
9920 * guile/scm-block.c: New file.
9921 * guile/scm-breakpoint.c: New file.
9922 * guile/scm-disasm.c: New file.
9923 * guile/scm-exception.c: New file.
9924 * guile/scm-frame.c: New file.
9925 * guile/scm-gsmob.c: New file.
9926 * guile/scm-iterator.c: New file.
9927 * guile/scm-lazy-string.c: New file.
9928 * guile/scm-math.c: New file.
9929 * guile/scm-objfile.c: New file.
9930 * guile/scm-ports.c: New file.
9931 * guile/scm-pretty-print.c: New file.
9932 * guile/scm-safe-call.c: New file.
9933 * guile/scm-string.c: New file.
9934 * guile/scm-symbol.c: New file.
9935 * guile/scm-symtab.c: New file.
9936 * guile/scm-type.c: New file.
9937 * guile/scm-utils.c: New file.
9938 * guile/scm-value.c: New file.
9939 * guile/lib/gdb.scm: New file.
9940 * guile/lib/gdb/boot.scm: New file.
9941 * guile/lib/gdb/experimental.scm: New file.
9942 * guile/lib/gdb/init.scm: New file.
9943 * guile/lib/gdb/iterator.scm: New file.
9944 * guile/lib/gdb/printing.scm: New file.
9945 * guile/lib/gdb/types.scm: New file.
9946 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9947 (VPATH): Add $(GUILE_SRCDIR).
9948 (GUILE_DIR): New variable.
9949 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9950 (all): Add stamp-guile dependency.
9951 (stamp-guile): New rule.
9952 (clean-guile, install-guile, uninstall-guile): New rules.
9953 (install-only): Add install-guile dependency.
9954 (uninstall): Add uninstall-guile dependency.
9955 (clean): Add clean-guile dependency.
9957 2014-02-09 Doug Evans <xdje42@gmail.com>
9959 Revert this patch (which I approved, mea culpa).
9961 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9963 * Makefile.in (all-lib): Remove.
9964 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9966 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9968 Fix Python stack corruption.
9969 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9972 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9974 * Makefile.in (all-lib): Remove.
9975 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9977 2014-02-07 Doug Evans <dje@google.com>
9979 * extension-priv.h (extension_language_script_ops): Add comment.
9980 (extension_language_ops): Add comment.
9981 (active_ext_lang_state): Fix typo in comment.
9983 2014-02-07 Pedro Alves <palves@redhat.com>
9985 PR breakpoints/16292
9986 * infrun.c (handle_signal_stop) <signal arrives while stepping
9987 over a breakpoint>: Switch back to the stepping thread.
9989 2014-02-07 Yao Qi <yao@codesourcery.com>
9991 * target.c (target_xfer_partial): Return zero if LEN is zero.
9993 2014-02-07 Yao Qi <yao@codesourcery.com>
9995 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9996 (ld_so_xfer_auxv): Likewise.
9997 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9998 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9999 * corelow.c (core_xfer_partial): Likewise.
10000 * ctf.c (ctf_xfer_partial): Likewise.
10001 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10002 (darwin_xfer_partial): Likewise.
10003 * exec.c (exec_xfer_partial): Likewise.
10004 * gnu-nat.c (gnu_xfer_partial): Likewise.
10005 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10006 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10007 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10008 * linux-nat.c (linux_xfer_siginfo): Likewise.
10009 (linux_proc_xfer_spu): Likewise.
10010 * procfs.c (procfs_xfer_partial): Likewise.
10011 * record-full.c (record_full_xfer_partial): Likewise.
10012 (record_full_core_xfer_partial): Likewise.
10013 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10014 * remote.c (remote_write_qxfer): Likewise.
10015 (remote_write_qxfer, remote_read_qxfer): Likewise.
10016 (remote_xfer_partial): Likewise.
10017 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10018 (rs6000_xfer_shared_libraries): Likewise.
10019 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10020 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10021 (spu_xfer_partial): Likewise.
10022 * target.c (memory_xfer_partial_1): Likewise.
10023 * tracepoint.c (tfile_xfer_partial): Likewise.
10024 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10025 (windows_xfer_partial): Likewise.
10027 2014-02-07 Yao Qi <yao@codesourcery.com>
10029 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10031 (core_xfer_shared_libraries_aix): Likewise.
10032 * gdbarch.c, gdbarch.h: Regenerated.
10033 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10034 ULONGEST. Change 'len_avail' type to ULONGEST.
10035 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10036 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10038 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10040 2014-02-07 Yao Qi <yao@codesourcery.com>
10042 * corefile.c (memory_error): Get 'exception' from ERR and pass
10043 'exception' to throw_error.
10045 2014-02-06 Doug Evans <xdje42@gmail.com>
10047 * configure.ac (libpython checking): Remove all but python.o from
10048 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10049 * configure: Regenerate.
10051 * Makefile.in (SFILES): Add extension.c.
10052 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10053 (COMMON_OBS): Add extension.o.
10054 * extension.h: New file.
10055 * extension-priv.h: New file.
10056 * extension.c: New file.
10058 * python/python-internal.h: #include "extension.h".
10059 (gdbpy_auto_load_enabled): Declare.
10060 (gdbpy_apply_val_pretty_printer): Declare.
10061 (gdbpy_apply_frame_filter): Declare.
10062 (gdbpy_preserve_values): Declare.
10063 (gdbpy_breakpoint_cond_says_stop): Declare.
10064 (gdbpy_breakpoint_has_cond): Declare.
10065 (void source_python_script_for_objfile): Delete.
10066 * python/python.c: #include "extension-priv.h".
10067 Delete inclusion of "observer.h".
10068 (extension_language_python): Moved here and renamed from
10069 script_language_python in py-auto-load.c.
10070 Redefined to be of type extension_language_defn.
10071 (python_extension_script_ops): New global.
10072 (python_extension_ops): New global.
10073 (struct python_env): New member previous_active.
10074 (restore_python_env): Call restore_active_ext_lang.
10075 (ensure_python_env): Call set_active_ext_lang.
10076 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10078 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10080 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10082 (gdbpy_eval_from_control_command): Renamed from
10083 eval_python_from_control_command, made static. New arg extlang.
10084 (gdbpy_source_script) Renamed from source_python_script, made static.
10086 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10087 result to int. New arg extlang.
10088 (gdbpy_source_objfile_script): Renamed from
10089 source_python_script_for_objfile, made static. New arg extlang.
10090 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10091 static. New args extlang, extlang_printers. Change result type to
10093 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10094 static. New arg extlang. Rename arg printers to extlang_printers
10095 and change type to ext_lang_type_printers *.
10096 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10097 static. Replace argument arg with extlang, extlang_printers.
10098 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10099 (!HAVE_PYTHON, source_python_script): Delete.
10100 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10101 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10102 (!HAVE_PYTHON, start_type_printers): Delete.
10103 (!HAVE_PYTHON, apply_type_printers): Delete.
10104 (!HAVE_PYTHON, free_type_printers): Delete.
10105 (_initialize_python): Delete call to observer_attach_before_prompt.
10106 (finalize_python): Set/restore active extension language.
10107 (gdbpy_finish_initialization) Renamed from
10108 finish_python_initialization, made static. New arg extlang.
10109 (gdbpy_initialized): New function.
10110 * python/python.h: #include "extension.h". Delete #include
10111 "value.h", "mi/mi-cmds.h".
10112 (extension_language_python): Declare.
10113 (GDBPY_AUTO_FILE_NAME): Delete.
10114 (enum py_bt_status): Moved to extension.h and renamed to
10115 ext_lang_bt_status.
10116 (enum frame_filter_flags): Moved to extension.h.
10117 (enum py_frame_args): Moved to extension.h and renamed to
10118 ext_lang_frame_args.
10119 (finish_python_initialization): Delete.
10120 (eval_python_from_control_command): Delete.
10121 (source_python_script): Delete.
10122 (apply_val_pretty_printer): Delete.
10123 (apply_frame_filter): Delete.
10124 (preserve_python_values): Delete.
10125 (gdbpy_script_language_defn): Delete.
10126 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10127 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10129 * auto-load.c: #include "extension.h".
10130 (GDB_AUTO_FILE_NAME): Delete.
10131 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10132 (script_language_gdb): Delete, moved to extension.c and renamed to
10133 extension_language_gdb.
10134 (source_gdb_script_for_objfile): Delete.
10135 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10136 (loaded_script): Change type of language member to
10137 struct extension_language_defn *.
10138 (init_loaded_scripts_info): Initialize
10139 unsupported_script_warning_printed.
10140 (maybe_add_script): Make static. Change type of language arg to
10141 struct extension_language_defn *.
10142 (clear_section_scripts): Reset unsupported_script_warning_printed.
10143 (auto_load_objfile_script_1): Rewrite to use extension language API.
10144 (auto_load_objfile_script): Make public. Remove support-compiled-in
10145 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10146 (source_section_scripts): Rewrite to use extension language API.
10147 (load_auto_scripts_for_objfile): Rewrite to use
10148 auto_load_scripts_for_objfile.
10149 (collect_matching_scripts_data): Change type of language member to
10150 struct extension_language_defn *.
10151 (auto_load_info_scripts): Change type of language arg to
10152 struct extension_language_defn *.
10153 (unsupported_script_warning_print): New function.
10154 (script_not_found_warning_print): Make static.
10155 (_initialize_auto_load): Rewrite construction of scripts-directory
10157 * auto-load.h (struct objfile): Add forward decl.
10158 (struct script_language): Delete.
10159 (struct auto_load_pspace_info): Add forward decl.
10160 (struct extension_language_defn): Add forward decl.
10161 (maybe_add_script): Delete.
10162 (auto_load_objfile_script): Declare.
10163 (script_not_found_warning_print): Delete.
10164 (auto_load_info_scripts): Update prototype.
10165 (auto_load_gdb_scripts_enabled): Declare.
10166 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10167 auto_load_python_scripts_enabled and made public.
10168 (script_language_python): Delete, moved to python.c.
10169 (gdbpy_script_language_defn): Delete.
10170 (info_auto_load_python_scripts): Update to use
10171 extension_language_python.
10173 * breakpoint.c (condition_command): Replace call to
10174 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10175 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10176 with call to breakpoint_ext_lang_cond_says_stop.
10177 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10178 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10179 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10180 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10182 (local_setattro): Print name of extension language with existing
10185 * valprint.c (val_print, value_print): Update to call
10186 apply_ext_lang_val_pretty_printer.
10187 * cp-valprint.c (cp_print_value): Update call to
10188 apply_ext_lang_val_pretty_printer.
10189 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10190 (gdbpy_apply_val_pretty_printer): Renamed from
10191 apply_val_pretty_printer. New arg extlang.
10192 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10194 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10195 extension language API.
10196 * cli/cli-script.c (execute_control_command): Update to call
10197 eval_ext_lang_from_control_command.
10199 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10200 enum ext_lang_bt_status values. Update call to
10201 apply_ext_lang_frame_filter.
10202 (mi_cmd_stack_list_locals): Ditto.
10203 (mi_cmd_stack_list_args): Ditto.
10204 (mi_cmd_stack_list_variables): Ditto.
10205 * mi/mi-main.c: Delete #include "python/python-internal.h".
10206 Add #include "extension.h".
10207 (mi_cmd_list_features): Replace reference to python internal variable
10208 gdb_python_initialized with call to ext_lang_initialized_p.
10210 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10211 Update to use enum ext_lang_frame_args. Update to call
10212 apply_ext_lang_frame_filter.
10213 * python/py-framefilter.c (extract_sym): Update to use enum
10214 ext_lang_bt_status.
10215 (extract_value, py_print_type, py_print_value): Ditto.
10216 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10217 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10218 (py_print_frame): Ditto.
10219 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10220 New arg extlang. Update to use enum ext_lang_bt_status.
10222 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10223 finish_python_initialization. Replace with call to
10224 finish_ext_lang_initialization.
10226 * typeprint.c (do_free_global_table): Update to call
10227 free_ext_lang_type_printers.
10228 (create_global_typedef_table): Update to call
10229 start_ext_lang_type_printers.
10230 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10231 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10232 (type_print_options): Change type of global_printers from "void *"
10233 to "struct ext_lang_type_printers *".
10235 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10236 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10237 (gdbpy_preserve_values): Renamed from preserve_python_values.
10239 (!HAVE_PYTHON, preserve_python_values): Delete.
10241 * utils.c (quit_flag): Delete, moved to extension.c.
10242 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10245 * eval.c: Delete #include "python/python.h".
10246 * main.c: Delete #include "python/python.h".
10248 * defs.h: Update comment.
10250 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10254 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10256 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10259 2014-02-05 Yao Qi <yao@codesourcery.com>
10261 * remote.c (remote_pass_signals): Remove local 'buf' and use
10263 (remote_program_signals): Likewise.
10265 2014-02-05 Yao Qi <yao@codesourcery.com>
10267 * ctf.c: Include "inferior.h" and "gdbthread.h".
10268 (CTF_PID): A new macro.
10269 (ctf_open): Call inferior_appeared and add_thread_silent.
10270 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10271 (ctf_thread_alive): New function.
10272 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10274 2014-02-05 Yao Qi <yao@codesourcery.com>
10278 2013-05-24 Yao Qi <yao@codesourcery.com>
10280 * tracepoint.c (TFILE_PID): Remove.
10281 (tfile_open): Don't add thread and inferior.
10282 (tfile_close): Don't set 'inferior_ptid'. Don't call
10283 exit_inferior_silent.
10284 (tfile_thread_alive): Remove.
10285 (init_tfile_ops): Don't set field 'to_thread_alive' of
10288 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10290 * remote.c (remote_start_remote): Call remote_check_symbols even
10291 if only symbol-file (not file) has been given.
10293 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10295 * gdbarch.sh (skip_entrypoint): New callback.
10296 * gdbarch.c, gdbarch.h: Regenerate.
10297 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10298 * infrun.c (fill_in_stop_func): Likewise.
10299 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10300 (ppc_elfv2_elf_make_msymbol_special): New function.
10301 (ppc_elfv2_skip_entrypoint): Likewise.
10302 (ppc_linux_init_abi): Install them for ELFv2.
10304 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10306 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10307 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10308 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10309 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10310 structures returned in GPRs.
10312 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10315 offset to the stack parameter list for the ELFv2 ABI.
10317 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10319 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10320 set_gdbarch_convert_from_func_ptr_addr and
10321 set_gdbarch_elf_make_msymbol_special for ELFv1.
10322 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10323 function descriptors on ELFv1.
10324 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10325 set up r12 at function entry.
10327 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10329 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10330 (struct gdbarch_tdep): New member elf_abi.
10332 * rs6000-tdep.c: Include "elf/ppc64.h".
10333 (rs6000_gdbarch_init): Detect ELF ABI version.
10335 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10337 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10338 within a register pair holding a DFP 128-bit value on little-endian.
10339 (ppc64_sysv_abi_return_value_base): Likewise.
10340 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10341 (dfp_pseudo_register_write): Likewise.
10343 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10345 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10346 offset on little-endian when passing _Decimal32.
10347 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10349 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10351 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10352 of the overlapped FP register within the VSX register on little-
10354 (efpr_pseudo_register_write): Likewise.
10356 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10358 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10359 offset on little-endian when passing small structures.
10361 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10363 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10364 (struct ppc64_sysv_argpos): New data structure.
10365 (ppc64_sysv_abi_push_float): Remove.
10366 (ppc64_sysv_abi_push_val): New function.
10367 (ppc64_sysv_abi_push_integer): Likewise.
10368 (ppc64_sysv_abi_push_freg): Likewise.
10369 (ppc64_sysv_abi_push_vreg): Likewise.
10370 (ppc64_sysv_abi_push_param): Likewise.
10371 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10372 (ppc64_sysv_abi_return_value_base): New function.
10373 (ppc64_sysv_abi_return_value): Refactor to use it.
10375 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
10377 * NEWS: Document new target powerpc64le-*-linux*.
10379 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10381 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10382 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10384 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10385 register set used in ELF core dumps. Add floating-point register set.
10387 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10389 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10390 dwarf2_to_gdb[] table using symbolic constants. Adjust
10391 penultimate entry from number representing the PC register
10392 to symbolic constant representing the MDR register. Add
10393 constant for the PC register to the end of the table.
10395 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10397 * bsd-kvm.c: Include <sys/param.h>
10399 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10401 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10403 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10405 * ada-lang.h (clear_ada_sym_cache): Delete.
10407 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
10409 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10411 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10413 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10414 the sigreturn register save area only if the syscall is
10417 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10419 * valops.c (value_slice): Minor reformatting.
10421 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
10423 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10425 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10427 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10428 New static globals.
10429 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10430 (ada_ignore_descriptive_types_p): New static global.
10431 (find_parallel_type_by_descriptive_type): Return immediately
10432 if ada_ignore_descriptive_types_p is set.
10433 (_initialize_ada_language): Register new commands "maintenance
10434 set ada", "maintenance show ada", "maintenance set ada
10435 ignore-descriptive-types" and "maintenance show ada
10436 ignore-descriptive-types".
10437 * NEWS: Add entry for new "maint ada set/show
10438 ignore-descriptive-types" commands.
10440 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10442 * record-btrace.c (record_btrace_close): Call btrace_teardown
10445 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10447 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10450 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10452 * ada-typeprint (type_is_full_subrange_of_target_type):
10454 (print_range): Add parameter bounds_prefered_p. If not set,
10455 try printing range types using the name of their base type.
10456 (print_range_type): Add parameter bounds_prefered_p.
10457 Use it in call to print_range.
10458 (print_array_type, ada_print_type): Update calls to print_range
10459 and print_range_type.
10461 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10463 * ada-typeprint.c (print_array_type, print_choices, print_range)
10464 (print_range_bound, print_dynamic_range_bound, print_range_type):
10465 Remove declaration.
10467 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10469 * ada-typeprint.c (print_range): Add missing empty line
10470 after local declaration.
10472 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10474 * ada-valprint.c (print_optional_low_bound): Get index_type's
10475 target type for as long as it is a TYPE_CODE_RANGE.
10477 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10479 * procfs.c (procfs_make_note_section): Remove assertion and
10480 associated comment.
10482 2014-01-24 Yao Qi <yao@codesourcery.com>
10484 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10485 * corelow.c (get_core_siginfo): Likewise.
10487 2014-01-24 Yao Qi <yao@codesourcery.com>
10489 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10490 ULONGEST. Don't check 'len' is negative.
10491 (remote_write_bytes): Change type of 'len' to ULONGEST.
10493 2014-01-23 Tom Tromey <tromey@redhat.com>
10496 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10497 Handle exception from frame.block.
10498 (FrameVars.fetch_frame_locals): Likewise.
10500 2014-01-23 Tom Tromey <tromey@redhat.com>
10503 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10504 on a NULL pointer. Move "goto error" to correct place.
10506 2014-01-23 Tom Tromey <tromey@redhat.com>
10509 * python/py-framefilter.c (apply_frame_filter): Call
10510 ensure_python_env after computing gdbarch.
10512 2014-01-23 Yao Qi <yao@codesourcery.com>
10514 * target.c (raw_memory_xfer_partial): Change argument type
10515 from void * to gdb_byte *.
10516 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10518 2014-01-22 Doug Evans <dje@google.com>
10520 New gdbserver option --debug-format=timestamp.
10521 * NEWS: Mention it.
10523 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10525 * syscalls/s390x-linux.xml: New file.
10526 * syscalls/s390-linux.xml: New file.
10527 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10528 (XML_SYSCALL_FILENAME_S390X): Likewise.
10529 (op_svc): New enum value for SVC opcode.
10530 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10531 (s390_linux_get_syscall_number): New function.
10532 (s390_gdbarch_init): Register '*get_syscall_number' and the
10533 syscall xml file name.
10534 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10535 "s390-linux.xml" and "s390x-linux.xml".
10536 * NEWS: Announce new feature.
10538 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10540 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10542 2014-01-22 Pedro Alves <palves@redhat.com>
10544 * xtensa-config.c: Include defs.h.
10546 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10548 * common/common-utils.h: Add "ARI:" comment beside __func__
10551 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10553 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10554 documentation a bit.
10556 2014-01-21 Roland McGrath <mcgrathr@google.com>
10558 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10559 * configure: Regenerate.
10560 * aclocal.m4: Regenerate.
10561 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10562 New substituted variables.
10563 (install-strip): New target.
10564 (INSTALL_SCRIPT): New substituted variable.
10565 (FLAGS_TO_PASS): Add it.
10566 (install-only): Use $(INSTALL_SCRIPT) rather than
10567 $(INSTALL_PROGRAM) for gcore.
10569 2014-01-20 Tom Tromey <tromey@redhat.com>
10571 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10574 2014-01-20 Tom Tromey <tromey@redhat.com>
10576 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10577 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10578 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10579 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10580 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10581 (struct cmd_list_element) <flags>: Remove.
10582 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10583 doc_allocated>: New fields.
10584 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10586 * maint.c (maintenance_do_deprecate): Update.
10587 * top.c (execute_command): Update.
10589 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10591 * xtensa-linux-nat.c: Include asm/ptrace.h.
10593 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10595 * Makefile.in (SFILES): Add d-support.c.
10596 (COMMON_OBS): Add d-support.o.
10597 * d-lang.h (d_parse_symbol): Add comment, now defined in
10599 * d-lang.c (parse_call_convention)
10600 (parse_attributes, parse_function_types)
10601 (parse_function_args, parse_type, parse_identifier)
10602 (call_convention_p, d_parse_symbol): Move functions to ...
10603 * d-support.c: ... New file.
10605 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10607 * d-lang.h (d_parse_symbol): Add declaration.
10608 * d-lang.c (extract_identifiers)
10609 (extract_type_info): Remove functions.
10610 (parse_call_convention, parse_attributes)
10611 (parse_function_types, parse_function_args)
10612 (parse_type, parse_identifier, call_convention_p)
10613 (d_parse_symbol): New functions.
10614 (d_demangle): Use d_parse_symbol to demangle D symbols.
10616 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10618 * d-lang.h (struct builtin_d_type): New data type.
10619 (builtin_d_type): Add declaration.
10620 * d-lang.c (d_language_arch_info, build_d_types)
10621 (builtin_d_type): New functions.
10622 (enum d_primitive_types): New data type.
10623 (d_language_defn): Change c_language_arch_info to
10624 d_language_arch_info.
10625 (d_type_data): New static variable.
10626 (_initialize_d_language): Initialize d_type_data.
10628 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10630 * d-lang.h (d_main_name): Add declaration.
10631 * d-lang.c (d_main_name): New function.
10632 * symtab.c (find_main_name): Add call to d_main_name.
10634 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10636 * d-lang.c (d_language_defn): Change macro_expansion_c to
10637 macro_expansion_no.
10639 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10641 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10643 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10645 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10646 gdb_exception" declaration.
10647 * remote.c (getpkt_or_notif_sane): Likewise.
10649 2014-01-17 Doug Evans <dje@google.com>
10651 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10652 function, contents of dirnames_to_char_ptr_vec_append moved here.
10653 (delim_string_to_char_ptr_vec): New function.
10654 (dirnames_to_char_ptr_vec_append): Rewrite.
10655 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10657 2014-01-17 Doug Evans <dje@google.com>
10659 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10661 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10662 #include "common-utils.h".
10663 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10664 * common/vec.h (VEC_ASSERT_PASS): Update.
10665 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10666 (MACH_CHECK_ERROR): Update.
10668 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10670 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10672 * gdbarch.h: Regenerate.
10674 2014-01-16 Tom Tromey <tromey@redhat.com>
10676 * value.c (struct value) <regnum>: Move earlier.
10678 2014-01-16 Tom Tromey <tromey@redhat.com>
10680 * remote.c (extended_remote_create_inferior): Rename from
10681 extended_remote_create_inferior_1. Add "ops" argument. Remove
10682 old implementation.
10684 2014-01-16 Pedro Alves <palves@redhat.com>
10686 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10687 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10690 2014-01-16 Doug Evans <dje@google.com>
10692 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10696 * btrace.h (btrace_thread_flag): New.
10697 (struct btrace_thread_info) <flags>: New.
10698 * record-btrace.c (record_btrace_resume_thread)
10699 (record_btrace_find_thread_to_move, btrace_step_no_history)
10700 (btrace_step_stopped, record_btrace_start_replaying)
10701 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10702 (record_btrace_find_resume_thread): New.
10703 (record_btrace_resume, record_btrace_wait): Extend.
10704 (record_btrace_can_execute_reverse): New.
10705 (record_btrace_open): Fail in non-stop mode.
10706 (record_btrace_set_replay): Split into this, ...
10707 (record_btrace_stop_replaying): ... this, ...
10708 (record_btrace_clear_histories): ... and this.
10709 (init_record_btrace_ops): Init to_can_execute_reverse.
10710 * NEWS: Announce it.
10712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10714 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10715 (forward_target_decr_pc_after_break)
10716 (target_decr_pc_after_break): New.
10717 * target.c (forward_target_decr_pc_after_break)
10718 (target_decr_pc_after_break): New.
10719 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10720 instead of gdbarch_decr_pc_after_break.
10721 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10722 instead of gdbarch_decr_pc_after_break.
10723 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10724 instead of gdbarch_decr_pc_after_break.
10725 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10726 instead of gdbarch_decr_pc_after_break.
10727 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10728 instead of gdbarch_decr_pc_after_break.
10729 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10730 instead of gdbarch_decr_pc_after_break.
10732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10734 * btrace.c: Include regcache.h.
10735 (btrace_add_pc): New.
10736 (btrace_enable): Call btrace_add_pc.
10737 (btrace_is_empty): New.
10738 * btrace.h (btrace_is_empty): New.
10739 * record-btrace.c (require_btrace, record_btrace_info): Call
10742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10744 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10745 Support delta reads.
10746 (linux_disable_btrace): Change return type.
10747 * common/linux-btrace.h (linux_read_btrace): Change parameters
10748 and return type to allow error reporting. Update users.
10749 (linux_disable_btrace): Change return type. Update users.
10750 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10752 (btrace_error): New.
10753 (btrace_block) <begin>: Comment on BEGIN == 0.
10754 * btrace.c (btrace_compute_ftrace): Start from the end of
10756 (btrace_stitch_trace, btrace_clear_history): New.
10757 (btrace_fetch): Read delta trace, return if replaying.
10758 (btrace_clear): Move clear history code to btrace_clear_history.
10759 (parse_xml_btrace): Throw an error if parsing failed.
10760 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10761 and return type to allow error reporting.
10762 (target_read_btrace): Change parameters and return type to allow
10764 * target.c (target_read_btrace): Update.
10765 * remote.c (remote_read_btrace): Support delta reads. Pass
10767 * NEWS: Announce it.
10769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10771 * record.h (record_btrace_frame_unwind)
10772 (record_btrace_tailcall_frame_unwind): New declarations.
10773 * dwarf2-frame: Include record.h
10774 (dwarf2_frame_cfa): Throw an error for btrace frames.
10775 * record-btrace.c: Include hashtab.h.
10776 (btrace_get_bfun_name): New.
10777 (btrace_call_history): Call btrace_get_bfun_name.
10778 (struct btrace_frame_cache): New.
10780 (bfcache_hash, bfcache_eq, bfcache_new): New.
10781 (btrace_get_frame_function): New.
10782 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10783 (record_btrace_frame_this_id): Compute own id.
10784 (record_btrace_frame_prev_register): Provide PC, throw_error
10785 for all other registers.
10786 (record_btrace_frame_sniffer): Detect btrace frames.
10787 (record_btrace_tailcall_frame_sniffer): New.
10788 (record_btrace_frame_dealloc_cache): New.
10789 (record_btrace_frame_unwind): Add new functions.
10790 (record_btrace_tailcall_frame_unwind): New.
10791 (_initialize_record_btrace): Allocate cache.
10792 * btrace.c (btrace_clear): Call reinit_frame_cache.
10793 * NEWS: Announce it.
10795 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10797 * record-btrace.c (record_btrace_set_replay)
10798 (record_btrace_goto_begin, record_btrace_goto_end)
10799 (record_btrace_goto): New.
10800 (init_record_btrace_ops): Initialize them.
10801 * NEWS: Announce it.
10803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10805 * record-btrace.c (record_btrace_find_new_threads)
10806 (record_btrace_thread_alive): New.
10807 (init_record_btrace_ops): Initialize to_find_new_threads and
10810 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10812 * record-btrace.c (record_btrace_resume): New.
10813 (record_btrace_wait): New.
10814 (init_record_btrace_ops): Initialize to_wait and to_resume.
10816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10818 * record-btrace.c (record_btrace_xfer_partial)
10819 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10820 (record_btrace_allow_memory_access): New.
10821 (init_record_btrace_ops): Initialize new methods.
10822 * target.c (raw_memory_xfer_partial): Bail out if target reports
10823 that this memory is not available.
10825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10827 * target.h (target_ops) <to_insert_breakpoint>
10828 <to_remove_breakpoint>: Add target_ops parameter.
10829 (forward_target_insert_breakpoint): New.
10830 (forward_target_remove_breakpoint): New.
10831 (memory_remove_breakpoint, memory_insert_breakpoint):
10832 Add target_ops parameter.
10833 * target.c (target_insert_breakpoint): Split into this and ...
10834 (forward_target_insert_breakpoint): ... this.
10835 (target_remove_breakpoint): Split into this and ...
10836 (forward_target_remove_breakpoint): ... this.
10837 (debug_to_insert_breakpoint): Add target_ops parameter.
10838 Call forward_target_insert_breakpoint.
10839 (debug_to_remove_breakpoint): Add target_ops parameter.
10840 Call forward_target_remove_breakpoint.
10841 (update_current_target): Do not inherit or default to_insert_breakpoint
10842 and to_remove_breakpoint.
10843 * corelow.c (ignore): Add target_ops parameter.
10844 * exec.c (ignore): Add target_ops parameter.
10845 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10846 Add target_ops parameter.
10847 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10848 Add target_ops parameter.
10849 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10850 Add target_ops parameter.
10851 * record-full.c (record_full_beneath_to_insert_breakpoint)
10852 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10853 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10854 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10855 (record_full_core_remove_breakpoint): Add target_ops parameter.
10857 (record_full_beneath_to_insert_breakpoint_ops)
10858 (record_full_beneath_to_remove_breakpoint_ops)
10859 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10860 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10861 tmp_to_remove_breakpoint_ops,
10862 record_full_beneath_to_insert_breakpoint_ops, and
10863 record_full_beneath_to_remove_breakpoint_ops.
10864 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10865 (m32r_remove_breakpoint): Add target_ops parameter.
10866 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10867 Add target_ops parameter.
10868 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10869 Add target_ops parameter.
10871 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10872 Markus Metzger <markus.t.metzger@intel.com>
10874 * record-btrace.c: Include frame-unwind.h.
10875 (record_btrace_frame_unwind_stop_reason)
10876 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10877 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10879 (init_record_btrace_ops): Install it.
10881 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10883 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10886 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10888 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10891 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10893 * frame-unwind.c: Include target.h.
10894 (frame_unwind_try_unwinder): New function with code from ...
10895 (frame_unwind_find_by_frame): ... here. New variable
10896 unwinder_from_target, call also target_get_unwinder)
10897 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10898 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10899 * target.h (struct target_ops): New fields to_get_unwinder and
10900 to_get_tailcall_unwinder.
10901 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10905 * record-btrace.c (record_btrace_fetch_registers)
10906 (record_btrace_store_registers)
10907 (record_btrace_to_prepare_to_store): New.
10908 (init_record_btrace_ops): Add the above.
10910 2014-01-16 Tom Tromey <tromey@redhat.com>
10912 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10913 * target.h (struct target_ops) <to_prepare_to_store>: Add
10915 (target_prepare_to_store): Add argument.
10916 * target.c (debug_to_prepare_to_store): Add argument.
10917 (update_current_target): Update.
10918 * remote.c (remote_prepare_to_store): Add 'self' argument.
10919 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10920 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10921 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10922 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10924 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10925 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10926 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10927 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10928 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10932 * btrace.h (replay) <replay>: New.
10933 (btrace_is_replaying): New.
10934 * btrace.c (btrace_clear): Free replay iterator.
10935 (btrace_is_replaying): New.
10936 * record-btrace.c (record_btrace_is_replaying): New.
10937 (record_btrace_info): Print insn number if replaying.
10938 (record_btrace_insn_history): Start at replay position.
10939 (record_btrace_call_history): Start at replay position.
10940 (init_record_btrace_ops): Init to_record_is_replaying.
10942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10944 * record-btrace.c (record_btrace_insn_history_range): Include
10946 (record_btrace_insn_history_from): Adjust range.
10947 (record_btrace_call_history_range): Include
10949 (record_btrace_call_history_from): Adjust range.
10950 * NEWS: Announce changes.
10952 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10954 * record.h (enum record_print_flag)
10955 <record_print_indent_calls>: New.
10956 * record.c (get_call_history_modifiers): Recognize /c modifier.
10957 (_initialize_record): Document /c modifier.
10958 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10959 Reorder fields. Optionally indent the function name. Update
10961 * NEWS: Announce changes.
10963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10965 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10967 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10969 * btrace.c (ftrace_new_function): Start counting at one.
10970 * record-btrace.c (record_btrace_info): Adjust number of calls
10972 * NEWS: Announce it.
10974 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10976 * record-btrace.c (btrace_call_history_insn_range): Print
10977 insn range as [begin, end].
10979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10981 * btrace.h (struct btrace_func_link): New.
10982 (enum btrace_function_flag): New.
10983 (struct btrace_inst): Rename to ...
10984 (struct btrace_insn): ...this. Update all users.
10985 (struct btrace_func) <ibegin, iend>: Remove.
10986 (struct btrace_func_link): New.
10987 (struct btrace_func): Rename to ...
10988 (struct btrace_function): ...this. Update all users.
10989 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10990 (number, level, flags>: New.
10991 (struct btrace_insn_iterator): Rename to ...
10992 (struct btrace_insn_history): ...this.
10994 (struct btrace_insn_iterator, btrace_call_iterator): New.
10995 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10996 (struct btrace_target_info) <begin, end, level>
10997 <insn_history, call_history>: New.
10998 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10999 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11000 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11001 (btrace_call_number, btrace_call_begin, btrace_call_end)
11002 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11003 (btrace_find_function_by_number, btrace_set_insn_history)
11004 (btrace_set_call_history): New.
11005 * btrace.c (btrace_init_insn_iterator)
11006 (btrace_init_func_iterator, compute_itrace): Remove.
11007 (ftrace_print_function_name, ftrace_print_filename)
11008 (ftrace_skip_file): Change
11009 parameter to const.
11010 (ftrace_init_func): Remove.
11011 (ftrace_debug): Use new btrace_function fields.
11012 (ftrace_function_switched): Also consider gaining and
11013 losing symbol information).
11014 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11015 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11016 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11018 (ftrace_new_function): Move. Remove debug print.
11019 (ftrace_update_lines, ftrace_update_insns): New.
11020 (ftrace_update_function): Check for call, ret, and jump.
11021 (compute_ftrace): Renamed to ...
11022 (btrace_compute_ftrace): ...this. Rewritten to compute call
11024 (btrace_fetch, btrace_clear): Updated.
11025 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11026 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11027 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11028 (btrace_call_number, btrace_call_begin, btrace_call_end)
11029 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11030 (btrace_find_function_by_number, btrace_set_insn_history)
11031 (btrace_set_call_history): New.
11032 * record-btrace.c (require_btrace): Use new btrace thread
11034 (record_btrace_info, btrace_insn_history)
11035 (record_btrace_insn_history, record_btrace_insn_history_range):
11036 Use new btrace thread info fields and new iterator.
11037 (btrace_func_history_src_line): Rename to ...
11038 (btrace_call_history_src_line): ...this. Use new btrace
11039 thread info fields.
11040 (btrace_func_history): Rename to ...
11041 (btrace_call_history): ...this. Use new btrace thread info
11042 fields and new iterator.
11043 (record_btrace_call_history, record_btrace_call_history_range):
11044 Use new btrace thread info fields and new iterator.
11046 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11048 * frame.h (frame_id_build_unavailable_stack_special): New.
11049 * frame.c (frame_id_build_unavailable_stack_special): New.
11051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11053 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11054 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11055 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11057 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11058 (i386_insn_is_jump, i386_jmp_p): New.
11059 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11060 insn_is_jump to gdbarch.
11061 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11062 * gdbarch.h: Regenerated.
11063 * gdbarch.c: Regenerated.
11064 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11065 (default_insn_is_jump): New.
11066 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11067 (default_insn_is_jump): New.
11069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11071 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11073 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11074 (btrace_read_type) <btrace_read_new>: Change to ...
11075 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11079 * common/linux-btrace.c (linux_read_btrace): Free trace from
11080 previous iteration.
11082 2014-01-15 Doug Evans <dje@google.com>
11084 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11087 2014-01-15 Tom Tromey <tromey@redhat.com>
11089 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11090 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11091 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11092 (set_objfile_main_name): New function.
11093 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11094 language_of_main>: New fields.
11095 (set_objfile_main_name): Declare.
11096 * symtab.c (find_main_name): Loop over objfiles to find the main
11098 (set_main_name): Now static.
11099 (get_main_info): Add comment.
11100 * symtab.h (set_main_name): Don't declare.
11102 2014-01-15 Tom Tromey <tromey@redhat.com>
11104 * symtab.c (main_progspace_key): New global.
11105 (struct main_info): New.
11106 (name_of_main, language_of_main): Remove.
11107 (get_main_info, main_info_cleanup): New function.
11108 (set_main_name, main_name, main_language): Use get_main_info.
11109 (_initialize_symtab): Initialize main_progspace_key.
11111 2014-01-15 Tom Tromey <tromey@redhat.com>
11113 * dbxread.c (process_one_symbol): Update.
11114 * dwarf2read.c (read_partial_die): Update.
11115 * symfile.c (set_initial_language): Call main_language.
11116 * symtab.c (language_of_main): Now static.
11117 (set_main_name): Add 'lang' parameter.
11118 (find_main_name): Update.
11119 (main_language): New function.
11120 (symtab_observer_executable_changed): Update.
11121 * symtab.h (set_main_name): Update.
11122 (language_of_main): Remove.
11123 (main_language): Declare.
11125 2014-01-15 Tom Tromey <tromey@redhat.com>
11127 * symfile.c (init_entry_point_info): Use new "initialized" field.
11129 * objfiles.h (struct entry_point) <initialized>: New field.
11130 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11131 (struct objfile) <ei>: ...here. Remove.
11132 * objfiles.c (entry_point_address_query): Update.
11134 2014-01-15 Tom Tromey <tromey@redhat.com>
11136 * objfiles.c (entry_point_address_query): Relocate entry point
11138 (objfile_relocate1): Do not relocate entry point address.
11139 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11140 <the_bfd_section_index>: New field.
11141 * symfile.c (init_entry_point_info): Find the entry point's
11144 2014-01-15 Tom Tromey <tromey@redhat.com>
11146 * solib-frv.c (enable_break): Use entry_point_address_query.
11148 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11150 * NEWS: Add note on improved process record-replay on
11151 arm*-linux* targets.
11153 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11155 * arm-tdep.c (enum arm_record_result): New enum.
11156 (arm_record_unsupported_insn): New function.
11157 (arm_record_coproc_data_proc): Removed.
11158 (thumb2_record_ld_st_multiple): New function.
11159 (thumb2_record_ld_st_dual_ex_tbb): New function.
11160 (thumb2_record_data_proc_sreg_mimm): New function.
11161 (thumb2_record_ps_dest_generic): New function.
11162 (thumb2_record_branch_misc_cntrl): New function.
11163 (thumb2_record_str_single_data): New function.
11164 (thumb2_record_ld_mem_hints): New function.
11165 (thumb2_record_ld_word): New function.
11166 (thumb2_record_lmul_lmla_div): New function.
11167 (thumb2_record_decode_insn_handler): New function.
11168 (decode_insn): Add thumb32 instruction handlers.
11170 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11172 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11173 (struct arm_linux_record_tdep): Declare.
11174 (arm_canonicalize_syscall): New function.
11175 (arm_all_but_pc_registers_record): New function.
11176 (arm_linux_syscall_record): New function.
11177 (arm_linux_init_abi): Add syscall recording constructs.
11178 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11179 decoding. (arm_record_coproc_data_proc): Update arm syscall
11181 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11182 <arm_syscall_record>: New field.
11183 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11186 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11188 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11189 register for push instruction recording.
11191 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11193 * arm-tdep.c (thumb_record_misc): Update to correct logical
11194 error while recording ldm, ldmia and pop instructions.
11196 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11198 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11200 2014-01-15 Pedro Alves <palves@redhat.com>
11202 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11203 (go32_resume, go32_fetch_registers, store_register)
11204 (go32_store_registers, go32_prepare_to_store)
11205 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11206 (go32_create_inferior, go32_can_run, go32_terminal_init)
11207 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11210 2014-01-15 Tom Tromey <tromey@redhat.com>
11212 * target.h (async_callback_ftype): New typedef.
11213 (struct target_ops) <to_async>: Use it.
11215 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11217 * python/py-value.c (get_field_type): Remove unnecessary curly
11218 braces for single-statement if block.
11220 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11222 * python/py-type.c (convert_field): Add missing empty line
11223 after declarations.
11225 2014-01-14 Doug Evans <dje@google.com>
11227 * symfile.h (expand_symtabs_matching): Renamed from
11228 expand_partial_symbol_names. Update prototype.
11229 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11230 * symfile.c (expand_symtabs_matching): Renamed from
11231 expand_partial_symbol_names. New args file_matcher, kind.
11232 Rename arg fun to symbol_matcher.
11233 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11234 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11235 ada_expand_partial_symbol_name.
11236 (ada_make_symbol_completion_list): Update to call
11237 expand_symtabs_matching.
11238 (ada_add_global_exceptions): Call expand_symtabs_matching.
11239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11240 call map_symbol_filenames.
11241 * symtab.c (sources_info): Update to call map_symbol_filenames.
11242 (search_symbols): Call expand_symtabs_matching.
11243 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11244 (default_make_symbol_completion_list_break_on): Update to call
11245 expand_symtabs_matching.
11246 (make_source_files_completion_list): Update to call
11247 map_symbol_filenames.
11249 2014-01-14 Doug Evans <dje@google.com>
11251 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11252 (expand_symtabs_symbol_matcher_ftype): New typedef.
11253 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11254 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11255 * symfile.c (expand_partial_symbol_names): Update to use
11256 expand_symtabs_symbol_matcher_ftype.
11257 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11258 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11259 Arg name_matcher renamed to symbol_matcher.
11260 * psymtab.c (recursively_search_psymtabs): Update to use
11261 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11263 (expand_symtabs_matching_via_partial): Update to use
11264 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11265 Arg name_matcher renamed to symbol_matcher.
11267 2014-01-14 Doug Evans <dje@google.com>
11269 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11270 (map_partial_symbol_filenames): Ditto.
11271 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11272 (map_partial_symbol_filenames): Ditto.
11273 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11274 (map_partial_symbol_filenames): Ditto.
11275 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11276 (map_partial_symbol_filenames): Ditto.
11277 * symtab.c: Delete #include "psymtab.h".
11279 2014-01-14 Pedro Alves <palves@redhat.com>
11280 Tom Tromey <tromey@redhat.com>
11282 * infrun.c (use_displaced_stepping): Use find_record_target
11283 instead of RECORD_IS_USED.
11284 (adjust_pc_after_break): Use record_full_is_used instead of
11286 * record-btrace.c (record_btrace_open): Call record_preopen
11287 instead of checking RECORD_IS_USED.
11288 * record-full.c (record_full_shortname)
11289 (record_full_core_shortname): New globals.
11290 (record_full_is_used): New function.
11291 (find_full_open): Call record_preopen instead of checking
11293 (init_record_full_ops): Set the target's shortname to
11294 record_full_shortname.
11295 (init_record_full_core_ops): Set the target's shortname to
11296 record_full_core_shortname.
11297 * record-full.h (record_full_is_used): Declare.
11298 * record.c (find_record_target): Make extern.
11299 (record_preopen): New function.
11300 * record.h (RECORD_IS_USED): Delete macro.
11301 (find_record_target, record_preopen): Declare functions.
11303 2014-01-14 Yao Qi <yao@codesourcery.com>
11305 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11306 'len''s type to ULONGEST.
11307 (core_xfer_shared_libraries_aix): Likewise.
11308 * gdbarch.c, gdbarch.h: Regenerated.
11309 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11310 Change type of 'len' to ULONGEST.
11311 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11312 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11314 2014-01-14 Yao Qi <yao@codesourcery.com>
11316 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11317 type of 'len' to ULONGEST.
11318 (linux_xfer_osdata_processgroups): Likewise.
11319 (linux_xfer_osdata_threads): Likewise.
11320 (linux_xfer_osdata_fds): Likewise.
11321 (linux_xfer_osdata_isockets): Likewise.
11322 (linux_xfer_osdata_shm): Likewise.
11323 (linux_xfer_osdata_sem): Likewise.
11324 (linux_xfer_osdata_msg): Likewise.
11325 (linux_common_xfer_osdata): Likewise.
11326 (struct osdata_type) <getter>: Likewise.
11327 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11330 2014-01-14 Yao Qi <yao@codesourcery.com>
11332 * target.h (target_xfer_partial_ftype): Update.
11333 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11335 * aix-thread.c (aix_thread_xfer_partial): Change type of
11336 argument 'len' to ULONGEST.
11337 * auxv.c (procfs_xfer_auxv): Likewise.
11338 (ld_so_xfer_auxv): Likewise.
11339 (memory_xfer_auxv): Likewise.
11340 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11341 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11342 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11343 * corelow.c (core_xfer_partial): Likewise.
11344 * ctf.c (ctf_xfer_partial): Likewise.
11345 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11347 (darwin_read_dyld_info): Likewise.
11348 (darwin_xfer_partial): Likewise.
11349 * exec.c (section_table_xfer_memory_partial): Likewise.
11350 (exec_xfer_partial): Likewise.
11351 * exec.h (section_table_xfer_memory_partial): Update
11353 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11354 instead of plongest.
11355 (gnu_xfer_partial): Likewise.
11356 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11357 (ia64_hpux_xfer_solib_got): Likewise.
11358 (ia64_hpux_xfer_partial): Likewise.
11359 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11360 * inf-ptrace.c (inf_ptrace_xfer_partial):
11361 * inf-ttrace.c (inf_ttrace_xfer_partial):
11362 * linux-nat.c (linux_xfer_siginfo): Likewise.
11363 (linux_nat_xfer_partial): Likewise.
11364 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11365 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11366 * monitor.c (monitor_xfer_memory): Likewise.
11367 (monitor_xfer_partial): Likewise.
11368 * procfs.c (procfs_xfer_partial): Likewise.
11369 * record-full.c (record_full_xfer_partial): Likewise.
11370 (record_full_core_xfer_partial): Likewise.
11371 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11372 instead of plongest.
11373 (gdbsim_xfer_partial): Likewise.
11374 * remote.c (remote_xfer_partial): Likewise.
11375 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11376 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11378 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11379 (rs6000_xfer_shared_libraries): Likewise.
11380 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11381 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11382 (sparc_xfer_partial): Likewise.
11383 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11384 (spu_xfer_partial): Likewise.
11385 * spu-multiarch.c (spu_xfer_partial): Likewise.
11386 * target.c (target_read_live_memory): Likewise.
11387 (memory_xfer_live_readonly_partial): Likewise.
11388 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11389 (target_xfer_partial, default_xfer_partial): Likewise.
11390 (current_xfer_partial): Likewise.
11391 * tracepoint.c (tfile_xfer_partial): Likewise.
11392 * windows-nat.c (windows_xfer_memory): Likewise. Call
11393 pulongest instead of plongest.
11394 (windows_xfer_partial): Likewise.
11395 (windows_xfer_shared_libraries): Likewise.
11397 2014-01-14 Yao Qi <yao@codesourcery.com>
11399 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11400 target_xfer_partial_ftype.
11402 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11406 * valops.c (value_struct_elt_bitpos): New function
11407 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11408 object to 'None' if the field name is an empty string ("").
11409 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11410 attribute to look for a field when 'name' is 'None'.
11411 (get_field_type): New function
11413 2014-01-13 Doug Evans <dje@google.com>
11416 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11417 (try_open_dwop_file): Ditto.
11418 * gdb_bfd.c: #include "vec.h".
11419 (bfdp): New typedef.
11420 (struct gdb_bfd_data): New member included_bfds.
11421 (gdb_bfd_unref): Unref all included bfds.
11422 (gdb_bfd_record_inclusion): New function.
11423 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11425 2014-01-13 Tom Tromey <tromey@redhat.com>
11427 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11429 2014-01-13 Tom Tromey <tromey@redhat.com>
11431 * defs.h (use_windows): Remove.
11432 * gdb.c (main): Update.
11433 * main.c (captured_main, gdb_main): Update.
11434 * main.h (struct captured_main_args) <use_windows>: Remove.
11435 * top.c (use_windows): Remove.
11437 2014-01-13 Tom Tromey <tromey@redhat.com>
11439 * defs.h (deprecated_flush_hook): Remove.
11441 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11444 * linux-thread-db.c (try_thread_db_load): Add parameter
11445 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11446 (try_thread_db_load_from_pdir_1): Move it there from here.
11447 (try_thread_db_load_from_sdir): Update caller.
11448 (try_thread_db_load_from_dir): Move it there from here.
11450 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11452 * regformats/regdat.sh: Always rewrite the register file.
11454 2014-01-13 Pedro Alves <palves@redhat.com>
11456 * Makefile.in (CHECK_HEADERS): New variable.
11457 (check-headers:): New rule.
11459 2014-01-13 Tom Tromey <tromey@redhat.com>
11461 * cli/cli-setshow.c (do_set_command): Update.
11462 * defs.h (deprecated_set_hook): Remove.
11463 * top.c (deprecated_set_hook): Remove.
11465 2014-01-13 Pedro Alves <palves@redhat.com>
11467 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11468 the tracepoint if the PC is a pseudo-register.
11470 2014-01-13 Tom Tromey <tromey@redhat.com>
11472 * defs.h (XCALLOC): Remove.
11473 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11474 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11475 * dwarf2loc.c (allocate_piece_closure): Likewise.
11476 * elfread.c (elf_symfile_segments): Likewise.
11477 (elf_symfile_segments): Likewise.
11478 * gdbtypes.c (copy_type_recursive): Likewise.
11479 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11480 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11481 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11483 * mt-tdep.c (mt_gdbarch_init): Likewise.
11484 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11486 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11487 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11488 * registry.c (registry_alloc_data): Likewise.
11489 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11490 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11491 * serial.c (serial_fdopen_ops): Likewise.
11492 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11494 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11495 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11498 2014-01-13 Tom Tromey <tromey@redhat.com>
11500 * defs.h (XMALLOC): Remove.
11501 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11502 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11503 * cli-out.c (struct ui_out *): Likewise.
11504 * cli/cli-dump.c (add_dump_command): Likewise.
11505 (add_dump_command): Likewise.
11506 * complaints.c (get_complaints): Likewise.
11507 (find_complaint): Likewise.
11508 * dwarf2-frame.c (execute_cfa_program): Likewise.
11509 * dwarf2read.c (abbrev_table_read_table): Likewise.
11510 * gdbarch.sh: Likewise.
11511 * gdbarch.c: Rebuild.
11512 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11513 * interps.c (interp_new): Likewise.
11514 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11515 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11516 * mi/mi-console.c (mi_console_file_new): Likewise.
11517 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11518 * mi/mi-out.c (mi_out_new): Likewise.
11519 * mi/mi-parse.c (mi_parse): Likewise.
11520 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11521 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11522 * observer.c (xalloc_observer_list_node): Likewise.
11523 * regcache.c (regcache_xmalloc_1): Likewise.
11524 * reggroups.c (reggroup_new): Likewise.
11525 (_initialize_reggroup): Likewise.
11526 * registry.c (register_data_with_cleanup): Likewise.
11527 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11528 * ser-base.c (serial_ttystate): Likewise.
11529 * ser-mingw.c (make_pipe_state): Likewise.
11530 * ser-pipe.c (pipe_open): Likewise.
11531 * serial.c (serial_open): Likewise.
11532 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11533 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11534 (tui_alloc_win_info): Likewise.
11535 (tui_add_content_elements): Likewise.
11536 * tui/tui-file.c (tui_file_new): Likewise.
11537 * tui/tui-out.c (tui_out_new): Likewise.
11538 * ui-file.c (mem_file_new): Likewise.
11539 * ui-out.c (push_level): Likewise.
11540 (make_cleanup_ui_out_end): Likewise.
11541 (append_header_to_list): Likewise.
11542 (ui_out_new): Likewise.
11543 * user-regs.c (user_reg_add_builtin): Likewise.
11545 2014-01-13 Tom Tromey <tromey@redhat.com>
11547 * defs.h (XZALLOC): Remove.
11548 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11549 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11550 (get_ada_tasks_inferior_data): Likewise.
11551 * auto-load.c (get_auto_load_pspace_data): Likewise.
11552 * auxv.c (get_auxv_inferior_data): Likewise.
11553 * bfd-target.c (target_bfd_reopen): Likewise.
11554 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11555 (deprecated_insert_raw_breakpoint): Likewise.
11556 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11557 * corelow.c (core_open): Likewise.
11558 * darwin-nat.c (darwin_check_new_threads): Likewise.
11559 (darwin_attach_pid): Likewise.
11560 * dummy-frame.c (dummy_frame_push): Likewise.
11561 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11562 * dwarf2loc.c (allocate_piece_closure): Likewise.
11563 * elfread.c (elf_symfile_segments): Likewise.
11564 * eval.c (ptrmath_type_p): Likewise.
11565 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11566 * gdbtypes.c (alloc_type_arch): Likewise.
11567 (alloc_type_instance): Likewise.
11568 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11569 * inf-child.c (inf_child_can_use_agent): Likewise.
11570 * inflow.c (get_inflow_inferior_data): Likewise.
11571 * infrun.c (save_infcall_suspend_state): Likewise.
11572 * jit.c (jit_reader_load): Likewise.
11573 (get_jit_objfile_data): Likewise.
11574 (get_jit_program_space_data): Likewise.
11575 (jit_object_open_impl): Likewise.
11576 (jit_symtab_open_impl): Likewise.
11577 (jit_block_open_impl): Likewise.
11578 (jit_frame_sniffer): Likewise.
11579 * linux-fork.c (add_fork): Likewise.
11580 * maint.c (make_command_stats_cleanup): Likewise.
11581 * objfiles.c (get_objfile_pspace_data): Likewise.
11582 * opencl-lang.c (struct lval_closure): Likewise.
11583 * osdata.c (osdata_start_osdata): Likewise.
11584 * progspace.c (new_address_space): Likewise.
11585 (add_program_space): Likewise.
11586 * remote-sim.c (get_sim_inferior_data): Likewise.
11587 * sh-tdep.c (sh_gdbarch_init): Likewise.
11588 * skip.c (Ignore): Likewise.
11589 (skip_delete_command): Likewise.
11590 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11591 (library_list_start_library): Likewise.
11592 (solib_aix_current_sos): Likewise.
11593 * solib-darwin.c (get_darwin_info): Likewise.
11594 (darwin_current_sos): Likewise.
11595 * solib-dsbt.c (get_dsbt_info): Likewise.
11596 * solib-ia64-hpux.c (new_so_list): Likewise.
11597 (ia64_hpux_get_solib_linkage_addr): Likewise.
11598 * solib-spu.c (append_ocl_sos): Likewise.
11599 (spu_current_sos): Likewise.
11600 * solib-svr4.c (get_svr4_info): Likewise.
11601 (svr4_keep_data_in_core): Likewise.
11602 (library_list_start_library): Likewise.
11603 (svr4_default_sos): Likewise.
11604 (svr4_read_so_list): Likewise.
11605 * solib-target.c (library_list_start_library): Likewise.
11606 (solib_target_current_sos): Likewise.
11607 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11608 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11609 * symfile.c (default_symfile_segments): Likewise.
11610 * target-descriptions.c (tdesc_data_init): Likewise.
11611 (tdesc_create_reg): Likewise.
11612 (struct tdesc_type *): Likewise.
11613 (tdesc_create_vector): Likewise.
11614 (tdesc_set_struct_size): Likewise.
11615 (struct tdesc_type *): Likewise.
11616 (tdesc_free_feature): Likewise.
11617 (tdesc_create_feature): Likewise.
11618 * windows-nat.c (windows_add_thread): Likewise.
11619 (windows_make_so): Likewise.
11620 * xml-support.c (gdb_xml_body_text): Likewise.
11621 (gdb_xml_create_parser_and_cleanup): Likewise.
11622 (xml_process_xincludes): Likewise.
11623 * xml-syscall.c (allocate_syscalls_info): Likewise.
11624 (syscall_create_syscall_desc): Likewise.
11626 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11628 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11629 function, with code from i386_stap_parse_special_token.
11630 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11631 (i386_stap_parse_special_token): Move code to the two functions
11632 above; simplify it.
11634 2014-01-09 Pedro Alves <palves@redhat.com>
11635 Hui Zhu <hui@codesourcery.com>
11638 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11639 bp_err_string. Don't mark the location shlib_disabled if the
11640 error thrown wasn't a generic or memory error. Catch errors
11641 thrown while inserting breakpoints in overlayed code. Output
11642 error message of software breakpoints.
11643 * remote.c (remote_insert_breakpoint): If this breakpoint has
11644 target-side commands but this stub doesn't support Z0 packets,
11645 throw NOT_SUPPORTED_ERROR error.
11646 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11647 * target.h (target_insert_breakpoint): Extend comment.
11648 (target_insert_hw_breakpoint): Add comment.
11650 2014-01-08 Pedro Alves <palves@redhat.com>
11652 * remote.c (remote_add_thread): Add threads silently if starting
11654 (remote_notice_new_inferior): If in all-stop, and starting up,
11655 don't call notice_new_inferior.
11656 (get_current_thread): New function, factored out from ...
11657 (add_current_inferior_and_thread): ... this. Adjust.
11658 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11659 found any thread, then select the remote's current thread as GDB's
11660 current thread too.
11662 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11664 * NEWS: Create a new section for the next release branch.
11665 Rename the section of the current branch, now that it has
11668 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11670 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11671 * version.in: Bump version to 7.7.50.DATE-cvs.
11673 2014-01-08 Yao Qi <yao@codesourcery.com>
11675 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11676 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11677 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11679 2014-01-08 Yao Qi <yao@codesourcery.com>
11681 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11682 return value of bfd_get_filename to symbol_file_add_from_bfd.
11684 2014-01-08 Pierre Muller <muller@sourceware.org>
11687 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11688 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11689 to prim_record_mininal_symbol_and_info.
11690 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11691 in call to prim_record_minimal_symbol_and_info.
11692 (read_pe_exported_syms): Set index field of section_data.
11694 2014-01-07 Andrew Pinski <apinski@cavium.com>
11696 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11697 * features/aarch64.c: Regenerate.
11699 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11701 * target.c (return_null): Define.
11702 (update_current_target): Use it instead of return_zero for
11703 functions that return a pointer.
11705 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11707 * source.c (add_path): Fix check for duplicated paths in the previously
11710 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11712 * ada-lang.c: Remove duplicated include statements.
11713 * alphabsd-nat.c: Ditto.
11714 * amd64-darwin-tdep.c: Ditto.
11715 * amd64fbsd-nat.c: Ditto.
11716 * auto-load.c: Ditto.
11718 * breakpoint.c: Ditto.
11719 * dbxread.c: Ditto.
11720 * fork-child.c: Ditto.
11721 * gdb_usleep.c: Ditto.
11722 * i386-darwin-tdep.c: Ditto.
11723 * i386fbsd-nat.c: Ditto.
11725 * inferior.c: Ditto.
11726 * jv-lang.c: Ditto.
11727 * linux-nat.c: Ditto.
11728 * linux-tdep.c: Ditto.
11729 * m68kbsd-nat.c: Ditto.
11730 * m68klinux-nat.c: Ditto.
11731 * microblaze-tdep.c: Ditto.
11732 * mips-linux-tdep.c: Ditto.
11733 * mn10300-tdep.c: Ditto.
11734 * nto-tdep.c: Ditto.
11735 * opencl-lang.c: Ditto.
11737 * printcmd.c: Ditto.
11738 * regcache.c: Ditto.
11739 * remote-m32r-sdi.c: Ditto.
11741 * symfile.c: Ditto.
11743 * tilegx-linux-nat.c: Ditto.
11744 * tilegx-tdep.c: Ditto.
11745 * tracepoint.c: Ditto.
11747 * vaxbsd-nat.c: Ditto.
11748 * windows-nat.c: Ditto.
11749 * xtensa-tdep.c: Ditto.
11751 2014-01-07 Yao Qi <yao@codesourcery.com>
11753 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11755 2014-01-07 Yao Qi <yao@codesourcery.com>
11756 Joel Brobecker <brobecker@adacore.com>
11758 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11759 (pdc_write_regs): Likewise.
11760 (fetch_regs_kernel_thread): Likewise.
11761 (store_regs_kernel_thread): Likewise.
11763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11765 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11766 tagged type objects to their actual type.
11768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11770 * ada-valprint.c (print_field_values): Add "language" parameter.
11771 Update calls to print_field_values and print_variant_part.
11772 Pass new parameter "language" in call to val_print instead
11773 of "current_language". Replace call to ada_val_print by call
11775 (print_variant_part): Add "language" parameter.
11776 (ada_val_print_struct_union): Update call to print_field_values.
11778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11780 * ada-valprint.c (ui_memcpy): Delete.
11781 (ada_print_floating): Update documentation. Add empty line
11782 between between function documentation and implementation.
11783 Delete variable "buffer". Use ui_file_xstrdup in place of
11784 ui_file_put. Minor adjustments following this change.
11786 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11788 * ada-valprint.c (ada_val_print_string): New function,
11789 extracted from ada_val_print_array.
11790 (ada_val_print_array): Replace extracted code by call
11791 to ada_val_print_string followed by a return. Move
11792 "else" branch to the function's top block.
11794 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11796 * ada-valprint.c (ada_val_print_array): Move implementation
11797 down. Rename parameter "offset" and "val" into "offset_aligned"
11798 and "original_value" respectively. Add parameter "offset".
11800 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11802 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11803 re-organizing the code. Change the "???" message printed
11804 when target type is a TYPE_CODE_UNDEF into
11805 "<ref to undefined type>".
11807 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11809 * ada-valprint.c (print_record): Delete, implementation inlined...
11810 (ada_val_print_struct_union): ... here. Remove call to
11811 ada_check_typedef in inlined implementation.
11813 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11815 * ada-valprint.c (ada_val_print_gnat_array): New function,
11816 extracted from ada_val_print_1;
11817 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11818 (ada_val_print_flt, ada_val_print_struct_union)
11819 (ada_val_print_ref): Likewise.
11820 (ada_val_print_1): Delete variables i and elttype.
11821 Replace extracted-out code by call to corresponding
11824 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11826 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11828 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11830 * ada-valprint.c (ada_val_print_1): Replace calls to
11831 ada_val_print_1 by calls to val_print.
11833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11835 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11836 Update calls to self accordingly. Replace calls to c_val_print
11837 by calls to val_print.
11839 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11841 * ada-valprint.c (print_record): Delete declaration.
11842 (adjust_type_signedness, ada_val_print_1): Likewise.
11843 (ada_val_print): Move function implementation down.
11844 (print_variant_part, print_field_values, print_record):
11845 Move function implementation up.
11847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11849 * python/py-type.c (typy_get_name): New function.
11850 (type_object_getset): Add entry for attribute "name".
11851 * NEWS: Add entry mentioning this new attribute.
11853 2014-01-07 Yao Qi <yao@codesourcery.com>
11855 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11858 2014-01-07 Yao Qi <yao@codesourcery.com>
11860 * gnu-nat.c (info_port_rights): Add qualifier const to
11863 2014-01-07 Yao Qi <yao@codesourcery.com>
11865 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11867 2014-01-07 Yao Qi <yao@codesourcery.com>
11869 * gnu-nat.c (make_inf) Update declaration.
11870 (make_inf): Make it static.
11871 (inf_set_traced): Likewise.
11872 (inf_port_to_thread, inf_task_died_status): Likewise.
11874 2014-01-07 Yao Qi <yao@codesourcery.com>
11876 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11878 2014-01-07 Yao Qi <yao@codesourcery.com>
11880 * gnu-nat.c (_initialize_gnu_nat): Declare.
11882 2014-01-07 Yao Qi <yao@codesourcery.com>
11884 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11886 (struct gdbarch_info) <byte_order>: Change type to
11888 <byte_order_for_code>: Likewise.
11889 * gdbarch.c, gdbarch.h: Regenerated.
11891 2014-01-06 Sasha Smundak <asmundak@google.com>
11893 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11895 2014-01-06 Tom Tromey <tromey@redhat.com>
11897 * doublest.c (convert_doublest_to_floatformat): Use const, not
11899 * somread.c (som_symtab_read): Likewise.
11901 2014-01-07 Hui Zhu <hui@codesourcery.com>
11903 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11904 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11905 (gdb_bfd_fopen): Ditto.
11906 (gdb_bfd_openr): Ditto.
11907 (gdb_bfd_openw): Ditto.
11908 (gdb_bfd_openr_iovec): Ditto.
11909 (gdb_bfd_fdopenr): Ditto.
11910 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11911 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11913 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11915 * symfile-mem.c (symbol_file_add_from_memory): Removed
11916 gdb_bfd_stash_filename.
11918 2014-01-03 Doug Evans <dje@google.com>
11920 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11923 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11925 Update year range in copyright notice of all files.
11927 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11929 * top.c (print_gdb_version): Set copyright year to 2014.
11931 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11933 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11935 For older changes see ChangeLog-2013.
11941 version-control: never