d195f4af1d266f55ad3a64727c652d7a9c653cdd
[binutils-gdb.git] / gdb / ChangeLog
1 2014-08-15 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4 unused.
5
6 2014-08-15 Eli Zaretskii <eliz@gnu.org>
7
8 * dcache.h: Include target.h, to avoid compile time warnings.
9
10 2014-08-15 Joel Brobecker <brobecker@adacore.com>
11
12 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
13 frame_info" partial declaration.
14 * gdbarch.h: Regenerate.
15
16 2014-08-15 Yao Qi <yao@codesourcery.com>
17
18 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
19 Add parameter 'decode_for_pst_p'. Callers update.
20
21 2014-08-13 Yao Qi <yao@codesourcery.com>
22
23 PR build/17104
24 * configure.ac: Use local variable 'pos'.
25 * configure: Regenerated.
26
27 2014-08-11 Doug Evans <dje@google.com>
28
29 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
30 message, it is redundant with "Reading symbols from ..." message.
31
32 2014-08-10 Doug Evans <xdje42@gmail.com>
33
34 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
35
36 2014-08-09 Yao Qi <yao@codesourcery.com>
37
38 PR remote/9053
39 * remote.c (remote_xfer_partial): Remove dead code.
40
41 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
42
43 * ia64-linux-tdep.c: Include "regset.h".
44 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
45 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
46 (ia64_linux_supply_fpregset): New function.
47 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
48 (ia64_linux_regset_from_core_section): New function.
49 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
50 method.
51
52 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
53
54 * m68klinux-tdep.c: Include "regset.h".
55 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
56 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
57 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
58 (m68k_linux_regset_from_core_section): New function.
59 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
60 method.
61
62 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
63
64 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
65 function. Move logic to...
66 (tilegx_linux_regmap): ... this new register map.
67 (tilegx_linux_regset): Refer to register map, replace supply
68 method by regcache_supply_regset, and add collect method.
69 * tilegx-tdep.h (enum tilegx_regnum): New enum value
70 TILEGX_FIRST_EASY_REGNUM.
71
72 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
73
74 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
75 that calls regcache_supply_regset and handles the EPC register
76 separately. Move main logic to...
77 (score7_linux_gregmap): ... this new register map.
78 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
79 (score7_linux_gregset): Refer to register map. Add collect method.
80 (score7_linux_regset_from_core_section): Replace
81 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
82 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
83 (struct regset): Delete unused forward declaraction.
84 (struct pt_regs): Delete structure definition.
85 (elf_gregset_t): Delete typedef.
86
87 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
88
89 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
90 (nios2_core_regset): Add collect method.
91
92 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
93
94 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
95 platform-independent and don't write to read-only input buffer.
96 (m32r_linux_collect_gregset): New function.
97 (m32r_linux_gregset): Add collect method.
98
99 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
100
101 * hppa-linux-tdep.c (greg_map): Rename to...
102 (hppa_linux_gregmap): ... this. Also convert to
103 regcache_map_entry format.
104 (hppa_linux_supply_regset): Delete function.
105 (hppa_linux_supply_fpregset): Delete function. Move logic to...
106 (hppa_linux_fpregmap): ... this new register map.
107 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
108 register map, replace supply method by regcache_supply_regset, and
109 add collect method regcache_collect_regset.
110
111 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
112
113 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
114 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
115 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
116 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
117 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
118 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
119 (frv_linux_supply_gregset): Replace main logic by call to
120 regcache_supply_regset, but keep clearing gr32-gr63.
121 (frv_linux_supply_fpregset): Delete function.
122 (frv_linux_gregset): Refer to appropriate register map and add
123 regcache_collect_regset as the collect method.
124 (frv_linux_fpregset): Likewise. Also exchange the supply method
125 by regcache_supply_regset.
126
127 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
128
129 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
130 by call to alpha_supply_int_regs.
131 (alpha_linux_collect_gregset): New function.
132 (alpha_linux_supply_fpregset): Replace logic by call to
133 alpha_supply_fp_regs.
134 (alpha_linux_collect_fpregset): New function.
135 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
136
137 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
138
139 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
140 by call to regcache_collect_regset.
141 (supply_gregset, supply_fpregset): Call regcache_supply_regset
142 instead of aarch64_linux_supply_gregset/_fpregset.
143 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
144 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
145 header file instead.
146 (aarch64_linux_supply_gregset, supply_gregset_from_core)
147 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
148 functions. Move logic to ...
149 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
150 register maps.
151 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
152 refer to new register maps, replace *_regset_from_core by
153 regcache_supply_regset, and also use regcache_collect_regset.
154 * aarch64-linux-tdep.h: Include "regset.h".
155 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
156 Delete prototypes.
157 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
158 macros, moved from C source file.
159 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
160 variable declarations.
161
162 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
163
164 * s390-linux-nat.c: Include "regset.h".
165 (regmap_gregset): Delete macro.
166 (s390_64_regmap_gregset): New register map for
167 regcache_supply/_collect_regset.
168 (s390_64_gregset): New regset.
169 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
170 (regmap_fpregset): Delete macro.
171 (s390_native_supply, s390_native_collect): Delete functions.
172 (supply_gregset, fill_gregset): Replace s390-specific regmap
173 handling by a call to regcache_supply/_collect_regset.
174 (supply_fpregset, fill_fpregset): Call regcache_supply/
175 _collect_regset instead of s390_native_supply/_collect.
176 (fetch_regset, store_regset): Likewise. Also change the last
177 parameter to a regset instead of a regmap.
178 (s390_linux_fetch_inferior_registers)
179 (390_linux_store_inferior_registers): Adjust last parameter in
180 calls to fetch_regset and store_regset.
181 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
182 (s390_gregmap): ... this. Also make static const and convert to
183 regcache_map_entry format.
184 (s390x_regmap_gregset): Delete.
185 (s390_regmap_fpregset): Rename to...
186 (s390_fpregmap): ... this. Make static const and convert to
187 regcache_map_entry format.
188 (s390_regmap_upper, s390_regmap_last_break)
189 (s390x_regmap_last_break, s390_regmap_system_call)
190 (s390_regmap_tdb): Likewise.
191 (s390_supply_regset, s390_collect_regset): Remove functions.
192 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
193 s390_supply_regset.
194 (s390_gregset, s390_fpregset, s390_upper_regset)
195 (s390_last_break_regset, s390x_last_break_regset)
196 (s390_system_call_regset, s390_tdb_regset): Make global and
197 replace s390_supply/_collect_regset by regcache_supply/
198 _collect_regset.
199 (s390x_gregset): Delete.
200 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
201 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
202 (s390_regmap_fpregset, s390_regmap_last_break)
203 (s390x_regmap_last_break, s390_regmap_system_call)
204 (s390_regmap_tdb): Delete global variable declarations.
205 (s390_gregset, s390_fpregset, s390_last_break_regset)
206 (s390x_last_break_regset, s390_system_call_regset)
207 (s390_tdb_regset): New global variable declarations.
208
209 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
210
211 * regcache.c: Include "regset.h".
212 (regcache_transfer_regset): New local function.
213 (regcache_supply_regset, regcache_collect_regset): New functions.
214 * regcache.h (struct regcache_map_entry): New structure.
215 (REGCACHE_MAP_SKIP): New enum value.
216 (regcache_supply_regset, regcache_collect_regset): New prototypes.
217
218 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
219
220 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
221 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
222 (ppc_linux_collect_gregset ): Likewise.
223 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
224 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
225 (ppc_collect_vrregset): Likewise.
226 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
227 Likewise.
228
229 2014-08-07 Yao Qi <yao@codesourcery.com>
230
231 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
232 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
233 * remote.c (remote_read_bytes): Likewise.
234
235 2014-08-07 Yao Qi <yao@codesourcery.com>
236
237 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
238
239 2014-08-07 Yao Qi <yao@codesourcery.com>
240
241 PR remote/17230
242 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
243 TARGET_XFER_OK instead of 0.
244
245 2014-08-07 Gary Benson <gbenson@redhat.com>
246
247 * common/common-defs.h: Include errno.h.
248 * defs.h: Do not include errno.h.
249 * ada-typeprint.c: Likewise.
250 * c-typeprint.c: Likewise.
251 * core-regset.c: Likewise.
252 * corefile.c: Likewise.
253 * corelow.c: Likewise.
254 * event-loop.c: Likewise.
255 * f-typeprint.c: Likewise.
256 * gnu-nat.c: Likewise.
257 * go32-nat.c: Likewise.
258 * i386gnu-nat.c: Likewise.
259 * m2-typeprint.c: Likewise.
260 * nat/linux-btrace.c: Likewise.
261 * p-typeprint.c: Likewise.
262 * procfs.c: Likewise.
263 * remote-sim.c: Likewise.
264 * rs6000-nat.c: Likewise.
265 * target.c: Likewise.
266 * typeprint.c: Likewise.
267 * ui-file.c: Likewise.
268 * valops.c: Likewise.
269 * valprint.c: Likewise.
270
271 2014-08-07 Gary Benson <gbenson@redhat.com>
272
273 * common/common-defs.h: Include string.h.
274 * aarch64-tdep.c: Do not include string.h.
275 * ada-exp.y: Likewise.
276 * ada-lang.c: Likewise.
277 * ada-lex.l: Likewise.
278 * ada-typeprint.c: Likewise.
279 * ada-valprint.c: Likewise.
280 * aix-thread.c: Likewise.
281 * alpha-linux-tdep.c: Likewise.
282 * alpha-mdebug-tdep.c: Likewise.
283 * alpha-nat.c: Likewise.
284 * alpha-osf1-tdep.c: Likewise.
285 * alpha-tdep.c: Likewise.
286 * alphanbsd-tdep.c: Likewise.
287 * amd64-dicos-tdep.c: Likewise.
288 * amd64-linux-tdep.c: Likewise.
289 * amd64-nat.c: Likewise.
290 * amd64-sol2-tdep.c: Likewise.
291 * amd64fbsd-tdep.c: Likewise.
292 * amd64obsd-tdep.c: Likewise.
293 * arch-utils.c: Likewise.
294 * arm-linux-nat.c: Likewise.
295 * arm-linux-tdep.c: Likewise.
296 * arm-tdep.c: Likewise.
297 * arm-wince-tdep.c: Likewise.
298 * armbsd-tdep.c: Likewise.
299 * armnbsd-nat.c: Likewise.
300 * armnbsd-tdep.c: Likewise.
301 * armobsd-tdep.c: Likewise.
302 * avr-tdep.c: Likewise.
303 * ax-gdb.c: Likewise.
304 * ax-general.c: Likewise.
305 * bcache.c: Likewise.
306 * bfin-tdep.c: Likewise.
307 * breakpoint.c: Likewise.
308 * build-id.c: Likewise.
309 * buildsym.c: Likewise.
310 * c-exp.y: Likewise.
311 * c-lang.c: Likewise.
312 * c-typeprint.c: Likewise.
313 * c-valprint.c: Likewise.
314 * charset.c: Likewise.
315 * cli-out.c: Likewise.
316 * cli/cli-cmds.c: Likewise.
317 * cli/cli-decode.c: Likewise.
318 * cli/cli-dump.c: Likewise.
319 * cli/cli-interp.c: Likewise.
320 * cli/cli-logging.c: Likewise.
321 * cli/cli-script.c: Likewise.
322 * cli/cli-setshow.c: Likewise.
323 * cli/cli-utils.c: Likewise.
324 * coffread.c: Likewise.
325 * common/agent.c: Likewise.
326 * common/buffer.c: Likewise.
327 * common/buffer.h: Likewise.
328 * common/common-utils.c: Likewise.
329 * common/filestuff.c: Likewise.
330 * common/filestuff.c: Likewise.
331 * common/format.c: Likewise.
332 * common/print-utils.c: Likewise.
333 * common/rsp-low.c: Likewise.
334 * common/signals.c: Likewise.
335 * common/vec.h: Likewise.
336 * common/xml-utils.c: Likewise.
337 * core-regset.c: Likewise.
338 * corefile.c: Likewise.
339 * corelow.c: Likewise.
340 * cp-abi.c: Likewise.
341 * cp-name-parser.y: Likewise.
342 * cp-support.c: Likewise.
343 * cp-valprint.c: Likewise.
344 * cris-tdep.c: Likewise.
345 * d-exp.y: Likewise.
346 * darwin-nat.c: Likewise.
347 * dbxread.c: Likewise.
348 * dcache.c: Likewise.
349 * demangle.c: Likewise.
350 * dicos-tdep.c: Likewise.
351 * disasm.c: Likewise.
352 * doublest.c: Likewise.
353 * dsrec.c: Likewise.
354 * dummy-frame.c: Likewise.
355 * dwarf2-frame.c: Likewise.
356 * dwarf2loc.c: Likewise.
357 * dwarf2read.c: Likewise.
358 * elfread.c: Likewise.
359 * environ.c: Likewise.
360 * eval.c: Likewise.
361 * event-loop.c: Likewise.
362 * exceptions.c: Likewise.
363 * exec.c: Likewise.
364 * expprint.c: Likewise.
365 * f-exp.y: Likewise.
366 * f-lang.c: Likewise.
367 * f-typeprint.c: Likewise.
368 * f-valprint.c: Likewise.
369 * fbsd-nat.c: Likewise.
370 * findcmd.c: Likewise.
371 * findvar.c: Likewise.
372 * fork-child.c: Likewise.
373 * frame.c: Likewise.
374 * frv-linux-tdep.c: Likewise.
375 * frv-tdep.c: Likewise.
376 * gdb.c: Likewise.
377 * gdb_bfd.c: Likewise.
378 * gdbarch.c: Likewise.
379 * gdbarch.sh: Likewise.
380 * gdbtypes.c: Likewise.
381 * gnu-nat.c: Likewise.
382 * gnu-v2-abi.c: Likewise.
383 * gnu-v3-abi.c: Likewise.
384 * go-exp.y: Likewise.
385 * go-lang.c: Likewise.
386 * go32-nat.c: Likewise.
387 * guile/guile.c: Likewise.
388 * guile/scm-auto-load.c: Likewise.
389 * hppa-hpux-tdep.c: Likewise.
390 * hppa-linux-nat.c: Likewise.
391 * hppanbsd-tdep.c: Likewise.
392 * hppaobsd-tdep.c: Likewise.
393 * i386-cygwin-tdep.c: Likewise.
394 * i386-dicos-tdep.c: Likewise.
395 * i386-linux-tdep.c: Likewise.
396 * i386-nto-tdep.c: Likewise.
397 * i386-sol2-tdep.c: Likewise.
398 * i386-tdep.c: Likewise.
399 * i386bsd-tdep.c: Likewise.
400 * i386gnu-nat.c: Likewise.
401 * i386nbsd-tdep.c: Likewise.
402 * i386obsd-tdep.c: Likewise.
403 * i387-tdep.c: Likewise.
404 * ia64-libunwind-tdep.c: Likewise.
405 * ia64-linux-nat.c: Likewise.
406 * inf-child.c: Likewise.
407 * inf-ptrace.c: Likewise.
408 * inf-ttrace.c: Likewise.
409 * infcall.c: Likewise.
410 * infcmd.c: Likewise.
411 * inflow.c: Likewise.
412 * infrun.c: Likewise.
413 * interps.c: Likewise.
414 * iq2000-tdep.c: Likewise.
415 * irix5-nat.c: Likewise.
416 * jv-exp.y: Likewise.
417 * jv-lang.c: Likewise.
418 * jv-typeprint.c: Likewise.
419 * jv-valprint.c: Likewise.
420 * language.c: Likewise.
421 * linux-fork.c: Likewise.
422 * linux-nat.c: Likewise.
423 * lm32-tdep.c: Likewise.
424 * m2-exp.y: Likewise.
425 * m2-typeprint.c: Likewise.
426 * m32c-tdep.c: Likewise.
427 * m32r-linux-nat.c: Likewise.
428 * m32r-linux-tdep.c: Likewise.
429 * m32r-rom.c: Likewise.
430 * m32r-tdep.c: Likewise.
431 * m68hc11-tdep.c: Likewise.
432 * m68k-tdep.c: Likewise.
433 * m68kbsd-tdep.c: Likewise.
434 * m68klinux-nat.c: Likewise.
435 * m68klinux-tdep.c: Likewise.
436 * m88k-tdep.c: Likewise.
437 * machoread.c: Likewise.
438 * macrocmd.c: Likewise.
439 * main.c: Likewise.
440 * mdebugread.c: Likewise.
441 * mem-break.c: Likewise.
442 * memattr.c: Likewise.
443 * memory-map.c: Likewise.
444 * mep-tdep.c: Likewise.
445 * mi/mi-cmd-break.c: Likewise.
446 * mi/mi-cmd-disas.c: Likewise.
447 * mi/mi-cmd-env.c: Likewise.
448 * mi/mi-cmd-stack.c: Likewise.
449 * mi/mi-cmd-var.c: Likewise.
450 * mi/mi-cmds.c: Likewise.
451 * mi/mi-console.c: Likewise.
452 * mi/mi-getopt.c: Likewise.
453 * mi/mi-interp.c: Likewise.
454 * mi/mi-main.c: Likewise.
455 * mi/mi-parse.c: Likewise.
456 * microblaze-rom.c: Likewise.
457 * microblaze-tdep.c: Likewise.
458 * mingw-hdep.c: Likewise.
459 * minidebug.c: Likewise.
460 * minsyms.c: Likewise.
461 * mips-irix-tdep.c: Likewise.
462 * mips-linux-tdep.c: Likewise.
463 * mips-tdep.c: Likewise.
464 * mips64obsd-tdep.c: Likewise.
465 * mipsnbsd-tdep.c: Likewise.
466 * mipsread.c: Likewise.
467 * mn10300-linux-tdep.c: Likewise.
468 * mn10300-tdep.c: Likewise.
469 * monitor.c: Likewise.
470 * moxie-tdep.c: Likewise.
471 * mt-tdep.c: Likewise.
472 * nat/linux-btrace.c: Likewise.
473 * nat/linux-osdata.c: Likewise.
474 * nat/linux-procfs.c: Likewise.
475 * nat/linux-ptrace.c: Likewise.
476 * nat/linux-waitpid.c: Likewise.
477 * nbsd-tdep.c: Likewise.
478 * nios2-linux-tdep.c: Likewise.
479 * nto-procfs.c: Likewise.
480 * nto-tdep.c: Likewise.
481 * objc-lang.c: Likewise.
482 * objfiles.c: Likewise.
483 * opencl-lang.c: Likewise.
484 * osabi.c: Likewise.
485 * osdata.c: Likewise.
486 * p-exp.y: Likewise.
487 * p-lang.c: Likewise.
488 * p-typeprint.c: Likewise.
489 * parse.c: Likewise.
490 * posix-hdep.c: Likewise.
491 * ppc-linux-nat.c: Likewise.
492 * ppc-sysv-tdep.c: Likewise.
493 * ppcfbsd-tdep.c: Likewise.
494 * ppcnbsd-tdep.c: Likewise.
495 * ppcobsd-tdep.c: Likewise.
496 * printcmd.c: Likewise.
497 * procfs.c: Likewise.
498 * prologue-value.c: Likewise.
499 * python/py-auto-load.c: Likewise.
500 * python/py-gdb-readline.c: Likewise.
501 * ravenscar-thread.c: Likewise.
502 * regcache.c: Likewise.
503 * registry.c: Likewise.
504 * remote-fileio.c: Likewise.
505 * remote-m32r-sdi.c: Likewise.
506 * remote-mips.c: Likewise.
507 * remote-notif.c: Likewise.
508 * remote-sim.c: Likewise.
509 * remote.c: Likewise.
510 * reverse.c: Likewise.
511 * rs6000-aix-tdep.c: Likewise.
512 * ser-base.c: Likewise.
513 * ser-go32.c: Likewise.
514 * ser-mingw.c: Likewise.
515 * ser-pipe.c: Likewise.
516 * ser-tcp.c: Likewise.
517 * ser-unix.c: Likewise.
518 * serial.c: Likewise.
519 * sh-tdep.c: Likewise.
520 * sh64-tdep.c: Likewise.
521 * shnbsd-tdep.c: Likewise.
522 * skip.c: Likewise.
523 * sol-thread.c: Likewise.
524 * solib-dsbt.c: Likewise.
525 * solib-frv.c: Likewise.
526 * solib-osf.c: Likewise.
527 * solib-som.c: Likewise.
528 * solib-spu.c: Likewise.
529 * solib-target.c: Likewise.
530 * solib.c: Likewise.
531 * somread.c: Likewise.
532 * source.c: Likewise.
533 * sparc-nat.c: Likewise.
534 * sparc-sol2-tdep.c: Likewise.
535 * sparc-tdep.c: Likewise.
536 * sparc64-tdep.c: Likewise.
537 * sparc64fbsd-tdep.c: Likewise.
538 * sparc64nbsd-tdep.c: Likewise.
539 * sparcnbsd-tdep.c: Likewise.
540 * spu-linux-nat.c: Likewise.
541 * spu-multiarch.c: Likewise.
542 * spu-tdep.c: Likewise.
543 * stabsread.c: Likewise.
544 * stack.c: Likewise.
545 * std-regs.c: Likewise.
546 * symfile.c: Likewise.
547 * symmisc.c: Likewise.
548 * symtab.c: Likewise.
549 * target.c: Likewise.
550 * thread.c: Likewise.
551 * tilegx-linux-nat.c: Likewise.
552 * tilegx-tdep.c: Likewise.
553 * top.c: Likewise.
554 * tracepoint.c: Likewise.
555 * tui/tui-command.c: Likewise.
556 * tui/tui-data.c: Likewise.
557 * tui/tui-disasm.c: Likewise.
558 * tui/tui-file.c: Likewise.
559 * tui/tui-layout.c: Likewise.
560 * tui/tui-out.c: Likewise.
561 * tui/tui-regs.c: Likewise.
562 * tui/tui-source.c: Likewise.
563 * tui/tui-stack.c: Likewise.
564 * tui/tui-win.c: Likewise.
565 * tui/tui-windata.c: Likewise.
566 * tui/tui-winsource.c: Likewise.
567 * typeprint.c: Likewise.
568 * ui-file.c: Likewise.
569 * ui-out.c: Likewise.
570 * user-regs.c: Likewise.
571 * utils.c: Likewise.
572 * v850-tdep.c: Likewise.
573 * valarith.c: Likewise.
574 * valops.c: Likewise.
575 * valprint.c: Likewise.
576 * value.c: Likewise.
577 * varobj.c: Likewise.
578 * vax-tdep.c: Likewise.
579 * vaxnbsd-tdep.c: Likewise.
580 * vaxobsd-tdep.c: Likewise.
581 * windows-nat.c: Likewise.
582 * xcoffread.c: Likewise.
583 * xml-support.c: Likewise.
584 * xstormy16-tdep.c: Likewise.
585 * xtensa-linux-nat.c: Likewise.
586
587 2014-08-07 Gary Benson <gbenson@redhat.com>
588
589 * common/common-defs.h: Include gdb_assert.h.
590 * aarch64-tdep.c: Do not include gdb_assert.h.
591 * addrmap.c: Likewise.
592 * aix-thread.c: Likewise.
593 * alpha-linux-tdep.c: Likewise.
594 * alpha-mdebug-tdep.c: Likewise.
595 * alphanbsd-tdep.c: Likewise.
596 * amd64-nat.c: Likewise.
597 * amd64-tdep.c: Likewise.
598 * amd64bsd-nat.c: Likewise.
599 * amd64fbsd-nat.c: Likewise.
600 * amd64fbsd-tdep.c: Likewise.
601 * amd64nbsd-nat.c: Likewise.
602 * amd64nbsd-tdep.c: Likewise.
603 * amd64obsd-nat.c: Likewise.
604 * amd64obsd-tdep.c: Likewise.
605 * arch-utils.c: Likewise.
606 * arm-tdep.c: Likewise.
607 * armbsd-tdep.c: Likewise.
608 * auxv.c: Likewise.
609 * bcache.c: Likewise.
610 * bfin-tdep.c: Likewise.
611 * blockframe.c: Likewise.
612 * breakpoint.c: Likewise.
613 * bsd-kvm.c: Likewise.
614 * bsd-uthread.c: Likewise.
615 * buildsym.c: Likewise.
616 * c-exp.y: Likewise.
617 * c-lang.c: Likewise.
618 * charset.c: Likewise.
619 * cleanups.c: Likewise.
620 * cli-out.c: Likewise.
621 * cli/cli-decode.c: Likewise.
622 * cli/cli-dump.c: Likewise.
623 * cli/cli-logging.c: Likewise.
624 * cli/cli-script.c: Likewise.
625 * cli/cli-utils.c: Likewise.
626 * coffread.c: Likewise.
627 * common/common-utils.c: Likewise.
628 * common/queue.h: Likewise.
629 * common/signals.c: Likewise.
630 * common/vec.h: Likewise.
631 * complaints.c: Likewise.
632 * completer.c: Likewise.
633 * corelow.c: Likewise.
634 * cp-abi.c: Likewise.
635 * cp-name-parser.y: Likewise.
636 * cp-namespace.c: Likewise.
637 * cp-support.c: Likewise.
638 * cris-tdep.c: Likewise.
639 * dbxread.c: Likewise.
640 * dictionary.c: Likewise.
641 * doublest.c: Likewise.
642 * dsrec.c: Likewise.
643 * dummy-frame.c: Likewise.
644 * dwarf2-frame-tailcall.c: Likewise.
645 * dwarf2-frame.c: Likewise.
646 * dwarf2expr.c: Likewise.
647 * dwarf2loc.c: Likewise.
648 * dwarf2read.c: Likewise.
649 * eval.c: Likewise.
650 * event-loop.c: Likewise.
651 * exceptions.c: Likewise.
652 * expprint.c: Likewise.
653 * f-valprint.c: Likewise.
654 * fbsd-nat.c: Likewise.
655 * findvar.c: Likewise.
656 * frame-unwind.c: Likewise.
657 * frame.c: Likewise.
658 * frv-tdep.c: Likewise.
659 * gcore.c: Likewise.
660 * gdb-dlfcn.c: Likewise.
661 * gdb_bfd.c: Likewise.
662 * gdbarch.c: Likewise.
663 * gdbarch.sh: Likewise.
664 * gdbtypes.c: Likewise.
665 * gnu-nat.c: Likewise.
666 * gnu-v3-abi.c: Likewise.
667 * go-lang.c: Likewise.
668 * guile/scm-exception.c: Likewise.
669 * guile/scm-gsmob.c: Likewise.
670 * guile/scm-lazy-string.c: Likewise.
671 * guile/scm-math.c: Likewise.
672 * guile/scm-pretty-print.c: Likewise.
673 * guile/scm-safe-call.c: Likewise.
674 * guile/scm-utils.c: Likewise.
675 * guile/scm-value.c: Likewise.
676 * h8300-tdep.c: Likewise.
677 * hppa-hpux-nat.c: Likewise.
678 * hppa-tdep.c: Likewise.
679 * hppanbsd-tdep.c: Likewise.
680 * hppaobsd-tdep.c: Likewise.
681 * i386-darwin-nat.c: Likewise.
682 * i386-darwin-tdep.c: Likewise.
683 * i386-nto-tdep.c: Likewise.
684 * i386-tdep.c: Likewise.
685 * i386bsd-nat.c: Likewise.
686 * i386fbsd-tdep.c: Likewise.
687 * i386gnu-nat.c: Likewise.
688 * i386nbsd-tdep.c: Likewise.
689 * i386obsd-tdep.c: Likewise.
690 * i387-tdep.c: Likewise.
691 * ia64-libunwind-tdep.c: Likewise.
692 * ia64-tdep.c: Likewise.
693 * inf-ptrace.c: Likewise.
694 * inf-ttrace.c: Likewise.
695 * infcall.c: Likewise.
696 * infcmd.c: Likewise.
697 * infrun.c: Likewise.
698 * inline-frame.c: Likewise.
699 * interps.c: Likewise.
700 * jv-lang.c: Likewise.
701 * jv-typeprint.c: Likewise.
702 * linux-fork.c: Likewise.
703 * linux-nat.c: Likewise.
704 * linux-thread-db.c: Likewise.
705 * m32c-tdep.c: Likewise.
706 * m32r-linux-nat.c: Likewise.
707 * m32r-tdep.c: Likewise.
708 * m68k-tdep.c: Likewise.
709 * m68kbsd-nat.c: Likewise.
710 * m68kbsd-tdep.c: Likewise.
711 * m88k-tdep.c: Likewise.
712 * machoread.c: Likewise.
713 * macroexp.c: Likewise.
714 * macrotab.c: Likewise.
715 * maint.c: Likewise.
716 * mdebugread.c: Likewise.
717 * memory-map.c: Likewise.
718 * mep-tdep.c: Likewise.
719 * mi/mi-common.c: Likewise.
720 * microblaze-tdep.c: Likewise.
721 * mingw-hdep.c: Likewise.
722 * mips-linux-nat.c: Likewise.
723 * mips-linux-tdep.c: Likewise.
724 * mips-tdep.c: Likewise.
725 * mips64obsd-tdep.c: Likewise.
726 * mipsnbsd-tdep.c: Likewise.
727 * mn10300-linux-tdep.c: Likewise.
728 * mn10300-tdep.c: Likewise.
729 * moxie-tdep.c: Likewise.
730 * mt-tdep.c: Likewise.
731 * nat/linux-btrace.c: Likewise.
732 * nat/linux-osdata.c: Likewise.
733 * nat/linux-ptrace.c: Likewise.
734 * nat/mips-linux-watch.c: Likewise.
735 * nios2-linux-tdep.c: Likewise.
736 * nios2-tdep.c: Likewise.
737 * objc-lang.c: Likewise.
738 * objfiles.c: Likewise.
739 * obsd-nat.c: Likewise.
740 * opencl-lang.c: Likewise.
741 * osabi.c: Likewise.
742 * parse.c: Likewise.
743 * ppc-linux-nat.c: Likewise.
744 * ppc-sysv-tdep.c: Likewise.
745 * ppcfbsd-nat.c: Likewise.
746 * ppcfbsd-tdep.c: Likewise.
747 * ppcnbsd-nat.c: Likewise.
748 * ppcnbsd-tdep.c: Likewise.
749 * ppcobsd-nat.c: Likewise.
750 * ppcobsd-tdep.c: Likewise.
751 * printcmd.c: Likewise.
752 * procfs.c: Likewise.
753 * prologue-value.c: Likewise.
754 * psymtab.c: Likewise.
755 * python/py-lazy-string.c: Likewise.
756 * python/py-value.c: Likewise.
757 * regcache.c: Likewise.
758 * reggroups.c: Likewise.
759 * registry.c: Likewise.
760 * remote-sim.c: Likewise.
761 * remote.c: Likewise.
762 * rs6000-aix-tdep.c: Likewise.
763 * rs6000-tdep.c: Likewise.
764 * s390-linux-tdep.c: Likewise.
765 * score-tdep.c: Likewise.
766 * ser-base.c: Likewise.
767 * ser-mingw.c: Likewise.
768 * sh-tdep.c: Likewise.
769 * sh64-tdep.c: Likewise.
770 * solib-darwin.c: Likewise.
771 * solib-spu.c: Likewise.
772 * solib-svr4.c: Likewise.
773 * source.c: Likewise.
774 * sparc-nat.c: Likewise.
775 * sparc-sol2-tdep.c: Likewise.
776 * sparc-tdep.c: Likewise.
777 * sparc64-sol2-tdep.c: Likewise.
778 * sparc64-tdep.c: Likewise.
779 * sparc64fbsd-tdep.c: Likewise.
780 * sparc64nbsd-tdep.c: Likewise.
781 * sparc64obsd-tdep.c: Likewise.
782 * sparcnbsd-tdep.c: Likewise.
783 * sparcobsd-tdep.c: Likewise.
784 * spu-multiarch.c: Likewise.
785 * spu-tdep.c: Likewise.
786 * stabsread.c: Likewise.
787 * stack.c: Likewise.
788 * symfile.c: Likewise.
789 * symtab.c: Likewise.
790 * target-descriptions.c: Likewise.
791 * target-memory.c: Likewise.
792 * target.c: Likewise.
793 * tic6x-linux-tdep.c: Likewise.
794 * tic6x-tdep.c: Likewise.
795 * tilegx-linux-nat.c: Likewise.
796 * tilegx-tdep.c: Likewise.
797 * top.c: Likewise.
798 * tramp-frame.c: Likewise.
799 * tui/tui-out.c: Likewise.
800 * tui/tui-winsource.c: Likewise.
801 * ui-out.c: Likewise.
802 * user-regs.c: Likewise.
803 * utils.c: Likewise.
804 * v850-tdep.c: Likewise.
805 * valops.c: Likewise.
806 * value.c: Likewise.
807 * varobj.c: Likewise.
808 * vax-nat.c: Likewise.
809 * xml-syscall.c: Likewise.
810 * xml-tdesc.c: Likewise.
811 * xstormy16-tdep.c: Likewise.
812 * xtensa-linux-nat.c: Likewise.
813 * xtensa-tdep.c: Likewise.
814
815 2014-08-07 Gary Benson <gbenson@redhat.com>
816
817 * common/common-defs.h: Include common-utils.h.
818 * defs.h: Do not include common-utils.h.
819 * common/gdb_assert.h: Likewise.
820 * darwin-nat.h: Likewise.
821 * nat/linux-btrace.c: Likewise.
822 * target/waitstatus.h: Likewise.
823
824 2014-08-07 Gary Benson <gbenson@redhat.com>
825
826 * common/common-defs.h: Include ptid.h.
827 * defs.h: Do not include ptid.h.
828 * inferior.h: Likewise.
829 * infrun.h: Likewise.
830 * nat/linux-btrace.h: Likewise.
831 * nat/linux-osdata.h: Likewise.
832 * target/waitstatus.h: Likewise.
833
834 2014-08-07 Gary Benson <gbenson@redhat.com>
835
836 * common/common-defs.h: Include gdb_locale.h.
837 * defs.h: Do not include gdb_locale.h.
838
839 2014-08-07 Gary Benson <gbenson@redhat.com>
840
841 * common/common-defs.h: Include gdb/signals.h.
842 * defs.h: Do not include gdb/signals.h.
843
844 2014-08-07 Gary Benson <gbenson@redhat.com>
845
846 * common/common-defs.h: Include pathmax.h.
847 * defs.h: Do not include pathmax.h.
848
849 2014-08-07 Gary Benson <gbenson@redhat.com>
850
851 * common/common-defs.h: Include libiberty.h.
852 * defs.h: Do not include libiberty.h.
853 * common/queue.h: Likewise.
854 * cp-name-parser.y: Likewise.
855 * mi/mi-cmd-catch.c: Likewise.
856 * python/python.c: Likewise.
857
858 2014-08-07 Gary Benson <gbenson@redhat.com>
859
860 * common/common-defs.h: Include ansidecl.h.
861 * defs.h: Do not include ansidecl.h.
862 * common/buffer.h: Likewise.
863 * common/common-utils.h: Likewise.
864
865 2014-08-07 Gary Benson <gbenson@redhat.com>
866
867 * common/common-defs.h: Include stddef.h.
868 * defs.h: Do not include stddef.h.
869 * common/common-utils.h: Likewise.
870 * amd64fbsd-nat.c: Likewise.
871 * bcache.c: Likewise.
872 * charset.c: Likewise.
873 * common/buffer.h: Likewise.
874 * common/vec.h: Likewise.
875 * i386bsd-nat.c: Likewise.
876 * nat/linux-btrace.h: Likewise.
877 * ppcfbsd-nat.c: Likewise.
878 * ppcnbsd-tdep.h: Likewise.
879 * ppcobsd-nat.c: Likewise.
880 * ppcobsd-tdep.h: Likewise.
881 * python/py-gdb-readline.c: Likewise.
882
883 2014-08-07 Gary Benson <gbenson@redhat.com>
884
885 * common/common-defs.h: Include stdarg.h.
886 * defs.h: Do not include stdarg.h.
887 * ada-lang.c: Likewise.
888 * common/common-utils.h: Likewise.
889 * guile/scm-string.c: Likewise.
890 * guile/scm-utils.c: Likewise.
891 * m32c-tdep.c: Likewise.
892
893 2014-08-07 Gary Benson <gbenson@redhat.com>
894
895 * common/common-defs.h: Include stdlib.h.
896 * defs.h: Do not include stdlib.h.
897 * addrmap.c: Likewise.
898 * bcache.c: Likewise.
899 * common/buffer.c: Likewise.
900 * common/common-utils.c: Likewise.
901 * cp-name-parser.y: Likewise.
902 * go32-nat.c: Likewise.
903 * mn10300-linux-tdep.c: Likewise.
904 * nat/linux-osdata.c: Likewise.
905 * tui/tui.c: Likewise.
906 * windows-nat.c: Likewise.
907
908 2014-08-07 Gary Benson <gbenson@redhat.com>
909
910 * common/common-defs.h: Include stdio.h.
911 * defs.h: Do not include stdio.h.
912 * ada-lang.c: Likewise.
913 * common/buffer.c: Likewise.
914 * common/common-utils.c: Likewise.
915 * cp-name-parser.y: Likewise.
916 * gnu-nat.c: Likewise.
917 * go32-nat.c: Likewise.
918 * i386gnu-nat.c: Likewise.
919 * proc-api.c: Likewise.
920 * proc-events.c: Likewise.
921 * proc-flags.c: Likewise.
922 * proc-why.c: Likewise.
923 * python/python-internal.h: Likewise.
924 * target-memory.c: Likewise.
925 * tui/tui-io.c: Likewise.
926 * tui/tui.c: Likewise.
927
928 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
929
930 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
931 (scan_dyntag_auxv): Same.
932
933 2014-08-06 Yao Qi <yao@codesourcery.com>
934
935 * amd64-linux-nat.c: Remove duplicated include
936 "x86-linux-nat.h".
937 * i386-linux-nat.c: Likewise.
938
939 2014-08-06 Yao Qi <yao@codesourcery.com>
940
941 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
942 operand" with "Special opcode" in comments.
943
944 2014-08-05 Gary Benson <gbenson@redhat.com>
945
946 * interps.c (initialize_interps): Remove prototype.
947 (interpreter_initialized): Remove static global.
948 (interp_add): Do not call initialize_interps.
949 (initialize_interps): Remove function.
950
951 2014-08-05 Gary Benson <gbenson@redhat.com>
952
953 * utils.c (vwarning): Remove spurious va_end.
954
955 2014-08-05 Alan Modra <amodra@gmail.com>
956
957 * charset.c (convert_between_encodings): Cast result of obstack_base.
958 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
959 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
960 (read_unwind_info): Use size_t for some locals.
961 * jit.c (finalize_symtab): Likewise.
962 * utils.c (hashtab_obstack_allocate): Likewise.
963 * symmisc.c (print_objfile_statistics): Update format strings.
964
965 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
968 (Changes in GDB 7.8): ... here.
969
970 2014-08-04 Tom Tromey <tromey@redhat.com>
971
972 * target.c (set_targetdebug): New function.
973 (initialize_targets): Pass set_targetdebug when creating "set
974 debug target".
975
976 2014-08-01 Joel Brobecker <brobecker@adacore.com>
977
978 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
979 if detecting a variable-sized field that is not the last field.
980 Fix struct type length computation.
981
982 2014-08-01 Joel Brobecker <brobecker@adacore.com>
983
984 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
985 Add debug trace.
986
987 2014-08-01 Joel Brobecker <brobecker@adacore.com>
988
989 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
990 Remove "+ 8" offset in computation of CHAIN_VMA.
991
992 2014-07-31 Doug Evans <dje@google.com>
993
994 * inflow.c (child_terminal_inferior): Add comment.
995 (child_terminal_ours_for_output): Add comment.
996 (child_terminal_ours): Add comment.
997 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
998 (linux_nat_terminal_ours): Add comment.
999
1000 2014-07-31 Gary Benson <gbenson@redhat.com>
1001
1002 * common/btrace-common.h: Do not include defs.h or server.h.
1003 * nat/mips-linux-watch.h: Likewise.
1004 * gdb-dlfcn.h: Do not include defs.h.
1005 * tracefile.h: Likewise.
1006
1007 2014-07-30 Roland McGrath <mcgrathr@google.com>
1008
1009 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1010
1011 2014-07-30 Tom Tromey <tromey@redhat.com>
1012
1013 * bsd-kvm.c (bsd_kvm_open): Constify.
1014 * corelow.c (core_open): Constify.
1015 * ctf.c (ctf_open): Constify.
1016 * dbug-rom.c (dbug_open): Constify.
1017 * exec.c (exec_open): Constify.
1018 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1019 * microblaze-rom.c (picobug_open): Constify.
1020 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1021 Constify.
1022 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1023 * record-btrace.c (record_btrace_open): Constify.
1024 * record-full.c (record_full_core_open_1, record_full_open_1)
1025 (record_full_open): Constify.
1026 * remote-m32r-sdi.c (m32r_open): Constify.
1027 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1028 (rockhopper_open, lsi_open): Constify.
1029 * remote-sim.c (gdbsim_open): Constify.
1030 * remote.c (remote_open, extended_remote_open, remote_open_1):
1031 Constify.
1032 * target.h (struct target_ops) <to_open>: Make "arg" const.
1033 * tracefile-tfile.c (tfile_open): Constify.
1034
1035 2014-07-30 Tom Tromey <tromey@redhat.com>
1036
1037 * breakpoint.c (map_breakpoint_numbers): Update.
1038 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1039 (get_number_const): New function.
1040 (get_number): Rewrite using get_number_const.
1041 (init_number_or_range): Make "string" const.
1042 (number_is_in_list): Make "list" const.
1043 * cli/cli-utils.h (get_number_const): Declare.
1044 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1045 (init_number_or_range, number_is_in_list): Update.
1046 * printcmd.c (map_display_numbers): Update.
1047 * value.c (value_from_history_ref): Constify.
1048 * value.h (value_from_history_ref): Update.
1049
1050 2014-07-30 Tom Tromey <tromey@redhat.com>
1051
1052 * corefile.c (hook_type, call_extra_exec_file_hooks)
1053 (specify_exec_file_hook): Constify.
1054 * exec.c (exec_file_attach): Make "filename" const.
1055 * gdbcore.h (deprecated_exec_file_display_hook)
1056 (specify_exec_file_hook, exec_file_attach): Constify.
1057 * main.c (captured_main): Use catch_command_errors_const.
1058
1059 2014-07-30 Tom Tromey <tromey@redhat.com>
1060
1061 * target.c (open_target): New function.
1062 (add_target_with_completer, add_deprecated_target_alias): Use
1063 set_cmd_sfunc, set_cmd_context.
1064 (debug_to_open): Remove.
1065 (setup_target_debug): Update.
1066
1067 2014-07-30 Yao Qi <yao@codesourcery.com>
1068
1069 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1070 comments.
1071 * parse.c (exp_iterate): Update comments.
1072
1073 2014-07-30 Gary Benson <gbenson@redhat.com>
1074
1075 * common/common-defs.h: New file.
1076 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1077 * defs.h: Include common-defs.h.
1078 Do not include config.h or build-gnulib/config.h.
1079
1080 2014-07-30 Gary Benson <gbenson@redhat.com>
1081
1082 * common/common-utils.h: Do not include config.h.
1083 * nat/linux-btrace.h: Likewise.
1084
1085 2014-07-30 Gary Benson <gbenson@redhat.com>
1086
1087 * btrace.c: Include defs.h.
1088 * common/ptid.c: Include defs.h or server.h as appropriate.
1089 * nat/mips-linux-watch.c: Likewise.
1090
1091 2014-07-29 Tom Tromey <tromey@redhat.com>
1092
1093 * target.c (target_is_pushed): Simplify.
1094
1095 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1096
1097 GDB 7.8 released.
1098
1099 2014-07-29 Yao Qi <yao@codesourcery.com>
1100
1101 PR gdb/17206
1102 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1103
1104 2014-07-28 Doug Evans <xdje42@gmail.com>
1105
1106 PR guile/17203
1107 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1108 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1109 parameters.
1110
1111 2014-07-28 Will Newton <will.newton@linaro.org>
1112
1113 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1114 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1115 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1116 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1117 (THUMB2_EABI_SYSCALL): Likewise.
1118 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1119 struct tramp_frame.
1120 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1121 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1122
1123 2014-07-27 Doug Evans <xdje42@gmail.com>
1124
1125 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1126
1127 2014-07-27 Doug Evans <xdje42@gmail.com>
1128
1129 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1130
1131 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1132 Doug Evans <xdje42@gmail.com>
1133
1134 PR guile/17146
1135 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1136 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1137 * configure.ac: Try to use guild to compile an scm file, if it fails
1138 then disable guile support.
1139 * configure: Regenerate.
1140 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1141 GUILE_FILE_LIST.
1142 (GUILE_COMPILED_FILES): New variable.
1143 (GUILE_FILES) Update.
1144 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1145 (stamp-guile): Compile scm files.
1146 * guile/guile.c (boot_guile_support): New function.
1147 (standard_throw_args_p): New function.
1148 (print_standard_throw_error, print_throw_error): New functions.
1149 (handle_boot_error): New function.
1150 (initialize_scheme_side): Rewrite to call boot_guile_support.
1151 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1152 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1153
1154 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1155 Doug Evans <xdje42@gmail.com>
1156
1157 PR guile/17146
1158 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1159 * guile/lib/gdb/support.scm: New file.
1160 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1161 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1162 All uses updated.
1163 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1164 All uses updated.
1165 (%assert-type): Ditto, and renamed to assert-type.
1166 (%exception-print-style): Delete.
1167
1168 2014-07-26 Doug Evans <xdje42@gmail.com>
1169
1170 PR build/17105
1171 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1172 * configure: Regenerate.
1173 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1174 PYTHON_FILES.
1175 (PYTHON_FILES): New variable.
1176 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1177 (GUILE_FILES): New variable.
1178 (stamp-python, install-python, uninstall-python): Handle empty
1179 file list.
1180 (stamp-guile, install-guile, uninstall-guile): Ditto.
1181
1182 2014-07-26 Doug Evans <xdje42@gmail.com>
1183
1184 PR guile/17177
1185 * guile/lib/gdb.scm (pretty-printers): Export.
1186 (set-pretty-printers!): Export.
1187 * guile/lib/gdb/printing.scm (gdb module): Update.
1188 (prepend-pretty-printer!, append-pretty-printer!): Update.
1189 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1190 (pretty_printer_list_var): Delete.
1191 (pretty_printer_list): New static global.
1192 (gdbscm_pretty_printers): New function.
1193 (gdbscm_set_pretty_printers_x): New function.
1194 (ppscm_find_pretty_printer_from_gdb): Update.
1195 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1196 (gdbscm_initialize_pretty_printers): Update.
1197
1198 2014-07-26 Doug Evans <xdje42@gmail.com>
1199
1200 PR 17185
1201 * configure.ac: Add check for header gc/gc.h.
1202 Add check for function setenv.
1203 * configure: Regenerate.
1204 * config.in: Regenerate.
1205 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1206
1207 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1208
1209 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1210 variation in gdbarch matching.
1211
1212 2014-07-25 Tom Tromey <tromey@redhat.com>
1213
1214 * exec.c (using_exec_ops): Remove.
1215 (exec_close_1): Update. Remove extraneous block, reindent.
1216 (add_target_sections): Use target_is_pushed.
1217
1218 2014-07-25 Pedro Alves <palves@redhat.com>
1219
1220 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1221 * monitor.c (monitor_create_inferior): Likewise.
1222 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1223 * remote-sim.c (gdbsim_create_inferior): Likewise.
1224 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1225 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1226 * windows-nat.c (do_initial_windows_stuff): Likewise.
1227
1228 2014-07-25 Pedro Alves <palves@redhat.com>
1229
1230 * NEWS: Mention signal passing and "signal" command changes.
1231 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1232 comment.
1233 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1234 call.
1235 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1236 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1237 (jump_command): Adjust clear_proceed_status call.
1238 (signal_command): Warn if other thread that are resumed have
1239 signals that will be delivered. Adjust clear_proceed_status call.
1240 (until_next_command, finish_command)
1241 (proceed_after_attach_callback, attach_command_post_wait)
1242 (attach_command): Adjust clear_proceed_status call.
1243 * infrun.c (proceed_after_vfork_done): Likewise.
1244 (proceed_after_attach_callback): Adjust comment.
1245 (clear_proceed_status_thread): Clear stop_signal if not in pass
1246 state.
1247 (clear_proceed_status_callback): Delete.
1248 (clear_proceed_status): New 'step' parameter. Only clear the
1249 proceed status of threads the command being prepared is about to
1250 resume.
1251 (proceed): If passed in an explicit signal, override stop_signal
1252 with it. Don't pass the last stop signal to the thread we're
1253 resuming.
1254 (init_wait_for_inferior): Adjust clear_proceed_status call.
1255 (switch_back_to_stepped_thread): Clear the signal if it should not
1256 be passed.
1257 * infrun.h (clear_proceed_status): New 'step' parameter.
1258 (user_visible_resume_ptid): Add comment.
1259 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1260 signal is in pass state.
1261 * remote.c (append_pending_thread_resumptions): Likewise.
1262 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1263
1264 2014-07-25 Tom Tromey <tromey@redhat.com>
1265
1266 * target.h (target_stopped_data_address)
1267 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1268 parentheses.
1269
1270 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1271
1272 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1273 comments.
1274 (avr_pointer_to_address): Likewise.
1275
1276 2014-07-24 Tom Tromey <tromey@redhat.com>
1277
1278 * monitor.c (compile_pattern): Update.
1279 * target.h (struct target_ops) <to_shortname, to_longname,
1280 to_doc>: Now const.
1281
1282 2014-07-24 Tom Tromey <tromey@redhat.com>
1283
1284 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1285 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1286 (add_info_alias, add_com): Make "doc" const.
1287 (print_doc_line): Make "str" const.
1288 (delete_cmd): Update.
1289 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1290 (print_doc_line): Update.
1291 * cli/cli-script.c (document_command): Update.
1292 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1293 (add_com, add_info, add_info_alias): Update.
1294 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1295 * python/py-cmd.c (cmdpy_destroyer): Update.
1296
1297 2014-07-24 Tom Tromey <tromey@redhat.com>
1298
1299 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1300 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1301 (help_cmd_list): Constify.
1302 (lookup_cmd): Update.
1303 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1304 const.
1305 (help_cmd_list, apropos_cmd): Update.
1306 * cli/cli-script.c (show_user): Update.
1307 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1308 * cli/cli-setshow.h (cmd_show_list): Update.
1309 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1310 (cmd_show_list): Update.
1311 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1312 * python/py-cmd.c (cmdpy_destroyer): Update.
1313
1314 2014-07-24 Tom Tromey <tromey@redhat.com>
1315
1316 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1317 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1318 const.
1319 * command.h (deprecate_cmd): Update.
1320 * maint.c (maintenance_do_deprecate): Add casts.
1321
1322 2014-07-24 Tom Tromey <tromey@redhat.com>
1323
1324 * cli/cli-decode.c (help_cmd): Make parameter "const".
1325 * cli/cli-decode.h (help_cmd): Update.
1326
1327 2014-07-24 Tom Tromey <tromey@redhat.com>
1328
1329 * stack.c (up_silently_base, down_silently_base): Make argument
1330 const.
1331
1332 2014-07-24 Tom Tromey <tromey@redhat.com>
1333
1334 * solib.c (solib_add): Make "pattern" const.
1335 * solib.h (solib_add): Update.
1336
1337 2014-07-24 Tom Tromey <tromey@redhat.com>
1338
1339 * remote.c (remote_serial_open, print_packet, putpkt)
1340 (putpkt_binary): Constify.
1341 * remote.h (putpkt): Update.
1342
1343 2014-07-24 Tom Tromey <tromey@redhat.com>
1344
1345 * monitor.c (monitor_open): Make "args" const.
1346 * monitor.h (monitor_open): Update.
1347
1348 2014-07-24 Tom Tromey <tromey@redhat.com>
1349
1350 * maint.c (match_bfd_flags): Make "string" const.
1351 (print_bfd_section_info): Remove casts.
1352 (print_objfile_section_info): Make "string" const.
1353
1354 2014-07-24 Tom Tromey <tromey@redhat.com>
1355
1356 * inf-child.c (inf_child_open_target): Make "arg" const.
1357 * inf-child.h (inf_child_open_target): Update.
1358
1359 2014-07-24 Tom Tromey <tromey@redhat.com>
1360
1361 * environ.c (unset_in_environ): Make "var" const.
1362 * environ.h (unset_in_environ): Update.
1363
1364 2014-07-24 Tom Tromey <tromey@redhat.com>
1365
1366 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1367 Make "cmd" const.
1368 (scan_filename_with_cleanup): Likewise.
1369 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1370 Make arguments const.
1371 (restore_command): Update.
1372
1373 2014-07-24 Pedro Alves <palves@redhat.com>
1374
1375 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1376
1377 2014-07-24 Tom Tromey <tromey@redhat.com>
1378 Gary Benson <gbenson@redhat.com>
1379
1380 * nat/linux-ptrace.c (additional_flags): New global.
1381 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1382 additional_flags; don't check GDBSERVER.
1383 (linux_ptrace_set_additional_flags): New function.
1384 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1385 Declare.
1386 * linux-nat.c (_initialize_linux_nat): Call
1387 linux_ptrace_set_additional_flags.
1388
1389 2014-07-24 Tom Tromey <tromey@redhat.com>
1390
1391 * make-target-delegates (munge_type, write_debugmethod): New
1392 functions.
1393 (debug_names): New global.
1394 ($TARGET_DEBUG_PRINTER): New global.
1395 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1396 name.
1397 Write debug methods. Generate init_debug_target.
1398 * target-debug.h: New file.
1399 * target-delegates.c: Rebuild.
1400 * target.c: Include target-debug.h.
1401 (debug_target): Hoist definition.
1402 (target_kill, target_get_section_table, target_memory_map)
1403 (target_flash_erase, target_flash_done, target_detach)
1404 (target_disconnect, target_wait, target_resume)
1405 (target_pass_signals, target_program_signals, target_follow_fork)
1406 (target_mourn_inferior, target_search_memory)
1407 (target_thread_address_space, target_close)
1408 (target_find_new_threads, target_core_of_thread)
1409 (target_verify_memory, target_insert_mask_watchpoint)
1410 (target_remove_mask_watchpoint): Remove targetdebug code.
1411 (debug_to_post_attach, debug_to_prepare_to_store)
1412 (debug_to_files_info, debug_to_insert_breakpoint)
1413 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1414 (debug_to_region_ok_for_hw_watchpoint)
1415 (debug_to_can_accel_watchpoint_condition)
1416 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1417 (debug_to_watchpoint_addr_within_range)
1418 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1419 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1420 (debug_to_terminal_init, debug_to_terminal_inferior)
1421 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1422 (debug_to_terminal_save_ours, debug_to_terminal_info)
1423 (debug_to_load, debug_to_post_startup_inferior)
1424 (debug_to_insert_fork_catchpoint)
1425 (debug_to_remove_fork_catchpoint)
1426 (debug_to_insert_vfork_catchpoint)
1427 (debug_to_remove_vfork_catchpoint)
1428 (debug_to_insert_exec_catchpoint)
1429 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1430 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1431 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1432 (setup_target_debug): Call init_debug_target.
1433 * target.h (TARGET_DEBUG_PRINTER): New macro.
1434 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1435 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1436
1437 2014-07-24 Gary Benson <gbenson@redhat.com>
1438
1439 * exceptions.h (throw_vfatal): Renamed to...
1440 (throw_vquit): New declaration.
1441 (throw_quit): Likewise.
1442 * exceptions.c (throw_vfatal): Renamed to...
1443 (throw_vquit): New function.
1444 (throw_quit): Likewise.
1445 (throw_error): Call throw_verror rather than throw_it.
1446 * utils.h (vfatal): Removed.
1447 (fatal): Likewise.
1448 * utils.c (vfatal): Removed.
1449 (fatal): Likewise.
1450 (internal_verror): Replaced call to fatal with call to throw_quit.
1451 (quit): Replaced calls to fatal with calls to throw_quit.
1452
1453 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1454
1455 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1456 target_read_code.
1457
1458 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1459
1460 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1461 less than zero in conditional expression.
1462
1463 2014-07-23 Tom Tromey <tromey@redhat.com>
1464
1465 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1466 ($INTRO_PART): Don't match whitespace.
1467 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1468 argument matching.
1469 ($METHOD): Add $METHOD_TRAILER.
1470 (trim): Rewrite.
1471 (scan_target_h): New sub.
1472 Change main loop not to collect state.
1473 * target-delegates.c: Rebuild.
1474
1475 2014-07-23 Gary Benson <gbenson@redhat.com>
1476
1477 * cp-support.c (gdb_demangle): Fix build on systems without
1478 sigaltstack.
1479
1480 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1483 for reference entry value target data value.
1484
1485 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1486
1487 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1488 value_available_contents_eq.
1489
1490 2014-07-22 Pedro Alves <palves@redhat.com>
1491
1492 * value.c (allocate_optimized_out_value): Don't mark value as
1493 non-lazy.
1494
1495 2014-07-22 Jiong Wang <jiong.wang@arm.com>
1496
1497 * MAINTAINERS (Write After Approval): Update my email address.
1498
1499 2014-07-20 Doug Evans <dje@google.com>
1500
1501 PR server/17147
1502 * remote.c (putpkt_binary): Add text to error message.
1503
1504 2014-07-20 Yao Qi <yao@codesourcery.com>
1505
1506 * eval.c: Remove "Chill" from comments.
1507 * gdbtypes.h: Likewise.
1508 * symtab.h: Likewise.
1509
1510 2014-07-20 Yao Qi <yao@codesourcery.com>
1511
1512 * std-operator.def: Update comments to TERNOP_SLICE.
1513
1514 2014-07-20 Yao Qi <yao@codesourcery.com>
1515
1516 * std-operator.def: Remove BINOP_RANGE.
1517 * breakpoint.c (watchpoint_exp_is_const): Update.
1518 * expprint.c (dump_subexp_body_standard): Likewise.
1519 * eval.c (init_array_element): Remove dead code.
1520 (evaluate_subexp_standard): Likewise.
1521
1522 2014-07-20 Yao Qi <yao@codesourcery.com>
1523
1524 * std-operator.def: Remove BINOP_IN.
1525 * breakpoint.c (watchpoint_exp_is_const): Update.
1526 * eval.c (evaluate_subexp_standard): Likewise.
1527 * expprint.c (dump_subexp_body_standard): Likewise.
1528
1529 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1530
1531 * microblaze-tdep.c (microblaze_register_names): Add
1532 the rshr and rslr register names.
1533 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1534 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1535 Use of tdesc_numbered_register. Use of
1536 microblaze_register_g_packet_guesses. Use of
1537 tdesc_use_registers. Use of set_gdbarch_register_type.
1538 (microblaze_register_g_packet_guesses): New.
1539 * microblaze-tdep.h (microblaze_reg_num): Add
1540 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1541 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1542 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1543 * features/microblaze-core.xml: New file.
1544 * features/microblaze-stack-protect.xml: New file.
1545 * features/microblaze-with-stack-protect.c: New file.
1546 * features/microblaze-with-stack-protect.xml: New file.
1547 * features/microblaze.xml: New file.
1548 * features/microblaze.c: New file.
1549 * features/Makefile (microblaze-with-stack-protect): Add
1550 microblaze-with-stack-protect microblaze and microblaze-expedite.
1551 * regformats/microblaze-with-stack-protect.dat: New file.
1552 * regformats/microblaze.dat: New file.
1553 * doc/gdb.texinfo (MicroBlaze Features): Added.
1554
1555 2014-07-18 Tom Tromey <tromey@redhat.com>
1556
1557 * exec.c (exec_ops): Now static.
1558 * exec.h (exec_ops): Don't declare.
1559
1560 2014-07-18 Tom Tromey <tromey@redhat.com>
1561
1562 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1563 to find_target_beneath.
1564 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1565 find_target_beneath.
1566 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1567
1568 2014-07-18 Tom Tromey <tromey@redhat.com>
1569
1570 PR gdb/17130:
1571 * utils.c (quit): Use target_supports_terminal_ours.
1572 * target.h (target_supports_terminal_ours): Declare.
1573 * target.c (target_supports_delete_record): Don't check
1574 to_delete_record against NULL.
1575 (target_supports_terminal_ours): New function.
1576
1577 2014-07-18 Tom Tromey <tromey@redhat.com>
1578
1579 PR gdb/17130:
1580 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1581 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1582 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1583 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1584 * windows-nat.c (windows_xfer_partial): Always delegate.
1585 * record-btrace.c (record_btrace_xfer_partial): Simplify
1586 delegation.
1587 (record_btrace_fetch_registers, record_btrace_store_registers)
1588 (record_btrace_prepare_to_store, record_btrace_resume)
1589 (record_btrace_wait, record_btrace_find_new_threads)
1590 (record_btrace_thread_alive): Likewise.
1591 * procfs.c (procfs_xfer_partial): Always delegate.
1592 * corelow.c (core_xfer_partial): Always delegate.
1593 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1594
1595 2014-07-18 Tom Tromey <tromey@redhat.com>
1596
1597 * exec.c (exec_make_note_section): Move earlier.
1598
1599 2014-07-17 Doug Evans <dje@google.com>
1600
1601 PR gdb/17170
1602 * maint.c (count_symtabs_and_blocks): Handle NULL
1603 current_program_space.
1604 (report_command_stats): Check global enabled flag in addition to
1605 recorded enabled flag.
1606 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1607
1608 2014-07-16 Pedro Alves <palves@redhat.com>
1609
1610 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1611
1612 2014-07-16 Tom Tromey <tromey@redhat.com>
1613
1614 * target.h (struct target_ops) <to_delete_record>: Reformat
1615 comment.
1616
1617 2014-07-16 Tom Tromey <tromey@redhat.com>
1618
1619 * target-delegates.c: Rebuild.
1620
1621 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1622
1623 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1624 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1625 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1626 (avr_pointer_to_address): Likewise.
1627 (avr_address_class_type_flags): New function.
1628 (avr_address_class_type_flags_to_name): Likewise.
1629 (avr_address_class_name_to_type_flags): Likewise.
1630 (avr_gdbarch_init): Set address_class_type_flags,
1631 address_class_type_flags_to_name and
1632 address_class_name_to_type_flags.
1633
1634 2014-07-15 Pedro Alves <palves@redhat.com>
1635
1636 * linux-nat.c (kill_callback): Save errno and work with saved
1637 copy.
1638
1639 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1640
1641 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1642
1643 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1644
1645 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1646 breakpoint support correctly.
1647
1648 2014-07-14 Pedro Alves <palves@redhat.com>
1649
1650 * utils.c (prompt_for_continue): Call target_terminal_ours.
1651
1652 2014-07-14 Pedro Alves <palves@redhat.com>
1653
1654 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1655 catch_errors. Don't re-enable stdin or notify observers where,
1656 and rethrow error.
1657 (fetch_inferior_event_wrapper): Delete.
1658
1659 2014-07-14 Pedro Alves <palves@redhat.com>
1660
1661 PR gdb/17072
1662 * top.c: Include "inf-loop.h".
1663 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1664 field.
1665 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1666 was async before.
1667 (gdb_readline_wrapper): Store whether the target is async, and
1668 make it sync.
1669
1670 2014-07-14 Pedro Alves <palves@redhat.com>
1671
1672 PR gdb/17072
1673 * top.c (gdb_readline_wrapper_line): Tweak comment.
1674 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1675 the input handler callback.
1676
1677 2014-07-14 Pedro Alves <palves@redhat.com>
1678
1679 PR gdb/17072
1680 * main.c: Include event-top.h.
1681 (handle_command_errors): New function.
1682 (catch_command_errors, catch_command_errors_const): Use it.
1683
1684 2014-07-14 Pedro Alves <palves@redhat.com>
1685
1686 * exceptions.c (catch_command_errors, catch_command_errors_const):
1687 Moved to main.c.
1688 * exceptions.h (catch_command_errors_ftype)
1689 (catch_command_errors_const_ftype): Moved to main.c.
1690 (catch_command_errors, catch_command_errors_const): Delete
1691 declarations.
1692 * main.c (catch_command_errors_ftype)
1693 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1694 (catch_command_errors, catch_command_errors_const)): Moved here
1695 from exceptions.c and make static.
1696
1697 2014-07-14 Pedro Alves <palves@redhat.com>
1698
1699 * exceptions.c (print_any_exception): Delete.
1700 (catch_exceptions_with_msg): Use exception_print instead of
1701 print_any_exception.
1702 (catch_errors): Use exception_fprintf instead of
1703 print_any_exception.
1704 (catch_command_errors, catch_command_errors_const): Use
1705 exception_print instead of print_any_exception.
1706
1707 2014-07-14 Pedro Alves <palves@redhat.com>
1708
1709 * infcall.c (run_inferior_call): Set 'sync_execution' while
1710 running the inferior call.
1711
1712 2014-07-14 Pedro Alves <palves@redhat.com>
1713
1714 * value.c (value_contents_equal): Delete function.
1715 * value.h (value_contents_equal): Delete declaration.
1716
1717 2014-07-14 Tom Tromey <tromey@redhat.com>
1718
1719 PR exp/17106:
1720 * gdbtypes.c (is_dynamic_type_internal): New function, from
1721 is_dynamic_type.
1722 (is_dynamic_type): Rewrite.
1723 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1724 (resolve_dynamic_struct): Likewise.
1725 (resolve_dynamic_type_internal): New function, from
1726 resolve_dynamic_type.
1727 (resolve_dynamic_type): Rewrite.
1728
1729 2014-07-14 Tom Tromey <tromey@redhat.com>
1730
1731 * target.c (target_require_runnable): Also check record_stratum.
1732 Update comment.
1733
1734 2014-07-11 Yao Qi <yao@codesourcery.com>
1735
1736 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1737 thumb_instruction_restores_sp return true.
1738
1739 2014-07-11 Yao Qi <yao@codesourcery.com>
1740
1741 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1742 (thumb_in_function_epilogue_p): Call
1743 thumb_instruction_restores_sp.
1744
1745 2014-07-11 Yao Qi <yao@codesourcery.com>
1746
1747 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1748 'add sp, #imm'.
1749 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1750
1751 2014-07-11 Gary Benson <gbenson@redhat.com>
1752
1753 * amd64-linux-nat.c (gdbcore.h): Remove include.
1754 (regset.h): Likewise.
1755 (nat/linux-btrace.h): Likewise.
1756 (btrace.h): Likewise.
1757 (gdb_assert.h): Likewise.
1758 (string.h): Likewise.
1759 (sys/uio.h): Likewise.
1760 (sys/debugreg.h): Likewise.
1761 (sys/syscall.h): Likewise.
1762 (sys/procfs.h): Likewise.
1763 (sys/user.h): Likewise.
1764 (asm/ptrace.h): Likewise.
1765 (i386-nat.h): Likewise.
1766 * i386-linux-nat.c (i386-nat.h): Likewise.
1767 (regset.h): Likewise.
1768 (target.h): Likewise.
1769 (linux-nat.h): Likewise.
1770 (nat/linux-btrace.h): Likewise.
1771 (btrace.h): Likewise.
1772 (gdb_assert.h): Likewise.
1773 (string.h): Likewise.
1774 (sys/uio.h): Likewise.
1775 (sys/user.h): Likewise.
1776 (sys/procfs.h): Likewise.
1777 (sys/reg.h): Likewise.
1778 (sys/debugreg.h): Likewise.
1779 (ORIG_EAX): Remove definition.
1780
1781 2014-07-11 Gary Benson <gbenson@redhat.com>
1782
1783 * i386-linux-nat.h: New file.
1784 * x86-linux-nat.h: Likewise.
1785 * x86-linux-nat.c: Likewise.
1786 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1787 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1788 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1789 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1790 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1791 (PTRACE_SETREGSET): Likewise.
1792 (arch_lwp_info): Now in x86-linux-nat.c.
1793 (have_ptrace_getregset): Now in x86-linux-nat.h.
1794 (x86_linux_dr_get): Now in x86-linux-nat.c.
1795 (x86_linux_dr_set): Likewise.
1796 (x86_linux_dr_get_addr): Likewise.
1797 (x86_linux_dr_get_control): Likewise.
1798 (x86_linux_dr_get_status): Likewise.
1799 (update_debug_registers_callback): Likewise.
1800 (x86_linux_dr_set_control): Likewise.
1801 (x86_linux_dr_set_addr): Likewise.
1802 (x86_linux_prepare_to_resume): Likewise.
1803 (x86_linux_new_thread): Likewise.
1804 (x86_linux_new_fork): Likewise.
1805 (x86_linux_get_thread_area): Likewise.
1806 (super_post_startup_inferior): Likewise.
1807 (x86_linux_child_post_startup_inferior): Likewise.
1808 (AMD64_LINUX_USER64_CS): Likewise.
1809 (AMD64_LINUX_X32_DS): Likewise.
1810 (x86_linux_read_description): Likewise.
1811 (x86_linux_enable_btrace): Likewise.
1812 (x86_linux_disable_btrace): Likewise.
1813 (x86_linux_teardown_btrace): Likewise.
1814 (x86_linux_read_btrace): Likewise.
1815 (x86_linux_create_target): Likewise.
1816 (x86_linux_add_target): Likewise.
1817 * i386-linux-nat.c (x86-linux-nat.h): New include.
1818 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1819 (PTRACE_SETREGSET): Likewise.
1820 (arch_lwp_info): Now in x86-linux-nat.c.
1821 (have_ptrace_getregset): Now in x86-linux-nat.h.
1822 (x86_linux_dr_get): Now in x86-linux-nat.c.
1823 (x86_linux_dr_set): Likewise.
1824 (x86_linux_dr_get_addr): Likewise.
1825 (x86_linux_dr_get_control): Likewise.
1826 (x86_linux_dr_get_status): Likewise.
1827 (update_debug_registers_callback): Likewise.
1828 (x86_linux_dr_set_control): Likewise.
1829 (x86_linux_dr_set_addr): Likewise.
1830 (x86_linux_prepare_to_resume): Likewise.
1831 (x86_linux_new_thread): Likewise.
1832 (x86_linux_new_fork): Likewise.
1833 (x86_linux_get_thread_area): Likewise.
1834 (super_post_startup_inferior): Likewise.
1835 (x86_linux_child_post_startup_inferior): Likewise.
1836 (AMD64_LINUX_USER64_CS): Likewise.
1837 (AMD64_LINUX_X32_DS): Likewise.
1838 (x86_linux_read_description): Likewise.
1839 (x86_linux_enable_btrace): Likewise.
1840 (x86_linux_disable_btrace): Likewise.
1841 (x86_linux_teardown_btrace): Likewise.
1842 (x86_linux_read_btrace): Likewise.
1843 (x86_linux_create_target): Likewise.
1844 (x86_linux_add_target): Likewise.
1845
1846 2014-07-11 Gary Benson <gbenson@redhat.com>
1847
1848 * amd64-linux-nat.c: Comment and whitespace changes.
1849 * i386-linux-nat.c: Comment and whitespace changes.
1850
1851 2014-07-11 Gary Benson <gbenson@redhat.com>
1852
1853 * amd64-linux-nat.c (x86_linux_create_target): New function.
1854 (x86_linux_add_target): Likewise.
1855 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1856 * i386-linux-nat.c (x86_linux_create_target): New function.
1857 (x86_linux_add_target): Likewise.
1858 (_initialize_i386_linux_nat): Delegate to the above new functions.
1859
1860 2014-07-11 Gary Benson <gbenson@redhat.com>
1861
1862 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1863 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1864 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1865 (ps_get_thread_area): Delegate to the above.
1866
1867 2014-07-11 Gary Benson <gbenson@redhat.com>
1868
1869 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1870 x86_linux_read_description. All uses updated. amd64-specific
1871 code conditionalized. Conditionalized i386-specific code added.
1872 Redundant cast removed.
1873 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1874 x86_linux_read_description. All uses updated. i386-specific
1875 code conditionalized. Conditionalized amd64-specific code added.
1876 One sizeof replaced with the actual type it is describing.
1877
1878 2014-07-11 Gary Benson <gbenson@redhat.com>
1879
1880 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1881 x86_linux_dr_get. All uses updated.
1882 (amd64_linux_dr_set): Renamed to
1883 x86_linux_dr_set. All uses updated.
1884 (amd64_linux_dr_get_addr): Renamed to
1885 x86_linux_dr_get_addr. All uses updated.
1886 (amd64_linux_dr_get_control): Renamed to
1887 x86_linux_dr_get_control. All uses updated.
1888 (amd64_linux_dr_get_status): Renamed to
1889 x86_linux_dr_get_status. All uses updated.
1890 (amd64_linux_dr_set_control): Renamed to
1891 x86_linux_dr_set_control. All uses updated.
1892 (amd64_linux_dr_set_addr): Renamed to
1893 x86_linux_dr_set_addr. All uses updated.
1894 (amd64_linux_prepare_to_resume): Renamed to
1895 x86_linux_prepare_to_resume. All uses updated.
1896 (amd64_linux_new_thread): Renamed to
1897 x86_linux_new_thread. All uses updated.
1898 (amd64_linux_new_fork): Renamed to
1899 x86_linux_new_fork. All uses updated.
1900 (amd64_linux_child_post_startup_inferior): Renamed to
1901 x86_linux_child_post_startup_inferior. All uses updated.
1902 (amd64_linux_enable_btrace): Renamed to
1903 x86_linux_enable_btrace. All uses updated.
1904 (amd64_linux_disable_btrace): Renamed to
1905 x86_linux_disable_btrace. All uses updated.
1906 (amd64_linux_teardown_btrace): Renamed to
1907 x86_linux_teardown_btrace. All uses updated.
1908 (amd64_linux_read_btrace): Renamed to
1909 x86_linux_read_btrace. All uses updated.
1910 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1911 x86_linux_dr_get. All uses updated.
1912 (i386_linux_dr_set): Renamed to
1913 x86_linux_dr_set. All uses updated.
1914 (i386_linux_dr_get_addr): Renamed to
1915 x86_linux_dr_get_addr. All uses updated.
1916 (i386_linux_dr_get_control): Renamed to
1917 x86_linux_dr_get_control. All uses updated.
1918 (i386_linux_dr_get_status): Renamed to
1919 x86_linux_dr_get_status. All uses updated.
1920 (i386_linux_dr_set_control): Renamed to
1921 x86_linux_dr_set_control. All uses updated.
1922 (i386_linux_dr_set_addr): Renamed to
1923 x86_linux_dr_set_addr. All uses updated.
1924 (i386_linux_prepare_to_resume): Renamed to
1925 x86_linux_prepare_to_resume. All uses updated.
1926 (i386_linux_new_thread): Renamed to
1927 x86_linux_new_thread. All uses updated.
1928 (i386_linux_new_fork): Renamed to
1929 x86_linux_new_fork. All uses updated.
1930 (i386_linux_child_post_startup_inferior): Renamed to
1931 x86_linux_child_post_startup_inferior. All uses updated.
1932 (i386_linux_enable_btrace): Renamed to
1933 x86_linux_enable_btrace. All uses updated.
1934 (i386_linux_disable_btrace): Renamed to
1935 x86_linux_disable_btrace. All uses updated.
1936 (i386_linux_teardown_btrace): Renamed to
1937 x86_linux_teardown_btrace. All uses updated.
1938 (i386_linux_read_btrace): Renamed to
1939 x86_linux_read_btrace. All uses updated.
1940
1941 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1942
1943 * remote.c (extended_remote_post_attach): New function.
1944 (init_extended_remote_ops): Install it as to_post_attach method.
1945
1946 2014-07-09 Pedro Alves <palves@redhat.com>
1947
1948 * infcmd.c (attach_command_post_wait): Don't call
1949 target_terminal_inferior here.
1950 (attach_command): Call it here instead.
1951
1952 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1955 field.
1956 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1957 from varobj.c, with additional checks.
1958 (c_varobj_ops): Fill in is_path_expr_parent field.
1959 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1960 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1961 field.
1962 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1963 ops method.
1964 (varobj_default_is_path_expr_parent): New function.
1965 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1966 (varobj_default_is_path_expr_parent): Declare new function.
1967
1968 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1969
1970 * infcmd.c (finish_backward): Turn internal error into normal error.
1971
1972 2014-07-07 Pedro Alves <palves@redhat.com>
1973
1974 PR gdb/17096
1975 * remote.c (async_handle_remote_sigint)
1976 (async_handle_remote_sigint_twice): Call
1977 gdb_call_async_signal_handler instead of
1978 mark_async_signal_handler.
1979
1980 2014-07-07 Tom Tromey <tromey@redhat.com>
1981
1982 * target-delegates.c: Rebuild.
1983 * target.c (target_info_record): Remove.
1984 * record.c (info_record_command): Unconditionally call
1985 to_info_record.
1986 * target.h (struct target_ops) <to_info_record>: Use
1987 TARGET_DEFAULT_IGNORE.
1988 (target_info_record): Remove.
1989
1990 2014-07-07 Tom Tromey <tromey@redhat.com>
1991
1992 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1993 TARGET_DEFAULT_NORETURN.
1994 * target.c (generic_tls_error): New function.
1995 (target_translate_tls_address): Don't search target stack.
1996 * target-delegates.c: Rebuild.
1997 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1998 stack.
1999 * linux-thread-db.c (thread_db_get_thread_local_address):
2000 Unconditionally call beneath target.
2001
2002 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2003
2004 * cli/cli-logging.c (pop_output_files): Assign targerr to
2005 gdb_stdtargerr.
2006
2007 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * MAINTAINERS (Write After Approval): Update my email address.
2010
2011 2014-07-02 Gary Benson <gbenson@redhat.com>
2012
2013 * proc-service.c (ps_xfer_memory): Update comment.
2014 (ps_pstop): Remove unused function.
2015 (ps_pcontinue): Likewise.
2016 (ps_lstop): Likewise.
2017 (ps_lcontinue): Likewise.
2018 (ps_lgetxregsize): Likewise.
2019 (ps_lgetxregs): Likewise.
2020 (ps_lsetxregs): Likewise.
2021 (ps_plog): Likewise.
2022 (ps_ptread): Likewise.
2023 (ps_ptwrite): Likewise.
2024
2025 2014-07-01 Mark Wielaard <mjw@redhat.com>
2026
2027 * dwarf2read.c (add_array_cv_type): New function.
2028 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2029 (read_tag_volatile_type): Likewise.
2030
2031 2014-07-01 Tom Tromey <tromey@redhat.com>
2032
2033 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2034 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2035 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2036 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2037 * command.h (cmd_cfunc_ftype): Move earlier.
2038 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2039 (add_com, add_info): Use cmd_cfunc_ftype.
2040
2041 2014-06-30 Tom Tromey <tromey@redhat.com>
2042
2043 * symtab.c (operator_chars): Make parameters and return type
2044 const.
2045 (file_matches): Make "files" const.
2046 (struct search_symbols_data) <files>: Now const.
2047 (search_symbols): Make "regexp" and "files" parameters const.
2048 Update.
2049 (symtab_symbol_info): Remove cast.
2050 (rbreak_command): Update.
2051 * symtab.h (search_symbols): Update.
2052
2053 2014-06-27 Yao Qi <yao@codesourcery.com>
2054
2055 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2056 Change parameter type to 'struct thread_info *'. Caller
2057 updated.
2058 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2059 Update declaration.
2060 * dummy-frame.c (struct dummy_frame_id): New.
2061 (dummy_frame_id_eq): New function.
2062 (struct dummy_frame) <id>: Change its type to 'struct
2063 dummy_frame_id'.
2064 (dummy_frame_push): Add parameter ptid and save it in
2065 dummy_frame_id.
2066 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2067 inferior_ptid.
2068 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2069 to inferior_ptid.
2070 (lookup_dummy_frame): Change parameter type to 'struct
2071 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2072 instead of frame_id_eq.
2073 (dummy_frame_pop): Add parameter ptid. Callers updated.
2074 Update comments. Compose dummy_frame_id and pass it to
2075 lookup_dummy_frame.
2076 (dummy_frame_discard): Add parameter ptid.
2077 (dummy_frame_sniffer): Compose dummy_frame_id and call
2078 dummy_frame_id_eq instead of frame_id_eq.
2079 (fprint_dummy_frames): Print ptid.
2080 * dummy-frame.h: Remove comments.
2081 (dummy_frame_push): Add ptid in declaration.
2082 (dummy_frame_pop, dummy_frame_discard): Likewise.
2083
2084 2014-06-26 Tom Tromey <tromey@redhat.com>
2085
2086 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2087 * command.h (error_no_arg): Update.
2088
2089 2014-06-26 Tom Tromey <tromey@redhat.com>
2090
2091 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2092 (do_show_command): Make "arg" const.
2093 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2094
2095 2014-06-26 Tom Tromey <tromey@redhat.com>
2096
2097 * record-full.c (record_full_get_bookmark): Make "args" const.
2098 (record_full_goto_bookmark): Make "raw_bookmark" const.
2099 * record.c (record_goto): New function.
2100 (cmd_record_goto): Use it. Now static.
2101 * record.h (record_goto): Declare.
2102 (cmd_record_goto): Remove declaration.
2103 * target-delegates.c: Rebuild.
2104 * target.h (struct target_ops) <to_get_bookmark,
2105 to_goto_bookmark>: Make parameter const.
2106
2107 2014-06-26 Tom Tromey <tromey@redhat.com>
2108
2109 * defs.h (generic_load): Update.
2110 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2111 * monitor.c (monitor_load): Make "args" const.
2112 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2113 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2114 const.
2115 (mips_load): Make "file" const.
2116 * remote-sim.c (gdbsim_load): Make "args" const.
2117 * remote.c (remote_load): Make "name" const.
2118 * symfile.c (generic_load): Make "args" const.
2119 * target-delegates.c: Rebuild.
2120 * target.c (target_load): Make "arg" const.
2121 (debug_to_load): Make "args" const.
2122 * target.h (struct target_ops) <to_load>: Make parameter const.
2123 (target_load): Update.
2124
2125 2014-06-26 Tom Tromey <tromey@redhat.com>
2126
2127 PR symtab/16902:
2128 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2129 (dwarf2_physname, read_partial_die)
2130 (guess_partial_die_structure_name, fixup_partial_die)
2131 (guess_full_die_structure_name, anonymous_struct_prefix)
2132 (dwarf2_name): Use per-BFD obstack.
2133
2134 2014-06-26 Yao Qi <yao@codesourcery.com>
2135
2136 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2137 dummyframe and this_id into inner block below.
2138
2139 2014-06-26 Yao Qi <yao@codesourcery.com>
2140
2141 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2142 with "signal_pass[0]" in the initialization of signal_pass.
2143
2144 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2145
2146 * record-btrace.c (record_btrace_generating_corefile)
2147 (record_btrace_prepare_to_generate_core)
2148 (record_btrace_done_generating_core): New.
2149 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2150 (record_btrace_store_registers, record_btrace_prepare_to_store):
2151 Forward request when generating a core file.
2152 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2153 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2154 to_done_generating_core.
2155
2156 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2157
2158 * target.h (target_ops) <to_prepare_to_generate_core>
2159 <to_done_generating_core>: New.
2160 (target_prepare_to_generate_core, target_done_generating_core): New.
2161 * target.c (target_prepare_to_generate_core)
2162 (target_done_generating_core): New.
2163 * target-delegates.c: Regenerate.
2164 * gcore.c: (write_gcore_file): Rename to ...
2165 (write_gcore_file_1): ...this.
2166 (write_gcore_file): Call target_prepare_to_generate_core
2167 and target_done_generating_core.
2168
2169 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2170
2171 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2172 * gcore.c (write_gcore_file): Free memory returned from
2173 make_corefile_notes.
2174 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2175 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2176
2177 2014-06-24 Yao Qi <yao@codesourcery.com>
2178
2179 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2180 (arm_linux_init_abi): Set skip_trampoline_code with
2181 gdbarch_skip_trampoline_code instead of
2182 find_solib_trampoline_target.
2183
2184 2014-06-24 Yao Qi <yao@codesourcery.com>
2185
2186 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2187 arm_skip_bx_reg returns non-zero.
2188
2189 2014-06-24 Yao Qi <yao@codesourcery.com>
2190
2191 * arm-tdep.c (arm_skip_bx_reg): New function.
2192 (arm_skip_stub): Call arm_skip_bx_reg.
2193
2194 2014-06-23 Don Breazeal <donb@codesourcery.com>
2195
2196 * MAINTAINERS: Add myself as write-after-approval maintainer.
2197
2198 2014-06-23 Pedro Alves <palves@redhat.com>
2199
2200 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2201 DR_CONTROL before setting DR0..DR3.
2202 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2203 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2204 bits of DR_CONTROL related to the debug register slot being
2205 disabled. If all slots are vacant, clear local slowdown as well,
2206 and assert DR_CONTROL is 0.
2207
2208 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2209
2210 * python/lib/gdb/command/xmethods.py
2211 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2212 current progspace only if the string "progspace" matches LOCUS_RE.
2213
2214 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 Fix --with-system-readline with readline-6.3 patch 5.
2217 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2218 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2219 types.
2220
2221 2014-06-20 Tom Tromey <tromey@redhat.com>
2222
2223 * dwarf2read.c (dw2_get_real_path): Use correct type in
2224 OBSTACK_CALLOC.
2225 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2226
2227 2014-06-20 Gary Benson <gbenson@redhat.com>
2228
2229 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2230 * common/glibc_thread_db.h: Likewise.
2231 * common/i386-cpuid.h: Likewise.
2232 * common/i386-gcc-cpuid.h: Likewise.
2233 * common/linux-btrace.h: Likewise.
2234 * common/linux-osdata.h: Likewise.
2235 * common/linux-procfs.h: Likewise.
2236 * common/linux-ptrace.h: Likewise.
2237 * common/mips-linux-watch.h: Likewise.
2238 * common/linux-btrace.c: Moved to nat.
2239 * common/linux-osdata.c: Likewise.
2240 * common/linux-procfs.c: Likewise.
2241 * common/linux-ptrace.c: Likewise.
2242 * common/mips-linux-watch.c: Likewise.
2243 * nat/gdb_thread_db.h: Moved from common.
2244 * nat/glibc_thread_db.h: Likewise.
2245 * nat/i386-cpuid.h: Likewise.
2246 * nat/i386-gcc-cpuid.h: Likewise.
2247 * nat/linux-btrace.c: Likewise.
2248 * nat/linux-btrace.h: Likewise.
2249 * nat/linux-osdata.c: Likewise.
2250 * nat/linux-osdata.h: Likewise.
2251 * nat/linux-procfs.c: Likewise.
2252 * nat/linux-procfs.h: Likewise.
2253 * nat/linux-ptrace.c: Likewise.
2254 * nat/linux-ptrace.h: Likewise.
2255 * nat/mips-linux-watch.c: Likewise.
2256 * nat/mips-linux-watch.h: Likewise.
2257 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2258 (object file files): Reordered.
2259 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2260 of glibc_thread_db.h.
2261
2262 2014-06-20 Gary Benson <gbenson@redhat.com>
2263
2264 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2265 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2266 (i386_dr_low): Likewise.
2267 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2268 (i386_dr_low_set_addr): Likewise.
2269 (i386_dr_low_get_addr): Likewise.
2270 (i386_dr_low_can_set_control): Likewise.
2271 (i386_dr_low_set_control): Likewise.
2272 (i386_dr_low_get_control): Likewise.
2273 (i386_dr_low_get_status): Likewise.
2274 (i386_get_debug_register_length): Likewise.
2275 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2276 (i386_dr_low): Likewise.
2277 * nat/i386-dregs.c (i386-low.h): Remove include.
2278 (i386-nat.h): Likewise.
2279 (nat/i386-dregs.h): New include.
2280 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2281 (i386_dr_low_set_addr): Likewise.
2282 (i386_dr_low_get_addr): Likewise.
2283 (i386_dr_low_can_set_control): Likewise.
2284 (i386_dr_low_set_control): Likewise.
2285 (i386_dr_low_get_control): Likewise.
2286 (i386_dr_low_get_status): Likewise.
2287 (i386_get_debug_register_length): Likewise.
2288 (debug_hw_points): Likewise.
2289
2290 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2291
2292 * Makefile.in (SFILES): Add d-exp.y.
2293 (YYFILES): Add d-exp.c.
2294 (YYOBJ): Add d-exp.o.
2295 (local-maintainer-clean): Delete d-exp.c.
2296 * d-exp.y: New file.
2297 * d-lang.h (d_parse): New declaration.
2298 (d_error): New declaration.
2299 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2300 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2301 PREC_ORDER operators.
2302 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2303
2304 2014-06-19 Yao Qi <yao@codesourcery.com>
2305
2306 * gdbthread.h (any_running): Remove the declaration.
2307 * thread.c (any_running): Remove.
2308
2309 2014-06-19 Yao Qi <yao@codesourcery.com>
2310
2311 * gdbthread.h (struct thread_info) <state>: Change its type to
2312 'enum thread_state'. Update comments.
2313
2314 2014-06-19 Pedro Alves <palves@redhat.com>
2315
2316 * gdbthread.h (ALL_THREADS): Delete.
2317 (ALL_NON_EXITED_THREADS): New macro.
2318 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2319 instead of ALL_THREADS.
2320 * infrun.c (find_thread_needs_step_over)
2321 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2322 instead of ALL_THREADS.
2323 * record-btrace.c (record_btrace_open)
2324 (record_btrace_stop_recording, record_btrace_close)
2325 (record_btrace_is_replaying, record_btrace_resume)
2326 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2327 * remote.c (append_pending_thread_resumptions): Likewise.
2328 * thread.c (thread_apply_all_command): Likewise.
2329
2330 2014-06-19 Gary Benson <gbenson@redhat.com>
2331
2332 * i386-nat.c (i386_stopped_by_watchpoint):
2333 Use i386_dr_stopped_by_watchpoint.
2334 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2335 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2336
2337 2014-06-19 Gary Benson <gbenson@redhat.com>
2338
2339 * nat/i386-dregs.c: New file.
2340 * Makefile.in (i386-dregs.o): New rule.
2341 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2342 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2343 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2344 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2345 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2346 * config/i386/go32.mh (NATDEPFILES): Likewise.
2347 * config/i386/linux.mh (NATDEPFILES): Likewise.
2348 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2349 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2350 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2351 * i386-nat.h (debug_hw_points): New declaration.
2352 * i386-nat.c (breakpoint.h): Remove include.
2353 (command.h): Likewise.
2354 (target.h): Likewise.
2355 (gdb_assert.h): Likewise.
2356 (debug_hw_points): Made nonstatic.
2357 (debug_printf): Now in i386-dregs.c.
2358 (TARGET_HAS_DR_LEN_8): Likewise.
2359 (DR_CONTROL_SHIFT): Likewise.
2360 (DR_CONTROL_SIZE): Likewise.
2361 (DR_RW_EXECUTE): Likewise.
2362 (DR_RW_WRITE): Likewise.
2363 (DR_RW_READ): Likewise.
2364 (DR_RW_IORW): Likewise.
2365 (DR_LEN_1): Likewise.
2366 (DR_LEN_2): Likewise.
2367 (DR_LEN_4): Likewise.
2368 (DR_LEN_8): Likewise.
2369 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2370 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2371 (DR_ENABLE_SIZE): Likewise.
2372 (DR_LOCAL_SLOWDOWN): Likewise.
2373 (DR_GLOBAL_SLOWDOWN): Likewise.
2374 (DR_CONTROL_RESERVED): Likewise.
2375 (I386_DR_CONTROL_MASK): Likewise.
2376 (I386_DR_VACANT): Likewise.
2377 (I386_DR_LOCAL_ENABLE): Likewise.
2378 (I386_DR_GLOBAL_ENABLE): Likewise.
2379 (I386_DR_DISABLE): Likewise.
2380 (I386_DR_SET_RW_LEN): Likewise.
2381 (I386_DR_GET_RW_LEN): Likewise.
2382 (I386_DR_WATCH_HIT): Likewise.
2383 (i386_wp_op_t): Likewise.
2384 (i386_show_dr): Likewise.
2385 (i386_length_and_rw_bits): Likewise.
2386 (i386_insert_aligned_watchpoint): Likewise.
2387 (i386_remove_aligned_watchpoint): Likewise.
2388 (i386_handle_nonaligned_watchpoint): Likewise.
2389 (i386_update_inferior_debug_regs): Likewise.
2390 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2391 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2392 (i386_region_ok_for_watchpoint):
2393 Use i386_dr_region_ok_for_watchpoint.
2394 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2395
2396 2014-06-19 Gary Benson <gbenson@redhat.com>
2397
2398 * i386-nat.c (i386_insert_hw_breakpoint): Use
2399 i386_insert_watchpoint.
2400 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2401
2402 2014-06-19 Gary Benson <gbenson@redhat.com>
2403
2404 * i386-nat.c (i386_dr_show): Renamed to
2405 i386_show_dr and made static. All uses updated.
2406 (i386_dr_length_and_rw_bits): Renamed to
2407 i386_length_and_rw_bits and made static.
2408 All uses updated.
2409 (i386_dr_insert_aligned_watchpoint): Renamed to
2410 i386_insert_aligned_watchpoint and made static.
2411 All uses updated.
2412 (i386_dr_remove_aligned_watchpoint): Renamed to
2413 i386_remove_aligned_watchpoint and made static.
2414 All uses updated.
2415 (i386_dr_update_inferior_debug_regs): Renamed to
2416 i386_update_inferior_debug_regs and made static.
2417 All uses updated.
2418 * nat/i386-dregs.h (i386_dr_show): Removed.
2419 (i386_dr_length_and_rw_bits): Likewise.
2420 (i386_dr_insert_aligned_watchpoint): Likewise.
2421 (i386_dr_remove_aligned_watchpoint): Likewise.
2422 (i386_dr_update_inferior_debug_regs): Likewise.
2423
2424 2014-06-19 Gary Benson <gbenson@redhat.com>
2425
2426 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2427 * configure: Regenerate.
2428 * config.in: Likewise.
2429 * main.c (signal.h): New include.
2430 (setup_alternate_signal_stack): New function.
2431 (captured_main): Call the above.
2432 * cp-support.c (signal.h): New include.
2433 (catch_demangler_crashes): New flag.
2434 (SIGJMP_BUF): New define.
2435 (SIGSETJMP): Likewise.
2436 (SIGLONGJMP): Likewise.
2437 (gdb_demangle_jmp_buf): New static global.
2438 (gdb_demangle_attempt_core_dump): Likewise.
2439 (gdb_demangle_signal_handler): New function.
2440 (gdb_demangle): If catch_demangler_crashes is set, install the
2441 above signal handler before calling bfd_demangle, and restore
2442 the original signal handler afterwards. Display the offending
2443 symbol and call demangler_warning the first time a segmentation
2444 fault is caught.
2445 (_initialize_cp_support): New maint set/show command.
2446
2447 2014-06-19 Gary Benson <gbenson@redhat.com>
2448
2449 * utils.h (resource_limit_kind): New enum.
2450 (can_dump_core): New declaration.
2451 (warn_cant_dump_core): Likewise.
2452 (dump_core): Likewise.
2453 * utils.c (dump_core): Made nonstatic. Added new
2454 parameter "limit_kind".
2455 (can_dump_core): Made nonstatic. Moved printing code to...
2456 (warn_cant_dump_core): New function.
2457 (can_dump_core_warn): Likewise.
2458 (internal_vproblem): Replace calls to can_dump_core with
2459 calls to can_dump_core_warn. Supply new argument to each.
2460
2461 2014-06-19 Gary Benson <gbenson@redhat.com>
2462
2463 * utils.h (demangler_vwarning): New declaration.
2464 (demangler_warning): Likewise.
2465 * utils.c (struct internal_problem)
2466 <user_settable_should_quit>: New field.
2467 <user_settable_should_dump_core>: Likewise
2468 (internal_error_problem): Add values for above new fields.
2469 (internal_warning_problem): Likewise.
2470 (demangler_warning_problem): New static global.
2471 (demangler_vwarning): New function.
2472 (demangler_warning): Likewise.
2473 (add_internal_problem_command): Selectively add commands.
2474 (_initialize_utils): New internal problem command.
2475 * maint.c (maintenance_demangler_warning): New function.
2476 (_initialize_maint_cmds): New command.
2477
2478 2014-06-18 Tom Tromey <tromey@redhat.com>
2479
2480 * f-valprint.c (info_common_command_for_block): Update.
2481 * symtab.h (struct general_symbol_info) <common_block>: Now
2482 const.
2483
2484 2014-06-18 Tom Tromey <tromey@redhat.com>
2485
2486 * symtab.h (struct symtab) <blockvector>: Now const.
2487 * ada-lang.c (ada_add_global_exceptions): Update.
2488 * buildsym.c (augment_type_symtab): Update.
2489 * dwarf2read.c (dw2_lookup_symbol): Update.
2490 * jit.c (finalize_symtab): Update.
2491 * jv-lang.c (add_class_symtab_symbol): Update.
2492 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2493 Update.
2494 * objfiles.c (objfile_relocate1): Update.
2495 * psymtab.c (lookup_symbol_aux_psymtabs)
2496 (maintenance_check_psymtabs): Update.
2497 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2498 Update.
2499 * spu-tdep.c (spu_catch_start): Update.
2500 * symmisc.c (dump_symtab_1): Update.
2501 * symtab.c (lookup_global_symbol_from_objfile)
2502 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2503 (basic_lookup_transparent_type_quick)
2504 (basic_lookup_transparent_type, find_pc_sect_symtab)
2505 (find_pc_sect_line, search_symbols): Update.
2506 * block.c (find_block_in_blockvector): Make "bl" const.
2507 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2508 const.
2509 (blockvector_contains_pc): Make "bv" const.
2510 (block_for_pc_sect): Update.
2511 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2512 (blockvector_contains_pc): Update.
2513 * breakpoint.c (resolve_sal_pc): Update.
2514 * inline-frame.c (block_starting_point_at): Update.
2515
2516 2014-06-18 Tom Tromey <tromey@redhat.com>
2517
2518 * completer.c (complete_line): Make "line_buffer" const.
2519 * completer.h (complete_line): Update.
2520
2521 2014-06-18 Tom Tromey <tromey@redhat.com>
2522
2523 * symtab.c (add_macro_name): Remove unneeded cast.
2524
2525 2014-06-18 Tom Tromey <tromey@redhat.com>
2526
2527 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2528 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2529
2530 2014-06-18 Tom Tromey <tromey@redhat.com>
2531
2532 * probe.c (info_probes_for_ops): Make "arg" const.
2533 * probe.h (info_probes_for_ops): Update.
2534
2535 2014-06-18 Tom Tromey <tromey@redhat.com>
2536
2537 * varobj.c (varobj_create): Update.
2538 * valops.c (value_of_this): Update.
2539 * tracepoint.c (add_local_symbols, scope_info): Update.
2540 * symtab.h (struct general_symbol_info) <block>: Now const.
2541 * symtab.c (skip_prologue_sal)
2542 (default_make_symbol_completion_list_break_on)
2543 (skip_prologue_using_sal): Update.
2544 * stack.h (iterate_over_block_locals)
2545 (iterate_over_block_local_vars): Update.
2546 * stack.c (print_frame_args): Update.
2547 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2548 parameter const.
2549 (get_selected_block): Make return type const.
2550 * python/py-frame.c (frapy_block): Update.
2551 * python/py-block.c (gdbpy_block_for_pc): Update.
2552 * p-exp.y (%union) <bval>: Now const.
2553 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2554 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2555 * m2-exp.y (%union) <bval>: Now const.
2556 * linespec.c (get_current_search_block): Make return type const.
2557 (create_sals_line_offset, find_label_symbols): Update.
2558 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2559 Update.
2560 (block_starting_point_at): Make "block" const.
2561 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2562 (check_exception_resume): Update.
2563 * guile/scm-frame.c (gdbscm_frame_block): Update.
2564 * guile/scm-block.c (gdbscm_lookup_block): Update.
2565 * frame.h (get_frame_block): Update.
2566 (get_selected_block): Make return type const.
2567 * frame.c (frame_id_inner): Update.
2568 * f-valprint.c (info_common_command_for_block)
2569 (info_common_command): Update.
2570 * dwarf2loc.c (dwarf2_find_location_expression)
2571 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2572 (locexpr_describe_location_piece): Update.
2573 * c-exp.y (%union) <bval>: Now const.
2574 * breakpoint.c (resolve_sal_pc): Update.
2575 * blockframe.c (get_frame_block):Make return type const.
2576 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2577 (block_innermost_frame): Update.
2578 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2579 (block_for_pc, block_for_pc_sect): Update.
2580 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2581 'pblock' const.
2582 (block_for_pc_sect, block_for_pc): Make return type const.
2583 * ax-gdb.c (gen_expr): Update.
2584 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2585 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2586 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2587 (ada_read_var_value): Update.
2588 * ada-exp.y (struct name_info) <block>: Now const.
2589 (%union): Likewise.
2590 (block_lookup): Constify.
2591
2592 2014-06-18 Gary Benson <gbenson@redhat.com>
2593
2594 * nat/i386-dregs.h: New file.
2595 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2596 * i386-nat.h (i386-dregs.h): New include.
2597 (DR_FIRSTADDR): Now in i386-dregs.h.
2598 (DR_LASTADDR): Likewise.
2599 (DR_NADDR): Likewise.
2600 (DR_STATUS): Likewise.
2601 (DR_CONTROL): Likewise.
2602 (i386_debug_reg_state): Likewise.
2603 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2604
2605 2014-06-18 Don Breazeal <donb@codesourcery.com>
2606
2607 * breakpoint.c (set_longjmp_breakpoint): Call
2608 momentary_breakpoint_from_master with additional argument.
2609 (set_longjmp_breakpoint_for_call_dummy): Call
2610 momentary_breakpoint_from_master with additional argument.
2611 (set_std_terminate_breakpoint): Call
2612 momentary_breakpoint_from_master with additional argument.
2613 (momentary_breakpoint_from_master): Add argument to function
2614 definition and use it to initialize structure member flag.
2615 (clone_momentary_breakpoint): Call
2616 momentary_breakpoint_from_master with additional argument.
2617 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2618 member flags set in momentary_breakpoint_from_master.
2619
2620 2014-06-18 Gary Benson <gbenson@redhat.com>
2621
2622 * i386-nat.c (i386_show_dr): Renamed to
2623 i386_dr_show and made nonstatic. All uses updated.
2624 (i386_length_and_rw_bits): Renamed to
2625 i386_dr_length_and_rw_bits and made nonstatic.
2626 All uses updated.
2627 (i386_insert_aligned_watchpoint): Renamed to
2628 i386_dr_insert_aligned_watchpoint and made nonstatic.
2629 All uses updated.
2630 (i386_remove_aligned_watchpoint): Renamed to
2631 i386_dr_remove_aligned_watchpoint and made nonstatic.
2632 All uses updated.
2633 (i386_update_inferior_debug_regs): Renamed to
2634 i386_dr_update_inferior_debug_regs and made nonstatic.
2635 All uses updated.
2636
2637 2014-06-18 Gary Benson <gbenson@redhat.com>
2638
2639 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2640 (i386_dr_low_can_set_control): Likewise.
2641 (i386_dr_low_set_addr): Likewise.
2642 (i386_dr_low_set_control): Likewise.
2643 (i386_dr_low_get_addr): Likewise.
2644 (i386_dr_low_get_status): Likewise.
2645 (i386_dr_low_get_control): Likewise.
2646 (i386_insert_aligned_watchpoint): Use new macros.
2647 (i386_update_inferior_debug_regs): Likewise.
2648 (i386_stopped_data_address): Likewise.
2649
2650 2014-06-18 Gary Benson <gbenson@redhat.com>
2651
2652 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2653 New parameter. All uses updated.
2654
2655 2014-06-18 Gary Benson <gbenson@redhat.com>
2656
2657 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2658 All uses updated.
2659
2660 2014-06-18 Gary Benson <gbenson@redhat.com>
2661
2662 * i386-nat.c (debug_printf): New macro.
2663 (i386_get_debug_register_length): Likewise.
2664 (TARGET_HAS_DR_LEN_8): Use above macro.
2665 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2666 and printf_unfiltered. Use phex to format values.
2667
2668 2014-06-18 Gary Benson <gbenson@redhat.com>
2669
2670 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2671 Make const.
2672
2673 2014-06-18 Gary Benson <gbenson@redhat.com>
2674
2675 * i386-nat.c: Comment changes.
2676
2677 2014-06-18 Gary Benson <gbenson@redhat.com>
2678
2679 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2680
2681 2014-06-18 Gary Benson <gbenson@redhat.com>
2682
2683 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2684 (i386_insert_aligned_watchpoint): Likewise.
2685 (i386_remove_aligned_watchpoint): Likewise.
2686 (i386_handle_nonaligned_watchpoint): Likewise.
2687
2688 2014-06-18 Gary Benson <gbenson@redhat.com>
2689
2690 * i386-nat.c: Whitespace changes.
2691
2692 2014-06-17 Samuel Bronson <naesten@gmail.com>
2693
2694 * MAINTAINERS: Update Roland McGrath's email address.
2695 Thanks to Sergio Durigan Junior for pointing out that he left
2696 Red Hat a while ago, and giving me a current address.
2697
2698 2014-06-17 Tom Tromey <tromey@redhat.com>
2699
2700 * utils.h (savestring): Remove declaration.
2701
2702 2014-06-17 Tom Tromey <tromey@redhat.com>
2703
2704 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2705
2706 2014-06-16 Keith Seitz <keiths@redhat.com>
2707
2708 PR mi/15863
2709 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2710 to update the varobj if inferior_ptid is null_ptid.
2711
2712 2014-06-16 Tom Tromey <tromey@redhat.com>
2713
2714 * target.h (struct target_ops) <to_info_proc>: Make parameter
2715 const.
2716 (target_info_proc): Update.
2717 * target.c (target_info_proc): Make "args" const.
2718 * procfs.c (procfs_info_proc): Update.
2719 * linux-tdep.c (linux_info_proc): Update.
2720 (linux_core_info_proc_mappings): Make "args" const.
2721 (linux_core_info_proc): Update.
2722 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2723 * gdbarch.c: Rebuild.
2724 * gdbarch.h: Rebuild.
2725 * corelow.c (core_info_proc): Update.
2726
2727 2014-06-16 Tom Tromey <tromey@redhat.com>
2728
2729 * target.h (struct target_ops) <to_disconnect>: Make parameter
2730 const.
2731 (target_disconnect): Update.
2732 * target.c (target_disconnect): Make "args" const.
2733 * target-delegates.c: Rebuild.
2734 * remote.c (remote_disconnect): Update.
2735 * record.h (record_disconnect): Update.
2736 * record.c (record_disconnect): Update.
2737 * inf-child.c (inf_child_disconnect): Update.
2738
2739 2014-06-16 Tom Tromey <tromey@redhat.com>
2740
2741 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2742 * target.c (debug_to_rcmd, default_rcmd): Update.
2743 * target-delegates.c: Rebuild.
2744 * remote.c (remote_rcmd): Update.
2745 * monitor.c (monitor_rcmd): Update.
2746
2747 2014-06-16 Pedro Alves <palves@redhat.com>
2748
2749 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2750 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2751 have OBJF_SHARED set.
2752 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2753 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2754 instead of OBJF_USERLOADED.
2755 * objfiles.h (OBJF_SHARED): Update comment.
2756 (userloaded_objfile_contains_address_p): Rename to ...
2757 (shared_objfile_contains_address_p): ... this, and update
2758 comments.
2759 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2760 new objfile.
2761 (remove_symbol_file_command): Skip objfiles that don't have
2762 OBJF_SHARED set.
2763
2764 2014-06-16 Tom Tromey <tromey@redhat.com>
2765
2766 * minsyms.h (prim_record_minimal_symbol)
2767 (prim_record_minimal_symbol_and_info): Update comments.
2768
2769 2014-06-14 Eli Zaretskii <eliz@gnu.org>
2770
2771 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2772 or --without-guile, according to how GDB was built.
2773
2774 2014-06-13 Tom Tromey <tromey@redhat.com>
2775
2776 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2777 to help_list.
2778 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2779 to help_list.
2780 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2781 help_list.
2782 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2783 help_list.Pass all_commands, not -1, to help_list.
2784 * cli/cli-dump.c (dump_command, append_command)
2785 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2786 (binary_dump_command, binary_append_command): Pass all_commands,
2787 not -1, to help_list.
2788 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2789 -1, to help_list.
2790 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2791 -1, to help_list.
2792 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2793 help_list.
2794 * top.c (set_history): Pass all_commands, not -1, to help_list.
2795 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2796 all_commands, not -1, to help_list.
2797 * symfile.c (overlay_command): Pass all_commands, not -1, to
2798 help_list.
2799 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2800 help_list.
2801 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2802 help_list.
2803 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2804 -1, to help_list.
2805 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2806 not -1, to help_list.
2807 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2808 not -1, to help_list.
2809 * maint.c (maintenance_command, maintenance_info_command)
2810 (maintenance_print_command, maintenance_set_cmd): Pass
2811 all_commands, not -1, to help_list.
2812 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2813 help_list.
2814 * language.c (set_check): Pass all_commands, not -1, to help_list.
2815 * infcmd.c (unset_command): Pass all_commands, not -1, to
2816 help_list.
2817 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2818 help_list.
2819 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2820 help_list.
2821 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2822 help_list.
2823 * breakpoint.c (save_command): Pass all_commands, not -1, to
2824 help_list.
2825 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2826 all_commands, not -1, to help_list.
2827
2828 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2829
2830 * regcache.c (struct register_to_invalidate): New structure.
2831 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2832 functions.
2833 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2834
2835 2014-06-12 Yao Qi <yao@codesourcery.com>
2836
2837 * varobj.c (varobj_get_num_children): Call
2838 varobj_is_dynamic_p.
2839 (varobj_list_children): Likewise.
2840 (varobj_update): Likewise. Update comments.
2841
2842 2014-06-12 Yao Qi <yao@codesourcery.com>
2843
2844 * varobj.c (varobj_pretty_printed_p): Rename to ...
2845 (varobj_is_dynamic_p): ... this. New function.
2846 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2847 (varobj_is_dynamic_p): Declare.
2848 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2849 (mi_print_value_p, varobj_update_one): Likewise.
2850
2851 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2852 Yao Qi <yao@codesourcery.com>
2853
2854 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2855 (varobj_get_iterator): Wrap up code for pretty-printer by
2856 "#if HAVE_PYTHON" and "#endif".
2857 (update_dynamic_varobj_children): Likewise.
2858
2859 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2860 Yao Qi <yao@codesourcery.com>
2861
2862 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2863 gdb_python_initialized is false. Move some code from varobj.c.
2864 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2865 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2866 (struct varobj_item): Moved to varobj-iter.h".
2867 (varobj_clear_saved_item): New function.
2868 (update_dynamic_varobj_children): Move python-related code to
2869 py-varobj.c.
2870 (free_variable): Call varobj_clear_saved_item and
2871 varobj_iter_delete.
2872
2873 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2874 Yao Qi <yao@codesourcery.com>
2875
2876 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2877 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2878 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2879 (py-varobj.o): New rule.
2880 * python/py-varobj.c: New file.
2881 * python/python-internal.h (py_varobj_get_iterator): Declare.
2882 * varobj-iter.h: New file.
2883 * varobj.c: Include "varobj-iter.h"
2884 (struct varobj) <child_iter>: Change its type from "PyObject *"
2885 to "struct varobj_iter *".
2886 <saved_item>: Likewise.
2887 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2888 [HAVE_PYTHON] (varobj_get_iterator): New function.
2889 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2890 python-specific code to python/py-varobj.c.
2891 (install_visualizer): Call varobj_iter_delete instead of
2892 Py_XDECREF.
2893 * varobj.h (varobj_ensure_python_env): Declare.
2894
2895 2014-06-12 Yao Qi <yao@codesourcery.com>
2896
2897 * varobj.c (struct varobj_item): New structure.
2898 (create_child_with_value): Update declaration.
2899 (varobj_add_child): Replace arguments 'name' and 'value' with
2900 'item'. All callers updated.
2901 (install_dynamic_child): Likewise.
2902 (update_dynamic_varobj_children): Likewise.
2903 (varobj_add_child): Likewise.
2904 (create_child_with_value): Likewise.
2905
2906 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2907
2908 * NEWS: Create a new section for the next release branch.
2909 Rename the section of the current branch, now that it has
2910 been cut.
2911
2912 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2913
2914 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2915 * version.in: Bump version to 7.8.50.DATE-cvs.
2916
2917 2014-06-11 Pedro Alves <palves@redhat.com>
2918
2919 PR remote/17028
2920 * ser-mingw.c (net_windows_socket_check_pending): New function.
2921 (net_windows_select_thread): Ignore spurious wakeups. Use
2922 net_windows_socket_check_pending.
2923 (net_windows_wait_handle): Check for pending events with
2924 ioctlsocket, through net_windows_socket_check_pending, instead of
2925 checking the socket's event.
2926
2927 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2928
2929 * python/python-internal.h (gdb_PyObject_GetAttrString)
2930 (gdb_PyObject_HasAttrString): New inline function definitions.
2931 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2932 char * of the second argument to PyObject_GetAttrString.
2933
2934 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2935
2936 * serial.c (serial_write): Fix index of character to be printed
2937 in call to serial_logchar when serial debug traces are enabled.
2938
2939 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2940
2941 * gdbtypes (resolve_dynamic_range): Add function description.
2942
2943 2014-06-09 Pedro Alves <palves@redhat.com>
2944
2945 * linux-nat.c (linux_child_follow_fork): Initialize status with
2946 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2947 inner block. Only pass the signal to PTRACE_DETACH if in pass
2948 state.
2949
2950 2014-06-09 Gary Benson <gbenson@redhat.com>
2951
2952 * common/signals.c (gdb_signal_from_host): Reorder to separate
2953 the always-available ANSI-standard signals from the signals that
2954 require checking.
2955 (do_gdb_signal_to_host): Likewise.
2956 * proc-events.c (signal_table): Likewise.
2957
2958 2014-06-08 Hui Zhu <hui@codesourcery.com>
2959
2960 * common/linux-ptrace.c (linux_disable_event_reporting): New
2961 function.
2962 * common/linux-ptrace.h (linux_disable_event_reporting): New
2963 declaration.
2964 * linux-nat.c (linux_child_follow_fork): Do a single step before
2965 detach.
2966
2967 2014-06-07 Keith Seitz <keiths@redhat.com>
2968
2969 Revert:
2970 PR c++/16253
2971 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2972 from symbol_matches_domain in symtab.c. All local callers
2973 of symbol_matches_domain updated.
2974 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2975 search STRUCT_DOMAIN.
2976 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2977 independently. standard_lookup will do that automatically.
2978 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2979 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2980 (cp_lookup_symbol_in_namespace): Likewise.
2981 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2982 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2983 may return a STRUCT_DOMAIN match.
2984 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2985 * cp-support.c: Include language.h.
2986 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2987 VAR_DOMAIN.
2988 * psymtab.c (match_partial_symbol): Compare the requested
2989 domain with the symbol's domain directly.
2990 (lookup_partial_symbol): Likewise.
2991 * symtab.c (lookup_symbol_in_language): Explain when/why
2992 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2993 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2994 appropriate languages.
2995 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2996 and moved to ada-lang.c
2997 (lookup_block_symbol): Explain that this function only returns
2998 symbol matching the requested DOMAIN.
2999 Compare the requested domain with the symbol's domain directly.
3000 (iterate_over_symbols): Compare the requested domain with the
3001 symbol's domain directly.
3002 * symtab.h (symbol_matches_domain): Remove.
3003
3004 2014-06-06 Doug Evans <xdje42@gmail.com>
3005
3006 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3007 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3008 (gdbscm_guile_version_is_at_least): Declare.
3009 (gdbscm_scm_string_to_int): Declare.
3010 * guile/guile.c (gdbscm_guile_major_version): New global.
3011 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3012 (guile_datadir): New static global.
3013 (gdbscm_guile_data_directory): New function.
3014 (initialize_scheme_side): Update.
3015 (misc_guile_functions): Add guile-data-directory.
3016 (initialize_gdb_module): Fetch guile version number.
3017 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3018 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3019 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3020 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3021 comments.
3022 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3023 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3024 * guile/scm-value.c (gdbscm_value_to_string): Only call
3025 scm_port_conversion_strategy if Guile version >= 2.0.6.
3026
3027 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3028
3029 * main.c (print_gdb_help): Add -q and --silent.
3030
3031 2014-06-06 Gary Benson <gbenson@redhat.com>
3032
3033 * common/signals.c: Remove preprocessor conditionals for
3034 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3035 SIGSEGV and SIGTERM.
3036 * proc-events.c: Likewise.
3037
3038 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3039
3040 * symfile.c (symfile_free_objfile): Remove restriction to
3041 OBJF_USERLOADED.
3042 * symfile-mem.c (symbol_file_add_from_memory): Call
3043 add_target_sections_of_objfile.
3044
3045 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3046
3047 * guile/scm-value.c (gdbscm_history_append_x): Use
3048 'vlscm_get_value_smob_arg_unsafe' instead of
3049 'vlscm_scm_to_value'.
3050
3051 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3052
3053 PR mi/15806
3054 * utils.c (printchar): Don't escape at all if quoter is NUL.
3055 Update function documentation to clarify effect of parameter
3056 QUOTER.
3057 * remote.c (escape_buffer): Pass '\\' as the quoter to
3058 fputstrn_unfiltered.
3059 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3060 generate the output.
3061 (mi_solib_unloaded): Same.
3062
3063 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3064
3065 * development.sh: Delete.
3066 * Makefile.in (config.status): Adjust dependency on development.sh.
3067 * configure.ac: Adjust development.sh source call.
3068 * configure: Regenerate.
3069
3070 2014-06-04 Doug Evans <xdje42@gmail.com>
3071
3072 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3073 is_scheme_bkpt, spec.
3074 (bpscm_make_breakpoint_smob): Initialize new members.
3075 (gdbscm_create_breakpoint_x): Split into two ...
3076 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3077 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3078 (scheme_function breakpoint_functions): Update.
3079 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3080 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3081 register-breakpoint!.
3082
3083 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3084
3085 PR server/17023
3086 * mem-break.c (z_type_supported): Return zero if
3087 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3088
3089 2014-06-04 Tom Tromey <tromey@redhat.com>
3090
3091 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3092 value_from_contents_and_address_unresolved.
3093 (ada_template_to_fixed_record_type_1): Likewise.
3094 (ada_which_variant_applies): Likewise.
3095 * value.h (value_from_contents_and_address_unresolved): Declare.
3096 * value.c (value_from_contents_and_address_unresolved): New
3097 function.
3098 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3099 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3100 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3101
3102 2014-06-04 Tom Tromey <tromey@redhat.com>
3103
3104 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3105
3106 2014-06-04 Tom Tromey <tromey@redhat.com>
3107
3108 * procfs.c (procfs_attach): Make "args" const.
3109 * windows-nat.c (windows_attach): Make "args" const.
3110 * nto-procfs.c (procfs_attach): Make "args" const.
3111 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3112 * go32-nat.c (go32_attach): Make "args" const.
3113 * gnu-nat.c (gnu_attach): Make "args" const.
3114 * darwin-nat.c (darwin_attach): Make "args" const.
3115 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3116 * linux-nat.c (linux_nat_attach): Make "args" const.
3117 * remote.c (extended_remote_attach_1, extended_remote_attach):
3118 Make "args" const.
3119 * target.h (struct target_ops) <to_attach>: Make "args" const.
3120 (find_default_attach): Likewise.
3121 * utils.c (parse_pid_to_attach): Make "args" const.
3122 * utils.h (parse_pid_to_attach): Update.
3123
3124 2014-06-04 Tom Tromey <tromey@redhat.com>
3125
3126 * target-delegates.c: Rebuild.
3127 * target.c (default_thread_address_space): New function.
3128 (target_thread_address_space): Simplify.
3129 * target.h (struct target_ops) <to_thread_address_space>: Add
3130 TARGET_DEFAULT_FUNC.
3131
3132 2014-06-04 Doug Evans <xdje42@gmail.com>
3133
3134 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3135
3136 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3137
3138 * record-btrace.c: Include event-loop.h and inf-loop.h.
3139 (record_btrace_resume_exec_dir)
3140 (record_btrace_async_inferior_event_handler)
3141 (record_btrace_handle_async_inferior_event): New.
3142 (record_btrace_open): Create async event handler.
3143 (record_btrace_close): Delete async event handler.
3144 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3145 Mark async event handler.
3146 (record_btrace_execution_direction): New.
3147 (init_record_btrace_ops): Initialize to_execution_direction.
3148
3149 2014-06-03 Doug Evans <xdje42@gmail.com>
3150
3151 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3152 (gdbscm_make_parameter): Ditto.
3153
3154 2014-06-03 Doug Evans <dje@google.com>
3155
3156 * exec.c (exec_close_1): Call clear_section_table instead of
3157 resize_section_table.
3158 (clear_section_table): New function.
3159 (resize_section_table): Make static. Rename arg num_added to
3160 adjustment.
3161 * exec.h (clear_section_table): Declare.
3162 (resize_section_table): Delete.
3163 * progspace.c (release_program_space): Call clear_section_table
3164 instead of resize_section_table.
3165
3166 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3167
3168 * NEWS (Python Scripting): Add entry about the new xmethods
3169 feature.
3170
3171 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3172
3173 * python/py-xmethods.c: New file.
3174 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3175 (objfpy_dealloc): XDECREF on the new xmethods field.
3176 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3177 field.
3178 (objfpy_get_xmethods): New function.
3179 (objfile_getset): New entry 'xmethods'.
3180 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3181 (pspy_dealloc): XDECREF on the new xmethods field.
3182 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3183 field.
3184 (pspy_get_xmethods): New function.
3185 (pspace_getset): New entry 'xmethods'.
3186 * python/python-internal.h: Add declarations for new functions.
3187 * python/python.c (_initialize_python): Invoke
3188 gdbpy_initialize_xmethods.
3189 * python/lib/gdb/__init__.py (xmethods): New
3190 attribute.
3191 * python/lib/gdb/xmethod.py: New file.
3192 * python/lib/gdb/command/xmethods.py: New file.
3193
3194 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3195
3196 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3197 best match method returned by find_overload_match is an xmethod.
3198 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3199 the best matching operator returned by find_overload_match is an
3200 xmethod.
3201 * valops.c: #include "extension.h".
3202 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3203 Return void. The list of matching source methods is returned in
3204 "fn_list" and a vector of matching debug method workers is
3205 returned in "xm_worker_vec". Update all callers.
3206 (value_find_oload_method_list): Likewise.
3207 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3208 non-NULL, then the index of the best matching method in this
3209 vector is returned. Update all callers.
3210 (find_overload_match): Include xmethods while performing overload
3211 resolution.
3212
3213 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3214
3215 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3216 * extension-priv.h (struct extension_language_ops): Add the
3217 xmethod interface.
3218 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3219 get_matching_xmethod_workers, get_xmethod_argtypes,
3220 invoke_xmethod, free_xmethod_worker,
3221 free_xmethod_worker_vec): New functions.
3222 * extension.h: #include "common/vec.h".
3223 New function declarations.
3224 (struct xmethod_worker): New struct.
3225 (VEC (xmethod_worker_ptr)): New vector type.
3226 (xmethod_worker_ptr): New typedef.
3227 (xmethod_worker_vec): Likewise.
3228 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3229 builtin_type.
3230 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3231 (struct builtin_type): New field "xmethod".
3232 * valarith.c (value_ptradd): Assert that the value argument is not
3233 lval_xcallable.
3234 * valops.c (value_must_coerce_to_target): Return 0 for
3235 lval_xcallable values.
3236 * value.c (struct value): New field XM_WORKER in the field
3237 LOCATION.
3238 (value_address, value_raw_address): Return 0 for lval_xcallable
3239 values.
3240 (set_value_address): Assert that the value is not an
3241 lval_xcallable.
3242 (value_free): Free the associated xmethod worker when freeing
3243 lval_xcallable values.
3244 (set_value_component_location): Assert that the WHOLE value is not
3245 lval_xcallable.
3246 (value_of_xmethod, call_xmethod): New functions.
3247 * value.h: Declare "struct xmethod_worker".
3248 Declare new functions value_of_xmethod, call_xmethod.
3249
3250 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3251 Pedro Alves <palves@redhat.com>
3252
3253 PR breakpoints/17000
3254 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3255 New function, extracted from software_breakpoint_inserted_here_p.
3256 (software_breakpoint_inserted_here_p): Replace factored out code
3257 by call to find_non_raw_software_breakpoint_inserted_here.
3258 (bp_target_info_copy_insertion_state): New function.
3259 (bkpt_insert_location): Handle the case of a single-step
3260 breakpoint already inserted at the same address.
3261 (bkpt_remove_location): Handle the case of a single-step
3262 breakpoint still inserted at the same address.
3263 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3264 breakpoint already inserted at the same address.
3265 (deprecated_remove_raw_breakpoint): Handle the case of a
3266 non-raw breakpoint still inserted at the same address.
3267 (find_single_step_breakpoint): New function, extracted from
3268 single_step_breakpoint_inserted_here_p.
3269 (find_single_step_breakpoint): New function,
3270 factored out from single_step_breakpoint_inserted_here_p.
3271 (single_step_breakpoint_inserted_here_p): Reimplement.
3272
3273 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3274
3275 Pushed by Joel Brobecker <brobecker@adacore.com>
3276 * source.c (show_substitute_path_command): Fix display of matching
3277 substitution rules.
3278
3279 2014-06-03 Gary Benson <gbenson@redhat.com>
3280
3281 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3282
3283 2014-06-02 Doug Evans <xdje42@gmail.com>
3284
3285 Add parameter support for Guile.
3286 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3287 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3288 (scm-param.o): New rule.
3289 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3290 (gdbscm_misc_error): Declare.
3291 (gdbscm_canonicalize_command_name): Declare.
3292 (gdbscm_scm_to_host_string): Declare.
3293 (gdbscm_scm_from_host_string): Declare.
3294 (gdbscm_initialize_parameters): Declare.
3295 * guile/guile.c (initialize_gdb_module): Call
3296 gdbscm_initialize_parameters.
3297 * guile/lib/gdb.scm: Export parameter symbols.
3298 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3299 cmdscm_canonicalize_name and made public. All callers updated.
3300 * guile/scm-exception.c (gdbscm_misc_error): New function.
3301 * guile/scm-param.c: New file.
3302 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3303 (gdbscm_scm_to_host_string): New function.
3304 (gdbscm_scm_from_host_string): New function.
3305 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3306
3307 2014-06-02 Doug Evans <xdje42@gmail.com>
3308
3309 Add command support for Guile.
3310 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3311 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3312 (scm-cmd.o): New rule.
3313 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3314 (gdbscm_user_error_p): Declare.
3315 (gdbscm_parse_command_name): Declare.
3316 (gdbscm_valid_command_class_p): Declare.
3317 (gdbscm_initialize_commands): Declare.
3318 * guile/guile.c (initialize_gdb_module): Call
3319 gdbscm_initialize_commands.
3320 * guile/lib/gdb.scm: Export command symbols.
3321 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3322 (throw-user-error): New function.
3323 * guile/scm-cmd.c: New file.
3324 * guile/scm-exception.c (user_error_symbol): New static global.
3325 (gdbscm_user_error_p): New function.
3326 (gdbscm_initialize_exceptions): Set user_error_symbol.
3327 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3328
3329 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3330
3331 * top.c (command_loop): Handle comments here...
3332 (command_line_input): ... not here.
3333
3334 2014-06-02 Doug Evans <xdje42@gmail.com>
3335
3336 Add progspace support for Guile.
3337 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3338 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3339 (scm-progspace.o): New rule.
3340 * guile/guile-internal.h (pspace_smob): New typedef.
3341 (psscm_pspace_smob_pretty_printers): Declare.
3342 (psscm_pspace_smob_from_pspace): Declare.
3343 (psscm_scm_from_pspace): Declare.
3344 * guile/guile.c (initialize_gdb_module): Call
3345 gdbscm_initialize_pspaces.
3346 * guile/lib/gdb.scm: Export progspace symbols.
3347 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3348 support.
3349 (append-pretty-printer!): Ditto.
3350 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3351 Implement.
3352 * guile/scm-progspace.c: New file.
3353
3354 2014-06-03 Alan Modra <amodra@gmail.com>
3355
3356 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3357 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3358
3359 2014-06-02 Doug Evans <dje@google.com>
3360
3361 Add support for skeletonless type units.
3362 * dwarf2read.c (struct dwarf2_per_objfile): New member
3363 n_allocated_type_units.
3364 (struct dwarf2_per_objfile) <tu_stats>: New member
3365 nr_all_type_units_reallocs.
3366 (create_signatured_type_table_from_index): Initialize
3367 n_allocated_type_units
3368 (create_all_type_units): Ditto.
3369 (add_type_unit): Move up in file. New arg slot.
3370 All callers updated. Increase space for all_type_units more
3371 efficiently.
3372 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3373 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3374 (lookup_dwp_signatured_type): Ditto.
3375 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3376 All callers updated.
3377 (build_type_psymtabs_1): Leave type_unit_groups as
3378 NULL if no TUs present.
3379 (print_tu_stats): New function.
3380 (process_skeletonless_type_unit): New function.
3381 (process_dwo_file_for_skeletonless_type_units): New
3382 function.
3383 (process_skeletonless_type_units): New function.
3384 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3385 Call print tu_stats if debugging enabled.
3386
3387 2014-06-02 Pedro Alves <palves@redhat.com>
3388
3389 * breakpoint.c (build_target_command_list): Don't build a command
3390 list if we have any duplicate location that isn't a dprintf.
3391
3392 2014-06-02 Pedro Alves <palves@redhat.com>
3393
3394 * breakpoint.c (dprintf_breakpoint_hit): New function.
3395 (initialize_breakpoint_ops): Install it as dprintf's
3396 breakpoint_hit method.
3397
3398 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3399
3400 * source.c (substitute_path_rule_matches): Simplify using
3401 filename_ncmp instead of FILENAME_CMP.
3402
3403 2014-06-02 Joel Brobecker <brobecker@adacore.com>
3404
3405 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3406
3407 2014-06-01 Ludovic Courtès <ludo@gnu.org>
3408
3409 * configure.ac: When Guile is available, check for the
3410 availability of 'scm_new_smob'.
3411 * configure, config.h.in: Regenerate.
3412 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3413 function.
3414
3415 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3416
3417 * frame.c (struct frame_info): Add stop_string field.
3418 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3419 (get_prev_frame_always): Old content moved into
3420 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3421 TRY_CATCH, handle MEMORY_ERROR exceptions.
3422 (frame_stop_reason_string): New function definition.
3423 * frame.h (unwind_stop_reason_to_string): Extend comment to
3424 mention frame_stop_reason_string.
3425 (frame_stop_reason_string): New function declaration.
3426 * stack.c (frame_info): Switch to frame_stop_reason_string.
3427 (backtrace_command_1): Switch to frame_stop_reason_string.
3428 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3429 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3430 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3431
3432 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3433
3434 * frame.c (frame_stop_reason_string): Rename to ...
3435 (unwind_stop_reason_to_string): this.
3436 * frame.h (frame_stop_reason_string): Rename to ...
3437 (unwind_stop_reason_to_string): this.
3438 * stack.c (frame_info): Update call to frame_stop_reason_string.
3439 (backtrace_command_1): Likewise.
3440 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3441 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3442
3443 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
3444
3445 * frame.c (remove_prev_frame): New function.
3446 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3447 remove_prev_frame.
3448
3449 2014-05-29 Pedro Alves <palves@redhat.com>
3450
3451 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3452 and make it const. When a single-step decays to a continue,
3453 clear 'step', not 'hw_step'. Pass whether the caller wanted
3454 to step to user_visible_resume_ptid, not what we ask the
3455 target to do.
3456
3457 2014-05-29 Pedro Alves <palves@redhat.com>
3458
3459 * infrun.c (process_event_stop_test, handle_step_into_function)
3460 (handle_step_into_function_backward): Adjust.
3461 Don't set the even thread's stop_step and call stop_waiting before
3462 calling end_stepping_range. Instead do that ...
3463 (end_stepping_range): ... here. Take an ecs pointer parameter.
3464
3465 2014-05-29 Pedro Alves <palves@redhat.com>
3466
3467 * infrun.c (stop_stepping): Rename to ...
3468 (stop_waiting): ... this.
3469 (proceed): Update comment.
3470 (process_event_stop_test, handle_inferior_event)
3471 (handle_signal_stop, handle_step_into_function)
3472 (handle_step_into_function_backward): Update.
3473
3474 2014-05-29 Pedro Alves <palves@redhat.com>
3475
3476 * infcall.c (run_inferior_call): Don't check whether the current
3477 thread is running after the proceed call.
3478
3479 2014-05-29 Pedro Alves <palves@redhat.com>
3480 Tom Tromey <tromey@redhat.com>
3481
3482 * NEWS: Mention "maint set target-async", "set mi-async", and that
3483 background execution commands are now always available.
3484 * target.h (target_async_permitted): Update comment.
3485 * target.c (target_async_permitted, target_async_permitted_1):
3486 Default to 1.
3487 (set_target_async_command): Rename to ...
3488 (maint_set_target_async_command): ... this.
3489 (show_target_async_command): Rename to ...
3490 (maint_show_target_async_command): ... this.
3491 (_initialize_target): Adjust.
3492 * infcmd.c (prepare_execution_command): Make extern.
3493 * inferior.h (prepare_execution_command): Declare.
3494 * infrun.c (set_observer_mode): Leave target async alone.
3495 * mi/mi-interp.c (mi_interpreter_init): Install
3496 mi_on_sync_execution_done as sync_execution_done observer.
3497 (mi_on_sync_execution_done): New function.
3498 (mi_execute_command_input_handler): Don't print the prompt if we
3499 just started a synchronous command with an async target.
3500 (mi_on_resume): Check sync_execution before printing prompt.
3501 * mi/mi-main.h (mi_async_p): Declare.
3502 * mi/mi-main.c: Include gdbcmd.h.
3503 (mi_async_p): New function.
3504 (mi_async, mi_async_1): New globals.
3505 (set_mi_async_command, show_mi_async_command, mi_async): New
3506 functions.
3507 (exec_continue): Call prepare_execution_command.
3508 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3509 (mi_execute_async_cli_command): Use mi_async_p.
3510 (_initialize_mi_main): Install "set mi-async". Make
3511 "target-async" a deprecated alias.
3512
3513 2014-05-29 Pedro Alves <palves@redhat.com>
3514
3515 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3516 (_initialize_cli_interp): Adjust.
3517 * event-loop.c: Include "observer.h".
3518 (start_event_loop): Notify 'command_error' observers instead of
3519 calling display_gdb_prompt. Remove FIXME comment.
3520 * event-top.c (display_gdb_prompt): Remove call into the
3521 interpreters.
3522 * inf-loop.c: Include "observer.h".
3523 (inferior_event_handler): Notify 'command_error' observers instead
3524 of calling display_gdb_prompt.
3525 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3526 observers instead of calling display_gdb_prompt.
3527 * interps.c (interp_set): Don't call display_gdb_prompt.
3528 (current_interp_display_prompt_p): Delete.
3529 * interps.h (interp_prompt_p): Delete declaration.
3530 (interp_prompt_p_ftype): Delete.
3531 (struct interp_procs) <prompt_proc_p>: Delete field.
3532 (current_interp_display_prompt_p): Delete declaration.
3533 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3534 (_initialize_mi_interp): Adjust.
3535 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3536 'command_error' observers.
3537 (tui_on_sync_execution_done, tui_on_command_error): New
3538 functions.
3539 (tui_display_prompt_p): Delete.
3540 (_initialize_tui_interp): Adjust.
3541
3542 2014-05-29 Pedro Alves <palves@redhat.com>
3543
3544 PR gdb/13860
3545 * cli/cli-interp.c: Include infrun.h and observer.h.
3546 (cli_uiout, cli_interp): New globals.
3547 (cli_on_signal_received, cli_on_end_stepping_range)
3548 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3549 functions.
3550 (cli_interpreter_init): Install them as 'end_stepping_range',
3551 'signal_received' 'signal_exited', 'exited' and 'no_history'
3552 observers.
3553 (_initialize_cli_interp): Remove cli_interp local.
3554 * infrun.c (handle_inferior_event): Call the several stop reason
3555 observers instead of printing the stop reason directly.
3556 (end_stepping_range): New function.
3557 (print_end_stepping_range_reason, print_signal_exited_reason)
3558 (print_exited_reason, print_signal_received_reason)
3559 (print_no_history_reason): Make static, and add an uiout
3560 parameter. Print to that instead of to CURRENT_UIOUT.
3561 * infrun.h (print_end_stepping_range_reason)
3562 (print_signal_exited_reason, print_exited_reason)
3563 (print_signal_received_reason print_no_history_reason): New
3564 declarations.
3565 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3566 'mi_uiout'.
3567 <cli_uiout>: New field.
3568 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3569 uiout for CLI output. Install 'signal_received',
3570 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3571 observers.
3572 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3573 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3574 (mi_on_no_history): New functions.
3575 (ui_out_free_cleanup): Delete function.
3576 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3577 instead use the one already stored in the MI interpreter data.
3578 (mi_ui_out): Adjust.
3579 * tui/tui-interp.c: Include infrun.h and observer.h.
3580 (tui_interp): New global.
3581 (tui_on_signal_received, tui_on_end_stepping_range)
3582 (tui_on_signal_exited, tui_on_exited)
3583 (tui_on_no_history): New functions.
3584 (tui_init): Install them as 'end_stepping_range',
3585 'signal_received' 'signal_exited', 'exited' and 'no_history'
3586 observers.
3587 (_initialize_tui_interp): Delete tui_interp local.
3588
3589 2014-05-29 Pedro Alves <palves@redhat.com>
3590
3591 PR gdb/15713
3592 * linux-nat.c (linux_nat_resume_callback): Rename the second
3593 parameter to 'except'. Skip LP if it points to EXCEPT.
3594 (linux_nat_resume): Don't mark the event lwp as not stopped
3595 before resuming sibling lwps. Instead ask
3596 linux_nat_resume_callback to skip the event lwp. Mark it as not
3597 stopped after actually resuming it.
3598 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3599 resuming it.
3600 (wait_lwp): Mark the lwp as stopped here.
3601 (stop_wait_callback): Mark the lwp as not stopped right after
3602 resuming it. Don't mark lwps as stopped here.
3603 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3604 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3605
3606 2014-05-29 Pedro Alves <palves@redhat.com>
3607
3608 PR PR15693
3609 * infrun.c (resume): Determine how much to resume depending on
3610 whether the caller wanted a step, not whether we can hardware step
3611 the target. Mark all threads that we intend to run as running,
3612 unless we're calling an inferior function.
3613 (normal_stop): If the thread is running an infcall, don't finish
3614 thread state.
3615 * target.c (target_resume): Don't mark threads as running here.
3616
3617 2014-05-28 Joel Brobecker <brobecker@adacore.com>
3618
3619 * serial.c (_initialize_serial): Remove support for
3620 the "set remotebaud" and "show remotebaud" commands.
3621 * NEWS: Add entry documenting the removal of that command.
3622
3623 2014-05-28 Yao Qi <yao@codesourcery.com>
3624
3625 * charset.c: Fix typo in comments.
3626
3627 2014-05-27 Gary Benson <gbenson@redhat.com>
3628
3629 * utils.c (internal_vproblem): Prompt for a bug report.
3630
3631 2014-05-26 Andy Wingo <wingo@igalia.com>
3632
3633 * guile/scm-arch.c (arscm_mark_arch_smob):
3634 * guile/scm-block.c (bkscm_mark_block_smob)
3635 (bkscm_mark_block_syms_progress_smob):
3636 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3637 * guile/scm-exception.c (exscm_mark_exception_smob):
3638 * guile/scm-frame.c (frscm_mark_frame_smob):
3639 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3640 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3641 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3642 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3643 (ppscm_mark_pretty_printer_worker_smob):
3644 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3645 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3646 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3647 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3648 mark functions.
3649 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3650 function.
3651
3652 2014-05-26 Andy Wingo <wingo@igalia.com>
3653 Doug Evans <xdje42@gmail.com>
3654
3655 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3656 empty_base_class. All uses updated.
3657 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3658 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3659 Adapt all callers.
3660 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3661 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3662 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3663 (gdbscm_gsmob_has_property_p, add_property_name)
3664 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3665 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3666 (gdb-object-has-property?, gdb-object-properties): Remove.
3667 (gdb-object-kind): Renamed from gsmob-kind.
3668
3669 2014-05-26 Andy Wingo <wingo@igalia.com>
3670
3671 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3672 * configure: Regenerate.
3673
3674 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3675
3676 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3677
3678 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3679
3680 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3681 (replay_memory_access_read_only, replay_memory_access_read_write)
3682 (replay_memory_access_types, replay_memory_access)
3683 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3684 (cmd_set_record_btrace, cmd_show_record_btrace)
3685 (cmd_show_replay_memory_access): New.
3686 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3687 (record_btrace_remove_breakpoint): Replace
3688 record_btrace_allow_memory_access with replay_memory_access.
3689 (_initialize_record_btrace): Add commands.
3690 * NEWS: Announce it.
3691
3692 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3693
3694 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3695
3696 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3697
3698 * MAINTAINERS (Write After Approval): Move self back from
3699 paper trail.
3700
3701 2014-05-22 Pedro Alves <palves@redhat.com>
3702
3703 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3704 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3705 (disable_randomization, enum exec_direction_kind)
3706 (execution_direction, stop_registers, start_remote)
3707 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3708 (wait_for_inferior, normal_stop, get_last_target_status)
3709 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3710 (insert_step_resume_breakpoint_at_sal)
3711 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3712 (set_step_info, print_stop_event, signal_stop_state)
3713 (signal_print_state, signal_pass_state, signal_stop_update)
3714 (signal_print_update, signal_pass_update)
3715 (update_signals_program_target, clear_exit_convenience_vars)
3716 (displaced_step_dump_bytes, update_observer_mode)
3717 (signal_catch_update, gdb_signal_from_command): Move
3718 declarations ...
3719 * infrun.h: ... to this new file.
3720 * amd64-tdep.c: Include infrun.h.
3721 * annotate.c: Include infrun.h.
3722 * arch-utils.c: Include infrun.h.
3723 * arm-linux-tdep.c: Include infrun.h.
3724 * arm-tdep.c: Include infrun.h.
3725 * break-catch-sig.c: Include infrun.h.
3726 * breakpoint.c: Include infrun.h.
3727 * common/agent.c: Include infrun.h instead of inferior.h.
3728 * corelow.c: Include infrun.h.
3729 * event-top.c: Include infrun.h.
3730 * go32-nat.c: Include infrun.h.
3731 * i386-tdep.c: Include infrun.h.
3732 * inf-loop.c: Include infrun.h.
3733 * infcall.c: Include infrun.h.
3734 * infcmd.c: Include infrun.h.
3735 * infrun.c: Include infrun.h.
3736 * linux-fork.c: Include infrun.h.
3737 * linux-nat.c: Include infrun.h.
3738 * linux-thread-db.c: Include infrun.h.
3739 * monitor.c: Include infrun.h.
3740 * nto-tdep.c: Include infrun.h.
3741 * procfs.c: Include infrun.h.
3742 * record-btrace.c: Include infrun.h.
3743 * record-full.c: Include infrun.h.
3744 * remote-m32r-sdi.c: Include infrun.h.
3745 * remote-mips.c: Include infrun.h.
3746 * remote-notif.c: Include infrun.h.
3747 * remote-sim.c: Include infrun.h.
3748 * remote.c: Include infrun.h.
3749 * reverse.c: Include infrun.h.
3750 * rs6000-tdep.c: Include infrun.h.
3751 * s390-linux-tdep.c: Include infrun.h.
3752 * solib-irix.c: Include infrun.h.
3753 * solib-osf.c: Include infrun.h.
3754 * solib-svr4.c: Include infrun.h.
3755 * target.c: Include infrun.h.
3756 * top.c: Include infrun.h.
3757 * windows-nat.c: Include infrun.h.
3758 * mi/mi-interp.c: Include infrun.h.
3759 * mi/mi-main.c: Include infrun.h.
3760 * python/py-threadevent.c: Include infrun.h.
3761
3762 2014-05-22 Pedro Alves <palves@redhat.com>
3763
3764 * infrun.c (handle_inferior_event): Store the exit code for
3765 --return-child-result here, instead of ...
3766 (print_exited_reason): ... here.
3767
3768 2014-05-21 Pedro Alves <palves@redhat.com>
3769
3770 PR gdb/13860
3771 * gdbthread.h (struct thread_control_state): New field
3772 `command_interp'.
3773 * infrun.c (follow_fork): Copy the new thread control field to the
3774 child fork thread.
3775 (clear_proceed_status_thread): Clear the new thread control field.
3776 (proceed): Set the new thread control field.
3777 * interps.h (command_interp): Declare.
3778 * interps.c (command_interpreter): New global.
3779 (command_interp): New function.
3780 (interp_exec): Set `command_interpreter' while here.
3781 * cli-out.c (cli_uiout_dtor): New function.
3782 (cli_ui_out_impl): Install it.
3783 * mi/mi-interp.c: Include cli-out.h.
3784 (mi_cmd_interpreter_exec): Add comment.
3785 (restore_current_uiout_cleanup): New function.
3786 (ui_out_free_cleanup): New function.
3787 (mi_on_normal_stop): If finishing an execution command started by
3788 a CLI command, or any kind of breakpoint-like event triggered,
3789 print the stop event to the output (CLI) stream.
3790 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3791
3792 2014-05-21 Pedro Alves <palves@redhat.com>
3793
3794 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3795 current source line having changed.
3796 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3797 * infrun.c (normal_stop): Adjust call to
3798 set_current_sal_from_frame.
3799 * source.c (clear_lines_listed_range): New function.
3800 (set_current_source_symtab_and_line, identify_source_line): Clear
3801 the lines listed range.
3802 (line_info): Handle the first "info line" after the current source
3803 line having changed.
3804 * stack.c (print_stack_frame): Remove center handling.
3805 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3806 center sal.line.
3807
3808 2014-05-21 Pedro Alves <palves@redhat.com>
3809
3810 * inf-child.c (inf_child_mourn_inferior): New function.
3811 * inf-child.h (inf_child_mourn_inferior): New declaration.
3812 * darwin-nat.c (darwin_mourn_inferior): Use
3813 inf_child_mourn_inferior.
3814 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3815 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3816 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3817 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3818 * windows-nat.c (windows_mourn_inferior): Likewise.
3819
3820 2014-05-21 Doug Evans <xdje42@gmail.com>
3821
3822 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3823
3824 2014-05-21 Doug Evans <xdje42@gmail.com>
3825
3826 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3827 (gdbscm_out_of_range_error): Ditto.
3828 (gdbscm_memory_error): Ditto.
3829 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3830 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3831 (gdbscm_out_of_range_error): Update.
3832 (gdbscm_memory_error): Update.
3833 (gdbscm_scm_to_target_string_unsafe): Delete.
3834
3835 2014-05-21 Pedro Alves <palves@redhat.com>
3836
3837 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3838 globals.
3839 (inf_child_open_target): New function.
3840 (inf_child_open): Use inf_child_open_target to push the target
3841 instead of erroring out.
3842 (inf_child_disconnect, inf_child_close)
3843 (inf_child_maybe_unpush_target): New functions.
3844 (inf_child_target): Install inf_child_disconnect and
3845 inf_child_close. Store a pointer to the returned object.
3846 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3847 declarations.
3848 * target.c (auto_connect_native_target): New global.
3849 (show_default_run_target): New function.
3850 (find_default_run_target): Return NULL if automatically connecting
3851 to the native target is disabled.
3852 (_initialize_target): Install set/show auto-connect-native-target.
3853 * NEWS: Mention "set auto-connect-native-target", and "target
3854 native".
3855 * linux-nat.c (super_close): New global.
3856 (linux_nat_close): Call super_close.
3857 (linux_nat_add_target): Store a pointer to the base class's
3858 to_close method.
3859 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3860 inf_child_maybe_unpush.
3861 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3862 already pushed.
3863 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3864 the inferior. Use inf_child_maybe_unpush_target.
3865 (inf_ttrace_attach): Don't push the target if it is already
3866 pushed.
3867 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3868 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3869 after mourning the inferior. Use inf_child_maybe_unpush_target.
3870 (darwin_attach_pid): Don't push the target if it is already
3871 pushed.
3872 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3873 mourning the inferior. Use inf_child_maybe_unpush_target.
3874 (gnu_detach): Use inf_child_maybe_unpush_target.
3875 * go32-nat.c (go32_create_inferior): Don't push the target if it
3876 is already pushed.
3877 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3878 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3879 (procfs_open): Rename to ...
3880 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3881 comments. Can target_preopen before changing node. Call
3882 inf_child_open_target to push the target explicitly.
3883 (procfs_attach): Don't push the target if it is already pushed.
3884 (procfs_detach): Use inf_child_maybe_unpush_target.
3885 (procfs_create_inferior): Don't push the target if it is already
3886 pushed.
3887 (nto_native_ops): New global.
3888 (procfs_open): Reimplement.
3889 (procfs_native_open): New function.
3890 (init_procfs_targets): Install procfs_native_open as to_open of
3891 "target native". Store a pointer to the "native" target in
3892 nto_native_ops.
3893 * procfs.c (procfs_attach): Don't push the target if it is already
3894 pushed.
3895 (procfs_detach): Use inf_child_maybe_unpush_target.
3896 (procfs_mourn_inferior): Only unpush the target after mourning the
3897 inferior. Use inf_child_maybe_unpush_target.
3898 (procfs_init_inferior): Don't push the target if it is already
3899 pushed.
3900 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3901 if it is already pushed.
3902
3903 2014-05-21 Pedro Alves <palves@redhat.com>
3904
3905 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3906 and "procfs" targets are now called "native" instead.
3907
3908 2014-05-21 Pedro Alves <palves@redhat.com>
3909
3910 * go32-nat.c (go32_open): Delete.
3911 (go32_target): Don't override the to_open method.
3912
3913 2014-05-21 Pedro Alves <palves@redhat.com>
3914
3915 * nto-procfs.c (procfs_can_run): New function.
3916 (nto_procfs_ops): New global.
3917 (init_procfs_targets): New, based on procfs_target. Install
3918 "target native" in addition to "target procfs".
3919 (_initialize_procfs): Call init_procfs_targets instead of adding
3920 the target here.
3921
3922 2014-05-21 Pedro Alves <palves@redhat.com>
3923
3924 * windows-nat.c (windows_target): Don't override to_shortname,
3925 to_longname or to_doc.
3926
3927 2014-05-21 Pedro Alves <palves@redhat.com>
3928
3929 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3930 to_doc.
3931
3932 2014-05-21 Pedro Alves <palves@redhat.com>
3933
3934 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3935 to_shortname, to_longname or to_doc.
3936
3937 2014-05-21 Pedro Alves <palves@redhat.com>
3938
3939 * go32-nat.c (go32_target): Don't override to_shortname,
3940 to_longname or to_doc.
3941
3942 2014-05-21 Pedro Alves <palves@redhat.com>
3943
3944 * inf-child.c (inf_child_open): Remove mention of "child".
3945 (inf_child_target): Rename target to "native" instead of "child".
3946
3947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3948
3949 * Makefile.in (SFILES): Delete "regset.c".
3950 (COMMON_OBS): Delete "regset.o".
3951 * regset.c: Remove.
3952 * regset.h (regset_alloc): Delete prototype.
3953
3954 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3955
3956 * sparc-linux-tdep.c (sparc32_linux_gregset)
3957 (sparc32_linux_fpregset): New static regset structures.
3958 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3959 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3960 'fpregset' fields.
3961 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3962 (sparc64_linux_fpregset): New static regset structures.
3963 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3964 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3965 New static regset structures.
3966 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3967 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3968 New static regset structures.
3969 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3970 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3971 New static regset structures.
3972 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3973 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3974 New static regset structures.
3975 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3976
3977 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3978
3979 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3980 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3981 register maps ("regmaps") from "*regset" to "*regmap". Do this
3982 for all regmap types and variables.
3983 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3984 (sparc32_linux_supply_core_gregset)
3985 (sparc32_linux_collect_core_gregset)
3986 (sparc32_linux_supply_core_fpregset)
3987 (sparc32_linux_collect_core_fpregset): Likewise.
3988 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3989 (sparc_gregmap, sparc_fpregmap): ... these.
3990 (sparc_supply_gregset, sparc_collect_gregset)
3991 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3992 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3993 (_initialize_sparc_nat): Rename regmaps.
3994 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3995 (sparc_gregmap, sparc_fpregmap): ... these.
3996 (sparc_supply_gregset, sparc_collect_gregset)
3997 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3998 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3999 Rename macros to...
4000 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4001 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4002 Likewise.
4003 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4004 Rename to...
4005 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4006 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4007 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4008 regmaps.
4009 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4010 (sparc32_bsd_fpregset): Rename to...
4011 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4012 (sparc32_bsd_fpregmap): ... these.
4013 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4014 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4015 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4016 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4017 (struct sparc_gregmap, struct sparc_fpregmap)
4018 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4019 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4020 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4021 (sparc32_supply_regset, sparc32_collect_gregset)
4022 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4023 prototypes.
4024 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4025 (sparc64_linux_ptrace_gregmap): ... this.
4026 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4027 (_initialize_sparc64_linux_nat): Rename regmaps.
4028 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4029 (sparc64_linux_core_gregmap): ... this.
4030 (sparc64_linux_supply_core_gregset)
4031 (sparc64_linux_collect_core_gregset)
4032 (sparc64_linux_supply_core_fpregset)
4033 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4034 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4035 (sparc64_sol2_fpregset): Rename to...
4036 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4037 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4038 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4039 regmaps.
4040 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4041 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4042 (sparc64_bsd_fpregset): Rename to...
4043 (struct sparc_gregmap, sparc64_sol2_gregmap)
4044 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4045 (sparc64_bsd_fpregmap): ... these.
4046 (sparc64_supply_gregset, sparc64_collect_gregset)
4047 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4048 prototypes.
4049 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4050 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4051 (sparc64fbsd_gregmap): ... this.
4052 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4053 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4054 Rename regmaps.
4055 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4056 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4057 (sparc64nbsd_collect_fpregset): Likewise.
4058 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4059 (sparc64nbsd_gregmap): ... this.
4060 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4061 regmaps.
4062 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4063 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4064 (sparc64obsd_gregmap): ... this.
4065 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4066 regmaps.
4067 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4068 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4069 (sparc32nbsd_gregmap): ... this.
4070 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4071 regmaps.
4072
4073 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4074
4075 * score-tdep.c (score7_linux_gregset): New static regset
4076 structure.
4077 (score7_linux_regset_from_core_section): Remove dynamic regset
4078 allocation.
4079 (score_gdbarch_init): Drop allocation of tdep structure.
4080 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4081
4082 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4083
4084 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4085 regset structures.
4086 (am33_regset_from_core_section): Remove dynamic regset
4087 allocations.
4088
4089 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4090
4091 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4092 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4093 structures.
4094 (mips_linux_regset_from_core_section): Remove dynamic regset
4095 allocations.
4096 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4097 'gregset64', 'fpregset', and 'fpregset64'.
4098 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4099 deleted tdep fields.
4100
4101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4102
4103 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4104 regset structures.
4105 (amd64_regset_from_core_section): Remove dynamic regset
4106 allocations.
4107 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4108 structure.
4109 (amd64obsd_regset_from_core_section): Remove dynamic regset
4110 allocation.
4111 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4112 Likewise.
4113 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4114 x86-common regset supply function.
4115 * i386-tdep.c (i386_collect_gregset): Make static.
4116 (i386_gregset): New global regset structure.
4117 (i386_fpregset, i386_xstateregset): New static regset structures.
4118 (i386_regset_from_core_section): Remove dynamic regset
4119 allocations.
4120 (i386_gdbarch_init): Remove initialization of tdep fields
4121 'gregset', 'fpregset', and 'xstateregset'.
4122 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4123 'fpregset', and 'xstateregset'.
4124 (i386_collect_gregset): Remove prototype.
4125 (i386_gregset): New declaration.
4126 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4127 structure.
4128 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4129 allocation.
4130
4131 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4132
4133 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4134 (arm_linux_vfpregset): New static regset structures.
4135 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4136 regset structures.
4137 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4138 and 'vfpregset' fields.
4139
4140 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4141
4142 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4143 (aarch64_linux_fpregset): New static regset structures.
4144 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4145 of regset structures.
4146 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4147 'fpregset' fields.
4148
4149 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4150
4151 * regset.h (struct regset): Remove gdbarch field.
4152 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4153 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4154 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4155 Likewise.
4156 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4157 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4158 (ppc32_linux_vsxregset): Likewise.
4159 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4160 via the regcache instead of the regset.
4161 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4162 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4163 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4164 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4165 Likewise.
4166
4167 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4168
4169 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4170 Constify structures.
4171 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4172 (alphanbsd_aout_gregset): Likewise.
4173 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4174 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4175 Likewise.
4176 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4177 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4178 Likewise.
4179 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4180 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4181 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4182 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4183 * m88k-tdep.c (m88k_gregset): Likewise.
4184 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4185 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4186 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4187 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4188 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4189 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4190 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4191 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4192 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4193 Likewise.
4194 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4195 * sh-tdep.h (sh_corefile_gregset): Likewise.
4196 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4197 * vax-tdep.c (vax_gregset): Likewise.
4198
4199 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4200
4201 Fix TLS access for -static -pthread.
4202 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4203 (try_thread_db_load_1): Initialize it.
4204 (thread_db_get_thread_local_address): Call it if LM is zero.
4205 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4206 * target.h (struct target_ops) (to_get_thread_local_address): Add
4207 load_module_addr comment.
4208
4209 2014-05-21 Pedro Alves <palves@redhat.com>
4210
4211 * dcache.c (dcache_read_memory_partial): If reading the cache line
4212 fails, fallback to reading just the memory the caller wanted.
4213
4214 2014-05-20 Doug Evans <dje@google.com>
4215
4216 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4217 instead of get_current_arch.
4218
4219 2014-05-20 Pedro Alves <palves@redhat.com>
4220
4221 * NEWS: Mention that compare-sections now works with all targets.
4222
4223 * remote.c (PACKET_qCRC): New enum value.
4224 (remote_verify_memory): Don't send qCRC if the target has no
4225 execution. Use packet_support/packet_ok. If the target doesn't
4226 support the qCRC packet, fallback to a deep memory copy.
4227 (compare_sections_command): Say "target image" instead of "remote
4228 executable".
4229 (_initialize_remote): Add PACKET_qCRC to the list of config
4230 packets that have no associated command. Extend comment.
4231 * target.c (simple_verify_memory, default_verify_memory): New
4232 function.
4233 * target.h (struct target_ops) <to_verify_memory>: Default to
4234 default_verify_memory.
4235 (simple_verify_memory): New declaration.
4236 * target-delegates.c: Regenerate.
4237
4238 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4239
4240 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4241
4242 2014-05-20 Hui Zhu <hui@codesourcery.com>
4243 Yao Qi <yao@codesourcery.com>
4244
4245 PR backtrace/16558
4246 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4247 and change address of sp and pc.
4248
4249 2014-05-19 Tom Tromey <tromey@redhat.com>
4250
4251 * gdbtypes.c (rank_function): Use XNEWVEC.
4252 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4253
4254 2014-05-19 Doug Evans <dje@google.com>
4255
4256 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4257 build_type_unit_groups and moved closer to only caller. Remove
4258 arguments. All references updated. Remove outdated .gdb_index
4259 comment.
4260 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4261 build_type_psymtabs_1.
4262
4263 2014-05-19 Doug Evans <dje@google.com>
4264
4265 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4266 n_type_unit_groups, all_type_unit_groups. All uses removed.
4267 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4268 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4269 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4270 (add_type_unit_group_to_table): Delete.
4271
4272 2014-05-19 Doug Evans <dje@google.com>
4273
4274 * eval.c (evaluate_subexp_standard): Add some comments.
4275
4276 2014-05-17 Doug Evans <xdje42@gmail.com>
4277
4278 * progspace.c (remove_program_space): Delete, unused.
4279 * progspace.h (remove_program_space): Ditto.
4280
4281 2014-05-17 Doug Evans <xdje42@gmail.com>
4282
4283 * inferior.c (prune_inferiors): Fix comment.
4284 (remove_inferior_command): Call prune_program_spaces.
4285
4286 2014-05-16 Doug Evans <dje@google.com>
4287
4288 New command line option -D.
4289 * NEWS: Mention it.
4290 * main.c (set_gdb_data_directory): New function.
4291 (captured_main): Recognize -D. Flag error for --data-directory "".
4292 Call set_gdb_data_directory.
4293 (print_gdb_help): Print --data-directory, -D.
4294 * main.h (set_gdb_data_directory): Declare.
4295 * top.c (staged_gdb_datadir): New static global.
4296 (set_gdb_datadir): Call set_gdb_data_directory
4297 (show_gdb_datadir): New function.
4298 (init_main): Update init of data-directory parameter.
4299
4300 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4301
4302 Import the "dirfd" gnulib module.
4303 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4304 * gnulib/aclocal.m4: Update.
4305 * gnulib/config.in: Update.
4306 * gnulib/configure: Update.
4307 * gnulib/import/Makefile.am: Update.
4308 * gnulib/import/Makefile.in: Update.
4309 * gnulib/import/dirfd.c: New.
4310 * gnulib/import/m4/dirfd.m4: New.
4311 * gnulib/import/m4/gnulib-cache.m4: Update.
4312 * gnulib/import/m4/gnulib-comp.m4: Update.
4313
4314 2014-05-16 Pierre Muller <muller@sourceware.org>
4315 Yao Qi <yao@codesourcery.com>
4316
4317 * valprint.c (print_wchar): Move the code on checking whether
4318 W is a printable wide char to the default branch of switch
4319 statement below. Call wchar_printable instead of gdb_iswprint.
4320
4321 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4322
4323 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4324 ldr.w and ldrd instructions.
4325
4326 2014-05-15 Doug Evans <dje@google.com>
4327
4328 * dwarf2read.c (read_structure_type): Delete outdated comments.
4329
4330 2014-05-14 Tom Tromey <tromey@redhat.com>
4331
4332 * macrocmd.c (print_macro_definition): Reindent.
4333
4334 2014-05-13 Doug Evans <xdje42@gmail.com>
4335
4336 * python/py-cmd.c (cmdpy_completer): Add comment.
4337 (completers): Make const.
4338
4339 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4340
4341 * infrun.c (resume): Remove should_resume (unused). Move up
4342 declaration of resume_ptid.
4343
4344 2014-05-13 Tom Tromey <tromey@redhat.com>
4345
4346 * language.h (unop_type_check): Remove.
4347 (binop_type_check): Don't declare.
4348
4349 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4350
4351 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4352 call to regcache_raw_collect.
4353
4354 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4355
4356 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4357 mi_console->quote as the quoting character.
4358
4359 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4360
4361 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4362
4363 2014-04-29 Tom Tromey <tromey@redhat.com>
4364
4365 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4366 "show debug varobj".
4367
4368 2014-05-07 Kyle McMartin <kyle@redhat.com>
4369
4370 Pushed by Joel Brobecker <brobecker@adacore.com>.
4371 * aarch64-tdep.c (aarch64_software_single_step): New function.
4372 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4373 with aarch64_software_single_step.
4374
4375 2014-05-05 Joel Brobecker <brobecker@adacore.com>
4376
4377 GDB 7.7.1 released.
4378
4379 2014-05-05 Keith Seitz <keiths@redhat.com>
4380
4381 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4382 variable or history value is successfully parsed.
4383
4384 2014-05-05 Yao Qi <yao@codesourcery.com>
4385 Pedro Alves <palves@redhat.com>
4386
4387 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4388 address of blocks that intersects the requested range. Trim
4389 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4390 sections.
4391 * ctf.c (ctf_xfer_partial): Likewise.
4392
4393 2014-05-05 Yao Qi <yao@codesourcery.com>
4394
4395 * printcmd.c (display_command): Remove the check to
4396 target_has_execution.
4397
4398 2014-05-03 Mark Kettenis <kettenis@gnu.org>
4399
4400 * ppcobsd-nat.c: Include "obsd-nat.h".
4401 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4402 add_target.
4403 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4404
4405 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4406
4407 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4408 and 16-bit signed and unsigned arguments. Update comment.
4409 (stap_parse_probe_arguments): Extend code to handle such
4410 arguments. Use warning instead of complaint to notify about
4411 unrecognized bitness.
4412
4413 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4414
4415 PR breakpoints/16889
4416 * stap-probe.c (stap_parse_probe_arguments): Simplify
4417 check for non-prefixed probes (i.e., probes whose
4418 arguments do not start with "N@"). Always set the
4419 argument type to a sane value.
4420
4421 2014-05-01 David Taylor <dtaylor@emc.com>
4422
4423 * remote.c (compare_sections_command): Add -r option to compare
4424 all loadable read-only sections.
4425
4426 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4427
4428 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4429 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4430 Update all callers.
4431 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4432 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4433 Remove unused CORE_ADDR argument. Update all callers.
4434
4435 2014-04-29 Pedro Alves <palves@redhat.com>
4436
4437 * remote.c (struct packet_config) <detect>: Extend comment.
4438 (add_packet_config_cmd): Don't set the config's detect or support
4439 fields here.
4440 (init_all_packet_configs): Also initialize the config's 'detect'
4441 field.
4442 (reset_all_packet_configs_support): New function.
4443 (remote_open_1): Call reset_all_packet_configs_support instead of
4444 init_all_packet_configs.
4445 (_initialize_remote): Initialize all packet configs. Assert that
4446 all packets have an associated command, except a few known
4447 outliers.
4448
4449 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4450
4451 * dwarf2read.c (read_subrange_type): Handle dynamic
4452 DW_AT_lower_bound attributes.
4453
4454 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4455
4456 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4457 dynamic bounds before computing its upper bound.
4458 (ada_discrete_type_low_bound): Same as above with the lower bound.
4459
4460 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4461
4462 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4463 range types. Adjust the array handling implementation to
4464 take advantage of this change.
4465 (resolve_dynamic_range): New function, mostly extracted from
4466 resolve_dynamic_bounds.
4467 (resolve_dynamic_array): New function, mostly extracted from
4468 resolve_dynamic_bounds.
4469 (resolve_dynamic_bounds): Delete.
4470 (resolve_dynamic_type): Reimplement. Add handling of
4471 TYPE_CODE_RANGE types.
4472
4473 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4474
4475 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4476 handling of parallel ___XA types.
4477
4478 2014-04-28 Joel Brobecker <brobecker@adacore.com>
4479
4480 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4481 unnecessary second call to static_unwrap_type.
4482
4483 2014-04-27 Hui Zhu <hui@codesourcery.com>
4484
4485 * stack.c (print_frame_info): Call do_gdb_disassembly with
4486 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4487
4488 2014-04-26 Doug Evans <xdje42@gmail.com>
4489
4490 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4491
4492 2014-04-25 Pedro Alves <palves@redhat.com>
4493
4494 PR server/16255
4495 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4496 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4497 and newline from built string.
4498 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4499 (linux_ptrace_attach_fail_reason): ... this.
4500 * linux-nat.c (linux_nat_attach): Adjust to use
4501 linux_ptrace_attach_fail_reason.
4502
4503 2014-04-25 Pedro Alves <palves@redhat.com>
4504
4505 * remote.c (struct remote_state): Remove multi_process_aware,
4506 non_stop_aware, cond_tracepoints, cond_breakpoints,
4507 breakpoint_commands, fast_tracepoints, static_tracepoints,
4508 install_in_trace, disconnected_tracing,
4509 enable_disable_tracepoints, string_tracing, and
4510 augmented_libraries_svr4_read fields.
4511 (remote_multi_process_p): Move further below in the file.
4512 (struct packet_config): Add comments.
4513 (update_packet_config): Delete function.
4514 (show_packet_config_cmd): Use packet_config_support.
4515 (add_packet_config_cmd): Use NULL as set callback.
4516 (packet_ok): "set remote foo-packet"-style commands no longer
4517 change config->supported -- adjust.
4518 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4519 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4520 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4521 (PACKET_QNonStop, PACKET_multiprocess_feature)
4522 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4523 (PACKET_DisconnectedTracing_feature)
4524 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4525 (set_remote_protocol_packet_cmd): Delete function.
4526 (packet_config_support, packet_support): New functions.
4527 (set_remote_protocol_Z_packet_cmd): Don't call
4528 update_packet_config.
4529 (remote_query_attached, remote_pass_signals)
4530 (remote_program_signals, remote_threads_info)
4531 (remote_threads_extra_info, remote_start_remote): Use
4532 packet_support.
4533 (remote_start_remote): Use packet_config_support and
4534 packet_support.
4535 (init_all_packet_configs): Set all packets to unknown support,
4536 instead of calling update_packet_config.
4537 (remote_check_symbols): Use packet_support.
4538 (remote_supported_packet): Unconditionally set the packet config's
4539 support status.
4540 (remote_multi_process_feature, remote_non_stop_feature)
4541 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4542 (remote_breakpoint_commands_feature)
4543 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4544 (remote_install_in_trace_feature)
4545 (remote_disconnected_tracing_feature)
4546 (remote_enable_disable_tracepoint_feature)
4547 (remote_string_tracing_feature)
4548 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4549 (remote_protocol_features): Adjust to use remote_supported_packet
4550 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4551 "ConditionalTracepoints", "ConditionalBreakpoints",
4552 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4553 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4554 "EnableDisableTracepoints", and "tracenz".
4555 (remote_query_supported): Use packet_support.
4556 (remote_open_1): Adjust.
4557 (extended_remote_attach_1): Use packet_support. Switch on the
4558 result of packet_ok instead of checking whether the packet ended
4559 up disabled.
4560 (remote_vcont_resume): Use packet_support.
4561 (remote_resume, remote_stop_ns, fetch_register_using_p)
4562 (remote_prepare_to_store, store_register_using_P)
4563 (check_binary_download, remote_write_bytes): Use packet_support.
4564 (remote_vkill): Use packet_support. Switch on the result of
4565 packet_ok instead of checking whether the packet ended up
4566 disabled.
4567 (extended_remote_supports_disable_randomization): Use
4568 packet_support.
4569 (extended_remote_run): Switch on the result of packet_ok instead
4570 of checking whether the packet ended up disabled.
4571 (remote_insert_breakpoint, remote_remove_breakpoint)
4572 (remote_insert_watchpoint, remote_remove_watchpoint)
4573 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4574 packet_support.
4575 (remote_search_memory): Use packet_config_support.
4576 (remote_get_thread_local_address, remote_get_tib_address)
4577 (remote_hostio_send_command, remote_can_execute_reverse): Use
4578 packet_support.
4579 (remote_supports_cond_tracepoints)
4580 (remote_supports_cond_breakpoints)
4581 (remote_supports_fast_tracepoints)
4582 (remote_supports_static_tracepoints)
4583 (remote_supports_install_in_trace)
4584 (remote_supports_enable_disable_tracepoint)
4585 (remote_supports_string_tracing)
4586 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4587 the packet config says the feature is enabled or disabled.
4588 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4589 (remote_get_trace_status): Use packet_support.
4590 (remote_set_disconnected_tracing): Adjust to check whether the
4591 feature is enabled with packet_support.
4592 (remote_set_trace_buffer_size, remote_use_agent)
4593 (remote_can_use_agent, remote_supports_btrace): Use
4594 packet_support.
4595 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4596 Use packet_config_support.
4597 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4598 the packet config says the feature is enabled or disabled.
4599 (set_range_stepping): Use packet_support.
4600
4601 2014-04-25 Tom Tromey <tromey@redhat.com>
4602
4603 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4604 argument.
4605
4606 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4607
4608 * NEWS: Mention support for C99 variable length arrays.
4609
4610 2014-04-24 Joel Brobecker <brobecker@adacore.com>
4611
4612 * ada-lang.c (standard_exc): Expand introductory comment.
4613
4614 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
4615 Walfred Tedeschi <walfred.tedeschi@intel.com>
4616
4617 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4618 AVX512 registers.
4619 (amd64_linux_read_description): Add code to handle AVX512 xstate
4620 mask and return respective tdesc.
4621 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4622 and features/i386/x32-avx512-linux.c.
4623 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4624 (amd64_linux_core_read_description): Add code to handle AVX512
4625 xstate mask and return respective tdesc.
4626 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4627 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4628 calculation.
4629 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4630 (tdesc_amd64_avx512_linux): New prototype.
4631 (tdesc_x32_avx512_linux): Likewise.
4632 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4633 features/i386/x32-avx512.c.
4634 (amd64_ymm_avx512_names): New register names for pseudo
4635 registers YMM16-31.
4636 (amd64_ymmh_avx512_names): New register names for raw registers
4637 YMMH16-31.
4638 (amd64_k_names): New register names for K registers.
4639 (amd64_zmmh_names): New register names for ZMM raw registers.
4640 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4641 (amd64_xmm_avx512_names): New register names for XMM16-31
4642 registers.
4643 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4644 registers.
4645 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4646 if feature is present.
4647 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4648 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4649 (AMD64_NUM_REGS): Adjust to new number of registers.
4650 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4651 registers supplied via XSTATE by AVX512 registers.
4652 (i386_linux_read_description): Add case for AVX512.
4653 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4654 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4655 (i386_linux_core_read_description): Add case for AVX512.
4656 (i386_linux_init_abi): Install supported register note section
4657 for AVX512.
4658 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4659 AVX512.
4660 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4661 registers to be number of zmm7h + 1.
4662 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4663 * i386-tdep.c: Include features/i386/i386-avx512.c.
4664 (i386_zmm_names): Add ZMM pseudo register names array.
4665 (i386_zmmh_names): Add ZMM raw register names array.
4666 (i386_k_names): Add K raw register names array.
4667 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4668 registers. AVX512 has 16 more ZMM registers than there are YMM
4669 registers.
4670 (i386_zmmh_regnum_p): Add function to look up register number of
4671 ZMM raw registers.
4672 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4673 (i386_k_regnum_p): Likewise for K raw registers.
4674 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4675 registers added by AVX512.
4676 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4677 registers added by AVX512.
4678 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4679 added by AVX512.
4680 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4681 (i386_pseudo_register_name): Add ZMM pseudo registers.
4682 (i386_zmm_type): Construct and return vector registers type for ZMM
4683 registers.
4684 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4685 ZMM0-31 pseudo registers and K registers.
4686 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4687 and YMM16-31 registers from register cache.
4688 (i386_pseudo_register_write): Add code to write K, ZMM and
4689 YMM16-31 registers.
4690 (i386_register_reggroup_p): Add code to include/exclude AVX512
4691 registers in/from respective register groups.
4692 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4693 registers if feature is present in xcr0.
4694 (i386_gdbarch_init): Add code to initialize AVX512 feature
4695 variables in tdep structure, wire in pseudo registers and call
4696 initialize_tdesc_i386_avx512.
4697 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4698 variables.
4699 (i386_regnum): Add AVX512 registers.
4700 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4701 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4702 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4703 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4704 512 bits wide.
4705 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4706 (i386_ymm_avx512_regnum_p): Likewise.
4707 (i386_k_regnum_p): Likewise.
4708 (i386_zmm_regnum_p): Likewise.
4709 (i386_zmmh_regnum_p): Likewise.
4710 * i387-tdep.c : Update year in copyright notice.
4711 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4712 XSAVE buffer.
4713 (XSAVE_YMM_AVX512_ADDR): New macro.
4714 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4715 XSAVE buffer.
4716 (XSAVE_XMM_AVX512_ADDR): New macro.
4717 (xsave_avx512_k_offset): New table for K register offsets in
4718 XSAVE buffer.
4719 (XSAVE_AVX512_K_ADDR): New macro.
4720 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4721 in XSAVE buffer.
4722 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4723 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4724 buffer.
4725 (i387_collect_xsave): Add code to collect AVX512 registers from
4726 XSAVE buffer.
4727 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4728 of XMM16-31 registers.
4729 (I387_NUM_K_REGS): New define for number of K registers.
4730 (I387_K0_REGNUM): New define for K0 register number.
4731 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4732 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4733 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4734 registers.
4735 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4736 (I387_XMM16_REGNUM): New define for XMM16 register number.
4737 (I387_YMM0_REGNUM): New define for YMM0 register number.
4738 (I387_KEND_REGNUM): New define for last K register number.
4739 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4740 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4741 number.
4742 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4743 number.
4744 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4745 size.
4746 * features/Makefile: Add AVX512 related files.
4747 * features/i386/32bit-avx512.xml: New file.
4748 * features/i386/64bit-avx512.xml: Likewise.
4749 * features/i386/amd64-avx512-linux.c: Likewise.
4750 * features/i386/amd64-avx512-linux.xml: Likewise.
4751 * features/i386/amd64-avx512.c: Likewise.
4752 * features/i386/amd64-avx512.xml: Likewise.
4753 * features/i386/i386-avx512-linux.c: Likewise.
4754 * features/i386/i386-avx512-linux.xml: Likewise.
4755 * features/i386/i386-avx512.c: Likewise.
4756 * features/i386/i386-avx512.xml: Likewise.
4757 * features/i386/x32-avx512-linux.c: Likewise.
4758 * features/i386/x32-avx512-linux.xml: Likewise.
4759 * features/i386/x32-avx512.c: Likewise.
4760 * features/i386/x32-avx512.xml: Likewise.
4761 * regformats/i386/amd64-avx512-linux.dat: New file.
4762 * regformats/i386/amd64-avx512.dat: Likewise.
4763 * regformats/i386/i386-avx512-linux.dat: Likewise.
4764 * regformats/i386/i386-avx512.dat: Likewise.
4765 * regformats/i386/x32-avx512-linux.dat: Likewise.
4766 * regformats/i386/x32-avx512.dat: Likewise.
4767 * NEWS: Add note about new support for AVX512.
4768
4769
4770 2014-04-23 Pedro Alves <palves@redhat.com>
4771
4772 * breakpoint.c (insert_bp_location): Tolerate errors if the
4773 breakpoint is set in a user-loaded objfile.
4774 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4775 location is marked shlib_disabled. If the breakpoint is set in a
4776 user-loaded objfile is a GDB-side memory breakpoint, validate it
4777 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4778 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4779 flag.
4780 * mem-break.c (memory_validate_breakpoint): New function.
4781 * objfiles.c (userloaded_objfile_contains_address_p): New
4782 function.
4783 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4784 * target.h (memory_validate_breakpoint): New declaration.
4785
4786 2014-04-23 Pedro Alves <palves@redhat.com>
4787
4788 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4789 the breakpoint is set in a shared library, only suppress
4790 errors for software breakpoints, not hardware breakpoints.
4791
4792 2014-04-22 Pedro Alves <palves@redhat.com>
4793
4794 * infrun.c (schedlock_applies): New function, factored out from
4795 find_thread_needs_step_over.
4796 (find_thread_needs_step_over): Use it.
4797 (switch_back_to_stepped_thread): Always clear trap_expected if the
4798 step over is finished. Return early if scheduler locking applies.
4799 Look for the stepping thread and a potential step-over thread with
4800 a single loop.
4801 (currently_stepping_or_nexting_callback): Delete.
4802
4803 2014-04-22 Nick Clifton <nickc@redhat.com>
4804
4805 * NEWS: Mention that ARM sim now supports tracing.
4806
4807 2014-04-22 Yao Qi <yao@codesourcery.com>
4808
4809 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4810 to ...
4811 * tracefile.c (tracefile_fetch_registers): ... it. New
4812 function.
4813 * tracefile.h (tracefile_fetch_registers): Declare.
4814 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4815 tracefile_fetch_registers.
4816
4817 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4818
4819 PR gdb/14018
4820 * windows-nat.c (thread_rec): Don't display a warning when
4821 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4822 fails for any reason, set th->suspended to -1, so that we don't
4823 try to resume such a thread. Also, don't return NULL in these
4824 cases, to avoid completely ruin the session due to "PC register is
4825 not available" error.
4826 (do_windows_fetch_inferior_registers): Check errors in
4827 GetThreadContext call.
4828 (windows_continue): Accept an additional argument KILLED; if not
4829 zero, ignore errors in the SetThreadContext call, since the
4830 inferior was killed and is shutting down.
4831 (windows_resume, get_windows_debug_event)
4832 (windows_create_inferior, windows_mourn_inferior)
4833 (windows_kill_inferior): All callers of windows_continue changed
4834 to adjust to its new calling sequence.
4835
4836 2014-04-19 Yao Qi <yao@codesourcery.com>
4837
4838 * ctf.c (ctf_open): Call post_create_inferior.
4839
4840 2014-04-19 Yao Qi <yao@codesourcery.com>
4841
4842 * ctf.c (handle_id): New static variable.
4843 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4844 value. Get the declaration of event "register" and get length
4845 of field "contents".
4846
4847 2014-04-19 Yao Qi <yao@codesourcery.com>
4848
4849 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4850
4851 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4852
4853 * valops.c (oload_method_static): Remove unnecessary argument
4854 METHOD. Update all callers.
4855
4856 2014-04-18 Pedro alves <palves@redhat.com>
4857 Tom Tromey <tromey@redhat.com>
4858
4859 PR backtrace/15558
4860 * frame.c (get_prev_frame_1): Rename to ...
4861 (get_prev_frame_always): ... this, and make extern. Adjust.
4862 (skip_artificial_frames): Use get_prev_frame_always.
4863 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4864 (get_frame_unwind_stop_reason): Adjust to rename.
4865 * frame.h (get_prev_frame_always): Declare.
4866 * inline-frame.c: Include frame.h.
4867 (inline_frame_this_id): Use get_prev_frame_always.
4868
4869 2014-04-18 Tristan Gingold <gingold@adacore.com>
4870
4871 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4872 code by using bfd_mach_o_get_base_address.
4873
4874 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4875
4876 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4877 (spu_ax_pseudo_register_collect): New function.
4878 (spu_ax_pseudo_register_push_stack): Likewise.
4879 (spu_dwarf_reg_to_regnum): Likewise.
4880 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4881
4882 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4883
4884 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4885 Replace FRAME argument with FRAME_ID.
4886 * gdbarch.c, gdbarch.h: Regenerate.
4887 * findvar.c (default_value_from_register): Add GDBARCH argument;
4888 replace FRAME by FRAME_ID. No longer call get_frame_id.
4889 (value_from_register): Update call to gdbarch_value_from_register.
4890 * value.h (default_value_from_register): Update prototype.
4891 * s390-linux-tdep.c (s390_value_from_register): Update interface
4892 and call to default_value_from_register.
4893 * spu-tdep.c (spu_value_from_register): Likewise.
4894
4895 * findvar.c (address_from_register): Remove TYPE argument.
4896 Do not call value_from_register; use gdbarch_value_from_register
4897 with null_frame_id instead.
4898 * value.h (address_from_register): Update prototype.
4899 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4900 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4901 address_from_register interface change.
4902
4903 2014-04-17 Yao Qi <yao@codesourcery.com>
4904
4905 * gdbtypes.h: Update comments to link to types and macros'
4906 definitions.
4907
4908 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4909
4910 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4911
4912 2014-04-16 Keith Seitz <keiths@redhat.com>
4913
4914 PR gdb/15827
4915 * dwarf2read.c (skip_one_die): Check that all relative-offset
4916 sibling DIEs fall within range of the current reader's buffer.
4917 (read_partial_die): Likewise.
4918
4919 2014-04-16 Keith Seitz <keiths@redhat.com>
4920
4921 PR c++/16597
4922 * cp-namespace.c (lookup_symbol_file): If the type name of
4923 `this' is NULL, return immediately.
4924
4925 2014-04-14 Keith Seitz <keiths@redhat.com>
4926
4927 PR c++/16253
4928 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4929 from symbol_matches_domain in symtab.c. All local callers
4930 of symbol_matches_domain updated.
4931 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4932 search STRUCT_DOMAIN.
4933 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4934 independently. standard_lookup will do that automatically.
4935 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4936 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4937 (cp_lookup_symbol_in_namespace): Likewise.
4938 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4939 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4940 may return a STRUCT_DOMAIN match.
4941 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4942 * cp-support.c: Include language.h.
4943 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4944 VAR_DOMAIN.
4945 * psymtab.c (match_partial_symbol): Compare the requested
4946 domain with the symbol's domain directly.
4947 (lookup_partial_symbol): Likewise.
4948 * symtab.c (lookup_symbol_in_language): Explain when/why
4949 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4950 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4951 appropriate languages.
4952 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4953 and moved to ada-lang.c
4954 (lookup_block_symbol): Explain that this function only returns
4955 symbol matching the requested DOMAIN.
4956 Compare the requested domain with the symbol's domain directly.
4957 (iterate_over_symbols): Compare the requested domain with the
4958 symbol's domain directly.
4959 * symtab.h (symbol_matches_domain): Remove.
4960
4961 2014-04-14 Tom Tromey <tromey@redhat.com>
4962
4963 PR c++/15246:
4964 * c-exp.y (type_aggregate_p): New function.
4965 (qualified_name, classify_inner_name): Use it.
4966 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4967 and TYPE_TARGET_TYPE of an enum type.
4968 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4969 an enum type.
4970 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4971 handle TYPE_DECLARED_CLASS.
4972 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4973 types.
4974 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4975 * valops.c (enum_constant_from_type): New function.
4976 (value_aggregate_elt): Use it.
4977 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4978 TYPE_CODE_ENUM.
4979
4980 2014-04-14 Tom Tromey <tromey@redhat.com>
4981
4982 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4983 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4984 const.
4985 * value.h (value_aggregate_elt): Update.
4986
4987 2014-04-14 Tom Tromey <tromey@redhat.com>
4988
4989 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4990
4991 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4992
4993 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4994 (evaluate_subexp_standard): Pass noside argument.
4995 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4996 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4997 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4998 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4999 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5000
5001 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5002
5003 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5004 points to a constant blob.
5005
5006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5007
5008 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5009 property and store it as the high bound and flag the range accordingly.
5010 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5011 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5012 * gdbtypes.h (enum range_flags): New enum.
5013 (struct range_bounds): Add flags member.
5014
5015 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5016
5017 * c-typeprint.c (c_type_print_varspec_suffix): Added
5018 check for not yet resolved high bound. If unresolved, print
5019 "variable length" string to the console instead of random
5020 length.
5021
5022 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5023
5024 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5025 value.
5026 (ada_template_to_fixed_record_type_1): Likewise.
5027 (ada_to_fixed_type_1): Likewise.
5028 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5029 (cp_print_value): Likewise.
5030 * d-valprint.c (dynamic_array_type): Likewise.
5031 * findvar.c (address_of_variable): Likewise.
5032 * jv-valprint.c (java_value_print): Likewise.
5033 * valops.c (value_ind): Likewise.
5034 * value.c (coerce_ref): Likewise.
5035
5036 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5037
5038 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5039 value and retrieve the dynamic type size.
5040
5041 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5042
5043 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5044 passed to sizeof is dynamic evaluate the argument to compute the length.
5045
5046 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5047 Joel Brobecker <brobecker@adacore.com>
5048
5049 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5050 (dwarf2_evaluate_property): New function.
5051 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5052 * dwarf2read.c (attr_to_dynamic_prop): New function.
5053 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5054 attribute.
5055 * gdbtypes.c: Include dwarf2loc.h.
5056 (is_dynamic_type): New function.
5057 (resolve_dynamic_type): New function.
5058 (resolve_dynamic_bounds): New function.
5059 (get_type_length): New function.
5060 (check_typedef): Use get_type_length to compute type length.
5061 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5062 (TYPE_LOW_BOUND_KIND): New macro.
5063 (is_dynamic_type): New function prototype.
5064 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5065 to resolve dynamic properties of the type. Update comment.
5066 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5067
5068 2014-04-14 Richard Henderson <rth@redhat.com>
5069
5070 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5071
5072 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5073 Doug Evans <xdje42@gmail.com>
5074
5075 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5076 dereference TYPE_CODE_REF values.
5077
5078 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5079
5080 Revert the following changes due to regressions:
5081
5082 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5083 (dwarf2_evaluate_property): New function.
5084 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5085 * dwarf2read.c (attr_to_dynamic_prop): New function.
5086 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5087 attribute.
5088 * gdbtypes.c: Include dwarf2loc.h.
5089 (is_dynamic_type): New function.
5090 (resolve_dynamic_type): New function.
5091 (resolve_dynamic_bounds): New function.
5092 (get_type_length): New function.
5093 (check_typedef): Use get_type_length to compute type length.
5094 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5095 (TYPE_LOW_BOUND_KIND): New macro.
5096 (is_dynamic_type): New function prototype.
5097 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5098 to resolve dynamic properties of the type. Update comment.
5099 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5100
5101 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5102 passed to sizeof is dynamic evaluate the argument to compute the length.
5103
5104 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5105 value and retrieve the dynamic type size.
5106
5107 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5108 (ada_template_to_fixed_record_type_1): Likewise.
5109 (ada_to_fixed_type_1): Likewise.
5110 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5111 (cp_print_value): Likewise.
5112 * d-valprint.c (dynamic_array_type): Likewise.
5113 * eval.c (evaluate_subexp_with_coercion): Likewise.
5114 * findvar.c (address_of_variable): Likewise.
5115 * jv-valprint.c (java_value_print): Likewise.
5116 * valops.c (value_ind): Likewise.
5117 * value.c (coerce_ref): Likewise.
5118
5119 * c-typeprint.c (c_type_print_varspec_suffix): Added
5120 check for not yet resolved high bound. If unresolved, print
5121 "variable length" string to the console instead of random
5122 length.
5123
5124 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5125 property and store it as the high bound and flag the range accordingly.
5126 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5127 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5128 * gdbtypes.h (enum range_flags): New enum.
5129 (struct range_bounds): Add flags member.
5130
5131 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5132 points to a constant blob.
5133
5134 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5135 (evaluate_subexp_standard): Pass noside argument.
5136 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5137 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5138 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5139 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5140 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5141
5142 2014-04-11 Keith Seitz <keiths@redhat.com>
5143
5144 PR c++/16675
5145 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5146 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5147 reference types.
5148
5149 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5150
5151 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5152 (evaluate_subexp_standard): Pass noside argument.
5153 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5154 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5155 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5156 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5157 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5158
5159 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5160
5161 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5162 points to a constant blob.
5163
5164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5165
5166 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5167 property and store it as the high bound and flag the range accordingly.
5168 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5169 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5170 * gdbtypes.h (enum range_flags): New enum.
5171 (struct range_bounds): Add flags member.
5172
5173 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5174
5175 * c-typeprint.c (c_type_print_varspec_suffix): Added
5176 check for not yet resolved high bound. If unresolved, print
5177 "variable length" string to the console instead of random
5178 length.
5179
5180 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5181
5182 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5183 (ada_template_to_fixed_record_type_1): Likewise.
5184 (ada_to_fixed_type_1): Likewise.
5185 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5186 (cp_print_value): Likewise.
5187 * d-valprint.c (dynamic_array_type): Likewise.
5188 * eval.c (evaluate_subexp_with_coercion): Likewise.
5189 * findvar.c (address_of_variable): Likewise.
5190 * jv-valprint.c (java_value_print): Likewise.
5191 * valops.c (value_ind): Likewise.
5192 * value.c (coerce_ref): Likewise.
5193
5194 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5195
5196 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5197 value and retrieve the dynamic type size.
5198
5199 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5200
5201 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5202 passed to sizeof is dynamic evaluate the argument to compute the length.
5203
5204 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5205
5206 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5207 (dwarf2_evaluate_property): New function.
5208 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5209 * dwarf2read.c (attr_to_dynamic_prop): New function.
5210 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5211 attribute.
5212 * gdbtypes.c: Include dwarf2loc.h.
5213 (is_dynamic_type): New function.
5214 (resolve_dynamic_type): New function.
5215 (resolve_dynamic_bounds): New function.
5216 (get_type_length): New function.
5217 (check_typedef): Use get_type_length to compute type length.
5218 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5219 (TYPE_LOW_BOUND_KIND): New macro.
5220 (is_dynamic_type): New function prototype.
5221 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5222 to resolve dynamic properties of the type. Update comment.
5223 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5224
5225 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5226
5227 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5228 declaring high/low bounds and change uses accordingly. Call
5229 create_range_type instead of create_static_range_type.
5230 * gdbtypes.c (create_range_type): New function.
5231 (create_range_type): Convert bounds into struct bound_prop and pass
5232 them to create_range_type.
5233 * gdbtypes.h (struct bound_prop): New struct.
5234 (create_range_type): New function prototype.
5235 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5236 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5237 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5238 part of the bound.
5239 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5240
5241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5242
5243 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5244 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5245 * ada-lang.c: All uses of create_range_type updated.
5246 * coffread.c: All uses of create_range_type updated.
5247 * dwarf2read.c: All uses of create_range_type updated.
5248 * f-exp.y: All uses of create_range_type updated.
5249 * m2-valprint.c: All uses of create_range_type updated.
5250 * mdebugread.c: All uses of create_range_type updated.
5251 * stabsread.c: All uses of create_range_type updated.
5252 * valops.c: All uses of create_range_type updated.
5253 * valprint.c: All uses of create_range_type updated.
5254
5255 2014-04-10 Pedro Alves <palves@redhat.com>
5256
5257 * breakpoint.c (single_step_breakpoints)
5258 (single_step_gdbarch): Move up in the file.
5259 (one_breakpoint_xfer_memory): New function, factored out from ...
5260 (breakpoint_xfer_memory): ... here. Also process single-step
5261 breakpoints.
5262
5263 2014-04-09 Tristan Gingold <gingold@adacore.com>
5264
5265 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5266 comments.
5267 (darwin_decode_exception_message): Free port only after use.
5268
5269 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5270
5271 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5272 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5273 when setting the size of call_length.
5274
5275 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5276
5277 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5278 dereference TYPE_CODE_REF values.
5279
5280 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5281
5282 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5283 end of warning message.
5284
5285 2014-04-03 Doug Evans <dje@google.com>
5286
5287 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5288 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5289
5290 2014-04-02 Alan Modra <amodra@gmail.com>
5291
5292 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5293 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5294 (struct symbol_file_add_from_memory_args): Add size field.
5295 (find_vdso_size): New function.
5296 (add_vsyscall_page): Attempt to find vdso size.
5297
5298 2014-04-01 Doug Evans <dje@google.com>
5299
5300 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5301
5302 2014-04-01 Tristan Gingold <gingold@adacore.com>
5303
5304 * darwin-nat.c (darwin_encode_reply): Add prototype.
5305 (darwin_decode_exception_message): Reply to unknown inferiors.
5306 (darwin_decode_message): Handle message by id. Ignore message
5307 to unknown inferior.
5308 (darwin_wait): Discard unknown messages, add debug trace.
5309
5310 2014-03-31 Doug Evans <dje@google.com>
5311
5312 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5313 comp_dir_string.
5314
5315 2014-03-31 Doug Evans <dje@google.com>
5316
5317 New option "set print symbol-loading".
5318 * NEWS: Mention it.
5319 * solib.c (solib_read_symbols): Only print symbol loading messages
5320 if requested.
5321 (solib_add): If symbol loading is in "brief" mode, notify user
5322 symbols are being loaded.
5323 (reload_shared_libraries_1): Ditto.
5324 * symfile.c (print_symbol_loading_off): New static global.
5325 (print_symbol_loading_brief): New static global.
5326 (print_symbol_loading_full): New static global.
5327 (print_symbol_loading_enums): New static global.
5328 (print_symbol_loading): New static global.
5329 (print_symbol_loading_p): New function.
5330 (symbol_file_add_with_addrs): Only print symbol loading messages
5331 if requested.
5332 (_initialize_symfile): Register "print symbol-loading" set/show
5333 command.
5334 * symfile.h (print_symbol_loading_p): Declare.
5335
5336 2014-03-30 Doug Evans <xdje42@gmail.com>
5337
5338 * infrun.c (set_last_target_status): New function.
5339 (handle_inferior_event): Call it.
5340
5341 2014-03-30 Doug Evans <xdje42@gmail.com>
5342
5343 * inferior.h (enum stop_kind): Improve comment.
5344
5345 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5346
5347 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5348 a reference, strip the reference layer before calling
5349 the lang_ops value_has_mutated callback.
5350
5351 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5352
5353 Remove some globals from our parser.
5354 * language.c (unk_lang_parser): Add "struct parser_state"
5355 argument.
5356 * language.h (struct language_defn) <la_parser>: Likewise.
5357 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5358 (initialize_expout): Add "struct parser_state" argument.
5359 Rewrite function to use the parser state.
5360 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5361 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5362 write_exp_elt_longcst, write_exp_elt_dblcst,
5363 write_exp_elt_decfloatcst, write_exp_elt_type,
5364 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5365 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5366 write_dollar_variable): Likewise.
5367 (parse_exp_in_context_1): Use parser state.
5368 (insert_type_address_space): Add "struct parser_state" argument.
5369 Use parser state.
5370 (increase_expout_size): New function.
5371 * parser-defs.h: Forward declare "struct language_defn" and
5372 "struct parser_state".
5373 (expout, expout_size, expout_ptr): Remove extern declarations.
5374 (parse_gdbarch, parse_language): Rewrite macro declarations to
5375 accept the parser state.
5376 (struct parser_state): New struct.
5377 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5378 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5379 write_exp_elt_decfloatcst, write_exp_elt_type,
5380 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5381 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5382 write_exp_msymbol, write_dollar_variable,
5383 mark_struct_expression, insert_type_address_space): Add "struct
5384 parser_state" argument.
5385 (increase_expout_size): New function.
5386 * utils.c (do_clear_parser_state): New function.
5387 (make_cleanup_clear_parser_state): Likewise.
5388 * utils.h (make_cleanup_clear_parser_state): New function
5389 prototype.
5390 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5391 Update calls to write_exp* in order to pass the parser state.
5392 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5393 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5394 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5395 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5396 * stap-probe.c (stap_parse_register_operand): Likewise.
5397 (stap_parse_single_operand): Likewise.
5398 (stap_parse_argument_1): Likewise.
5399 (stap_parse_argument): Use parser state.
5400 * stap-probe.h: Include "parser-defs.h".
5401 (struct stap_parse_info) <pstate>: New field.
5402 * c-exp.y (parse_type): Rewrite to use parser state.
5403 (yyparse): Redefine to c_parse_internal.
5404 (pstate): New global variable.
5405 (parse_number): Add "struct parser_state" argument.
5406 (write_destructor_name): Likewise.
5407 (type_exp): Update calls to write_exp* and similars in order to
5408 use parser state.
5409 (exp1, exp, variable, qualified_name, space_identifier,
5410 typename, typebase): Likewise.
5411 (write_destructor_name, parse_number, lex_one_token,
5412 classify_name, classify_inner_name, c_parse): Add "struct
5413 parser_state" argument. Update function to use parser state.
5414 * c-lang.h: Forward declare "struct parser_state".
5415 (c_parse): Add "struct parser_state" argument.
5416 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5417 (yyparse): Redefine macro to ada_parse_internal.
5418 (pstate): New variable.
5419 (write_int, write_object_renaming, write_var_or_type,
5420 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5421 type_int, type_long, type_long_long, type_float, type_double,
5422 type_long_double, type_char, type_boolean, type_system_address):
5423 Add "struct parser_state" argument.
5424 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5425 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5426 var_or_type, aggregate, aggregate_component_list,
5427 positional_list, others, component_group,
5428 component_associations): Update calls to write_exp* and similar
5429 functions in order to use parser state.
5430 (ada_parse, write_var_from_sym, write_int,
5431 write_exp_op_with_string, write_object_renaming,
5432 find_primitive_type, write_selectors, write_ambiguous_var,
5433 write_var_or_type, write_name_assoc, type_int, type_long,
5434 type_long_long, type_float, type_double, type_long_double,
5435 type_char, type_boolean, type_system_address): Add "struct
5436 parser_state" argument. Adjust function to use parser state.
5437 * ada-lang.c (parse): Likewise.
5438 * ada-lang.h: Forward declare "struct parser_state".
5439 (ada_parse): Add "struct parser_state" argument.
5440 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5441 calls to both functions.
5442 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5443 parser state.
5444 (yyparse): Redefine macro to f_parse_internal.
5445 (pstate): New variable.
5446 (parse_number): Add "struct parser_state" argument.
5447 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5448 and similars in order to use parser state.
5449 (parse_number): Adjust code to use parser state.
5450 (yylex): Likewise.
5451 (f_parse): New function.
5452 * f-lang.h: Forward declare "struct parser_state".
5453 (f_parse): Add "struct parser_state" argument.
5454 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5455 parser state.
5456 (yyparse): Redefine macro for java_parse_internal.
5457 (pstate): New variable.
5458 (push_expression_name, push_expression_name, insert_exp): Add
5459 "struct parser_state" argument.
5460 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5461 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5462 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5463 PostIncrementExpression, PostDecrementExpression,
5464 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5465 UnaryExpressionNotPlusMinus, CastExpression,
5466 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5467 RelationalExpression, EqualityExpression, AndExpression,
5468 ExclusiveOrExpression, InclusiveOrExpression,
5469 ConditionalAndExpression, ConditionalOrExpression,
5470 ConditionalExpression, Assignment, LeftHandSide): Update
5471 calls to write_exp* and similars in order to use parser state.
5472 (parse_number): Ajust code to use parser state.
5473 (yylex): Likewise.
5474 (java_parse): New function.
5475 (push_variable): Add "struct parser_state" argument. Adjust
5476 code to user parser state.
5477 (push_fieldnames, push_qualified_expression_name,
5478 push_expression_name, insert_exp): Likewise.
5479 * jv-lang.h: Forward declare "struct parser_state".
5480 (java_parse): Add "struct parser_state" argument.
5481 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5482 parser state.
5483 (yyparse): Redefine macro to m2_parse_internal.
5484 (pstate): New variable.
5485 (type_exp, exp, fblock, variable, type): Update calls to
5486 write_exp* and similars to use parser state.
5487 (yylex): Likewise.
5488 (m2_parse): New function.
5489 * m2-lang.h: Forward declare "struct parser_state".
5490 (m2_parse): Add "struct parser_state" argument.
5491 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5492 * objc-lang.h: Forward declare "struct parser_state".
5493 (end_msglist): Add "struct parser_state" argument.
5494 * p-exp.y (parse_type): Rewrite macro to use parser state.
5495 (yyparse): Redefine macro to pascal_parse_internal.
5496 (pstate): New variable.
5497 (parse_number): Add "struct parser_state" argument.
5498 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5499 write_exp* and similars in order to use parser state.
5500 (parse_number, yylex): Adjust code to use parser state.
5501 (pascal_parse): New function.
5502 * p-lang.h: Forward declare "struct parser_state".
5503 (pascal_parse): Add "struct parser_state" argument.
5504 * go-exp.y (parse_type): Rewrite macro to use parser state.
5505 (yyparse): Redefine macro to go_parse_internal.
5506 (pstate): New variable.
5507 (parse_number): Add "struct parser_state" argument.
5508 (type_exp, exp1, exp, variable, type): Update calls to
5509 write_exp* and similars in order to use parser state.
5510 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5511 to use parser state.
5512 (go_parse): Likewise.
5513 * go-lang.h: Forward declare "struct parser_state".
5514 (go_parse): Add "struct parser_state" argument.
5515
5516 2014-03-27 Doug Evans <dje@google.com>
5517
5518 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5519
5520 2014-03-27 Doug Evans <dje@google.com>
5521
5522 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5523 Remove argument abbrev_section. All callers updated.
5524
5525 2014-03-27 Doug Evans <dje@google.com>
5526
5527 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5528 addr_base, ranges_base.
5529
5530 2014-03-26 Keith Seitz <keiths@redhat.com>
5531
5532 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5533 types, not VAR_DOMAIN.
5534
5535 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5536
5537 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5538 "ra" registers.
5539 * features/nios2-linux.c: Regenerated.
5540 * features/nios2.c: Regenerated.
5541
5542 2014-03-25 Pedro Alves <palves@redhat.com>
5543
5544 * cli/cli-script.c (script_from_file): Force the interpreter to
5545 sync mode.
5546
5547 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5548
5549 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5550 small stack allocation.
5551
5552 2014-03-24 Tristan Gingold <gingold@adacore.com>
5553
5554 * darwin-nat.c (exc_server): Remove unused prototype.
5555 (darwin_dump_message): Correctly display data on x86_64.
5556 (darwin_encode_reply): Fix style.
5557 Add comments and fix indentation.
5558
5559 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5560
5561 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5562
5563 2014-03-22 Doug Evans <xdje42@gmail.com>
5564
5565 * infcmd.c: Whitespace fixes.
5566 (interrupt_command): Merge two function comments into one.
5567
5568 2014-03-22 Doug Evans <xdje42@gmail.com>
5569
5570 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5571 All uses updated.
5572
5573 2014-03-22 Yao Qi <yao@codesourcery.com>
5574
5575 * remote.c (target_read_live_memory): Remove.
5576 (memory_xfer_live_readonly_partial): Rename it to
5577 remote_xfer_live_readonly_partial. Remove argument 'object'.
5578 All callers updated. Call remote_read_bytes_1
5579 instead of target_read_live_memory.
5580 * tracepoint.c (set_traceframe_number): Remove.
5581 (make_cleanup_restore_traceframe_number): Likewise .
5582 * tracepoint.h (set_traceframe_number): Remove declaration.
5583 (make_cleanup_restore_traceframe_number): Likewise.
5584
5585 2014-03-22 Yao Qi <yao@codesourcery.com>
5586
5587 * remote.c (remote_read_bytes): Move code on reading from the
5588 remote stub to ...
5589 (remote_read_bytes_1): ... here. New function.
5590
5591 2014-03-22 Yao Qi <yao@codesourcery.com>
5592
5593 * ctf.c (ctf_xfer_partial): Check the return value of
5594 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5595 return TARGET_XFER_UNAVAILABLE.
5596 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5597 * target.c (target_read_live_memory): Move it to remote.c.
5598 (memory_xfer_live_readonly_partial): Likewise.
5599 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5600 * remote.c (target_read_live_memory): Moved from target.c.
5601 (memory_xfer_live_readonly_partial): Likewise.
5602 (remote_read_bytes): Factored out from
5603 memory_xfer_partial_1.
5604
5605 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5606
5607 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5608 NULL pointer.
5609
5610 2014-03-21 Pedro Alves <palves@redhat.com>
5611
5612 * infrun.c (normal_stop): Extend comment.
5613
5614 2014-03-21 Hui Zhu <hui@codesourcery.com>
5615 Pedro Alves <palves@redhat.com>
5616
5617 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5618 static buffer.
5619 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5620 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5621 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5622
5623 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5624
5625 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5626 `z' formatted output modifier.
5627
5628 2014-03-20 Tom Tromey <tromey@redhat.com>
5629 Sergio Durigan Junior <sergiodj@redhat.com>
5630
5631 * probe.c (parse_probes): Turn assert into an ordinary error.
5632 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5633 exceptions when parsing probes. Rearrange the code for clarity.
5634
5635 2014-03-20 Tom Tromey <tromey@redhat.com>
5636
5637 PR gdb/14135
5638 * top.c (execute_command): Only dispatch events if the command
5639 started the target.
5640
5641 2014-03-20 Tom Tromey <tromey@redhat.com>
5642
5643 PR cli/15718
5644 * infcall.c: Include event-top.h.
5645 (run_inferior_call): Call async_disable_stdin if needed.
5646
5647 2014-03-20 Pedro Alves <palves@redhat.com>
5648
5649 * infrun.c (prepare_to_proceed): Delete.
5650 (thread_still_needs_step_over): New function.
5651 (find_thread_needs_step_over): New function.
5652 (proceed): If the current thread needs a step-over, set its
5653 steping_over_breakpoint flag. Adjust to use
5654 find_thread_needs_step_over instead of prepare_to_proceed.
5655 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5656 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5657 breakpoint.
5658 (switch_back_to_stepped_thread): Step over breakpoints of all
5659 threads not the stepping thread, before switching back to the
5660 stepping thread.
5661
5662 2014-03-20 Pedro Alves <palves@redhat.com>
5663
5664 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5665 extern.
5666 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5667 * infrun.c (saved_singlestep_ptid)
5668 (stepping_past_singlestep_breakpoint): Delete.
5669 (resume): Remove stepping_past_singlestep_breakpoint handling.
5670 (proceed): Store the prev_pc of the stepping thread too.
5671 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5672 singlestep_pc.
5673 (enum infwait_states): Delete infwait_thread_hop_state.
5674 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5675 field.
5676 (handle_inferior_event): Adjust.
5677 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5678 handling and the thread-hop code. Before removing single-step
5679 breakpoints, check whether the thread hit a single-step breakpoint
5680 of another thread. If it did, the trap is not a random signal.
5681 (switch_back_to_stepped_thread): If the event thread hit a
5682 single-step breakpoint, unblock it before switching to the
5683 stepping thread. Handle the case of the stepped thread having
5684 advanced already.
5685 (keep_going): Handle the case of the current thread moving past a
5686 single-step breakpoint.
5687
5688 2014-03-20 Pedro Alves <palves@redhat.com>
5689
5690 PR breakpoints/7143
5691 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5692 are being stepped over.
5693 (breakpoint_address_match): Make extern.
5694 * breakpoint.h (breakpoint_address_match): New declaration.
5695 * inferior.h (stepping_past_instruction_at): New declaration.
5696 * infrun.c (struct step_over_info): New type.
5697 (step_over_info): New global.
5698 (set_step_over_info, clear_step_over_info)
5699 (stepping_past_instruction_at): New functions.
5700 (handle_inferior_event): Clear the step-over info when
5701 trap_expected is cleared.
5702 (resume): Remove now stale comment.
5703 (clear_proceed_status): Clear step-over info.
5704 (proceed): Adjust step-over handling to set or clear the step-over
5705 info instead of removing all breakpoints.
5706 (handle_signal_stop): When setting up a thread-hop, don't remove
5707 breakpoints here.
5708 (stop_stepping): Clear step-over info.
5709 (keep_going): Adjust step-over handling to set or clear step-over
5710 info and then always inserting breakpoints, instead of removing
5711 all breakpoints when stepping over one.
5712
5713 2014-03-20 Pedro Alves <palves@redhat.com>
5714
5715 * infrun.c (previous_inferior_ptid): Adjust comment.
5716 (deferred_step_ptid): Delete.
5717 (infrun_thread_ptid_changed, prepare_to_proceed)
5718 (init_wait_for_inferior): Adjust.
5719 (handle_signal_stop): Delete deferred_step_ptid handling.
5720
5721 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5722
5723 PR gdb/15358
5724 * defs.h (sync_quit_force_run): New declaration.
5725 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5726 * event-top.c (async_sigterm_handler): New declaration.
5727 (async_sigterm_token): New variable.
5728 (async_init_signals): Create also async_sigterm_token.
5729 (async_sigterm_handler): New function.
5730 (sync_quit_force_run): New variable.
5731 (handle_sigterm): Replace quit_force call by other calls.
5732 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5733
5734 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5735
5736 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5737 offset into SPE pseudo registers.
5738
5739 2014-03-18 Pedro Alves <palves@redhat.com>
5740
5741 PR gdb/13860
5742 * inferior.h (print_stop_event): Declare.
5743 * infrun.c (print_stop_event): New, factored out from ...
5744 (normal_stop): ... this.
5745 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5746 of bpstat_print/print_stack_frame.
5747
5748 2014-03-17 Tom Tromey <tromey@redhat.com>
5749
5750 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5751
5752 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5753
5754 * ada-lang.c (decode_constrained_packed_array): Perform a
5755 minimal coercion for reference with coerce_ref instead of
5756 ada_coerce_ref.
5757
5758 2014-03-17 Tristan Gingold <gingold@adacore.com>
5759
5760 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5761 (darwin_solib_create_inferior_hook): Emit a warning if version
5762 is unhandled.
5763
5764 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5765
5766 * python/py-value.c (get_field_flag): Cast flag_name argument to
5767 PyObject_GetAttrString to support Python 2.4.
5768
5769 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5770
5771 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5772 (Global Maintainers): Remove Jan Kratochvil.
5773
5774 2014-03-14 Pedro Alves <palves@redhat.com>
5775
5776 * inferior.h (terminal_ours_for_output): Rename to ...
5777 (child_terminal_ours_for_output): ... this.
5778 (terminal_save_ours): Rename to ...
5779 (child_terminal_save_ours): ... this.
5780 (terminal_ours): Rename to ...
5781 (child_terminal_ours): ... this.
5782 (terminal_inferior): Rename to ...
5783 (child_terminal_inferior): ... this.
5784 (terminal_init_inferior): Rename to ...
5785 (child_terminal_init_inferior): ... this.
5786 (terminal_init_inferior_with_pgrp): Rename to ...
5787 (child_terminal_init_inferior_with_pgrp): ... this.
5788 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5789 (child_terminal_init_with_pgrp): ... this.
5790 (terminal_save_ours): Rename to ...
5791 (child_terminal_save_ours): ... this.
5792 (terminal_init_inferior): Rename to ...
5793 (child_terminal_init): ... this. Adjust.
5794 (terminal_inferior): Rename to ...
5795 (child_terminal_inferior): ... this.
5796 (terminal_ours_for_output): Rename to ...
5797 (child_terminal_ours_for_output): ... this. Adjust.
5798 (terminal_ours): Rename to ...
5799 (child_terminal_ours): ... this.
5800 (terminal_ours_1): Rename to ...
5801 (child_terminal_ours_1): ... this. Adjust.
5802 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5803 * windows-nat.c (do_initial_windows_stuff): Adjust.
5804 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5805 (gnu_terminal_init): ... this. Adjust.
5806 (gnu_target): Adjust.
5807 * inf-child.c (inf_child_target): Adjust.
5808
5809 2014-03-13 Doug Evans <xdje42@gmail.com>
5810
5811 PR guile/16612
5812 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5813 new eq?-hashtab.
5814
5815 2014-03-13 Doug Evans <xdje42@gmail.com>
5816
5817 * value.c (record_latest_value): Call release_value_or_incref
5818 instead of release_value.
5819
5820 2014-03-13 Pedro Alves <palves@redhat.com>
5821
5822 * procfs.c (procfs_target): Don't override to_shortname,
5823 to_longname or to_doc.
5824
5825 2014-03-13 Pedro Alves <palves@redhat.com>
5826
5827 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5828 Unix in user visible strings.
5829
5830 2014-03-12 Stan Shebs <stan@codesourcery.com>
5831
5832 * gdbtypes.h: Annotate comments for Doxygen, add a page
5833 block comment with some general info.
5834
5835 2014-03-12 Pedro Alves <palves@redhat.com>
5836
5837 * infcmd.c (prepare_execution_command): New function, factored out
5838 from several execution commands.
5839 (run_command_1, continue_command, step_1, jump_command)
5840 (signal_command, until_command, advance_command, finish_command)
5841 (attach_command): Use prepare_execution_command.
5842
5843 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5844
5845 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5846 (MAX_BPTS): Define.
5847 (MAX_WPTS): Define.
5848 (struct arm_linux_thread_points): Removed.
5849 (struct arm_linux_process_info): New.
5850 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5851 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5852 (arm_linux_find_breakpoints_by_tid): Removed.
5853 (struct arch_lwp_info): New.
5854 (arm_linux_find_process_pid): New functions.
5855 (arm_linux_add_process): New functions.
5856 (arm_linux_process_info_get): New functions.
5857 (arm_linux_forget_process): New function.
5858 (arm_linux_get_debug_reg_state): New function.
5859 (struct update_registers_data): New.
5860 (update_registers_callback): New function.
5861 (arm_linux_insert_hw_breakpoint1): Updated.
5862 (arm_linux_remove_hw_breakpoint1): Updated.
5863 (arm_linux_insert_hw_breakpoint): Updated.
5864 (arm_linux_remove_hw_breakpoint): Updated.
5865 (arm_linux_insert_watchpoint): Updated.
5866 (arm_linux_remove_watchpoint): Updated.
5867 (arm_linux_new_thread): Updated.
5868 (arm_linux_prepare_to_resume): New function.
5869 (arm_linux_new_fork): New function.
5870 (_initialize_arm_linux_nat): Updated.
5871
5872 2014-03-12 Pedro Alves <palves@redhat.com>
5873
5874 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5875
5876 2014-03-12 Tom Tromey <tromey@redhat.com>
5877
5878 * inf-child.c (return_zero): New function.
5879 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5880 * aix-thread.c (aix_thread_inferior_created): New function.
5881 (aix_thread_attach): Remove.
5882 (init_aix_thread_ops): Don't set to_attach.
5883 (_initialize_aix_thread): Register inferior_created observer.
5884 * corelow.c (init_core_ops): Don't set to_attach or
5885 to_create_inferior.
5886 * exec.c (init_exec_ops): Don't set to_attach or
5887 to_create_inferior.
5888 * infcmd.c (run_command_1): Use find_run_target. Make direct
5889 target calls.
5890 (attach_command): Use find_attach_target. Make direct target
5891 calls.
5892 * record-btrace.c (init_record_btrace_ops): Don't set
5893 to_create_inferior.
5894 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5895 Remove.
5896 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5897 set to_create_inferior.
5898 * target.c (complete_target_initialization): Add assertion.
5899 (target_create_inferior): Remove.
5900 (find_default_attach, find_default_create_inferior): Remove.
5901 (find_attach_target, find_run_target): New functions.
5902 (find_default_is_async_p, find_default_can_async_p)
5903 (target_supports_non_stop, target_attach): Remove.
5904 (init_dummy_target): Don't set to_create_inferior or
5905 to_supports_non_stop.
5906 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5907 TARGET_DEFAULT_FUNC.
5908 <to_create_inferior>: Add comment.
5909 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5910 TARGET_DEFAULT_RETURN.
5911 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5912 (find_attach_target, find_run_target): Declare.
5913 (target_create_inferior): Remove.
5914 (target_has_execution_1): Update comment.
5915 (target_supports_non_stop): Remove.
5916 * target-delegates.c: Rebuild.
5917
5918 2014-03-12 Pedro Alves <palves@redhat.com>
5919
5920 * inf-child.h: Update comment to not mention Unix.
5921
5922 2014-03-12 Pedro Alves <palves@redhat.com>
5923
5924 * inf-child.c: Update top comment to not mention Unix. Add
5925 generic comment describing how this target is meant to be used.
5926 (inf_child_post_attach, inf_child_post_startup_inferior)
5927 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5928 Unix in comment.
5929
5930 2014-03-12 Pedro Alves <palves@redhat.com>
5931
5932 * nto-procfs.c: Include inf-child.h.
5933 (procfs_ops): Delete global.
5934 (procfs_can_run): Delete method.
5935 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5936 target pointer instead of referencing procfs_ops.
5937 (procfs_prepare_to_store): Delete.
5938 (init_procfs_ops): Delete function.
5939 (procfs_target): New function, based on init_procfs_ops, but
5940 inherit inf_child_target.
5941 (_initialize_procfs): Use procfs_target.
5942
5943 2014-03-12 Pedro Alves <palves@redhat.com>
5944
5945 * windows-nat.c: Include inf-child.h.
5946 (windows_ops): Delete global.
5947 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5948 methods.
5949 (init_windows_ops): Delete function.
5950 (windows_target): New function, based on init_windows_ops, but
5951 inherit inf_child_target.
5952 (_initialize_windows_nat): Use windows_target. Install x86
5953 specific target methods here.
5954
5955 2014-03-10 Doug Evans <xdje42@gmail.com>
5956
5957 * guile/guile.c (call_initialize_gdb_module): New function.
5958 (initialize_guile): Replace call to scm_init_guile with call to
5959 scm_with_guile.
5960
5961 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5962
5963 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5964 in call to TYPE_CODE macro.
5965
5966 2014-03-10 Jerome Guitton <guitton@adacore.com>
5967
5968 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5969 Resolve tagged types to full view.
5970
5971 2014-03-10 Hui Zhu <hui@codesourcery.com>
5972
5973 * target.h (target_insert_breakpoint): Remove "hardware" from its
5974 comments.
5975
5976 2014-03-07 Doug Evans <dje@google.com>
5977
5978 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5979
5980 2014-03-07 Doug Evans <dje@google.com>
5981
5982 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5983 Remove unused local comp_dir_attr. Assert exactly one of
5984 stub_comp_unit_die, stub_comp_dir is non-NULL.
5985
5986 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5987
5988 * target.h (complete_target_initialization, add_target):
5989 Add comment.
5990
5991 2014-03-07 Pedro Alves <palves@redhat.com>
5992
5993 * go32-nat.c: Include inf-child.h.
5994 (go32_ops): Delete global.
5995 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5996 Delete methods.
5997 (go32_create_inferior): Push the passed in target pointer instead
5998 of referencing go32_ops.
5999 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6000 (go32_target): New function, based on init_go32_ops, but inherit
6001 inf_child_target.
6002 (_initialize_go32_nat): Use go32_target. Move parts of
6003 init_go32_ops here.
6004
6005 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6006
6007 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6008 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6009 SYMBOL_VALUE_ADDRESS.
6010 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6011
6012 2014-03-06 Yao Qi <yao@codesourcery.com>
6013
6014 * breakpoint.c (get_tracepoint_by_number): Remove argument
6015 optional_p. All callers updated. Adjust comments. Update
6016 output message.
6017 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6018
6019 2014-03-06 Yao Qi <yao@codesourcery.com>
6020
6021 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6022 early if get_number returns zero. Use 'p' instead of 'args'.
6023
6024 2014-03-06 Yao Qi <yao@codesourcery.com>
6025
6026 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6027 message.
6028
6029 2014-03-06 Yao Qi <yao@codesourcery.com>
6030
6031 PR breakpoints/16508
6032 * tracepoint.c (check_trace_running): New function.
6033 (trace_find_command): Move code to check_trace_running and
6034 call check_trace_running.
6035 (trace_find_pc_command): Likewise.
6036 (trace_find_tracepoint_command): Likewise.
6037 (trace_find_line_command): Likewise.
6038 (trace_find_range_command): Likewise.
6039 * tracepoint.h (check_trace_running): Likewise.
6040 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6041
6042 2014-03-06 Yao Qi <yao@codesourcery.com>
6043
6044 * target.h (struct target_ops) <to_traceframe_info>: Use
6045 TARGET_DEFAULT_NORETURN (tcomplain ()).
6046 * target-delegates.c: Regenerated.
6047
6048 2014-03-05 Pedro Alves <palves@redhat.com>
6049
6050 PR gdb/16575
6051 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6052 void. Update comment.
6053 (dcache_xfer_memory): Delete.
6054 (dcache_read_memory_partial): New, based on the read bits of
6055 dcache_xfer_memory.
6056 (dcache_update): Add status parameter. Use ULONGEST for len, and
6057 adjust. Discard cache lines if the reason for the update was
6058 error.
6059 * dcache.h (dcache_xfer_memory): Delete declaration.
6060 (dcache_read_memory_partial): New declaration.
6061 (dcache_update): Update prototype.
6062 * target.c (raw_memory_xfer_partial): Update the dcache here.
6063 (memory_xfer_partial_1): Don't handle dcache writes here.
6064
6065 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6066
6067 * remote-sim.c (gdbsim_load): Add const to prog.
6068
6069 2014-03-03 Tom Tromey <tromey@redhat.com>
6070
6071 * elfread.c (probe_key): Change to bfd_data.
6072 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6073 now per-BFD, not per-objfile.
6074 * stap-probe.c (stap_probe_destroy): Update comment.
6075 (handle_stap_probe): Allocate on the per-BFD obstack.
6076
6077 2014-03-03 Tom Tromey <tromey@redhat.com>
6078
6079 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6080 * breakpoint.c (create_longjmp_master_breakpoint): Use
6081 get_probe_address.
6082 (add_location_to_breakpoint, bkpt_probe_insert_location)
6083 (bkpt_probe_remove_location): Update.
6084 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6085 * elfread.c (elf_symfile_relocate_probe): Remove.
6086 (elf_probe_fns): Update.
6087 (insert_exception_resume_breakpoint): Change type of "probe"
6088 parameter to bound_probe.
6089 (check_exception_resume): Update.
6090 * objfiles.c (objfile_relocate1): Don't relocate probes.
6091 * probe.c (bound_probe_s): New typedef.
6092 (parse_probes): Use get_probe_address. Set sal's objfile.
6093 (find_probe_by_pc): Return a bound_probe.
6094 (collect_probes): Return a VEC(bound_probe_s).
6095 (compare_probes): Update.
6096 (gen_ui_out_table_header_info): Change type of "probes"
6097 parameter. Update.
6098 (info_probes_for_ops): Update.
6099 (get_probe_address): New function.
6100 (probe_safe_evaluate_at_pc): Update.
6101 * probe.h (struct probe_ops) <get_probe_address>: New field.
6102 <set_semaphore, clear_semaphore>: Add objfile parameter.
6103 (struct probe) <objfile>: Remove field.
6104 <arch>: New field.
6105 <address>: Update comment.
6106 (struct bound_probe): New.
6107 (find_probe_by_pc): Return a bound_probe.
6108 (get_probe_address): Declare.
6109 * solib-svr4.c (struct probe_and_action) <address>: New field.
6110 (hash_probe_and_action, equal_probe_and_action): Update.
6111 (register_solib_event_probe): Add address parameter.
6112 (solib_event_probe_at): Update.
6113 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6114 get_probe_address.
6115 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6116 (stap_get_probe_address): New function.
6117 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6118 (compile_probe_arg): Update.
6119 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6120 address.
6121 (handle_stap_probe): Don't relocate the probe.
6122 (stap_relocate): Remove.
6123 (stap_gen_info_probes_table_values): Update.
6124 (stap_probe_ops): Remove stap_relocate.
6125 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6126 (debug_sym_probe_fns): Update.
6127 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6128 * symtab.c (init_sal): Use memset.
6129 * symtab.h (struct symtab_and_line) <objfile>: New field.
6130 * tracepoint.c (start_tracing, stop_tracing): Update.
6131
6132 2014-03-03 Tom Tromey <tromey@redhat.com>
6133
6134 * probe.h (parse_probes, find_probe_by_pc)
6135 (find_probes_in_objfile): Fix comments.
6136
6137 2014-03-02 Doug Evans <xdje42@gmail.com>
6138
6139 * infrun.c (handle_signal_stop): Replace test for
6140 TARGET_WAITKIND_STOPPED with an assert.
6141
6142 2014-03-02 Doug Evans <xdje42@gmail.com>
6143
6144 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6145
6146 2014-03-02 Doug Evans <xdje42@gmail.com>
6147
6148 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6149
6150 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6151
6152 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6153
6154 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6155
6156 * i386obsd-nat.c: Include "obsd-nat.h".
6157 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6158 add_target.
6159 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6160
6161 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6162
6163 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6164
6165 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6166
6167 * mips64obsd-nat.c: Include "obsd-nath".
6168 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6169 add_target
6170 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6171
6172 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6173
6174 * amd64obsd-nat.c: Include "obsd-nat,h.
6175 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6176 add_target.
6177 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6178
6179 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6180
6181 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6182 (find_overload_match): Update call to find_oload_champ.
6183 (find_oload_champ_namespace_loop): Likewise
6184
6185 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6186
6187 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6188
6189 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6190 * config/sparc/obsd64.mh: New file.
6191 * sparc64obsd-nat.c: New file.
6192
6193 * obsd-nat.h: New file.
6194 * obsd-nat.c: New file.
6195 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6196 (ALLDEPFILES): Add obsd-nat.c.
6197
6198 2014-02-28 Tom Tromey <tromey@redhat.com>
6199
6200 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6201 * cli-out.h (cli_ui_out_impl): Now const.
6202 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6203 * ui-out.c (struct ui_out) <impl>: Now const.
6204 (default_ui_out_impl): Now const.
6205 (ui_out_new): Make 'impl' parameter const.
6206 * ui-out.h (ui_out_new): Update.
6207
6208 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6209
6210 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6211
6212 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6213
6214 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6215
6216 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6217
6218 Additional PR 8882 fix.
6219 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6220
6221 2014-02-27 Pedro Alves <palves@redhat.com>
6222
6223 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6224 isn't set.
6225
6226 2014-02-27 Pedro Alves <palves@redhat.com>
6227
6228 PR 12702
6229 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6230 * nat/linux-waitpid.c: Include string.h.
6231 (status_to_str): Moved here and made extern.
6232 * nat/linux-waitpid.h (status_to_str): New declaration.
6233
6234 2014-02-27 Hui Zhu <hui@codesourcery.com>
6235
6236 PR 12702
6237 * infrun.c (ptid_match): Move ...
6238 * common/ptid.c (ptid_match): ... here.
6239 * inferior.h (ptid_match): Move ...
6240 * common/ptid.h (ptid_match): ... here.
6241
6242 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6243
6244 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6245 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6246 gdb_target_obs.
6247
6248 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6249
6250 * obsd-tdep.c (obsd_auxv_parse): New function.
6251 (obsd_init_abi): Set auxv_parse.
6252
6253 * gdbarch.sh (auxv_parse): New.
6254 * gdbarch.h: Regenerated.
6255 * gdbarch.c: Regenerated.
6256 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6257
6258 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6259
6260 * guile/scm-value.c (gdbscm_history_append_x): New function.
6261 (value_functions): Add it.
6262
6263 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6264
6265 * dwarf2read.c (attr_value_as_address): New function.
6266 (dwarf2_find_base_address, read_call_site_scope): Use
6267 attr_value_as_address in place of DW_ADDR.
6268 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6269 the low and high addresses. Slight rework of the handling
6270 of the high pc being a constant form, and limit it to
6271 DWARF verson 4 or higher.
6272 (dwarf2_record_block_ranges): Likewise.
6273 (read_partial_die): Likewise.
6274 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6275
6276 2014-02-26 Tom Tromey <tromey@redhat.com>
6277
6278 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6279
6280 2014-02-26 Tom Tromey <tromey@redhat.com>
6281
6282 * elfread.c (elf_read_minimal_symbols): Return early if
6283 minimal symbols have already been read. Add "ei" parameter.
6284 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6285 * minsyms.c (prim_record_minimal_symbol_full): Update.
6286 * objfiles.h (struct objstats) <n_minsyms>: Move...
6287 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6288 * symmisc.c (print_objfile_statistics): Update.
6289
6290 2014-02-26 Tom Tromey <tromey@redhat.com>
6291
6292 * elfread.c (elf_read_minimal_symbols): New function, from
6293 elf_symfile_read.
6294 (elf_symfile_read): Call it.
6295
6296 2014-02-26 Tom Tromey <tromey@redhat.com>
6297
6298 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6299 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6300 (lookup_minimal_symbol_solib_trampoline)
6301 (lookup_minimal_symbol_by_pc_section_1)
6302 (lookup_minimal_symbol_and_objfile): Update.
6303 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6304 Don't allocate a minimal symbol if minsyms have already been read.
6305 (build_minimal_symbol_hash_tables): Update.
6306 (install_minimal_symbols): Do nothing if minsyms already read.
6307 Use the per-BFD obstack.
6308 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6309 * objfiles.c (allocate_objfile): Call
6310 terminate_minimal_symbol_table later.
6311 (have_minimal_symbols): Update.
6312 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6313 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6314 Move from struct objfile.
6315 <minsyms_read>: New field.
6316 (struct objfile) <msymbols, minimal_symbol_count,
6317 msymbol_hash, msymbol_demangled_hash>: Move.
6318 (ALL_OBJFILE_MSYMBOLS): Update.
6319 * symfile.c (read_symbols): Set minsyms_read.
6320 (reread_symbols): Update.
6321 * symmisc.c (dump_objfile, dump_msymbols): Update.
6322
6323 2014-02-26 Tom Tromey <tromey@redhat.com>
6324
6325 * minsyms.c (msymbols_sort): Remove.
6326 * minsyms.h (msymbols_sort): Remove.
6327 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6328 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6329 * elfread.c (elf_symtab_read): Don't add section offsets.
6330 * xcoffread.c (record_minimal_symbol): Don't add section offset
6331 to minimal symbol address.
6332 * somread.c (text_offset, data_offset): Remove.
6333 (som_symtab_read): Don't add section offsets to minimal symbol
6334 addresses.
6335 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6336 Don't add section offsets to minimal symbols.
6337 * coffread.c (coff_symtab_read): Don't add section offsets
6338 to minimal symbol addresses.
6339 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6340 to minimal symbol addresses.
6341 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6342 section offset to minimal symbol addresses.
6343 * mdebugread.c (parse_partial_symbols): Don't add section
6344 offset to minimal symbol addresses.
6345 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6346 offset to minimal symbol addresses.
6347
6348 2014-02-26 Tom Tromey <tromey@redhat.com>
6349
6350 * ada-lang.c (ada_main_name): Update.
6351 (ada_add_standard_exceptions): Update.
6352 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6353 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6354 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6355 * auxv.c (ld_so_xfer_auxv): Update.
6356 * avr-tdep.c (avr_scan_prologue): Update.
6357 * ax-gdb.c (gen_var_ref): Update.
6358 * blockframe.c (get_pc_function_start)
6359 (find_pc_partial_function_gnu_ifunc): Update.
6360 * breakpoint.c (create_overlay_event_breakpoint)
6361 (create_longjmp_master_breakpoint)
6362 (create_std_terminate_master_breakpoint)
6363 (create_exception_master_breakpoint): Update.
6364 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6365 * c-valprint.c (c_val_print): Update.
6366 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6367 * common/agent.c (agent_look_up_symbols): Update.
6368 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6369 * dwarf2loc.c (call_site_to_target_addr): Update.
6370 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6371 * elfread.c (elf_gnu_ifunc_record_cache)
6372 (elf_gnu_ifunc_resolve_by_got): Update.
6373 * findvar.c (default_read_var_value): Update.
6374 * frame.c (inside_main_func): Update.
6375 * frv-tdep.c (frv_frame_this_id): Update.
6376 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6377 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6378 Update.
6379 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6380 (hppa_hpux_find_dummy_bpaddr): Update.
6381 * hppa-tdep.c (hppa_symbol_address): Update.
6382 * infcmd.c (until_next_command): Update.
6383 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6384 Update.
6385 * linespec.c (minsym_found, add_minsym): Update.
6386 * linux-nat.c (get_signo): Update.
6387 * linux-thread-db.c (inferior_has_bug): Update.
6388 * m32c-tdep.c (m32c_return_value)
6389 (m32c_m16c_address_to_pointer): Update.
6390 * m32r-tdep.c (m32r_frame_this_id): Update.
6391 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6392 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6393 * maint.c (maintenance_translate_address): Update.
6394 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6395 (frob_address): New function.
6396 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6397 frob_address. Rename parameter to "pc_in".
6398 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6399 addresses.
6400 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6401 Update.
6402 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6403 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6404 * objc-lang.c (find_objc_msgsend): Update.
6405 * objfiles.c (objfile_relocate1): Update.
6406 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6407 * p-valprint.c (pascal_val_print): Update.
6408 * parse.c (write_exp_msymbol): Update.
6409 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6410 (ppc_elfv2_skip_entrypoint): Update.
6411 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6412 * printcmd.c (build_address_symbolic, msym_info)
6413 (address_info): Update.
6414 * proc-service.c (ps_pglobal_lookup): Update.
6415 * psymtab.c (find_pc_sect_psymtab_closer)
6416 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6417 Change msymbol parameter to bound_minimal_symbol.
6418 * ravenscar-thread.c (get_running_thread_id): Update.
6419 * remote.c (remote_check_symbols): Update.
6420 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6421 address.
6422 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6423 * solib-dsbt.c (lm_base): Update.
6424 * solib-frv.c (lm_base, main_got): Update.
6425 * solib-irix.c (locate_base): Update.
6426 * solib-som.c (som_solib_create_inferior_hook)
6427 (link_map_start): Update.
6428 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6429 * solib-svr4.c (elf_locate_base, enable_break): Update.
6430 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6431 (flush_ea_cache): Update.
6432 * stabsread.c (define_symbol, scan_file_globals): Update.
6433 * stack.c (find_frame_funname): Update.
6434 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6435 (debug_qf_find_pc_sect_symtab): Update.
6436 * symfile.c (simple_read_overlay_table)
6437 (simple_overlay_update): Update.
6438 * symfile.h (struct quick_symbol_functions)
6439 <find_pc_sect_symtab>: Change type of msymbol to
6440 bound_minimal_symbol.
6441 * symmisc.c (dump_msymbols): Update.
6442 * symtab.c (find_pc_sect_symtab_via_partial)
6443 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6444 (search_symbols, print_msymbol_info): Update.
6445 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6446 (MSYMBOL_VALUE_ADDRESS): Redefine.
6447 (BMSYMBOL_VALUE_ADDRESS): New macro.
6448 * tracepoint.c (scope_info): Update.
6449 * tui/tui-disasm.c (tui_find_disassembly_address)
6450 (tui_get_begin_asm_address): Update.
6451 * valops.c (find_function_in_inferior): Update.
6452 * value.c (value_static_field, value_fn_field): Update.
6453
6454 2014-02-26 Tom Tromey <tromey@redhat.com>
6455
6456 * ada-lang.c (ada_update_initial_language): Update.
6457 (ada_main_name, ada_has_this_exception_support): Update.
6458 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6459 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6460 * arm-tdep.c (arm_skip_stub): Update.
6461 * auxv.c (ld_so_xfer_auxv): Update.
6462 * avr-tdep.c (avr_scan_prologue): Update.
6463 * ax-gdb.c (gen_var_ref): Update.
6464 * breakpoint.c (struct breakpoint_objfile_data)
6465 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6466 type to bound_minimal_symbol.
6467 (create_overlay_event_breakpoint)
6468 (create_longjmp_master_breakpoint)
6469 (create_std_terminate_master_breakpoint)
6470 (create_exception_master_breakpoint): Update.
6471 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6472 * c-exp.y (classify_name): Update.
6473 * coffread.c (coff_symfile_read): Update.
6474 * common/agent.c (agent_look_up_symbols): Update.
6475 * d-lang.c (d_main_name): Update.
6476 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6477 * dec-thread.c (enable_dec_thread): Update.
6478 * dwarf2loc.c (call_site_to_target_addr): Update.
6479 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6480 * eval.c (evaluate_subexp_standard): Update.
6481 * findvar.c (struct minsym_lookup_data) <result>: Change type
6482 to bound_minimal_symbol.
6483 <objfile>: Remove.
6484 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6485 * frame.c (inside_main_func): Update.
6486 * frv-tdep.c (frv_frame_this_id): Update.
6487 * gcore.c (call_target_sbrk): Update.
6488 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6489 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6490 Update.
6491 * go-lang.c (go_main_name): Update.
6492 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6493 (hppa_hpux_find_import_stub_for_addr): Update.
6494 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6495 Update. Change return type.
6496 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6497 type.
6498 * jit.c (jit_breakpoint_re_set_internal): Update.
6499 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6500 Update.
6501 * linux-nat.c (get_signo): Update.
6502 * linux-thread-db.c (inferior_has_bug): Update
6503 * m32c-tdep.c (m32c_return_value)
6504 (m32c_m16c_address_to_pointer): Update.
6505 * m32r-tdep.c (m32r_frame_this_id): Update.
6506 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6507 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6508 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6509 lookup_minimal_symbol. Change return type.
6510 (lookup_minimal_symbol): Remove.
6511 (lookup_bound_minimal_symbol): Update.
6512 (lookup_minimal_symbol_text): Change return type.
6513 (lookup_minimal_symbol_solib_trampoline): Change return type.
6514 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6515 (lookup_minimal_symbol_solib_trampoline): Change return type.
6516 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6517 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6518 (value_nsstring, find_imps): Update.
6519 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6520 * p-lang.c (pascal_main_name): Update.
6521 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6522 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6523 * proc-service.c (ps_pglobal_lookup): Update.
6524 * ravenscar-thread.c (get_running_thread_msymbol): Change
6525 return type.
6526 (has_ravenscar_runtime, get_running_thread_id): Update.
6527 * remote.c (remote_check_symbols): Update.
6528 * sol-thread.c (ps_pglobal_lookup): Update.
6529 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6530 * solib-dsbt.c (lm_base): Update.
6531 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6532 Update.
6533 * solib-irix.c (locate_base): Update.
6534 * solib-som.c (som_solib_create_inferior_hook)
6535 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6536 Update.
6537 * solib-spu.c (spu_enable_break): Update.
6538 * solib-svr4.c (elf_locate_base, enable_break): Update.
6539 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6540 (flush_ea_cache): Update.
6541 * stabsread.c (define_symbol): Update.
6542 * symfile.c (simple_read_overlay_table): Update.
6543 * symtab.c (find_pc_sect_line): Update.
6544 * tracepoint.c (scope_info): Update.
6545 * tui-disasm.c (tui_get_begin_asm_address): Update.
6546 * value.c (value_static_field): Update.
6547
6548 2014-02-26 Tom Tromey <tromey@redhat.com>
6549
6550 * minsyms.c (prim_record_minimal_symbol_full): Use
6551 SET_MSYMBOL_VALUE_ADDRESS.
6552 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6553 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6554 SET_MSYMBOL_VALUE_ADDRESS.
6555 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6556 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6557
6558 2014-02-26 Tom Tromey <tromey@redhat.com>
6559
6560 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6561 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6562 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6563 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6564 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6565 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6566 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6567 * ada-lang.c (ada_main_name): Update.
6568 (ada_lookup_simple_minsym): Update.
6569 (ada_make_symbol_completion_list): Update.
6570 (ada_add_standard_exceptions): Update.
6571 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6572 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6573 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6574 * arm-tdep.c (skip_prologue_function): Update.
6575 (arm_skip_stack_protector, arm_skip_stub): Update.
6576 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6577 (arm_wince_skip_main_prologue): Update.
6578 * auxv.c (ld_so_xfer_auxv): Update.
6579 * avr-tdep.c (avr_scan_prologue): Update.
6580 * ax-gdb.c (gen_var_ref): Update.
6581 * block.c (call_site_for_pc): Update.
6582 * blockframe.c (get_pc_function_start): Update.
6583 (find_pc_partial_function_gnu_ifunc): Update.
6584 * breakpoint.c (create_overlay_event_breakpoint): Update.
6585 (create_longjmp_master_breakpoint): Update.
6586 (create_std_terminate_master_breakpoint): Update.
6587 (create_exception_master_breakpoint): Update.
6588 (resolve_sal_pc): Update.
6589 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6590 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6591 Update.
6592 * c-valprint.c (c_val_print): Update.
6593 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6594 * coffread.c (coff_symfile_read): Update.
6595 * common/agent.c (agent_look_up_symbols): Update.
6596 * dbxread.c (find_stab_function_addr): Update.
6597 (end_psymtab): Update.
6598 * dwarf2loc.c (call_site_to_target_addr): Update.
6599 (func_verify_no_selftailcall): Update.
6600 (tailcall_dump): Update.
6601 (call_site_find_chain_1): Update.
6602 (dwarf_expr_reg_to_entry_parameter): Update.
6603 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6604 (elf_gnu_ifunc_resolve_by_got): Update.
6605 * f-valprint.c (info_common_command): Update.
6606 * findvar.c (read_var_value): Update.
6607 * frame.c (get_prev_frame_1): Update.
6608 (inside_main_func): Update.
6609 * frv-tdep.c (frv_skip_main_prologue): Update.
6610 (frv_frame_this_id): Update.
6611 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6612 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6613 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6614 (gnuv3_skip_trampoline): Update.
6615 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6616 (hppa64_hpux_in_solib_call_trampoline): Update.
6617 (hppa_hpux_skip_trampoline_code): Update.
6618 (hppa64_hpux_search_dummy_call_sequence): Update.
6619 (hppa_hpux_find_import_stub_for_addr): Update.
6620 (hppa_hpux_find_dummy_bpaddr): Update.
6621 * hppa-tdep.c (hppa_symbol_address)
6622 (hppa_lookup_stub_minimal_symbol): Update.
6623 * i386-tdep.c (i386_skip_main_prologue): Update.
6624 (i386_pe_skip_trampoline_code): Update.
6625 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6626 * infcall.c (get_function_name): Update.
6627 * infcmd.c (until_next_command): Update.
6628 * jit.c (jit_breakpoint_re_set_internal): Update.
6629 (jit_inferior_init): Update.
6630 * linespec.c (minsym_found): Update.
6631 (add_minsym): Update.
6632 * linux-fork.c (info_checkpoints_command): Update.
6633 * linux-nat.c (get_signo): Update.
6634 * linux-thread-db.c (inferior_has_bug): Update.
6635 * m32c-tdep.c (m32c_return_value): Update.
6636 (m32c_m16c_address_to_pointer): Update.
6637 (m32c_m16c_pointer_to_address): Update.
6638 * m32r-tdep.c (m32r_frame_this_id): Update.
6639 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6640 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6641 * maint.c (maintenance_translate_address): Update.
6642 * minsyms.c (add_minsym_to_hash_table): Update.
6643 (add_minsym_to_demangled_hash_table): Update.
6644 (msymbol_objfile): Update.
6645 (lookup_minimal_symbol): Update.
6646 (iterate_over_minimal_symbols): Update.
6647 (lookup_minimal_symbol_text): Update.
6648 (lookup_minimal_symbol_by_pc_name): Update.
6649 (lookup_minimal_symbol_solib_trampoline): Update.
6650 (lookup_minimal_symbol_by_pc_section_1): Update.
6651 (lookup_minimal_symbol_and_objfile): Update.
6652 (prim_record_minimal_symbol_full): Update.
6653 (compare_minimal_symbols): Update.
6654 (compact_minimal_symbols): Update.
6655 (build_minimal_symbol_hash_tables): Update.
6656 (install_minimal_symbols): Update.
6657 (terminate_minimal_symbol_table): Update.
6658 (find_solib_trampoline_target): Update.
6659 (minimal_symbol_upper_bound): Update.
6660 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6661 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6662 (mips_skip_pic_trampoline_code): Update.
6663 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6664 * objc-lang.c (selectors_info): Update.
6665 (classes_info): Update.
6666 (find_methods): Update.
6667 (find_imps): Update.
6668 (find_objc_msgsend): Update.
6669 * objfiles.c (objfile_relocate1): Update.
6670 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6671 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6672 * p-valprint.c (pascal_val_print): Update.
6673 * parse.c (write_exp_msymbol): Update.
6674 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6675 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6676 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6677 * printcmd.c (build_address_symbolic): Update.
6678 (sym_info): Update.
6679 (address_info): Update.
6680 * proc-service.c (ps_pglobal_lookup): Update.
6681 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6682 (find_pc_sect_psymtab): Update.
6683 * python/py-framefilter.c (py_print_frame): Update.
6684 * ravenscar-thread.c (get_running_thread_id): Update.
6685 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6686 Update.
6687 * remote.c (remote_check_symbols): Update.
6688 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6689 (rs6000_skip_trampoline_code): Update.
6690 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6691 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6692 * solib-dsbt.c (lm_base): Update.
6693 * solib-frv.c (lm_base): Update.
6694 (main_got): Update.
6695 * solib-irix.c (locate_base): Update.
6696 * solib-som.c (som_solib_create_inferior_hook): Update.
6697 (som_solib_desire_dynamic_linker_symbols): Update.
6698 (link_map_start): Update.
6699 * solib-spu.c (spu_enable_break): Update.
6700 (ocl_enable_break): Update.
6701 * solib-svr4.c (elf_locate_base): Update.
6702 (enable_break): Update.
6703 * spu-tdep.c (spu_get_overlay_table): Update.
6704 (spu_catch_start): Update.
6705 (flush_ea_cache): Update.
6706 * stabsread.c (define_symbol): Update.
6707 (scan_file_globals): Update.
6708 * stack.c (find_frame_funname): Update.
6709 (frame_info): Update.
6710 * symfile.c (simple_read_overlay_table): Update.
6711 (simple_overlay_update): Update.
6712 * symmisc.c (dump_msymbols): Update.
6713 * symtab.c (fixup_section): Update.
6714 (find_pc_sect_line): Update.
6715 (skip_prologue_sal): Update.
6716 (search_symbols): Update.
6717 (print_msymbol_info): Update.
6718 (rbreak_command): Update.
6719 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6720 (completion_list_objc_symbol): Update.
6721 (default_make_symbol_completion_list_break_on): Update.
6722 * tracepoint.c (scope_info): Update.
6723 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6724 (tui_get_begin_asm_address): Update.
6725 * valops.c (find_function_in_inferior): Update.
6726 * value.c (value_static_field): Update.
6727 (value_fn_field): Update.
6728
6729 2014-02-26 Tom Tromey <tromey@redhat.com>
6730
6731 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6732 bound minimal symbols. Move code that knows about minsym
6733 table layout...
6734 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6735 function.
6736 * minsyms.h (minimal_symbol_upper_bound): Declare.
6737 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6738 minimal_symbol_upper_bound.
6739
6740 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6741
6742 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6743 Use the type's name if its basic type does not have a tag.
6744
6745 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6746
6747 * dwarf2read.c (read_subrange_type): Add comment.
6748
6749 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6750
6751 * dwarf2read.c (update_enumeration_type_from_children): New
6752 function, mostly extracted from process_structure_scope.
6753 (read_enumeration_type): Call update_enumeration_type_from_children.
6754 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6755 and flag_flag_enum fields.
6756
6757 2014-02-26 Pedro Alves <palves@redhat.com>
6758
6759 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6760 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6761 to_xfer_partial method.
6762
6763 2014-02-26 Pedro Alves <palves@redhat.com>
6764
6765 * target.c (complete_target_initialization): Don't install
6766 default_xfer_partial as to_xfer_partial hook.
6767 (nomemory): Delete.
6768 (update_current_target): Don't INHERIT nor de_fault
6769 deprecated_xfer_memory. Delete de_fault macro.
6770 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6771 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6772 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6773 field.
6774
6775 2014-02-26 Pedro Alves <palves@redhat.com>
6776
6777 * go32-nat.c (my_write_child): New function.
6778 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6779 (go32_xfer_partial): New function.
6780 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6781 Instead install a to_xfer_partial hook.
6782
6783 2014-02-26 Pedro Alves <palves@redhat.com>
6784
6785 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6786 to_xfer_partial helper. Rewrite.
6787 (procfs_xfer_partial): New function.
6788 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6789 Install a to_xfer_partial hook.
6790
6791 2014-02-26 Pedro Alves <palves@redhat.com>
6792
6793 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6794 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6795 (m32r_xfer_partial): New function.
6796 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6797 Install a to_xfer_partial hook.
6798
6799 2014-02-26 Pedro Alves <palves@redhat.com>
6800
6801 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6802 helper.
6803 (mips_xfer_partial): New function.
6804 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6805 hook. Install a to_xfer_partial hook.
6806
6807 2014-02-26 Joel Brobecker <brobecker@adacore.com>
6808
6809 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6810 * gdbtypes.c (create_array_type_with_stride): New function,
6811 renaming create_array_type, but with an added parameter
6812 called "bit_stride".
6813 (create_array_type): Re-implement using
6814 create_array_type_with_stride.
6815 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6816 and DW_AT_bit_stride attributes.
6817
6818 2014-02-26 Pedro Alves <palves@redhat.com>
6819
6820 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6821 task-specific breakpoints.
6822
6823 2014-02-25 Pedro Alves <palves@redhat.com>
6824
6825 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6826 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6827
6828 2014-02-25 Stan Shebs <stan@codesourcery.com>
6829
6830 * defs.h: Annotate comments for Doxygen.
6831
6832 2014-02-25 Tom Tromey <tromey@redhat.com>
6833
6834 * target.h (target_ignore): Don't declare.
6835 * target.c (target_ignore): Remove.
6836
6837 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6838
6839 PR gdb/16626
6840 * auto-load.c (auto_load_objfile_script_1): Change filename to
6841 debugfile.
6842
6843 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6844
6845 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6846 documentation. Adjust prototype to match the target_ops
6847 to_xfer_partial method. Adjust implementation accordingly.
6848
6849 2014-02-25 Hui Zhu <hui@codesourcery.com>
6850
6851 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6852 to_traceframe_info.
6853
6854 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6855
6856 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6857 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6858 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6859 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6860 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6861 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6862 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6863 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6864 New constants.
6865 (rl78_register_type): Use a data pointer type for SP and
6866 new pseudo registers mentioned above. Use a 16 bit integer
6867 type for all other register pairs.
6868 (rl78_register_name, rl78_g10_register_name): Update for
6869 new pseudo registers.
6870 (rl78_pseudo_register_read): Likewise.
6871 (rl78_pseudo_register_write): Likewise.
6872 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6873 to the newly added pseudo registers.
6874
6875 2014-02-24 Doug Evans <dje@google.com>
6876
6877 * value.c (record_latest_value): Fix comment.
6878 * printcmd.c (print_command_1): Remove code to handle -1 return from
6879 record_latest_value.
6880
6881 2014-02-24 Pedro Alves <palves@redhat.com>
6882
6883 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6884 deprecated_xfer_memory hook.
6885 (procfs_xfer_partial): Call procfs_xfer_memory instead
6886 of the deprecated_xfer_memory target hook.
6887 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6888 helper.
6889
6890 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6891
6892 * windows-nat.c (windows_xfer_shared_libraries): Return
6893 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6894 requested object is TARGET_OBJECT_LIBRARIES.
6895
6896 2014-02-24 Yao Qi <yao@codesourcery.com>
6897
6898 * target.h (enum target_xfer_status)
6899 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6900 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6901 explicitly. New.
6902 * corefile.c (memory_error_message): User updated.
6903 * exec.c (section_table_read_available_memory): Likewise.
6904 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6905 * target.c (target_xfer_status_to_string): Likewise.
6906 (raw_memory_xfer_partial): Likewise.
6907 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6908 * valops.c (read_value_memory): Likewise.
6909 * exec.h: Update comments.
6910
6911 2014-02-24 Yao Qi <yao@codesourcery.com>
6912
6913 * target.c (target_xfer_status_to_string): Rename argument err
6914 to status.
6915 * target.h (target_xfer_status_to_string): Update declaration.
6916 Replace target_xfer_error_to_string with
6917 target_xfer_status_to_string in comment.
6918
6919 2014-02-24 Yao Qi <yao@codesourcery.com>
6920
6921 * mips-linux-nat.c (super_close): Update its type.
6922 (mips_linux_close): Pass 'self' to super_close.
6923
6924 2014-02-24 Yao Qi <yao@codesourcery.com>
6925
6926 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6927 * corefile.c (read_memory): Adjusted.
6928 * target.c (target_write_with_progress): Adjusted.
6929
6930 2014-02-23 Yao Qi <yao@codesourcery.com>
6931
6932 Revert two patches:
6933
6934 2013-10-25 Yao Qi <yao@codesourcery.com>
6935
6936 * remote.c (remote_traceframe_info): Return early if
6937 traceframe is not selected.
6938
6939 2013-07-19 Yao Qi <yao@codesourcery.com>
6940
6941 * target.c (update_current_target): Change the default action
6942 of 'to_traceframe_info' from tcomplain to return_zero.
6943 * target.h (struct target_ops) <to_traceframe_info>: Add more
6944 comments.
6945
6946 2014-02-23 Yao Qi <yao@codesourcery.com>
6947
6948 * valops.c (read_value_memory): Rewrite it. Call
6949 target_xfer_partial in a loop.
6950 * exec.h (section_table_available_memory): Remove declaration.
6951 Move comments to ...
6952 * exec.c (section_table_available_memory): ... here. Make it
6953 static.
6954
6955 2014-02-23 Yao Qi <yao@codesourcery.com>
6956
6957 * exec.c (section_table_read_available_memory): New function.
6958 * exec.h (section_table_read_available_memory): Declare.
6959 * ctf.c (ctf_xfer_partial): Call
6960 section_table_read_available_memory.
6961 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6962
6963 2014-02-23 Yao Qi <yao@codesourcery.com>
6964
6965 * ctf.c (ctf_xfer_partial): Move code to ...
6966 * exec.c (exec_read_partial_read_only): ... it. New function.
6967 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6968 * tracefile.c: Include "exec.h".
6969 * exec.h (exec_read_partial_read_only): Declare.
6970
6971 2014-02-23 Yao Qi <yao@codesourcery.com>
6972
6973 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6974 (tfile_has_memory): Remove.
6975 (init_tfile_ops): Don't set fields to_has_all_memory and
6976 to_has_memory of tfile_ops.
6977 * tracefile.c (tracefile_has_all_memory): New function.
6978 (tracefile_has_memory): New function.
6979 (init_tracefile_ops): Initialize fields to_has_all_memory and
6980 to_has_memory of 'ops'.
6981
6982 2014-02-23 Yao Qi <yao@codesourcery.com>
6983
6984 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6985 (ctf_thread_alive, ctf_get_trace_status): Remove.
6986 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6987 init_tracefile_ops.
6988 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6989 (tfile_has_stack, tfile_has_registers): Remove.
6990 (tfile_thread_alive): Remove.
6991 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6992 init_tracefile_ops.
6993 * tracefile.c (tracefile_has_stack): New function.
6994 (tracefile_has_registers): New function.
6995 (tracefile_thread_alive): New function.
6996 (tracefile_get_trace_status): New function.
6997 (init_tracefile_ops): New function.
6998 * tracefile.h (init_tracefile_ops): Declare.
6999
7000 2014-02-23 Yao Qi <yao@codesourcery.com>
7001
7002 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7003 (O_LARGEFILE): Likewise.
7004 (tfile_ops): Likewise.
7005 (TRACE_HEADER_SIZE): Likewise.
7006 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7007 (cur_data_size): Likewise.
7008 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7009 (tfile_close, tfile_files_info): Likewise.
7010 (tfile_get_trace_status): Likewise.
7011 (tfile_get_tracepoint_status): Likewise.
7012 (tfile_get_traceframe_address): Likewise.
7013 (tfile_trace_find, match_blocktype): Likewise.
7014 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7015 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7016 (tfile_get_trace_state_variable_value): Likewise.
7017 (tfile_has_all_memory, tfile_has_memory): Likewise.
7018 (tfile_has_stack, tfile_has_registers): Likewise.
7019 (tfile_thread_alive, build_traceframe_info): Likewise.
7020 (tfile_traceframe_info, init_tfile_ops): Likewise.
7021 (_initialize_tracepoint): Don't call init_tfile_ops
7022 and add_target_with_completer.
7023 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7024 exec.h, completer.h and filenames.h.
7025 (_initialize_tracefile_tfile): New function.
7026
7027 2014-02-23 Yao Qi <yao@codesourcery.com>
7028
7029 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7030 tracefile-tfile.o.
7031 (HFILES_NO_SRCDIR): Add tracefile.h.
7032 * ctf.c: Include "tracefile.h".
7033 * tracefile.h: New file.
7034 * tracefile.c: New file
7035 * tracefile-tfile.c: New file.
7036 * tracepoint.c: Include "tracefile.h".
7037 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7038 (stop_reason_names): Add const.
7039 (trace_file_writer_xfree): Move it to tracefile.c.
7040 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7041 (trace_save_ctf): Likewise.
7042 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7043 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7044 (tfile_write_header, tfile_write_regblock_type): Likewise.
7045 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7046 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7047 (tfile_write_raw_data, tfile_end): Likewise.
7048 (tfile_trace_file_writer_new): Likewise.
7049 (free_uploaded_tp): Make it extern.
7050 (free_uploaded_tsv): Make it extern.
7051 (_initialize_tracepoint): Move code to register command 'tsave'
7052 to tracefile.c.
7053 * tracepoint.h (stop_reason_names): Declare.
7054 (struct trace_frame_write_ops): Move it to tracefile.h.
7055 (struct trace_file_write_ops): Likewise.
7056 (struct trace_file_writer): Likewise.
7057 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7058
7059 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7060
7061 PR gdb/16594
7062 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7063 process name.
7064 (get_cores_used_by_process): New parameter num_cores, use it.
7065 (linux_xfer_osdata_processes): Pass num_cores to it.
7066 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7067 process name.
7068
7069 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7070
7071 * target.c (memory_xfer_partial): Fix length arg in call to
7072 breakpoint_xfer_memory.
7073
7074 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7075
7076 PR tdep/16397
7077 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7078 number comes after the + or - signs. Adjust length of register
7079 name to be extracted.
7080
7081 2014-02-20 Tom Tromey <tromey@redhat.com>
7082
7083 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7084 (ada_varobj_ops): Mark "extern".
7085
7086 2014-02-20 Tom Tromey <tromey@redhat.com>
7087
7088 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7089
7090 2014-02-20 Doug Evans <xdje42@gmail.com>
7091
7092 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7093 All callers updated.
7094 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7095 All callers updated.
7096 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7097 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7098
7099 2014-02-20 lin zuojian <manjian2006@gmail.com>
7100 Joel Brobecker <brobecker@adacore.com>
7101 Doug Evans <xdje42@gmail.com>
7102
7103 PR symtab/16581
7104 * dwarf2read.c (struct die_info): New member in_process.
7105 (reset_die_in_process): New function.
7106 (process_die): Set it at the start, reset when returning.
7107 (inherit_abstract_dies): Only call process_die if origin_child_die
7108 not already being processed.
7109
7110 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7111
7112 * windows-nat.c (handle_unload_dll): Add function documentation.
7113 (do_initial_windows_stuff): Add comment explaining why we wait
7114 until after inferior initialization has finished before
7115 processing all DLLs.
7116
7117 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7118
7119 * windows-nat.c (get_module_name): Delete.
7120 (windows_get_exec_module_filename): New function, mostly
7121 inspired from get_module_name.
7122 (windows_pid_to_exec_file): Replace call to get_module_name
7123 by call to windows_get_exec_module_filename.
7124
7125 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7126
7127 * windows-nat.c (handle_load_dll): Rewrite this function's
7128 introductory comment. Remove code using get_module_name
7129 to get the DLL's name.
7130
7131 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7132
7133 * windows-nat.c (get_windows_debug_event): Ignore
7134 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7135 if windows_initialization_done == 0.
7136 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7137 Adjust implementation to always load all DLLs.
7138 (do_initial_windows_stuff): Replace call to
7139 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7140
7141 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7142
7143 * windows-nat.c (_initialize_windows_nat): Deprecate the
7144 "dll-symbols" command. Turn the "add-shared-symbol-files"
7145 and "assf" aliases into commands, and deprecate them as well.
7146 * NEWS: Add entry explaining that "dll-symbols" and its two
7147 aliases are now deprecated.
7148
7149 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7150
7151 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7152 new-line in debug string. Remove trailing spaces.
7153
7154 2014-02-19 Stan Shebs <stan@codesourcery.com>
7155
7156 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7157
7158 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7159
7160 * NEWS: Add entry for the new feature
7161 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7162 and class values.
7163
7164 2014-02-19 Stan Shebs <stan@codesourcery.com>
7165
7166 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7167
7168 2014-02-19 Pedro Alves <palves@redhat.com>
7169
7170 * common/ptid.h (struct ptid): Mention that process_stratum
7171 targets should prefer ptid.lwp.
7172
7173 2014-02-19 Pedro Alves <palves@redhat.com>
7174
7175 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7176 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7177 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7178 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7179 store remote thread ids rather than ptid.tid.
7180 (_initialize_remote): Adjust.
7181
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7183
7184 * target.c (target_get_unwinder): Rewrite.
7185 (target_get_tailcall_unwinder): Rewrite.
7186 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7187 (record_btrace_to_get_tailcall_unwinder): New function.
7188 (init_record_btrace_ops): Update.
7189 * target.h (struct target_ops) <to_get_unwinder,
7190 to_get_tailcall_unwinder>: Now function pointers. Use
7191 TARGET_DEFAULT_RETURN.
7192
7193 2014-02-19 Tom Tromey <tromey@redhat.com>
7194
7195 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7196 argument.
7197 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7198
7199 2014-02-19 Tom Tromey <tromey@redhat.com>
7200
7201 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7202 directly.
7203 * target-delegates.c: Rebuild.
7204 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7205 TARGET_DEFAULT_FUNC.
7206 * target.c (default_target_decr_pc_after_break): Rename from
7207 forward_target_decr_pc_after_break. Simplify.
7208 (target_decr_pc_after_break): Rely on delegation.
7209
7210 2014-02-19 Tom Tromey <tromey@redhat.com>
7211
7212 * target.c (update_current_target): Do not INHERIT to_doc or
7213 to_magic. Do not de_fault to_open or to_close.
7214
7215 2014-02-19 Tom Tromey <tromey@redhat.com>
7216
7217 * gcore.h (objfile_find_memory_regions): Declare.
7218 * gcore.c (objfile_find_memory_regions): No longer static. Add
7219 "self" argument.
7220 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7221 * exec.c: Include gcore.h.
7222 (exec_set_find_memory_regions): Remove.
7223 (exec_find_memory_regions): Remove.
7224 (exec_do_find_memory_regions): Remove.
7225 (init_exec_ops): Update.
7226 * defs.h (exec_set_find_memory_regions): Remove.
7227
7228 2014-02-19 Tom Tromey <tromey@redhat.com>
7229
7230 * target-delegates.c: Rebuild.
7231 * target.h (struct target_ops) <to_extra_thread_info,
7232 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7233 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7234 not 0, in TARGET_DEFAULT_RETURN.
7235
7236 2014-02-19 Tom Tromey <tromey@redhat.com>
7237
7238 * target.c (complete_target_initialization): Remove casts. Use
7239 return_zero_has_execution.
7240 (return_zero): Add "ignore" argument.
7241 (return_zero_has_execution): New function.
7242 (init_dummy_target): Remove casts. Use
7243 return_zero_has_execution.
7244
7245 2014-02-19 Tom Tromey <tromey@redhat.com>
7246
7247 * target.c (update_current_target): Update comments. Do not
7248 INHERIT to_stratum.
7249
7250 2014-02-19 Tom Tromey <tromey@redhat.com>
7251
7252 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7253 needed.
7254 * corelow.c (core_read_description): Delegate when needed.
7255 * remote.c (remote_read_description): Delegate when needed.
7256 * target-delegates.c: Rebuild.
7257 * target.c (target_read_description): Rewrite.
7258 * target.h (struct target_ops) <to_read_description>: Update
7259 comment. Use TARGET_DEFAULT_RETURN.
7260
7261 2014-02-19 Tom Tromey <tromey@redhat.com>
7262
7263 * target-delegates.c: Rebuild.
7264 * target.c (update_current_target): Don't inherit or default
7265 to_can_run.
7266 (find_default_run_target): Check against delegate_can_run.
7267 * target.h (struct target_ops) <to_can_run>: Use
7268 TARGET_DEFAULT_RETURN.
7269
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7271
7272 * target-delegates.c: Rebuild.
7273 * target.c (target_disconnect): Unconditionally delegate.
7274 * target.h (struct target_ops) <to_disconnect>: Use
7275 TARGET_DEFAULT_NORETURN.
7276
7277 2014-02-19 Tom Tromey <tromey@redhat.com>
7278
7279 * record.c (record_stop): Unconditionally delegate.
7280 * target-delegates.c: Rebuild.
7281 * target.c (target_stop_recording): Unconditionally delegate.
7282 * target.h (struct target_ops) <to_stop_recording>: Use
7283 TARGET_DEFAULT_IGNORE.
7284
7285 2014-02-19 Tom Tromey <tromey@redhat.com>
7286
7287 * target-delegates.c: Rebuild.
7288 * target.c (target_enable_btrace): Unconditionally delegate.
7289 * target.h (struct target_ops) <to_enable_btrace>: Use
7290 TARGET_DEFAULT_NORETURN.
7291
7292 2014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target-delegates.c: Rebuild.
7295 * target.c (target_read_btrace): Unconditionally delegate.
7296 * target.h (struct target_ops) <to_read_btrace>: Use
7297 TARGET_DEFAULT_NORETURN.
7298
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7300
7301 * target-delegates.c: Rebuild.
7302 * target.c (target_teardown_btrace): Unconditionally delegate.
7303 * target.h (struct target_ops) <to_teardown_btrace>: Use
7304 TARGET_DEFAULT_NORETURN.
7305
7306 2014-02-19 Tom Tromey <tromey@redhat.com>
7307
7308 * target-delegates.c: Rebuild.
7309 * target.c (target_disable_btrace): Unconditionally delegate.
7310 * target.h (struct target_ops) <to_disable_btrace>: Use
7311 TARGET_DEFAULT_NORETURN.
7312
7313 2014-02-19 Tom Tromey <tromey@redhat.com>
7314
7315 * target-delegates.c: Rebuild.
7316 * target.c (default_search_memory): New function.
7317 (simple_search_memory): Update comment.
7318 (target_search_memory): Unconditionally delegate.
7319 * target.h (struct target_ops) <to_search_memory>: Use
7320 TARGET_DEFAULT_FUNC.
7321
7322 2014-02-19 Tom Tromey <tromey@redhat.com>
7323
7324 * auxv.c (default_auxv_parse): No longer static.
7325 (target_auxv_parse): Unconditionally delegate.
7326 * auxv.h (default_auxv_parse): Declare.
7327 * target-delegates.c: Rebuild.
7328 * target.c: Include auxv.h.
7329 * target.h (struct target_ops) <to_auxv_parse>: Use
7330 TARGET_DEFAULT_FUNC.
7331
7332 2014-02-19 Tom Tromey <tromey@redhat.com>
7333
7334 * target-delegates.c: Rebuild.
7335 * target.c (target_memory_map): Unconditionally delegate.
7336 * target.h (struct target_ops) <to_memory_map>: Use
7337 TARGET_DEFAULT_RETURN.
7338
7339 2014-02-19 Tom Tromey <tromey@redhat.com>
7340
7341 * target-delegates.c: Rebuild.
7342 * target.c (target_thread_alive): Unconditionally delegate.
7343 * target.h (struct target_ops) <to_thread_alive>: Use
7344 TARGET_DEFAULT_RETURN.
7345
7346 2014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target-delegates.c: Rebuild.
7349 * target.c (target_save_record): Unconditionally delegate.
7350 * target.h (struct target_ops) <to_save_record>: Use
7351 TARGET_DEFAULT_NORETURN.
7352
7353 2014-02-19 Tom Tromey <tromey@redhat.com>
7354
7355 * target-delegates.c: Rebuild.
7356 * target.c (target_delete_record): Unconditionally delegate.
7357 * target.h (struct target_ops) <to_delete_record>: Use
7358 TARGET_DEFAULT_NORETURN.
7359
7360 2014-02-19 Tom Tromey <tromey@redhat.com>
7361
7362 * target-delegates.c: Rebuild.
7363 * target.c (target_record_is_replaying): Unconditionally
7364 delegate.
7365 * target.h (struct target_ops) <to_record_is_replaying>: Use
7366 TARGET_DEFAULT_RETURN.
7367
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7369
7370 * target-delegates.c: Rebuild.
7371 * target.c (target_goto_record_begin): Unconditionally delegate.
7372 * target.h (struct target_ops) <to_goto_record_begin>: Use
7373 TARGET_DEFAULT_NORETURN.
7374
7375 2014-02-19 Tom Tromey <tromey@redhat.com>
7376
7377 * target-delegates.c: Rebuild.
7378 * target.c (target_goto_record_end): Unconditionally delegate.
7379 * target.h (struct target_ops) <to_goto_record_end>: Use
7380 TARGET_DEFAULT_NORETURN.
7381
7382 2014-02-19 Tom Tromey <tromey@redhat.com>
7383
7384 * target-delegates.c: Rebuild.
7385 * target.c (target_goto_record): Unconditionally delegate.
7386 * target.h (struct target_ops) <to_goto_record>: Use
7387 TARGET_DEFAULT_NORETURN.
7388
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7390
7391 * target-delegates.c: Rebuild.
7392 * target.c (target_insn_history): Unconditionally delegate.
7393 * target.h (struct target_ops) <to_insn_history>: Use
7394 TARGET_DEFAULT_NORETURN.
7395
7396 2014-02-19 Tom Tromey <tromey@redhat.com>
7397
7398 * target-delegates.c: Rebuild.
7399 * target.c (target_insn_history_from): Unconditionally delegate.
7400 * target.h (struct target_ops) <to_insn_history_from>: Use
7401 TARGET_DEFAULT_NORETURN.
7402
7403 2014-02-19 Tom Tromey <tromey@redhat.com>
7404
7405 * target-delegates.c: Rebuild.
7406 * target.c (target_insn_history_range): Unconditionally delegate.
7407 * target.h (struct target_ops) <to_insn_history_range>: Use
7408 TARGET_DEFAULT_NORETURN.
7409
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target-delegates.c: Rebuild.
7413 * target.c (target_call_history): Unconditionally delegate.
7414 * target.h (struct target_ops) <to_call_history>: Use
7415 TARGET_DEFAULT_NORETURN.
7416
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7418
7419 * target-delegates.c: Rebuild.
7420 * target.c (target_call_history_from): Unconditionally delegate.
7421 * target.h (struct target_ops) <to_call_history_from>: Use
7422 TARGET_DEFAULT_NORETURN.
7423
7424 2014-02-19 Tom Tromey <tromey@redhat.com>
7425
7426 * target-delegates.c: Rebuild.
7427 * target.c (target_call_history_range): Unconditionally delegate.
7428 * target.h (struct target_ops) <to_call_history_range>: Use
7429 TARGET_DEFAULT_NORETURN.
7430
7431 2014-02-19 Tom Tromey <tromey@redhat.com>
7432
7433 * target-delegates.c: Rebuild.
7434 * target.c (target_verify_memory): Unconditionally delegate.
7435 * target.h (struct target_ops) <to_verify_memory>: Use
7436 TARGET_DEFAULT_NORETURN.
7437
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7439
7440 * target-delegates.c: Rebuild.
7441 * target.c (target_core_of_thread): Unconditionally delegate.
7442 * target.h (struct target_ops) <to_core_of_thread>: Use
7443 TARGET_DEFAULT_RETURN.
7444
7445 2014-02-19 Tom Tromey <tromey@redhat.com>
7446
7447 * target-delegates.c: Rebuild.
7448 * target.c (target_flash_done): Unconditionally delegate.
7449 * target.h (struct target_ops) <to_flash_done>: Use
7450 TARGET_DEFAULT_NORETURN.
7451
7452 2014-02-19 Tom Tromey <tromey@redhat.com>
7453
7454 * target-delegates.c: Rebuild.
7455 * target.c (target_flash_erase): Unconditionally delegate.
7456 * target.h (struct target_ops) <to_flash_erase>: Use
7457 TARGET_DEFAULT_NORETURN.
7458
7459 2014-02-19 Tom Tromey <tromey@redhat.com>
7460
7461 * target-delegates.c: Rebuild.
7462 * target.c (target_get_section_table): Unconditionally delegate.
7463 * target.h (struct target_ops) <to_get_section_table>: Use
7464 TARGET_DEFAULT_RETURN.
7465
7466 2014-02-19 Tom Tromey <tromey@redhat.com>
7467
7468 * target-delegates.c: Rebuild.
7469 * target.c (target_pid_to_str): Unconditionally delegate.
7470 (init_dummy_target): Don't initialize to_pid_to_str.
7471 (default_pid_to_str): Rename from dummy_pid_to_str.
7472 * target.h (struct target_ops) <to_pid_to_str>: Use
7473 TARGET_DEFAULT_FUNC.
7474
7475 2014-02-19 Tom Tromey <tromey@redhat.com>
7476
7477 * target-delegates.c: Rebuild.
7478 * target.c (target_find_new_threads): Unconditionally delegate.
7479 * target.h (struct target_ops) <to_find_new_threads>: Use
7480 TARGET_DEFAULT_RETURN.
7481
7482 2014-02-19 Tom Tromey <tromey@redhat.com>
7483
7484 * target-delegates.c: Rebuild.
7485 * target.c (target_program_signals): Unconditionally delegate.
7486 * target.h (struct target_ops) <to_program_signals>: Use
7487 TARGET_DEFAULT_IGNORE.
7488
7489 2014-02-19 Tom Tromey <tromey@redhat.com>
7490
7491 * target-delegates.c: Rebuild.
7492 * target.c (target_pass_signals): Unconditionally delegate.
7493 * target.h (struct target_ops) <to_pass_signals>: Use
7494 TARGET_DEFAULT_IGNORE.
7495
7496 2014-02-19 Tom Tromey <tromey@redhat.com>
7497
7498 * target-delegates.c: Rebuild.
7499 * target.c (default_mourn_inferior): New function.
7500 (target_mourn_inferior): Unconditionally delegate.
7501 * target.h (struct target_ops) <to_mourn_inferior>: Use
7502 TARGET_DEFAULT_FUNC.
7503
7504 2014-02-19 Tom Tromey <tromey@redhat.com>
7505
7506 * target-delegates.c: Rebuild.
7507 * target.c (default_follow_fork): New function.
7508 (target_follow_fork): Unconditionally delegate.
7509 * target.h (struct target_ops) <to_follow_fork>: Use
7510 TARGET_DEFAULT_FUNC.
7511
7512 2014-02-19 Tom Tromey <tromey@redhat.com>
7513
7514 * target-delegates.c: Rebuild.
7515 * target.c (target_kill): Unconditionally delegate.
7516 * target.h (struct target_ops) <to_kill>: Use
7517 TARGET_DEFAULT_NORETURN.
7518
7519 2014-02-19 Tom Tromey <tromey@redhat.com>
7520
7521 * target-delegates.c: Rebuild.
7522 * target.c (target_masked_watch_num_registers): Unconditionally
7523 delegate.
7524 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7525 Use TARGET_DEFAULT_RETURN.
7526
7527 2014-02-19 Tom Tromey <tromey@redhat.com>
7528
7529 * target-delegates.c: Rebuild.
7530 * target.c (target_remove_mask_watchpoint): Unconditionally
7531 delegate.
7532 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7533 TARGET_DEFAULT_RETURN.
7534
7535 2014-02-19 Tom Tromey <tromey@redhat.com>
7536
7537 * target-delegates.c: Rebuild.
7538 * target.c (target_insert_mask_watchpoint): Unconditionally
7539 delegate.
7540 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7541 TARGET_DEFAULT_RETURN.
7542
7543 2014-02-19 Tom Tromey <tromey@redhat.com>
7544
7545 * target-delegates.c: Rebuild.
7546 * target.c (target_ranged_break_num_registers): Unconditionally
7547 delegate.
7548 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7549 Use TARGET_DEFAULT_RETURN.
7550
7551 2014-02-19 Tom Tromey <tromey@redhat.com>
7552
7553 * target-delegates.c: Rebuild.
7554 * target.c (target_fetch_registers): Unconditionally delegate.
7555 * target.h (struct target_ops) <to_fetch_registers>: Use
7556 TARGET_DEFAULT_NORETURN.
7557
7558 2014-02-19 Tom Tromey <tromey@redhat.com>
7559
7560 * target-delegates.c: Rebuild.
7561 * target.c (update_current_target): Don't inherit or default
7562 to_stop.
7563 * target.h (struct target_ops) <to_stop>: Use
7564 TARGET_DEFAULT_IGNORE.
7565
7566 2014-02-19 Tom Tromey <tromey@redhat.com>
7567
7568 * target-delegates.c: Rebuild.
7569 * target.c (update_current_target): Don't inherit or default
7570 to_can_run_breakpoint_commands.
7571 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7572 Use TARGET_DEFAULT_RETURN.
7573
7574 2014-02-19 Tom Tromey <tromey@redhat.com>
7575
7576 * target-delegates.c: Rebuild.
7577 * target.c (update_current_target): Don't inherit or default
7578 to_supports_evaluation_of_breakpoint_conditions.
7579 * target.h (struct target_ops)
7580 <to_supports_evaluation_of_breakpoint_conditions>: Use
7581 TARGET_DEFAULT_RETURN.
7582
7583 2014-02-19 Tom Tromey <tromey@redhat.com>
7584
7585 * target-delegates.c: Rebuild.
7586 * target.c (update_current_target): Don't inherit or default
7587 to_augmented_libraries_svr4_read.
7588 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7589 Use TARGET_DEFAULT_RETURN.
7590
7591 2014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * target-delegates.c: Rebuild.
7594 * target.c (update_current_target): Don't inherit or default
7595 to_can_use_agent.
7596 * target.h (struct target_ops) <to_can_use_agent>: Use
7597 TARGET_DEFAULT_RETURN.
7598
7599 2014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target-delegates.c: Rebuild.
7602 * target.c (update_current_target): Don't inherit or default
7603 to_use_agent.
7604 * target.h (struct target_ops) <to_use_agent>: Use
7605 TARGET_DEFAULT_NORETURN.
7606
7607 2014-02-19 Tom Tromey <tromey@redhat.com>
7608
7609 * target-delegates.c: Rebuild.
7610 * target.c (update_current_target): Don't inherit or default
7611 to_traceframe_info.
7612 (return_null): Remove.
7613 * target.h (struct target_ops) <to_traceframe_info>: Use
7614 TARGET_DEFAULT_RETURN.
7615
7616 2014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target-delegates.c: Rebuild.
7619 * target.c (update_current_target): Don't inherit or default
7620 to_static_tracepoint_markers_by_strid.
7621 * target.h (struct target_ops)
7622 <to_static_tracepoint_markers_by_strid>: Use
7623 TARGET_DEFAULT_NORETURN.
7624
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target-delegates.c: Rebuild.
7628 * target.c (update_current_target): Don't inherit or default
7629 to_static_tracepoint_marker_at.
7630 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7631 Use TARGET_DEFAULT_RETURN.
7632
7633 2014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * target-delegates.c: Rebuild.
7636 * target.c (update_current_target): Don't inherit or default
7637 to_set_permissions.
7638 * target.h (struct target_ops) <to_set_permissions>: Use
7639 TARGET_DEFAULT_IGNORE.
7640
7641 2014-02-19 Tom Tromey <tromey@redhat.com>
7642
7643 * target-delegates.c: Rebuild.
7644 * target.c (update_current_target): Don't inherit or default
7645 to_get_tib_address.
7646 * target.h (struct target_ops) <to_get_tib_address>: Use
7647 TARGET_DEFAULT_NORETURN.
7648
7649 2014-02-19 Tom Tromey <tromey@redhat.com>
7650
7651 * target-delegates.c: Rebuild.
7652 * target.c (update_current_target): Don't inherit or default
7653 to_set_trace_notes.
7654 * target.h (struct target_ops) <to_set_trace_notes>: Use
7655 TARGET_DEFAULT_RETURN.
7656
7657 2014-02-19 Tom Tromey <tromey@redhat.com>
7658
7659 * target-delegates.c: Rebuild.
7660 * target.c (update_current_target): Don't initialize
7661 to_set_trace_buffer_size.
7662 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7663 TARGET_DEFAULT_IGNORE.
7664
7665 2014-02-19 Tom Tromey <tromey@redhat.com>
7666
7667 * target-delegates.c: Rebuild.
7668 * target.c (update_current_target): Don't inherit or default
7669 to_set_circular_trace_buffer.
7670 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7671 TARGET_DEFAULT_IGNORE.
7672
7673 2014-02-19 Tom Tromey <tromey@redhat.com>
7674
7675 * target-delegates.c: Rebuild.
7676 * target.c (update_current_target): Don't inherit or default
7677 to_set_disconnected_tracing.
7678 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7679 TARGET_DEFAULT_IGNORE.
7680
7681 2014-02-19 Tom Tromey <tromey@redhat.com>
7682
7683 * target-delegates.c: Rebuild.
7684 * target.c (update_current_target): Don't inherit or default
7685 to_get_min_fast_tracepoint_insn_len.
7686 (return_minus_one): Remove.
7687 * target.h (struct target_ops)
7688 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7689
7690 2014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target-delegates.c: Rebuild.
7693 * target.c (update_current_target): Don't inherit or default
7694 to_get_raw_trace_data.
7695 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7696 TARGET_DEFAULT_NORETURN.
7697
7698 2014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * target-delegates.c: Rebuild.
7701 * target.c (update_current_target): Don't inherit or default
7702 to_upload_trace_state_variables.
7703 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7704 Use TARGET_DEFAULT_RETURN.
7705
7706 2014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target-delegates.c: Rebuild.
7709 * target.c (update_current_target): Don't inherit or default
7710 to_upload_tracepoints.
7711 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7712 TARGET_DEFAULT_RETURN.
7713
7714 2014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target-delegates.c: Rebuild.
7717 * target.c (update_current_target): Don't inherit or default
7718 to_save_trace_data.
7719 * target.h (struct target_ops) <to_save_trace_data>: Use
7720 TARGET_DEFAULT_NORETURN.
7721
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7723
7724 * target-delegates.c: Rebuild.
7725 * target.c (update_current_target): Don't inherit or default
7726 to_get_trace_state_variable_value.
7727 * target.h (struct target_ops)
7728 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7729
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7731
7732 * target-delegates.c: Rebuild.
7733 * target.c (update_current_target): Don't inherit or default
7734 to_trace_find.
7735 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7736
7737 2014-02-19 Tom Tromey <tromey@redhat.com>
7738
7739 * target-delegates.c: Rebuild.
7740 * target.c (update_current_target): Don't inherit or default
7741 to_trace_stop.
7742 * target.h (struct target_ops) <to_trace_stop>: Use
7743 TARGET_DEFAULT_NORETURN.
7744
7745 2014-02-19 Tom Tromey <tromey@redhat.com>
7746
7747 * target-delegates.c: Rebuild.
7748 * target.c (update_current_target): Don't inherit or default
7749 to_get_tracepoint_status.
7750 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7751 TARGET_DEFAULT_NORETURN.
7752
7753 2014-02-19 Tom Tromey <tromey@redhat.com>
7754
7755 * target-delegates.c: Rebuild.
7756 * target.c (update_current_target): Don't inherit or default
7757 to_get_trace_status.
7758 * target.h (struct target_ops) <to_get_trace_status>: Use
7759 TARGET_DEFAULT_RETURN.
7760
7761 2014-02-19 Tom Tromey <tromey@redhat.com>
7762
7763 * target-delegates.c: Rebuild.
7764 * target.c (update_current_target): Don't inherit or default
7765 to_trace_start.
7766 * target.h (struct target_ops) <to_trace_start>: Use
7767 TARGET_DEFAULT_NORETURN.
7768
7769 2014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target-delegates.c: Rebuild.
7772 * target.c (update_current_target): Don't inherit or default
7773 to_trace_set_readonly_regions.
7774 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7775 Use TARGET_DEFAULT_NORETURN.
7776
7777 2014-02-19 Tom Tromey <tromey@redhat.com>
7778
7779 * target-delegates.c: Rebuild.
7780 * target.c (update_current_target): Don't inherit or default
7781 to_disable_tracepoint.
7782 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7783 TARGET_DEFAULT_NORETURN.
7784
7785 2014-02-19 Tom Tromey <tromey@redhat.com>
7786
7787 * target-delegates.c: Rebuild.
7788 * target.c (update_current_target): Don't inherit or default
7789 to_enable_tracepoint.
7790 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7791 TARGET_DEFAULT_NORETURN.
7792
7793 2014-02-19 Tom Tromey <tromey@redhat.com>
7794
7795 * target-delegates.c: Rebuild.
7796 * target.c (update_current_target): Don't inherit or default
7797 to_download_trace_state_variable.
7798 * target.h (struct target_ops) <to_download_trace_state_variable>:
7799 Use TARGET_DEFAULT_NORETURN.
7800
7801 2014-02-19 Tom Tromey <tromey@redhat.com>
7802
7803 * target-delegates.c: Rebuild.
7804 * target.c (update_current_target): Don't inherit or default
7805 to_can_download_tracepoint.
7806 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7807 TARGET_DEFAULT_RETURN.
7808
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7810
7811 * target-delegates.c: Rebuild.
7812 * target.c (update_current_target): Don't inherit or default
7813 to_download_tracepoint.
7814 * target.h (struct target_ops) <to_download_tracepoint>: Use
7815 TARGET_DEFAULT_NORETURN.
7816
7817 2014-02-19 Tom Tromey <tromey@redhat.com>
7818
7819 * target-delegates.c: Rebuild.
7820 * target.c (update_current_target): Don't inherit or default
7821 to_trace_init.
7822 * target.h (struct target_ops) <to_trace_init>: Use
7823 TARGET_DEFAULT_RETURN.
7824
7825 2014-02-19 Tom Tromey <tromey@redhat.com>
7826
7827 * target-delegates.c: Rebuild.
7828 * target.c (update_current_target): Don't inherit or default
7829 to_supports_string_tracing.
7830 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7831 TARGET_DEFAULT_RETURN.
7832
7833 2014-02-19 Tom Tromey <tromey@redhat.com>
7834
7835 * target-delegates.c: Rebuild.
7836 * target.c (update_current_target): Don't inherit or default
7837 to_supports_enable_disable_tracepoint.
7838 * target.h (struct target_ops)
7839 <to_supports_enable_disable_tracepoint>: Use
7840 TARGET_DEFAULT_RETURN.
7841
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7843
7844 * target-delegates.c: Rebuild.
7845 * target.c (update_current_target): Don't inherit or default
7846 to_supports_multi_process.
7847 * target.h (struct target_ops) <to_supports_multi_process>: Use
7848 TARGET_DEFAULT_RETURN.
7849
7850 2014-02-19 Tom Tromey <tromey@redhat.com>
7851
7852 * target-delegates.c: Rebuild.
7853 * target.c (update_current_target): Don't inherit or default
7854 to_get_ada_task_ptid.
7855 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7856 TARGET_DEFAULT_FUNC.
7857
7858 2014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (update_current_target): Don't inherit or default
7862 to_thread_architecture.
7863 * target.h (struct target_ops) <to_thread_architecture>: Use
7864 TARGET_DEFAULT_FUNC.
7865
7866 2014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target-delegates.c: Rebuild.
7869 * target.c (update_current_target): Don't inherit or default
7870 to_execution_direction.
7871 * target.h (struct target_ops) <to_execution_direction>: Use
7872 TARGET_DEFAULT_FUNC.
7873
7874 2014-02-19 Tom Tromey <tromey@redhat.com>
7875
7876 * target-delegates.c: Rebuild.
7877 * target.c (update_current_target): Don't inherit or default
7878 to_can_execute_reverse.
7879 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7880 TARGET_DEFAULT_RETURN.
7881 (target_can_execute_reverse): Unconditionally delegate.
7882
7883 2014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (update_current_target): Don't inherit or default
7887 to_goto_bookmark.
7888 (dummy_goto_bookmark): Remove.
7889 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7890 * target.h (struct target_ops) <to_goto_bookmark>: Use
7891 TARGET_DEFAULT_NORETURN.
7892
7893 2014-02-19 Tom Tromey <tromey@redhat.com>
7894
7895 * target-delegates.c: Rebuild.
7896 * target.c (update_current_target): Don't inherit or default
7897 to_get_bookmark.
7898 (dummy_get_bookmark): Remove.
7899 (init_dummy_target): Don't inherit or default to_get_bookmark.
7900 * target.h (struct target_ops) <to_get_bookmark>: Use
7901 TARGET_DEFAULT_NORETURN
7902
7903 2014-02-19 Tom Tromey <tromey@redhat.com>
7904
7905 * target-delegates.c: Rebuild.
7906 * target.c (update_current_target): Don't inherit or default
7907 to_make_corefile_notes.
7908 (init_dummy_target): Don't initialize to_make_corefile_notes.
7909 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7910 TARGET_DEFAULT_FUNC.
7911
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * target-delegates.c: Rebuild.
7915 * target.c (update_current_target): Don't inherit or default
7916 to_find_memory_regions.
7917 (init_dummy_target): Don't initialize to_find_memory_regions.
7918 * target.h (struct target_ops) <to_find_memory_regions>: Use
7919 TARGET_DEFAULT_FUNC.
7920
7921 2014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target-delegates.c: Rebuild.
7924 * target.c (update_current_target): Don't inherit or default
7925 to_log_command.
7926 * target.h (struct target_ops) <to_log_command>: Use
7927 TARGET_DEFAULT_IGNORE.
7928 (target_log_command): Unconditionally delegate.
7929
7930 2014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target-delegates.c: Rebuild.
7933 * target.c (update_current_target): Don't inherit or default
7934 to_pid_to_exec_file.
7935 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7936 TARGET_DEFAULT_RETURN.
7937
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target-delegates.c: Rebuild.
7941 * target.c (update_current_target): Don't inherit or default
7942 to_thread_name.
7943 (target_thread_name): Unconditionally delegate.
7944 * target.h (struct target_ops) <to_thread_name>: Use
7945 TARGET_DEFAULT_RETURN.
7946
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target-delegates.c: Rebuild.
7950 * target.c (update_current_target): Don't inherit or default
7951 to_extra_thread_info.
7952 * target.h (struct target_ops) <to_extra_thread_info>: Use
7953 TARGET_DEFAULT_RETURN.
7954
7955 2014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (update_current_target): Don't inherit or default
7959 to_has_exited.
7960 * target.h (struct target_ops) <to_has_exited>: Use
7961 TARGET_DEFAULT_RETURN..
7962
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * target-delegates.c: Rebuild.
7966 * target.c (update_current_target): Don't inherit or default
7967 to_set_syscall_catchpoint.
7968 (return_one): Remove.
7969 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7970 TARGET_DEFAULT_RETURN.
7971
7972 2014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * target-delegates.c: Rebuild.
7975 * target.c (update_current_target): Don't inherit or default
7976 to_insert_exec_catchpoint.
7977 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7978 TARGET_DEFAULT_RETURN.
7979
7980 2014-01-08 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (update_current_target): Don't inherit or default
7984 to_insert_exec_catchpoint.
7985 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7986 TARGET_DEFAULT_RETURN.
7987
7988 2014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (update_current_target): Don't inherit or default
7992 to_remove_vfork_catchpoint.
7993 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7994 TARGET_DEFAULT_RETURN.
7995
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target-delegates.c: Rebuild.
7999 * target.c (update_current_target): Don't inherit or default
8000 to_insert_vfork_catchpoint.
8001 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8002 TARGET_DEFAULT_RETURN.
8003
8004 2014-02-19 Tom Tromey <tromey@redhat.com>
8005
8006 * target-delegates.c: Rebuild.
8007 * target.c (update_current_target): Don't inherit or default
8008 to_remove_fork_catchpoint.
8009 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8010 TARGET_DEFAULT_RETURN.
8011
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_insert_fork_catchpoint.
8017 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8018 TARGET_DEFAULT_RETURN.
8019
8020 2014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_post_startup_inferior.
8025 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8026 TARGET_DEFAULT_IGNORE.
8027
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_load.
8033 * target.h (struct target_ops) <to_load>: Use
8034 TARGET_DEFAULT_NORETURN.
8035
8036 2014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_terminal_info.
8041 * target.h (struct target_ops) <to_terminal_info>: Use
8042 TARGET_DEFAULT_FUNC.
8043
8044 2014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target-delegates.c: Rebuild.
8047 * target.c (update_current_target): Don't inherit or default
8048 to_terminal_save_ours.
8049 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8050 TARGET_DEFAULT_IGNORE.
8051
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_terminal_ours.
8057 * target.h (struct target_ops) <to_terminal_ours>: Use
8058 TARGET_DEFAULT_IGNORE.
8059
8060 2014-02-19 Tom Tromey <tromey@redhat.com>
8061
8062 * target-delegates.c: Rebuild.
8063 * target.c (update_current_target): Don't inherit or default
8064 to_terminal_ours_for_output.
8065 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8066 TARGET_DEFAULT_IGNORE.
8067
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target-delegates.c: Rebuild.
8071 * target.c (update_current_target): Don't inherit or default
8072 to_terminal_inferior.
8073 * target.h (struct target_ops) <to_terminal_inferior>: Use
8074 TARGET_DEFAULT_IGNORE.
8075
8076 2014-02-19 Tom Tromey <tromey@redhat.com>
8077
8078 * target-delegates.c: Rebuild.
8079 * target.c (update_current_target): Don't inherit or default
8080 to_terminal_init.
8081 * target.h (struct target_ops) <to_terminal_init>: Use
8082 TARGET_DEFAULT_IGNORE.
8083
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (update_current_target): Don't inherit or default
8088 to_can_accel_watchpoint_condition.
8089 * target.h (struct target_ops)
8090 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8091
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (update_current_target): Don't inherit or default
8096 to_region_ok_for_hw_watchpoint.
8097 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8098 Use TARGET_DEFAULT_FUNC.
8099
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (update_current_target): Don't inherit or default
8104 to_watchpoint_addr_within_range.
8105 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8106 Use TARGET_DEFAULT_FUNC.
8107
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (update_current_target): Don't inherit or default
8112 to_remove_watchpoint.
8113 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8114 TARGET_DEFAULT_NORETURN.
8115
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (update_current_target): Don't inherit or default
8120 to_insert_watchpoint.
8121 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8122 TARGET_DEFAULT_RETURN.
8123
8124 2014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8128 to_remove_hw_breakpoint.
8129 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8130 TARGET_DEFAULT_RETURN.
8131
8132 2014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_insert_hw_breakpoint.
8137 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8138 TARGET_DEFAULT_RETURN.
8139
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_can_use_hw_breakpoint.
8145 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8146 TARGET_DEFAULT_RETURN.
8147
8148 2014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8152 to_files_info.
8153 * target.h (struct target_ops) <to_files_info>: Use
8154 TARGET_DEFAULT_IGNORE.
8155
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8160 to_store.
8161 * target.h (struct target_ops) <to_store>: Use
8162 TARGET_DEFAULT_NORETURN.
8163
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_post_attach.
8169 * target.h (struct target_ops) <to_post_attach>: Use
8170 TARGET_DEFAULT_IGNORE.
8171
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (update_current_target): Don't inherit or default
8176 to_rcmd.
8177 (default_rcmd): New function.
8178 (do_monitor_command): Unconditionally delegate.
8179 * target.h (struct target_ops) <to_rmcd>: Use
8180 TARGET_DEFAULT_FUNC.
8181
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8183
8184 * target-delegates.c: Rebuild.
8185 * target.c (init_dummy_target): Don't initialize to_attach.
8186 (target_attach): Unconditionally delegate.
8187 * target.h (struct target_ops) <to_attach>: Use
8188 TARGET_DEFAULT_FUNC.
8189
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target-delegates.c: Rebuild.
8193 * target.c (target_detach): Unconditionally delegate.
8194 (init_dummy_target): Don't initialize to_detach.
8195 * target.h (struct target_ops) <to_detach>: Use
8196 TARGET_DEFAULT_IGNORE.
8197
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8201 Add argument.
8202 (target_augmented_libraries_svr4_read): Add argument.
8203 * target.c (update_current_target): Update.
8204 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8205 argument.
8206
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8208
8209 * target.h (struct target_ops) <to_call_history_range>: Add
8210 argument.
8211 * target.c (target_call_history_range): Add argument.
8212 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8213 argument.
8214 (record_btrace_call_history_from): Update.
8215
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target.h (struct target_ops) <to_call_history_from>: Add
8219 argument.
8220 * target.c (target_call_history_from): Add argument.
8221 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8222 argument.
8223
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target.h (struct target_ops) <to_call_history>: Add argument.
8227 * target.c (target_call_history): Add argument.
8228 * record-btrace.c (record_btrace_call_history): Add 'self'
8229 argument.
8230
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8232
8233 * target.h (struct target_ops) <to_insn_history_range>: Add
8234 argument.
8235 * target.c (target_insn_history_range): Add argument.
8236 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8237 argument.
8238 (record_btrace_insn_history_from): Update.
8239
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target.h (struct target_ops) <to_insn_history_from>: Add
8243 argument.
8244 * target.c (target_insn_history_from): Add argument.
8245 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8246 argument.
8247
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target.h (struct target_ops) <to_insn_history>: Add argument.
8251 * target.c (target_insn_history): Add argument.
8252 * record-btrace.c (record_btrace_insn_history): Add 'self'
8253 argument.
8254
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8256
8257 * target.h (struct target_ops) <to_goto_record>: Add argument.
8258 * target.c (target_goto_record): Add argument.
8259 * record-full.c (record_full_goto): Add 'self' argument.
8260 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8261
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8263
8264 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8265 * target.c (target_goto_record_end): Add argument.
8266 * record-full.c (record_full_goto_end): Add 'self' argument.
8267 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8268
8269 2014-02-19 Tom Tromey <tromey@redhat.com>
8270
8271 * target.h (struct target_ops) <to_goto_record_begin>: Add
8272 argument.
8273 * target.c (target_goto_record_begin): Add argument.
8274 * record-full.c (record_full_goto_begin): Add 'self' argument.
8275 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8276 argument.
8277
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8279
8280 * target.h (struct target_ops) <to_record_is_replaying>: Add
8281 argument.
8282 * target.c (target_record_is_replaying): Add argument.
8283 * record-full.c (record_full_is_replaying): Add 'self' argument.
8284 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8285 argument.
8286 (record_btrace_xfer_partial, record_btrace_store_registers)
8287 (record_btrace_prepare_to_store, record_btrace_resume)
8288 (record_btrace_wait, record_btrace_decr_pc_after_break)
8289 (record_btrace_find_new_threads, record_btrace_thread_alive):
8290 Update.
8291
8292 2014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target.h (struct target_ops) <to_delete_record>: Add argument.
8295 * target.c (target_delete_record): Add argument.
8296 * record-full.c (record_full_delete): Add 'self' argument.
8297
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target.h (struct target_ops) <to_save_record>: Add argument.
8301 * target.c (target_save_record): Add argument.
8302 * record-full.c (record_full_save): Add 'self' argument.
8303 (record_full_save): Add 'self' argument.
8304
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8306
8307 * target.h (struct target_ops) <to_info_record>: Add argument.
8308 * target.c (target_info_record): Add argument.
8309 * record.c (info_record_command): Add argument.
8310 * record-full.c (record_full_info): Add 'self' argument.
8311 * record-btrace.c (record_btrace_info): Add 'self' argument.
8312
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8314
8315 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8316 * target.c (target_stop_recording): Add argument.
8317 * record.c (record_stop): Add argument.
8318 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8319 argument.
8320
8321 2014-02-19 Tom Tromey <tromey@redhat.com>
8322
8323 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8324 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8325 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8326 argument.
8327 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8328 (_initialize_amd64_linux_nat): Use it.
8329 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8330 (_initialize_i386_linux_nat): Use it.
8331
8332 2014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8335 * target.c (target_teardown_btrace): Add argument.
8336 * remote.c (remote_teardown_btrace): Add 'self' argument.
8337 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8338 argument.
8339 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8340 argument.
8341
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8345 * target.c (target_disable_btrace): Add argument.
8346 * remote.c (remote_disable_btrace): Add 'self' argument.
8347 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8348 argument.
8349 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8350 argument.
8351
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8353
8354 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8355 * target.c (target_enable_btrace): Add argument.
8356 * remote.c (remote_enable_btrace): Add 'self' argument.
8357 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8358 argument.
8359 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8360 argument.
8361
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8365 (target_can_use_agent): Add argument.
8366 * target.c (update_current_target): Update.
8367 * remote.c (remote_can_use_agent): Add 'self' argument.
8368 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8369
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target.h (struct target_ops) <to_use_agent>: Add argument.
8373 (target_use_agent): Add argument.
8374 * target.c (update_current_target): Update.
8375 * remote.c (remote_use_agent): Add 'self' argument.
8376 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8377
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8381 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8382 (target_traceframe_info): Add argument.
8383 * target.c (update_current_target): Update.
8384 * remote.c (remote_traceframe_info): Add 'self' argument.
8385 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8386
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target.h (target_static_tracepoint_markers_by_strid): Add
8390 argument.
8391 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8392 'self' argument.
8393 * target.c (update_current_target): Update.
8394 * remote.c (struct target_ops)
8395 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8396 * linux-nat.c (struct target_ops)
8397 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8398
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8402 Add argument.
8403 (target_static_tracepoint_marker_at): Add argument.
8404 * target.c (update_current_target): Update.
8405 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8406 argument.
8407
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8411 (target_set_permissions): Add argument.
8412 * target.c (update_current_target): Update.
8413 * remote.c (remote_set_permissions): Add 'self' argument.
8414 (remote_start_remote): Update.
8415
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8417
8418 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8419 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8420 (target_get_tib_address): Add argument.
8421 * target.c (update_current_target): Update.
8422 * remote.c (remote_get_tib_address): Add 'self' argument.
8423
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8427 (target_set_trace_notes): Add argument.
8428 * target.c (update_current_target): Update.
8429 * remote.c (remote_set_trace_notes): Add 'self' argument.
8430
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8434 argument.
8435 (target_set_trace_buffer_size): Add argument.
8436 * target.c (update_current_target): Update.
8437 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8438
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8442 argument.
8443 (target_set_circular_trace_buffer): Add argument.
8444 * target.c (update_current_target): Update.
8445 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8446 argument.
8447
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8451 argument.
8452 (target_set_disconnected_tracing): Add argument.
8453 * target.c (update_current_target): Update.
8454 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8455
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target.h (struct target_ops)
8459 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8460 (target_get_min_fast_tracepoint_insn_len): Add argument.
8461 * target.c (update_current_target): Update.
8462 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8463 argument.
8464
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8466
8467 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8468 argument.
8469 (target_get_raw_trace_data): Add argument.
8470 * target.c (update_current_target): Update.
8471 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8472
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8474
8475 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8476 Add argument.
8477 (target_upload_trace_state_variables): Add argument.
8478 * target.c (update_current_target): Update.
8479 * remote.c (remote_upload_trace_state_variables): Add 'self'
8480 argument.
8481 (remote_start_remote): Update.
8482
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8486 argument.
8487 (target_upload_tracepoints): Add argument.
8488 * target.c (update_current_target): Update.
8489 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8490 (remote_start_remote): Update.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8495 (target_save_trace_data): Add argument.
8496 * target.c (update_current_target): Update.
8497 * remote.c (remote_save_trace_data): Add 'self' argument.
8498
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8502 argument.
8503 * target.h (struct target_ops)
8504 <to_get_trace_state_variable_value>: Add argument.
8505 (target_get_trace_state_variable_value): Add argument.
8506 * target.c (update_current_target): Update.
8507 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8508 argument.
8509 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8510
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8514 * target.h (struct target_ops) <to_trace_find>: Add argument.
8515 (target_trace_find): Add argument.
8516 * target.c (update_current_target): Update.
8517 * remote.c (remote_trace_find): Add 'self' argument.
8518 * ctf.c (ctf_trace_find): Add 'self' argument.
8519
8520 2014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8523 (target_trace_stop): Add argument.
8524 * target.c (update_current_target): Update.
8525 * remote.c (remote_trace_stop): Add 'self' argument.
8526
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8530 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8531 argument.
8532 (target_get_tracepoint_status): Add argument.
8533 * target.c (update_current_target): Update.
8534 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8535
8536 2014-02-19 Tom Tromey <tromey@redhat.com>
8537
8538 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8539 * target.h (struct target_ops) <to_get_trace_status>: Add
8540 argument.
8541 (target_get_trace_status): Add argument.
8542 * target.c (update_current_target): Update.
8543 * remote.c (remote_get_trace_status): Add 'self' argument.
8544 (remote_start_remote, remote_can_download_tracepoint): Update.
8545 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8546
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * target.h (struct target_ops) <to_trace_start>: Add argument.
8550 (target_trace_start): Add argument.
8551 * target.c (update_current_target): Update.
8552 * remote.c (remote_trace_start): Add 'self' argument.
8553
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8555
8556 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8557 Add argument.
8558 (target_trace_set_readonly_regions): Add argument.
8559 * target.c (update_current_target): Update.
8560 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8561 argument.
8562
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8566 argument.
8567 (target_disable_tracepoint): Add argument.
8568 * target.c (update_current_target): Update.
8569 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8570
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8574 argument.
8575 (target_enable_tracepoint): Add argument.
8576 * target.c (update_current_target): Update.
8577 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8578
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target.h (struct target_ops) <to_download_trace_state_variable>:
8582 Add argument.
8583 (target_download_trace_state_variable): Add argument.
8584 * target.c (update_current_target): Update.
8585 * remote.c (remote_download_trace_state_variable): Add 'self'
8586 argument.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8591 argument.
8592 (target_can_download_tracepoint): Add argument.
8593 * target.c (update_current_target): Update.
8594 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.h (struct target_ops) <to_download_tracepoint>: Add
8599 argument.
8600 (target_download_tracepoint): Add argument.
8601 * target.c (update_current_target): Update.
8602 * remote.c (remote_download_tracepoint): Add 'self' argument.
8603
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target.h (struct target_ops) <to_trace_init>: Add argument.
8607 (target_trace_init): Add argument.
8608 * target.c (update_current_target): Update.
8609 * remote.c (remote_trace_init): Add 'self' argument.
8610
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8612
8613 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8614 * target.c (target_fileio_readlink): Add argument.
8615 * remote.c (remote_hostio_readlink): Add 'self' argument.
8616 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8617
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8621 * target.c (target_fileio_unlink): Add argument.
8622 * remote.c (remote_hostio_unlink): Add 'self' argument.
8623 (remote_file_delete): Update.
8624 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8625
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8629 * target.c (target_fileio_close): Add argument.
8630 * remote.c (remote_hostio_close): Add 'self' argument.
8631 (remote_hostio_close_cleanup): Update.
8632 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8633 Update.
8634 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8635
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8639 * target.c (target_fileio_pread): Add argument.
8640 * remote.c (remote_hostio_pread): Add 'self' argument.
8641 (remote_bfd_iovec_pread, remote_file_get): Update.
8642 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8643
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8647 * target.c (target_fileio_pwrite): Add argument.
8648 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8649 (remote_file_put): Update.
8650 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8651
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8655 * target.c (target_fileio_open): Add argument.
8656 * remote.c (remote_hostio_open): Add 'self' argument.
8657 (remote_bfd_iovec_open): Add 'self' argument.
8658 (remote_file_put): Add 'self' argument.
8659 (remote_file_get): Add 'self' argument.
8660 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8661
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8665 Add argument.
8666 (target_can_run_breakpoint_commands): Add argument.
8667 * target.c (update_current_target): Update.
8668 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8669 argument.
8670 (remote_insert_breakpoint): Add 'self' argument.
8671 (remote_insert_hw_breakpoint): Add 'self' argument.
8672 (remote_can_run_breakpoint_commands): Add 'self' argument.
8673
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target.h (struct target_ops)
8677 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8678 (target_supports_evaluation_of_breakpoint_conditions): Add
8679 argument.
8680 * target.c (update_current_target): Update.
8681 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8682 argument.
8683 (remote_insert_breakpoint): Add 'self' argument.
8684 (remote_insert_hw_breakpoint): Add 'self' argument.
8685 (remote_supports_cond_breakpoints): Add 'self' argument.
8686
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8690 argument.
8691 (target_supports_string_tracing): Add argument.
8692 * target.c (update_current_target): Update.
8693 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8694
8695 2014-02-19 Tom Tromey <tromey@redhat.com>
8696
8697 * target.h (struct target_ops)
8698 <to_supports_disable_randomization>: Add argument.
8699 * target.c (find_default_supports_disable_randomization): Add
8700 argument.
8701 (target_supports_disable_randomization): Add argument.
8702 (find_default_supports_disable_randomization): Add 'self'
8703 argument.
8704 * remote.c (extended_remote_supports_disable_randomization): Add
8705 'self' argument.
8706 (remote_supports_disable_randomization): Add 'self' argument.
8707 (extended_remote_create_inferior): Update.
8708 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8709 'self' argument.
8710
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8712
8713 * target.h (struct target_ops)
8714 <to_supports_enable_disable_tracepoint>: Add argument.
8715 (target_supports_enable_disable_tracepoint): Add argument.
8716 * target.c (update_current_target): Update.
8717 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8718 argument.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target.h (struct target_ops) <to_supports_multi_process>: Add
8723 argument.
8724 (target_supports_multi_process): Add argument.
8725 * target.c (update_current_target): Update.
8726 * remote.c (remote_supports_multi_process): Add 'self' argument.
8727 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8728 argument.
8729 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8730 argument.
8731
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8733
8734 * target.h (struct target_ops) <to_execution_direction>: Add
8735 argument.
8736 (target_execution_direction): Add argument.
8737 * target.c (default_execution_direction): Add 'self' argument.
8738 * record-full.c (record_full_execution_direction): Add 'self'
8739 argument.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8744 argument.
8745 (target_can_execute_reverse): Add argument.
8746 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8747 * record-full.c (record_full_can_execute_reverse): Add 'self'
8748 argument.
8749 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8750 argument.
8751
8752 2014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8755 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8756 argument.
8757 (target_get_ada_task_ptid): Add argument.
8758 * target.c (update_current_target): Update.
8759 (default_get_ada_task_ptid): Add 'self' argument.
8760 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8761 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8762 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8763 argument.
8764 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8765 argument.
8766 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8767 argument.
8768 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8769 argument.
8770 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8771 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8772 argument.
8773
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8777 (target_goto_bookmark): Add argument.
8778 * target.c (dummy_goto_bookmark): Add 'self' argument.
8779 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8780
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8784 (target_get_bookmark): Add argument.
8785 * target.c (dummy_get_bookmark): Add 'self' argument.
8786 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8787
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8789
8790 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8791 argument.
8792 (target_make_corefile_notes): Add argument.
8793 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8794 * procfs.c (procfs_make_note_section): Add 'self' argument.
8795 (procfs_make_note_section): Add 'self' argument.
8796 (procfs_make_note_section): Add 'self' argument.
8797 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8798 argument.
8799 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8800 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8801 * exec.c (exec_make_note_section): Add 'self' argument.
8802 (exec_make_note_section): Add 'self' argument.
8803
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target.h (struct target_ops) <to_find_memory_regions>: Add
8807 argument.
8808 (target_find_memory_regions): Add argument.
8809 * target.c (dummy_find_memory_regions): Add 'self' argument.
8810 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8811 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8812 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8813 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8814 * exec. (exec_do_find_memory_regions): New global.
8815 (exec_set_find_memory_regions): Rewrite.
8816 (exec_find_memory_regions): New function.
8817 (init_exec_ops): Use exec_find_memory_regions.
8818
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target.h (struct target_ops) <to_supports_non_stop>: Add
8822 argument.
8823 * target.c (find_default_supports_non_stop): Add argument.
8824 (target_supports_non_stop): Add argument.
8825 (find_default_supports_non_stop): Add 'self' argument.
8826 * remote.c (remote_supports_non_stop): Add 'self' argument.
8827 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8828
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8830
8831 * target.h (struct target_ops) <to_log_command>: Add argument.
8832 (target_log_command): Add argument.
8833 * serial.h (serial_log_command): Add 'self' argument.
8834 * serial.c (serial_log_command): Add 'self' argument.
8835
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8839 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8840 argument.
8841 (target_pid_to_exec_file): Add argument.
8842 * target.c (debug_to_pid_to_exec_file): Add argument.
8843 (update_current_target): Update.
8844 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8845 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8846 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8847 (linux_handle_extended_wait): Update.
8848 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8849 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8850 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8851 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8852
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8854
8855 * target.h (struct target_ops) <to_rcmd>: Add argument.
8856 (target_rcmd): Add argument.
8857 * target.c (debug_to_rcmd): Add argument.
8858 (update_current_target, do_monitor_command): Update.
8859 * remote.c (remote_rcmd): Add 'self' argument.
8860 * monitor.c (monitor_rcmd): Add 'self' argument.
8861
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * windows-nat.c (windows_stop): Add 'self' argument.
8865 * target.h (struct target_ops) <to_stop>: Add argument.
8866 * target.c (target_stop): Add argument.
8867 (debug_to_stop): Add argument.
8868 (update_current_target): Update.
8869 * remote.c (remote_stop): Add 'self' argument.
8870 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8871 (gdbsim_cntrl_c): Update.
8872 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8873 * procfs.c (procfs_stop): Add 'self' argument.
8874 * nto-procfs.c (procfs_stop): Add 'self' argument.
8875 * monitor.c (monitor_stop): Add 'self' argument.
8876 (monitor_open): Update.
8877 * linux-nat.c (linux_nat_stop): Add argument.
8878 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8879 * gnu-nat.c (gnu_stop): Add 'self' argument.
8880 * darwin-nat.c (darwin_stop): Add 'self' argument.
8881
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target.h (struct target_ops) <to_thread_name>: Add argument.
8885 * target.c (target_thread_name): Add argument.
8886 (update_current_target): Update.
8887 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target.h (struct target_ops) <to_extra_thread_info>: Add
8892 argument.
8893 (target_extra_thread_info): Add argument.
8894 * target.c (update_current_target): Update.
8895 * remote.c (remote_threads_extra_info): Add 'self' argument.
8896 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8897 argument.
8898 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8899 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8900 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8901 argument.
8902 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8903 argument.
8904 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8905 argument.
8906 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8907 argument.
8908
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target.h (struct target_ops) <to_program_signals>: Add argument.
8912 * target.c (target_program_signals): Add argument.
8913 * remote.c (remote_program_signals): Add 'self' argument.
8914
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8918 * target.c (target_pass_signals): Add argument.
8919 * remote.c (remote_pass_signals): Add 'self' argument.
8920 (remote_start_remote): Update.
8921 * procfs.c (procfs_pass_signals): Add 'self' argument.
8922 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8923 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8924 (linux_nat_create_inferior, linux_nat_attach): Update.
8925
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * windows-nat.c (windows_can_run): Add 'self' argument.
8929 * target.h (struct target_ops) <to_can_run>: Add argument.
8930 (target_can_run): Add argument.
8931 * target.c (debug_to_can_run): Add argument.
8932 (update_current_target): Update.
8933 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8934 * inf-child.c (inf_child_can_run): Add 'self' argument.
8935 * go32-nat.c (go32_can_run): Add 'self' argument.
8936
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8938
8939 * target.h (struct target_ops) <to_has_exited>: Add argument.
8940 (target_has_exited): Add argument.
8941 * target.c (debug_to_has_exited): Add argument.
8942 (update_current_target): Update.
8943
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8947 argument.
8948 (target_set_syscall_catchpoint): Add argument.
8949 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8950 argument.
8951 * target.c (update_current_target): Update.
8952
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8956 argument.
8957 (target_remove_exec_catchpoint): Add argument.
8958 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8959 (update_current_target): Update.
8960 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8961 argument.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8966 argument.
8967 (target_insert_exec_catchpoint): Add argument.
8968 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8969 (update_current_target): Update.
8970 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8971 argument.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8976 argument.
8977 (target_remove_vfork_catchpoint): Add argument.
8978 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8979 (update_current_target): Update.
8980 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8981 argument.
8982
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8986 argument.
8987 (target_insert_vfork_catchpoint): Add argument.
8988 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8989 (update_current_target): Update.
8990 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8991 argument.
8992
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8994
8995 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8996 argument.
8997 (target_remove_fork_catchpoint): Add argument.
8998 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8999 (update_current_target): Update.
9000 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9001 argument.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9006 argument.
9007 (target_insert_fork_catchpoint): Add argument.
9008 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9009 (update_current_target): Update.
9010 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9011 argument.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9016 argument.
9017 (target_post_startup_inferior): Add argument.
9018 * target.c (debug_to_post_startup_inferior): Add argument.
9019 (update_current_target): Update.
9020 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9021 argument.
9022 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9023 argument.
9024 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9025 argument.
9026 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9027 argument.
9028 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9029 'self' argument.
9030 (super_post_startup_inferior): Likewise.
9031 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9032 'self' argument.
9033 (super_post_startup_inferior): Likewise.
9034 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9035 Add 'self' argument.
9036 (super_post_startup_inferior): Likewise.
9037
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target.h (struct target_ops) <to_load>: Add argument.
9041 * target.c (target_load): Add argument.
9042 (debug_to_load): Add argument.
9043 (update_current_target): Update.
9044 * remote.c (remote_load): Add 'self' argument.
9045 * remote-sim.c (gdbsim_load): Add 'self' argument.
9046 * remote-mips.c (mips_load): Add 'self' argument.
9047 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9048 * monitor.c (monitor_load): Add 'self' argument.
9049 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9054 (target_terminal_info): Add argument.
9055 * target.c (debug_to_terminal_info): Add argument.
9056 (default_terminal_info): Likewise.
9057 * inflow.c (child_terminal_info): Add 'self' argument.
9058 * inferior.h (child_terminal_info): Add 'self' argument.
9059 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9060
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9064 argument.
9065 (target_terminal_save_ours): Add argument.
9066 * target.c (debug_to_terminal_save_ours): Add argument.
9067 (update_current_target): Update.
9068 * inflow.c (terminal_save_ours): Add 'self' argument.
9069 * inferior.h (terminal_save_ours): Add 'self' argument.
9070
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9074 (target_terminal_ours): Add argument.
9075 * target.c (debug_to_terminal_ours): Add argument.
9076 (update_current_target): Update.
9077 * remote.c (remote_terminal_ours): Add 'self' argument.
9078 (remote_close): Update.
9079 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9080 * inflow.c (terminal_ours): Add 'self' argument.
9081 * inferior.h (terminal_ours): Add 'self' argument.
9082 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9083
9084 2014-02-19 Pedro Alves <palves@redhat.com>
9085 Tom Tromey <tromey@redhat.com>
9086
9087 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9088 argument.
9089 (target_terminal_ours_for_output): Add argument.
9090 * target.c (debug_to_terminal_ours_for_output): Add argument.
9091 (update_current_target): Update.
9092 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9093 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9094 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9095
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target.h (struct target_ops) <to_terminal_inferior>: Add
9099 argument.
9100 * target.c (target_terminal_inferior): Add argument.
9101 (update_current_target): Update.
9102 * remote.c (remote_terminal_inferior): Add 'self' argument.
9103 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9104 * inflow.c (terminal_inferior): Add 'self' argument.
9105 * inferior.h (terminal_inferior): Add 'self' argument.
9106 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9107 (go32_terminal_inferior): Add 'self' argument.
9108
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9112 (target_terminal_init): Add argument.
9113 * target.c (debug_to_terminal_init): Add argument.
9114 (update_current_target): Update.
9115 * inflow.c (terminal_init_inferior): Add 'self' argument.
9116 * inferior.h (terminal_init_inferior): Add 'self' argument.
9117 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9118 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9119
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target.h (struct target_ops)
9123 <to_can_accel_watchpoint_condition>: Add argument.
9124 (target_can_accel_watchpoint_condition): Add argument.
9125 * target.c (debug_to_can_accel_watchpoint_condition): Add
9126 argument.
9127 (update_current_target): Update.
9128 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9129 'self' argument.
9130
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9134 Add argument.
9135 (target_region_ok_for_hw_watchpoint): Add argument.
9136 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9137 (default_region_ok_for_hw_watchpoint): Add argument.
9138 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9139 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9140 argument.
9141 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9142 argument.
9143 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9144 argument.
9145 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9146 'self' argument.
9147 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9148 'self' argument.
9149 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9150 'self' argument.
9151 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9152 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9153 'self' argument.
9154 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9155 Add 'self' argument.
9156
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9160 argument.
9161 (target_insert_watchpoint): Add argument.
9162 * target.c (debug_to_insert_watchpoint): Add argument.
9163 (update_current_target): Update.
9164 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9165 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9166 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9167 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9168 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9169 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9170 argument.
9171 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9172 (procfs_insert_hw_watchpoint): Add 'self' argument.
9173 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9174 argument.
9175 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9176 argument.
9177 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9178 argument.
9179 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9180 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9181 argument.
9182 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9183 'self' argument.
9184
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9188 argument.
9189 (target_remove_watchpoint): Add argument.
9190 * target.c (debug_to_remove_watchpoint): Add argument.
9191 (update_current_target): Update.
9192 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9193 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9194 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9195 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9196 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9197 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9198 argument.
9199 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9200 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9201 argument.
9202 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9203 argument.
9204 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9205 argument.
9206 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9207 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9208 argument.
9209 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9210 'self' argument.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9215 argument.
9216 (target_remove_hw_breakpoint): Add argument.
9217 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9218 (update_current_target): Update.
9219 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9220 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9221 argument.
9222 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9223 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9224 argument.
9225 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9226 'self' argument.
9227
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9231 argument.
9232 (target_insert_hw_breakpoint): Add argument.
9233 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9234 (update_current_target): Update.
9235 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9236 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9237 argument.
9238 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9239 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9240 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9241 argument.
9242 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9243 'self' argument.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9248 argument.
9249 (target_can_use_hardware_watchpoint): Add argument.
9250 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9251 (update_current_target): Update.
9252 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9253 argument.
9254 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9255 argument.
9256 * remote.c (remote_check_watch_resources): Add 'self' argument.
9257 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9258 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9259 argument.
9260 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9261 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9262 argument.
9263 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9264 argument.
9265 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9266 argument.
9267 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9268 argument.
9269 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9270 argument.
9271 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9272 argument.
9273 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9274 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9275 argument.
9276 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9277 'self' argument.
9278
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9280
9281 * target.h (struct target_ops) <to_post_attach>: Add argument.
9282 (target_post_attach): Add argument.
9283 * target.c (debug_to_post_attach): Add argument.
9284 (update_current_target): Update.
9285 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9286 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9287 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9288 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9289 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9290
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9292
9293 * windows-nat.c (windows_close): Add 'self' argument.
9294 * tracepoint.c (tfile_close): Add 'self' argument.
9295 * target.h (struct target_ops) <to_close>: Add argument.
9296 * target.c (target_close): Add argument.
9297 (update_current_target): Update.
9298 * remote.c (remote_close): Add 'self' argument.
9299 * remote-sim.c (gdbsim_close): Add 'self' argument.
9300 * remote-mips.c (mips_close): Add 'self' argument.
9301 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9302 * record-full.c (record_full_close): Add 'self' argument.
9303 * record-btrace.c (record_btrace_close): Add 'self' argument.
9304 * monitor.h (monitor_close): Add 'self' argument.
9305 * monitor.c (monitor_close): Add 'self' argument.
9306 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9307 * linux-nat.c (linux_nat_close): Add argument.
9308 * go32-nat.c (go32_close): Add 'self' argument.
9309 * exec.c (exec_close_1): Add 'self' argument.
9310 * ctf.c (ctf_close): Add 'self' argument.
9311 * corelow.c (core_close): Add 'self' argument.
9312 (core_close_cleanup): Update.
9313 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9314 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9315
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * remote.c (remote_load): New function.
9319 (init_remote_ops): Use it.
9320
9321 2014-02-19 Tom Tromey <tromey@redhat.com>
9322
9323 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9324 argument.
9325 * common/linux-btrace.h (linux_supports_btrace): Update.
9326 * remote.c (remote_supports_btrace): Add "self" argument.
9327 * target-delegates.c: Rebuild.
9328 * target.c (target_supports_btrace): Remove.
9329 * target.h (struct target_ops) <to_supports_btrace>: Add
9330 target_ops argument.
9331 (target_supports_btrace): New define.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * record-full.c (record_full_beneath_to_resume_ops)
9336 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9337 (record_full_beneath_to_wait)
9338 (record_full_beneath_to_store_registers_ops)
9339 (record_full_beneath_to_store_registers)
9340 (record_full_beneath_to_xfer_partial_ops)
9341 (record_full_beneath_to_xfer_partial)
9342 (record_full_beneath_to_insert_breakpoint_ops)
9343 (record_full_beneath_to_insert_breakpoint)
9344 (record_full_beneath_to_remove_breakpoint_ops)
9345 (record_full_beneath_to_remove_breakpoint)
9346 (record_full_beneath_to_stopped_by_watchpoint)
9347 (record_full_beneath_to_stopped_data_address)
9348 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9349 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9350 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9351 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9352 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9353 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9354 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9355 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9356 (record_full_resume, record_full_wait_1)
9357 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9358 (record_full_store_registers, record_full_xfer_partial)
9359 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9360 (record_full_async, record_full_core_xfer_partial): Use target
9361 delegation.
9362 * target-delegates.c: Rebuild.
9363 * target.c (current_xfer_partial): Remove.
9364 (update_current_target): Do not INHERIT or de_fault
9365 to_insert_breakpoint, to_remove_breakpoint,
9366 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9367 to_is_async_p, to_async. Do not set to_xfer_partial field.
9368 (default_xfer_partial): Simplify.
9369 (current_xfer_partial): Remove.
9370 (target_wait, target_resume): Simplify.
9371 (find_default_can_async_p, find_default_is_async_p): Update.
9372 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9373 to_xfer_partial, to_stopped_by_watchpoint,
9374 to_stopped_data_address.
9375 (target_store_registers): Simplify.
9376 (forward_target_remove_breakpoint)
9377 (forward_target_insert_breakpoint): Remove.
9378 (target_remove_breakpoint, target_insert_breakpoint)
9379 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9380 * target.h (struct target_ops) <to_resume, to_wait,
9381 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9382 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9383 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9384 markup.
9385 (forward_target_remove_breakpoint)
9386 (forward_target_insert_breakpoint): Remove.
9387 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9388 directly.
9389 (record_btrace_insert_breakpoint): Delegate directly.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 PR build/7701:
9394 * target-delegates.c: New file.
9395 * target.c: Include target-delegates.c.
9396 (init_dummy_target): Call install_dummy_methods.
9397 (complete_target_initialization): Call install_delegators.
9398 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9399 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9400 * make-target-delegates: New file.
9401
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9403
9404 * record.c (find_record_target): Use find_target_at.
9405 * target.c (find_target_at): New function.
9406 * target.h (find_target_at): Declare.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9411 Add 'ops' argument.
9412 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9413 'ops' argument.
9414 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9415 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9416 'ops' argument.
9417 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9418 argument.
9419 * linux-nat.c (save_sigtrap): Update.
9420 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9421 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9422 (linux_nat_close): Update.
9423 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9424 argument.
9425 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9426 argument.
9427 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9428 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9429 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9430 (tmp_to_async): Add 'ops' argument.
9431 (record_full_stopped_by_watchpoint, record_full_async)
9432 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9433 argument.
9434 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9435 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9436 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9437 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9438 (remote_is_async_p, remote_async): Add 'ops' argument.
9439 (remote_stopped_data_address): Update.
9440 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9441 * target.c (update_current_target)
9442 (find_default_can_async_p, find_default_is_async_p): Update.
9443 (init_dummy_target): Update.
9444 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9445 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9446 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9447 (target_can_async_p, target_is_async_p, target_async)
9448 (target_stopped_by_watchpoint): Update.
9449
9450 2014-02-19 Yao Qi <yao@codesourcery.com>
9451
9452 PR gdb/16220
9453 * gdbarch.sh: Remove startup_gdbarch.
9454 * gdbarch.c: Regenerated.
9455 * gdbarch.h: Likewise.
9456
9457 2014-02-17 Kevin Buettner <kevinb@redhat.com>
9458
9459 * rl78-tdep.c (rl78_g10_register_name): New function.
9460 (rl78_return_value): Add g10 support.
9461 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9462 g10.
9463
9464 2014-02-17 Doug Evans <xdje42@gmail.com>
9465
9466 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9467 (SUBDIR_GUILE_SRCS): Ditto.
9468 (scm-gsmob.o): Ditto.
9469
9470 2014-02-17 Yao Qi <yao@codesourcery.com>
9471
9472 * gnu-nat.c (ILL_RPC): Declare defined function.
9473
9474 2014-02-17 Yao Qi <yao@codesourcery.com>
9475
9476 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9477 mach_msg_type_number_t.
9478 (gnu_write_inferior): Likewise.
9479
9480 2014-02-17 Yao Qi <yao@codesourcery.com>
9481
9482 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9483 in format string.
9484 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9485 (inf_validate_procs, inf_signal): Likewise.
9486 (S_exception_raise_request): Likewise.
9487 (do_mach_notify_dead_name): Likewise.
9488 (steal_exc_port): Likewise.
9489 (gnu_read_inferior): Change 'copy_count''s type to
9490 mach_msg_type_number_t.
9491 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9492 format string.
9493
9494 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9495
9496 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9497 flag. Adjust all users; in particular...
9498 (gnu_wait): ..., don't decrement its value in here...
9499 (gnu_create_inferior): ..., and instead set the flag in here,
9500 around the startup_inferior call, and call that one with
9501 START_INFERIOR_TRAPS_EXPECTED.
9502
9503 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9504 (ILL_RPC): ... new macro.
9505 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9506 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9507 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9508 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9509 functions with ILL_RPC macro.
9510 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9511 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9512 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9513 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9514 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9515 (S_proc_getlogin_reply, S_proc_getsid_reply)
9516 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9517 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9518 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9519 (S_proc_getnports_reply, S_proc_is_important_reply)
9520 (S_proc_get_code_reply): New stub functions, generated with
9521 ILL_RPC macro.
9522
9523 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9524 collected the type check structures.
9525
9526 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9527
9528 2014-02-14 Doug Evans <dje@google.com>
9529
9530 * target.c (target_write_partial): Fix result type.
9531
9532 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9533
9534 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9535 the proper offsets to access fpregset_t.
9536
9537 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9538
9539 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9540 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9541 * h8300-tdep.c (setmachinelist): Remove global.
9542 * hppa-tdep.c (hppa_sigtramp): Remove global.
9543 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9544 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9545 * ravenscar-thread.c (update_target_observer): Remove global.
9546 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9547
9548 2014-02-12 Tom Tromey <tromey@redhat.com>
9549
9550 * common/rsp-low.c: Update comments.
9551 * common/rsp-low.h: Update comments.
9552
9553 2014-02-12 Tom Tromey <tromey@redhat.com>
9554
9555 * common/rsp-low.c (convert_ascii_to_int): Remove.
9556 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9557
9558 2014-02-12 Tom Tromey <tromey@redhat.com>
9559
9560 * common/rsp-low.h (unhexify): Don't declare.
9561 * common/rsp-low.c (unhexify): Remove.
9562
9563 2014-02-12 Tom Tromey <tromey@redhat.com>
9564
9565 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9566 * common/rsp-low.c (convert_int_to_ascii): Remove.
9567
9568 2014-02-12 Tom Tromey <tromey@redhat.com>
9569
9570 * common/rsp-low.h (hexify): Don't declare.
9571 * common/rsp-low.c (hexify): Remove.
9572
9573 2014-02-12 Tom Tromey <tromey@redhat.com>
9574
9575 * common/rsp-low.c (hexify): Never take strlen of argument.
9576
9577 2014-02-12 Tom Tromey <tromey@redhat.com>
9578
9579 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9580 * remote.c (extended_remote_run, remote_rcmd)
9581 (remote_download_trace_state_variable, remote_save_trace_data)
9582 (remote_set_trace_notes): Update.
9583 * tracepoint.c (encode_source_string, tfile_write_status)
9584 (tfile_write_uploaded_tsv): Update.
9585
9586 2014-02-12 Tom Tromey <tromey@redhat.com>
9587
9588 * tracepoint.c: Include rsp-low.h.
9589 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9590 * remote.c: Include rsp-low.h.
9591 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9592 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9593 (remote_unescape_input): Move to common/rsp-low.c.
9594 * common/rsp-low.h: New file.
9595 * common/rsp-low.c: New file.
9596 * Makefile.in (SFILES): Add common/rsp-low.c.
9597 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9598 (COMMON_OBS): Add rsp-low.o.
9599 (rsp-low.o): New target.
9600
9601 2014-02-12 Tom Tromey <tromey@redhat.com>
9602
9603 * utils.h: Include print-utils.h.
9604 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9605 (int_string, core_addr_to_string, core_addr_to_string_nz)
9606 (hex_string, hex_string_custom): Don't declare.
9607 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9608 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9609 (hex_string_custom, int_string, core_addr_to_string)
9610 (core_addr_to_string_nz, host_address_to_string): Move to
9611 common/print-utils.c.
9612 * common/print-utils.h: New file.
9613 * common/print-utils.c: New file
9614 * Makefile.in (SFILES): Add common/print-utils.c.
9615 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9616 (COMMON_OBS): Add print-utils.o.
9617 (print-utils.o): New target.
9618
9619 2014-02-12 Tom Tromey <tromey@redhat.com>
9620
9621 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9622
9623 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9624
9625 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9626
9627 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9628
9629 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9630 if a PT_IO ptrace request returns sucessfully but indicates that 0
9631 bytes were transferred.
9632
9633 2014-02-12 Pedro Alves <palves@redhat.com>
9634 Kevin Buettner <kevinb@redhat.com>
9635
9636 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9637 TYPE_INSTANCE_FLAG_CODE_SPACE.
9638
9639 2014-02-12 Pedro Alves <palves@redhat.com>
9640
9641 * h8300-tdep.c (pseudo_from_raw_register)
9642 (raw_from_pseudo_register): New functions.
9643 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9644 them.
9645
9646 2014-02-12 Pedro Alves <palves@redhat.com>
9647
9648 * h8300-tdep.c (h8300_register_sim_regno): New function.
9649 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9650 gdbarch_register_sim_regno hook.
9651
9652 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9653
9654 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9655
9656 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9657
9658 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9659
9660 2014-02-12 Mark Kettenis <kettenis@gnu.org>
9661
9662 * obsd-tdep.h (obsd_init_abi): New prototype.
9663 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9664 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9665 (obsd_init_abi): New functions.
9666 * i386obsd-tdep.c: Include "obsd-tdep.h".
9667 (i386obsd_init_abi): Call obsd_init_abi.
9668 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9669 (amd64obsd_init_abi): Call obsd_init_abi.
9670 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9671 obsd-tdep.c to gdb_target_obs.
9672
9673 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9674
9675 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9676 double float arguments to 16-byte in the argument slots.
9677
9678 2014-02-11 Doug Evans <xdje42@gmail.com>
9679
9680 * configure.ac: Don't crash if pkg-config is not found and guile
9681 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9682 in guile checks.
9683 * configure: Regenerate.
9684
9685 2014-02-11 Yao Qi <yao@codesourcery.com>
9686
9687 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9688 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9689 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9690 * gnu-nat.c (gnu_xfer_memory): Likewise.
9691 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9692 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9693 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9694 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9695
9696 2014-02-11 Yao Qi <yao@codesourcery.com>
9697
9698 * target.h (enum target_xfer_error): Rename to ...
9699 (enum target_xfer_status): ... it. New. All users updated.
9700 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9701 New.
9702 (TARGET_XFER_STATUS_ERROR_P): New macro.
9703 (target_xfer_error_to_string): Remove declaration.
9704 (target_xfer_status_to_string): Declare.
9705 (target_xfer_partial_ftype): Adjust it.
9706 (struct target_ops) <to_xfer_partial>: Return
9707 target_xfer_status. Add argument xfered_len. Update
9708 comments.
9709 * target.c (target_xfer_error_to_string): Rename to ...
9710 (target_xfer_status_to_string): ... it. New. All callers
9711 updated.
9712 (target_read_live_memory): Likewise. Call target_xfer_partial
9713 instead of target_read.
9714 (memory_xfer_live_readonly_partial): Return
9715 target_xfer_status. Add argument xfered_len.
9716 (raw_memory_xfer_partial): Likewise.
9717 (memory_xfer_partial_1): Likewise.
9718 (memory_xfer_partial): Likewise.
9719 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9720 properly. Update debug message.
9721 (default_xfer_partial, current_xfer_partial): Likewise.
9722 (target_write_partial): Likewise.
9723 (target_read_partial): Likewise. All callers updated.
9724 (read_whatever_is_readable): Likewise.
9725 (target_write_with_progress): Likewise.
9726 (target_read_alloc_1): Likewise.
9727
9728 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9729 * auxv.c (procfs_xfer_auxv): Likewise.
9730 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9731 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9732 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9733 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9734 * corefile.c (read_memory): Adjust.
9735 * corelow.c (core_xfer_partial): Likewise.
9736 * ctf.c (ctf_xfer_partial): Likewise.
9737 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9738 updated.
9739 (darwin_xfer_partial): Likewise.
9740 * exec.c (section_table_xfer_memory_partial): Likewise. All
9741 callers updated.
9742 (exec_xfer_partial): Likewise.
9743 * exec.h (section_table_xfer_memory_partial): Update
9744 declaration.
9745 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9746 negative.
9747 (gnu_xfer_partial): Likewise.
9748 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9749 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9750 (ia64_hpux_xfer_solib_got): Likewise.
9751 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9752 type of 'partial_len' to ULONGEST.
9753 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9754 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9755 (linux_nat_xfer_partial): Likewise.
9756 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9757 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9758 * monitor.c (monitor_xfer_memory): Likewise.
9759 (monitor_xfer_partial): Likewise.
9760 * procfs.c (procfs_xfer_partial): Likewise.
9761 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9762 * record-full.c (record_full_xfer_partial): Likewise.
9763 (record_full_core_xfer_partial): Likewise.
9764 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9765 (gdbsim_xfer_partial): Likewise.
9766 * remote.c (remote_write_bytes_aux): Likewise. All callers
9767 updated.
9768 (remote_write_bytes, remote_read_bytes): Likewise. All
9769 callers updated.
9770 (remote_flash_erase): Likewise. All callers updated.
9771 (remote_write_qxfer): Likewise. All callers updated.
9772 (remote_read_qxfer): Likewise. All callers updated.
9773 (remote_xfer_partial): Likewise.
9774 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9775 (rs6000_xfer_shared_libraries): Likewise.
9776 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9777 (sol_thread_xfer_partial): Likewise.
9778 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9779 (sparc_xfer_partial): Likewise.
9780 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9781 updated.
9782 (spu_xfer_partial): Likewise.
9783 * spu-multiarch.c (spu_xfer_partial): Likewise.
9784 * tracepoint.c (tfile_xfer_partial): Likewise.
9785 * windows-nat.c (windows_xfer_memory): Likewise.
9786 (windows_xfer_shared_libraries): Likewise.
9787 (windows_xfer_partial): Likewise.
9788 * valprint.c: Replace 'target_xfer_error' with
9789 'target_xfer_status' in comments.
9790
9791 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9792
9793 Checked in by Joel Brobecker <brobecker@adacore.com>.
9794 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9795
9796 2014-02-11 Joel Brobecker <brobecker@adacore.com>
9797
9798 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9799 function parameters.
9800
9801 2014-02-10 Will Newton <will.newton@linaro.org>
9802
9803 * elfread.c (elf_rel_plt_read): Look for a .got section if
9804 looking up .got.plt fails.
9805 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9806 on address passed to elf_gnu_ifunc_record_cache.
9807 (elf_gnu_ifunc_resolve_addr): Likewise.
9808 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9809
9810 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9811
9812 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9813 (X_RETTURN): New macro.
9814 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9815
9816 * sparc64-tdep.c (sparc64_init_abi): Hook
9817 sparc_in_function_epilogue_p.
9818
9819 2014-02-10 Gary Benson <gbenson@redhat.com>
9820
9821 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9822 Rename name_matcher to symbol_matcher.
9823
9824 2014-02-10 Gary Benson <gbenson@redhat.com>
9825
9826 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9827 Use expand_symtabs_file_matcher_ftype and
9828 expand_symtabs_symbol_matcher_ftype.
9829
9830 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9831
9832 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9833 (struct ada_symbol_cache): New.
9834 (ada_free_symbol_cache): Forward declare.
9835 (struct ada_pspace_data): New.
9836 (ada_pspace_data_handle): New static global.
9837 (get_ada_pspace_data, ada_pspace_data_cleanup)
9838 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9839 (cache_space, cache): Delete, now folded inside struct
9840 ada_pspace_data.
9841 (ada_get_symbol_cache): New function.
9842 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9843 implementation.
9844 (_initialize_ada_language): Remove initialization of cache_space.
9845 Move call to observer_attach_inferior_exit up, grouping it
9846 with the other observer registrations inside this function.
9847 Rename command to be more general. Add call to
9848 register_program_space_data_with_cleanup.
9849
9850 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9851
9852 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9853 ada_new_objfile_observer.
9854 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9855 (_initialize_tasks): Update uses of ada_new_objfile_observer
9856 and ada_tasks_normal_stop_observer.
9857
9858 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9859
9860 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9861 returned by the 'Length attribute to integer.
9862
9863 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9864
9865 * ada-lang.c (_initialize_ada_language): Initialize
9866 cache_space obstack.
9867
9868 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9869
9870 * ada-lang.c (HASH_SIZE): New macro.
9871 (struct cache_entry): New type.
9872 (cache_space, cache): New static globals.
9873 (ada_clear_symbol_cache, find_entry): New functions.
9874 (lookup_cached_symbol, cache_symbol): Implement.
9875 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9876 (_initialize_ada_language): Attach ada_new_objfile_observer
9877 and ada_free_objfile_observer.
9878
9879 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9880
9881 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9882 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9883 struct block * parameter.
9884 (ada_lookup_symbol_list_worker): Constify local variable "block".
9885 Remove cast which is no longer necessary.
9886
9887 2014-02-10 Doug Evans <xdje42@gmail.com>
9888
9889 Add Guile as an extension language.
9890 * NEWS: Mention Guile scripting.
9891 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9892 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9893 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9894 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9895 (CLIBS): Add GUILE_LIBS.
9896 (install-guile): New rule.
9897 (guile.o): New rule.
9898 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9899 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9900 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9901 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9902 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9903 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9904 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9905 * configure.ac: New option --with-guile.
9906 * configure: Regenerate.
9907 * config.in: Regenerate.
9908 * auto-load.c: Remove #include "python/python.h". Add #include
9909 "gdb/section-scripts.h".
9910 (source_section_scripts): Handle Guile scripts.
9911 (_initialize_auto_load): Add name of Guile objfile script to
9912 scripts-directory help text.
9913 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9914 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9915 (struct breakpoint): New member scm_bp_object.
9916 * defs.h (enum command_control_type): New value guile_control.
9917 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9918 "extension.h".
9919 (show_user): Update comment.
9920 (_initialize_cli_cmds): Update help text for "show user". Update help
9921 text for max-user-call-depth.
9922 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9923 "extension.h".
9924 (multi_line_command_p): Add guile_control.
9925 (print_command_lines): Handle guile_control.
9926 (execute_control_command, recurse_read_control_structure): Ditto.
9927 (process_next_line): Recognize "guile" commands.
9928 * disasm.c (gdb_disassemble_info): Make non-static.
9929 * disasm.h: #include "dis-asm.h".
9930 (struct gdbarch): Add forward decl.
9931 (gdb_disassemble_info): Declare.
9932 * extension.c: #include "guile/guile.h".
9933 (extension_languages): Add guile.
9934 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9935 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9936 * gdbtypes.c (get_unsigned_type_max): New function.
9937 (get_signed_type_minmax): New function.
9938 * gdbtypes.h (get_unsigned_type_max): Declare.
9939 (get_signed_type_minmax): Declare.
9940 * guile/README: New file.
9941 * guile/guile-internal.h: New file.
9942 * guile/guile.c: New file.
9943 * guile/guile.h: New file.
9944 * guile/scm-arch.c: New file.
9945 * guile/scm-auto-load.c: New file.
9946 * guile/scm-block.c: New file.
9947 * guile/scm-breakpoint.c: New file.
9948 * guile/scm-disasm.c: New file.
9949 * guile/scm-exception.c: New file.
9950 * guile/scm-frame.c: New file.
9951 * guile/scm-gsmob.c: New file.
9952 * guile/scm-iterator.c: New file.
9953 * guile/scm-lazy-string.c: New file.
9954 * guile/scm-math.c: New file.
9955 * guile/scm-objfile.c: New file.
9956 * guile/scm-ports.c: New file.
9957 * guile/scm-pretty-print.c: New file.
9958 * guile/scm-safe-call.c: New file.
9959 * guile/scm-string.c: New file.
9960 * guile/scm-symbol.c: New file.
9961 * guile/scm-symtab.c: New file.
9962 * guile/scm-type.c: New file.
9963 * guile/scm-utils.c: New file.
9964 * guile/scm-value.c: New file.
9965 * guile/lib/gdb.scm: New file.
9966 * guile/lib/gdb/boot.scm: New file.
9967 * guile/lib/gdb/experimental.scm: New file.
9968 * guile/lib/gdb/init.scm: New file.
9969 * guile/lib/gdb/iterator.scm: New file.
9970 * guile/lib/gdb/printing.scm: New file.
9971 * guile/lib/gdb/types.scm: New file.
9972 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9973 (VPATH): Add $(GUILE_SRCDIR).
9974 (GUILE_DIR): New variable.
9975 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9976 (all): Add stamp-guile dependency.
9977 (stamp-guile): New rule.
9978 (clean-guile, install-guile, uninstall-guile): New rules.
9979 (install-only): Add install-guile dependency.
9980 (uninstall): Add uninstall-guile dependency.
9981 (clean): Add clean-guile dependency.
9982
9983 2014-02-09 Doug Evans <xdje42@gmail.com>
9984
9985 Revert this patch (which I approved, mea culpa).
9986
9987 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9988
9989 * Makefile.in (all-lib): Remove.
9990 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9991
9992 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9993
9994 Fix Python stack corruption.
9995 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9996 gdb_py_longest.
9997
9998 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9999
10000 * Makefile.in (all-lib): Remove.
10001 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10002
10003 2014-02-07 Doug Evans <dje@google.com>
10004
10005 * extension-priv.h (extension_language_script_ops): Add comment.
10006 (extension_language_ops): Add comment.
10007 (active_ext_lang_state): Fix typo in comment.
10008
10009 2014-02-07 Pedro Alves <palves@redhat.com>
10010
10011 PR breakpoints/16292
10012 * infrun.c (handle_signal_stop) <signal arrives while stepping
10013 over a breakpoint>: Switch back to the stepping thread.
10014
10015 2014-02-07 Yao Qi <yao@codesourcery.com>
10016
10017 * target.c (target_xfer_partial): Return zero if LEN is zero.
10018
10019 2014-02-07 Yao Qi <yao@codesourcery.com>
10020
10021 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10022 (ld_so_xfer_auxv): Likewise.
10023 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10024 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10025 * corelow.c (core_xfer_partial): Likewise.
10026 * ctf.c (ctf_xfer_partial): Likewise.
10027 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10028 (darwin_xfer_partial): Likewise.
10029 * exec.c (exec_xfer_partial): Likewise.
10030 * gnu-nat.c (gnu_xfer_partial): Likewise.
10031 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10032 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10033 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10034 * linux-nat.c (linux_xfer_siginfo): Likewise.
10035 (linux_proc_xfer_spu): Likewise.
10036 * procfs.c (procfs_xfer_partial): Likewise.
10037 * record-full.c (record_full_xfer_partial): Likewise.
10038 (record_full_core_xfer_partial): Likewise.
10039 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10040 * remote.c (remote_write_qxfer): Likewise.
10041 (remote_write_qxfer, remote_read_qxfer): Likewise.
10042 (remote_xfer_partial): Likewise.
10043 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10044 (rs6000_xfer_shared_libraries): Likewise.
10045 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10046 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10047 (spu_xfer_partial): Likewise.
10048 * target.c (memory_xfer_partial_1): Likewise.
10049 * tracepoint.c (tfile_xfer_partial): Likewise.
10050 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10051 (windows_xfer_partial): Likewise.
10052
10053 2014-02-07 Yao Qi <yao@codesourcery.com>
10054
10055 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10056 comments.
10057 (core_xfer_shared_libraries_aix): Likewise.
10058 * gdbarch.c, gdbarch.h: Regenerated.
10059 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10060 ULONGEST. Change 'len_avail' type to ULONGEST.
10061 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10062 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10063 declaration.
10064 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10065
10066 2014-02-07 Yao Qi <yao@codesourcery.com>
10067
10068 * corefile.c (memory_error): Get 'exception' from ERR and pass
10069 'exception' to throw_error.
10070
10071 2014-02-06 Doug Evans <xdje42@gmail.com>
10072
10073 * configure.ac (libpython checking): Remove all but python.o from
10074 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10075 * configure: Regenerate.
10076
10077 * Makefile.in (SFILES): Add extension.c.
10078 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10079 (COMMON_OBS): Add extension.o.
10080 * extension.h: New file.
10081 * extension-priv.h: New file.
10082 * extension.c: New file.
10083
10084 * python/python-internal.h: #include "extension.h".
10085 (gdbpy_auto_load_enabled): Declare.
10086 (gdbpy_apply_val_pretty_printer): Declare.
10087 (gdbpy_apply_frame_filter): Declare.
10088 (gdbpy_preserve_values): Declare.
10089 (gdbpy_breakpoint_cond_says_stop): Declare.
10090 (gdbpy_breakpoint_has_cond): Declare.
10091 (void source_python_script_for_objfile): Delete.
10092 * python/python.c: #include "extension-priv.h".
10093 Delete inclusion of "observer.h".
10094 (extension_language_python): Moved here and renamed from
10095 script_language_python in py-auto-load.c.
10096 Redefined to be of type extension_language_defn.
10097 (python_extension_script_ops): New global.
10098 (python_extension_ops): New global.
10099 (struct python_env): New member previous_active.
10100 (restore_python_env): Call restore_active_ext_lang.
10101 (ensure_python_env): Call set_active_ext_lang.
10102 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10103 New arg extlang.
10104 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10105 New arg extlang.
10106 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10107 New arg extlang.
10108 (gdbpy_eval_from_control_command): Renamed from
10109 eval_python_from_control_command, made static. New arg extlang.
10110 (gdbpy_source_script) Renamed from source_python_script, made static.
10111 New arg extlang.
10112 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10113 result to int. New arg extlang.
10114 (gdbpy_source_objfile_script): Renamed from
10115 source_python_script_for_objfile, made static. New arg extlang.
10116 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10117 static. New args extlang, extlang_printers. Change result type to
10118 "void".
10119 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10120 static. New arg extlang. Rename arg printers to extlang_printers
10121 and change type to ext_lang_type_printers *.
10122 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10123 static. Replace argument arg with extlang, extlang_printers.
10124 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10125 (!HAVE_PYTHON, source_python_script): Delete.
10126 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10127 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10128 (!HAVE_PYTHON, start_type_printers): Delete.
10129 (!HAVE_PYTHON, apply_type_printers): Delete.
10130 (!HAVE_PYTHON, free_type_printers): Delete.
10131 (_initialize_python): Delete call to observer_attach_before_prompt.
10132 (finalize_python): Set/restore active extension language.
10133 (gdbpy_finish_initialization) Renamed from
10134 finish_python_initialization, made static. New arg extlang.
10135 (gdbpy_initialized): New function.
10136 * python/python.h: #include "extension.h". Delete #include
10137 "value.h", "mi/mi-cmds.h".
10138 (extension_language_python): Declare.
10139 (GDBPY_AUTO_FILE_NAME): Delete.
10140 (enum py_bt_status): Moved to extension.h and renamed to
10141 ext_lang_bt_status.
10142 (enum frame_filter_flags): Moved to extension.h.
10143 (enum py_frame_args): Moved to extension.h and renamed to
10144 ext_lang_frame_args.
10145 (finish_python_initialization): Delete.
10146 (eval_python_from_control_command): Delete.
10147 (source_python_script): Delete.
10148 (apply_val_pretty_printer): Delete.
10149 (apply_frame_filter): Delete.
10150 (preserve_python_values): Delete.
10151 (gdbpy_script_language_defn): Delete.
10152 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10153 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10154
10155 * auto-load.c: #include "extension.h".
10156 (GDB_AUTO_FILE_NAME): Delete.
10157 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10158 (script_language_gdb): Delete, moved to extension.c and renamed to
10159 extension_language_gdb.
10160 (source_gdb_script_for_objfile): Delete.
10161 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10162 (loaded_script): Change type of language member to
10163 struct extension_language_defn *.
10164 (init_loaded_scripts_info): Initialize
10165 unsupported_script_warning_printed.
10166 (maybe_add_script): Make static. Change type of language arg to
10167 struct extension_language_defn *.
10168 (clear_section_scripts): Reset unsupported_script_warning_printed.
10169 (auto_load_objfile_script_1): Rewrite to use extension language API.
10170 (auto_load_objfile_script): Make public. Remove support-compiled-in
10171 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10172 (source_section_scripts): Rewrite to use extension language API.
10173 (load_auto_scripts_for_objfile): Rewrite to use
10174 auto_load_scripts_for_objfile.
10175 (collect_matching_scripts_data): Change type of language member to
10176 struct extension_language_defn *.
10177 (auto_load_info_scripts): Change type of language arg to
10178 struct extension_language_defn *.
10179 (unsupported_script_warning_print): New function.
10180 (script_not_found_warning_print): Make static.
10181 (_initialize_auto_load): Rewrite construction of scripts-directory
10182 help.
10183 * auto-load.h (struct objfile): Add forward decl.
10184 (struct script_language): Delete.
10185 (struct auto_load_pspace_info): Add forward decl.
10186 (struct extension_language_defn): Add forward decl.
10187 (maybe_add_script): Delete.
10188 (auto_load_objfile_script): Declare.
10189 (script_not_found_warning_print): Delete.
10190 (auto_load_info_scripts): Update prototype.
10191 (auto_load_gdb_scripts_enabled): Declare.
10192 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10193 auto_load_python_scripts_enabled and made public.
10194 (script_language_python): Delete, moved to python.c.
10195 (gdbpy_script_language_defn): Delete.
10196 (info_auto_load_python_scripts): Update to use
10197 extension_language_python.
10198
10199 * breakpoint.c (condition_command): Replace call to
10200 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10201 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10202 with call to breakpoint_ext_lang_cond_says_stop.
10203 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10204 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10205 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10206 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10207 New arg slang.
10208 (local_setattro): Print name of extension language with existing
10209 stop condition.
10210
10211 * valprint.c (val_print, value_print): Update to call
10212 apply_ext_lang_val_pretty_printer.
10213 * cp-valprint.c (cp_print_value): Update call to
10214 apply_ext_lang_val_pretty_printer.
10215 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10216 (gdbpy_apply_val_pretty_printer): Renamed from
10217 apply_val_pretty_printer. New arg extlang.
10218 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10219
10220 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10221 extension language API.
10222 * cli/cli-script.c (execute_control_command): Update to call
10223 eval_ext_lang_from_control_command.
10224
10225 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10226 enum ext_lang_bt_status values. Update call to
10227 apply_ext_lang_frame_filter.
10228 (mi_cmd_stack_list_locals): Ditto.
10229 (mi_cmd_stack_list_args): Ditto.
10230 (mi_cmd_stack_list_variables): Ditto.
10231 * mi/mi-main.c: Delete #include "python/python-internal.h".
10232 Add #include "extension.h".
10233 (mi_cmd_list_features): Replace reference to python internal variable
10234 gdb_python_initialized with call to ext_lang_initialized_p.
10235
10236 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10237 Update to use enum ext_lang_frame_args. Update to call
10238 apply_ext_lang_frame_filter.
10239 * python/py-framefilter.c (extract_sym): Update to use enum
10240 ext_lang_bt_status.
10241 (extract_value, py_print_type, py_print_value): Ditto.
10242 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10243 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10244 (py_print_frame): Ditto.
10245 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10246 New arg extlang. Update to use enum ext_lang_bt_status.
10247
10248 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10249 finish_python_initialization. Replace with call to
10250 finish_ext_lang_initialization.
10251
10252 * typeprint.c (do_free_global_table): Update to call
10253 free_ext_lang_type_printers.
10254 (create_global_typedef_table): Update to call
10255 start_ext_lang_type_printers.
10256 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10257 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10258 (type_print_options): Change type of global_printers from "void *"
10259 to "struct ext_lang_type_printers *".
10260
10261 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10262 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10263 (gdbpy_preserve_values): Renamed from preserve_python_values.
10264 New arg extlang.
10265 (!HAVE_PYTHON, preserve_python_values): Delete.
10266
10267 * utils.c (quit_flag): Delete, moved to extension.c.
10268 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10269 extension.c.
10270
10271 * eval.c: Delete #include "python/python.h".
10272 * main.c: Delete #include "python/python.h".
10273
10274 * defs.h: Update comment.
10275
10276 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10277
10278 GDB 7.7 released.
10279
10280 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10281
10282 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10283 defined.
10284
10285 2014-02-05 Yao Qi <yao@codesourcery.com>
10286
10287 * remote.c (remote_pass_signals): Remove local 'buf' and use
10288 rs->buf.
10289 (remote_program_signals): Likewise.
10290
10291 2014-02-05 Yao Qi <yao@codesourcery.com>
10292
10293 * ctf.c: Include "inferior.h" and "gdbthread.h".
10294 (CTF_PID): A new macro.
10295 (ctf_open): Call inferior_appeared and add_thread_silent.
10296 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10297 (ctf_thread_alive): New function.
10298 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10299
10300 2014-02-05 Yao Qi <yao@codesourcery.com>
10301
10302 Revert this patch:
10303
10304 2013-05-24 Yao Qi <yao@codesourcery.com>
10305
10306 * tracepoint.c (TFILE_PID): Remove.
10307 (tfile_open): Don't add thread and inferior.
10308 (tfile_close): Don't set 'inferior_ptid'. Don't call
10309 exit_inferior_silent.
10310 (tfile_thread_alive): Remove.
10311 (init_tfile_ops): Don't set field 'to_thread_alive' of
10312 tfile_ops.
10313
10314 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10315
10316 * remote.c (remote_start_remote): Call remote_check_symbols even
10317 if only symbol-file (not file) has been given.
10318
10319 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10320
10321 * gdbarch.sh (skip_entrypoint): New callback.
10322 * gdbarch.c, gdbarch.h: Regenerate.
10323 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10324 * infrun.c (fill_in_stop_func): Likewise.
10325 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10326 (ppc_elfv2_elf_make_msymbol_special): New function.
10327 (ppc_elfv2_skip_entrypoint): Likewise.
10328 (ppc_linux_init_abi): Install them for ELFv2.
10329
10330 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10331
10332 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10333 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10334 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10335 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10336 structures returned in GPRs.
10337
10338 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10339
10340 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10341 offset to the stack parameter list for the ELFv2 ABI.
10342
10343 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10344
10345 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10346 set_gdbarch_convert_from_func_ptr_addr and
10347 set_gdbarch_elf_make_msymbol_special for ELFv1.
10348 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10349 function descriptors on ELFv1.
10350 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10351 set up r12 at function entry.
10352
10353 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10354
10355 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10356 (struct gdbarch_tdep): New member elf_abi.
10357
10358 * rs6000-tdep.c: Include "elf/ppc64.h".
10359 (rs6000_gdbarch_init): Detect ELF ABI version.
10360
10361 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10362
10363 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10364 within a register pair holding a DFP 128-bit value on little-endian.
10365 (ppc64_sysv_abi_return_value_base): Likewise.
10366 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10367 (dfp_pseudo_register_write): Likewise.
10368
10369 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10370
10371 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10372 offset on little-endian when passing _Decimal32.
10373 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10374
10375 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10376
10377 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10378 of the overlapped FP register within the VSX register on little-
10379 endian platforms.
10380 (efpr_pseudo_register_write): Likewise.
10381
10382 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10383
10384 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10385 offset on little-endian when passing small structures.
10386
10387 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10388
10389 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10390 (struct ppc64_sysv_argpos): New data structure.
10391 (ppc64_sysv_abi_push_float): Remove.
10392 (ppc64_sysv_abi_push_val): New function.
10393 (ppc64_sysv_abi_push_integer): Likewise.
10394 (ppc64_sysv_abi_push_freg): Likewise.
10395 (ppc64_sysv_abi_push_vreg): Likewise.
10396 (ppc64_sysv_abi_push_param): Likewise.
10397 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10398 (ppc64_sysv_abi_return_value_base): New function.
10399 (ppc64_sysv_abi_return_value): Refactor to use it.
10400
10401 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10402
10403 * NEWS: Document new target powerpc64le-*-linux*.
10404
10405 2014-02-04 Mark Kettenis <kettenis@gnu.org>
10406
10407 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10408 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10409 core dumps.
10410 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10411 register set used in ELF core dumps. Add floating-point register set.
10412
10413 2014-02-03 Kevin Buettner <kevinb@redhat.com>
10414
10415 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10416 dwarf2_to_gdb[] table using symbolic constants. Adjust
10417 penultimate entry from number representing the PC register
10418 to symbolic constant representing the MDR register. Add
10419 constant for the PC register to the end of the table.
10420
10421 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10422
10423 * bsd-kvm.c: Include <sys/param.h>
10424
10425 2014-02-03 Mark Kettenis <kettenis@gnu.org>
10426
10427 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10428
10429 2014-01-31 Joel Brobecker <brobecker@adacore.com>
10430
10431 * ada-lang.h (clear_ada_sym_cache): Delete.
10432
10433 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10434
10435 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10436
10437 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10438
10439 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10440 the sigreturn register save area only if the syscall is
10441 sigreturn.
10442
10443 2014-01-29 Joel Brobecker <brobecker@adacore.com>
10444
10445 * valops.c (value_slice): Minor reformatting.
10446
10447 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10448
10449 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10450
10451 2014-01-28 Joel Brobecker <brobecker@adacore.com>
10452
10453 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10454 New static globals.
10455 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10456 (ada_ignore_descriptive_types_p): New static global.
10457 (find_parallel_type_by_descriptive_type): Return immediately
10458 if ada_ignore_descriptive_types_p is set.
10459 (_initialize_ada_language): Register new commands "maintenance
10460 set ada", "maintenance show ada", "maintenance set ada
10461 ignore-descriptive-types" and "maintenance show ada
10462 ignore-descriptive-types".
10463 * NEWS: Add entry for new "maint ada set/show
10464 ignore-descriptive-types" commands.
10465
10466 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10467
10468 * record-btrace.c (record_btrace_close): Call btrace_teardown
10469 for all threads.
10470
10471 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10472
10473 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10474 "ui-out.h".
10475
10476 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10477
10478 * ada-typeprint (type_is_full_subrange_of_target_type):
10479 New function.
10480 (print_range): Add parameter bounds_prefered_p. If not set,
10481 try printing range types using the name of their base type.
10482 (print_range_type): Add parameter bounds_prefered_p.
10483 Use it in call to print_range.
10484 (print_array_type, ada_print_type): Update calls to print_range
10485 and print_range_type.
10486
10487 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10488
10489 * ada-typeprint.c (print_array_type, print_choices, print_range)
10490 (print_range_bound, print_dynamic_range_bound, print_range_type):
10491 Remove declaration.
10492
10493 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-typeprint.c (print_range): Add missing empty line
10496 after local declaration.
10497
10498 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10499
10500 * ada-valprint.c (print_optional_low_bound): Get index_type's
10501 target type for as long as it is a TYPE_CODE_RANGE.
10502
10503 2014-01-27 Joel Brobecker <brobecker@adacore.com>
10504
10505 * procfs.c (procfs_make_note_section): Remove assertion and
10506 associated comment.
10507
10508 2014-01-24 Yao Qi <yao@codesourcery.com>
10509
10510 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10511 * corelow.c (get_core_siginfo): Likewise.
10512
10513 2014-01-24 Yao Qi <yao@codesourcery.com>
10514
10515 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10516 ULONGEST. Don't check 'len' is negative.
10517 (remote_write_bytes): Change type of 'len' to ULONGEST.
10518
10519 2014-01-23 Tom Tromey <tromey@redhat.com>
10520
10521 PR python/16485:
10522 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10523 Handle exception from frame.block.
10524 (FrameVars.fetch_frame_locals): Likewise.
10525
10526 2014-01-23 Tom Tromey <tromey@redhat.com>
10527
10528 PR python/16487:
10529 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10530 on a NULL pointer. Move "goto error" to correct place.
10531
10532 2014-01-23 Tom Tromey <tromey@redhat.com>
10533
10534 PR python/16491:
10535 * python/py-framefilter.c (apply_frame_filter): Call
10536 ensure_python_env after computing gdbarch.
10537
10538 2014-01-23 Yao Qi <yao@codesourcery.com>
10539
10540 * target.c (raw_memory_xfer_partial): Change argument type
10541 from void * to gdb_byte *.
10542 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10543
10544 2014-01-22 Doug Evans <dje@google.com>
10545
10546 New gdbserver option --debug-format=timestamp.
10547 * NEWS: Mention it.
10548
10549 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10550
10551 * syscalls/s390x-linux.xml: New file.
10552 * syscalls/s390-linux.xml: New file.
10553 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10554 (XML_SYSCALL_FILENAME_S390X): Likewise.
10555 (op_svc): New enum value for SVC opcode.
10556 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10557 (s390_linux_get_syscall_number): New function.
10558 (s390_gdbarch_init): Register '*get_syscall_number' and the
10559 syscall xml file name.
10560 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10561 "s390-linux.xml" and "s390x-linux.xml".
10562 * NEWS: Announce new feature.
10563
10564 2014-01-22 Baruch Siach <baruch@tkos.co.il>
10565
10566 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10567
10568 2014-01-22 Pedro Alves <palves@redhat.com>
10569
10570 * xtensa-config.c: Include defs.h.
10571
10572 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10573
10574 * common/common-utils.h: Add "ARI:" comment beside __func__
10575 reference.
10576
10577 2014-01-22 Joel Brobecker <brobecker@adacore.com>
10578
10579 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10580 documentation a bit.
10581
10582 2014-01-21 Roland McGrath <mcgrathr@google.com>
10583
10584 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10585 * configure: Regenerate.
10586 * aclocal.m4: Regenerate.
10587 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10588 New substituted variables.
10589 (install-strip): New target.
10590 (INSTALL_SCRIPT): New substituted variable.
10591 (FLAGS_TO_PASS): Add it.
10592 (install-only): Use $(INSTALL_SCRIPT) rather than
10593 $(INSTALL_PROGRAM) for gcore.
10594
10595 2014-01-20 Tom Tromey <tromey@redhat.com>
10596
10597 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10598 together.
10599
10600 2014-01-20 Tom Tromey <tromey@redhat.com>
10601
10602 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10603 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10604 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10605 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10606 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10607 (struct cmd_list_element) <flags>: Remove.
10608 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10609 doc_allocated>: New fields.
10610 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10611 bitfields.
10612 * maint.c (maintenance_do_deprecate): Update.
10613 * top.c (execute_command): Update.
10614
10615 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10616
10617 * xtensa-linux-nat.c: Include asm/ptrace.h.
10618
10619 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10620
10621 * Makefile.in (SFILES): Add d-support.c.
10622 (COMMON_OBS): Add d-support.o.
10623 * d-lang.h (d_parse_symbol): Add comment, now defined in
10624 d-support.c.
10625 * d-lang.c (parse_call_convention)
10626 (parse_attributes, parse_function_types)
10627 (parse_function_args, parse_type, parse_identifier)
10628 (call_convention_p, d_parse_symbol): Move functions to ...
10629 * d-support.c: ... New file.
10630
10631 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10632
10633 * d-lang.h (d_parse_symbol): Add declaration.
10634 * d-lang.c (extract_identifiers)
10635 (extract_type_info): Remove functions.
10636 (parse_call_convention, parse_attributes)
10637 (parse_function_types, parse_function_args)
10638 (parse_type, parse_identifier, call_convention_p)
10639 (d_parse_symbol): New functions.
10640 (d_demangle): Use d_parse_symbol to demangle D symbols.
10641
10642 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10643
10644 * d-lang.h (struct builtin_d_type): New data type.
10645 (builtin_d_type): Add declaration.
10646 * d-lang.c (d_language_arch_info, build_d_types)
10647 (builtin_d_type): New functions.
10648 (enum d_primitive_types): New data type.
10649 (d_language_defn): Change c_language_arch_info to
10650 d_language_arch_info.
10651 (d_type_data): New static variable.
10652 (_initialize_d_language): Initialize d_type_data.
10653
10654 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10655
10656 * d-lang.h (d_main_name): Add declaration.
10657 * d-lang.c (d_main_name): New function.
10658 * symtab.c (find_main_name): Add call to d_main_name.
10659
10660 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10661
10662 * d-lang.c (d_language_defn): Change macro_expansion_c to
10663 macro_expansion_no.
10664
10665 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10666
10667 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10668
10669 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10670
10671 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10672 gdb_exception" declaration.
10673 * remote.c (getpkt_or_notif_sane): Likewise.
10674
10675 2014-01-17 Doug Evans <dje@google.com>
10676
10677 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10678 function, contents of dirnames_to_char_ptr_vec_append moved here.
10679 (delim_string_to_char_ptr_vec): New function.
10680 (dirnames_to_char_ptr_vec_append): Rewrite.
10681 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10682
10683 2014-01-17 Doug Evans <dje@google.com>
10684
10685 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10686 and moved here ...
10687 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10688 #include "common-utils.h".
10689 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10690 * common/vec.h (VEC_ASSERT_PASS): Update.
10691 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10692 (MACH_CHECK_ERROR): Update.
10693
10694 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10695
10696 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10697 comments.
10698 * gdbarch.h: Regenerate.
10699
10700 2014-01-16 Tom Tromey <tromey@redhat.com>
10701
10702 * value.c (struct value) <regnum>: Move earlier.
10703
10704 2014-01-16 Tom Tromey <tromey@redhat.com>
10705
10706 * remote.c (extended_remote_create_inferior): Rename from
10707 extended_remote_create_inferior_1. Add "ops" argument. Remove
10708 old implementation.
10709
10710 2014-01-16 Pedro Alves <palves@redhat.com>
10711
10712 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10713 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10714 the backchain.
10715
10716 2014-01-16 Doug Evans <dje@google.com>
10717
10718 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10719
10720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10721
10722 * btrace.h (btrace_thread_flag): New.
10723 (struct btrace_thread_info) <flags>: New.
10724 * record-btrace.c (record_btrace_resume_thread)
10725 (record_btrace_find_thread_to_move, btrace_step_no_history)
10726 (btrace_step_stopped, record_btrace_start_replaying)
10727 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10728 (record_btrace_find_resume_thread): New.
10729 (record_btrace_resume, record_btrace_wait): Extend.
10730 (record_btrace_can_execute_reverse): New.
10731 (record_btrace_open): Fail in non-stop mode.
10732 (record_btrace_set_replay): Split into this, ...
10733 (record_btrace_stop_replaying): ... this, ...
10734 (record_btrace_clear_histories): ... and this.
10735 (init_record_btrace_ops): Init to_can_execute_reverse.
10736 * NEWS: Announce it.
10737
10738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10739
10740 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10741 (forward_target_decr_pc_after_break)
10742 (target_decr_pc_after_break): New.
10743 * target.c (forward_target_decr_pc_after_break)
10744 (target_decr_pc_after_break): New.
10745 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10746 instead of gdbarch_decr_pc_after_break.
10747 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10748 instead of gdbarch_decr_pc_after_break.
10749 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10750 instead of gdbarch_decr_pc_after_break.
10751 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10752 instead of gdbarch_decr_pc_after_break.
10753 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10754 instead of gdbarch_decr_pc_after_break.
10755 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10756 instead of gdbarch_decr_pc_after_break.
10757
10758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10759
10760 * btrace.c: Include regcache.h.
10761 (btrace_add_pc): New.
10762 (btrace_enable): Call btrace_add_pc.
10763 (btrace_is_empty): New.
10764 * btrace.h (btrace_is_empty): New.
10765 * record-btrace.c (require_btrace, record_btrace_info): Call
10766 btrace_is_empty.
10767
10768 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10769
10770 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10771 Support delta reads.
10772 (linux_disable_btrace): Change return type.
10773 * common/linux-btrace.h (linux_read_btrace): Change parameters
10774 and return type to allow error reporting. Update users.
10775 (linux_disable_btrace): Change return type. Update users.
10776 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10777 New.
10778 (btrace_error): New.
10779 (btrace_block) <begin>: Comment on BEGIN == 0.
10780 * btrace.c (btrace_compute_ftrace): Start from the end of
10781 the current trace.
10782 (btrace_stitch_trace, btrace_clear_history): New.
10783 (btrace_fetch): Read delta trace, return if replaying.
10784 (btrace_clear): Move clear history code to btrace_clear_history.
10785 (parse_xml_btrace): Throw an error if parsing failed.
10786 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10787 and return type to allow error reporting.
10788 (target_read_btrace): Change parameters and return type to allow
10789 error reporting.
10790 * target.c (target_read_btrace): Update.
10791 * remote.c (remote_read_btrace): Support delta reads. Pass
10792 errors on.
10793 * NEWS: Announce it.
10794
10795 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10796
10797 * record.h (record_btrace_frame_unwind)
10798 (record_btrace_tailcall_frame_unwind): New declarations.
10799 * dwarf2-frame: Include record.h
10800 (dwarf2_frame_cfa): Throw an error for btrace frames.
10801 * record-btrace.c: Include hashtab.h.
10802 (btrace_get_bfun_name): New.
10803 (btrace_call_history): Call btrace_get_bfun_name.
10804 (struct btrace_frame_cache): New.
10805 (bfcache): New.
10806 (bfcache_hash, bfcache_eq, bfcache_new): New.
10807 (btrace_get_frame_function): New.
10808 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10809 (record_btrace_frame_this_id): Compute own id.
10810 (record_btrace_frame_prev_register): Provide PC, throw_error
10811 for all other registers.
10812 (record_btrace_frame_sniffer): Detect btrace frames.
10813 (record_btrace_tailcall_frame_sniffer): New.
10814 (record_btrace_frame_dealloc_cache): New.
10815 (record_btrace_frame_unwind): Add new functions.
10816 (record_btrace_tailcall_frame_unwind): New.
10817 (_initialize_record_btrace): Allocate cache.
10818 * btrace.c (btrace_clear): Call reinit_frame_cache.
10819 * NEWS: Announce it.
10820
10821 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10822
10823 * record-btrace.c (record_btrace_set_replay)
10824 (record_btrace_goto_begin, record_btrace_goto_end)
10825 (record_btrace_goto): New.
10826 (init_record_btrace_ops): Initialize them.
10827 * NEWS: Announce it.
10828
10829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10830
10831 * record-btrace.c (record_btrace_find_new_threads)
10832 (record_btrace_thread_alive): New.
10833 (init_record_btrace_ops): Initialize to_find_new_threads and
10834 to_thread_alive.
10835
10836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10837
10838 * record-btrace.c (record_btrace_resume): New.
10839 (record_btrace_wait): New.
10840 (init_record_btrace_ops): Initialize to_wait and to_resume.
10841
10842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10843
10844 * record-btrace.c (record_btrace_xfer_partial)
10845 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10846 (record_btrace_allow_memory_access): New.
10847 (init_record_btrace_ops): Initialize new methods.
10848 * target.c (raw_memory_xfer_partial): Bail out if target reports
10849 that this memory is not available.
10850
10851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10852
10853 * target.h (target_ops) <to_insert_breakpoint>
10854 <to_remove_breakpoint>: Add target_ops parameter.
10855 (forward_target_insert_breakpoint): New.
10856 (forward_target_remove_breakpoint): New.
10857 (memory_remove_breakpoint, memory_insert_breakpoint):
10858 Add target_ops parameter.
10859 * target.c (target_insert_breakpoint): Split into this and ...
10860 (forward_target_insert_breakpoint): ... this.
10861 (target_remove_breakpoint): Split into this and ...
10862 (forward_target_remove_breakpoint): ... this.
10863 (debug_to_insert_breakpoint): Add target_ops parameter.
10864 Call forward_target_insert_breakpoint.
10865 (debug_to_remove_breakpoint): Add target_ops parameter.
10866 Call forward_target_remove_breakpoint.
10867 (update_current_target): Do not inherit or default to_insert_breakpoint
10868 and to_remove_breakpoint.
10869 * corelow.c (ignore): Add target_ops parameter.
10870 * exec.c (ignore): Add target_ops parameter.
10871 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10872 Add target_ops parameter.
10873 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10874 Add target_ops parameter.
10875 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10876 Add target_ops parameter.
10877 * record-full.c (record_full_beneath_to_insert_breakpoint)
10878 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10879 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10880 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10881 (record_full_core_remove_breakpoint): Add target_ops parameter.
10882 Update users.
10883 (record_full_beneath_to_insert_breakpoint_ops)
10884 (record_full_beneath_to_remove_breakpoint_ops)
10885 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10886 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10887 tmp_to_remove_breakpoint_ops,
10888 record_full_beneath_to_insert_breakpoint_ops, and
10889 record_full_beneath_to_remove_breakpoint_ops.
10890 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10891 (m32r_remove_breakpoint): Add target_ops parameter.
10892 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10893 Add target_ops parameter.
10894 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10895 Add target_ops parameter.
10896
10897 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10898 Markus Metzger <markus.t.metzger@intel.com>
10899
10900 * record-btrace.c: Include frame-unwind.h.
10901 (record_btrace_frame_unwind_stop_reason)
10902 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10903 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10904 New.
10905 (init_record_btrace_ops): Install it.
10906
10907 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10908
10909 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10910 get_prev_frame_1.
10911
10912 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10913
10914 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10915 earlier.
10916
10917 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10918
10919 * frame-unwind.c: Include target.h.
10920 (frame_unwind_try_unwinder): New function with code from ...
10921 (frame_unwind_find_by_frame): ... here. New variable
10922 unwinder_from_target, call also target_get_unwinder)
10923 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10924 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10925 * target.h (struct target_ops): New fields to_get_unwinder and
10926 to_get_tailcall_unwinder.
10927 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10928
10929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10930
10931 * record-btrace.c (record_btrace_fetch_registers)
10932 (record_btrace_store_registers)
10933 (record_btrace_to_prepare_to_store): New.
10934 (init_record_btrace_ops): Add the above.
10935
10936 2014-01-16 Tom Tromey <tromey@redhat.com>
10937
10938 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10939 * target.h (struct target_ops) <to_prepare_to_store>: Add
10940 argument.
10941 (target_prepare_to_store): Add argument.
10942 * target.c (debug_to_prepare_to_store): Add argument.
10943 (update_current_target): Update.
10944 * remote.c (remote_prepare_to_store): Add 'self' argument.
10945 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10946 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10947 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10948 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10949 argument.
10950 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10951 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10952 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10953 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10954 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10955
10956 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10957
10958 * btrace.h (replay) <replay>: New.
10959 (btrace_is_replaying): New.
10960 * btrace.c (btrace_clear): Free replay iterator.
10961 (btrace_is_replaying): New.
10962 * record-btrace.c (record_btrace_is_replaying): New.
10963 (record_btrace_info): Print insn number if replaying.
10964 (record_btrace_insn_history): Start at replay position.
10965 (record_btrace_call_history): Start at replay position.
10966 (init_record_btrace_ops): Init to_record_is_replaying.
10967
10968 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10969
10970 * record-btrace.c (record_btrace_insn_history_range): Include
10971 end.
10972 (record_btrace_insn_history_from): Adjust range.
10973 (record_btrace_call_history_range): Include
10974 end.
10975 (record_btrace_call_history_from): Adjust range.
10976 * NEWS: Announce changes.
10977
10978 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10979
10980 * record.h (enum record_print_flag)
10981 <record_print_indent_calls>: New.
10982 * record.c (get_call_history_modifiers): Recognize /c modifier.
10983 (_initialize_record): Document /c modifier.
10984 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10985 Reorder fields. Optionally indent the function name. Update
10986 all users.
10987 * NEWS: Announce changes.
10988
10989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10990
10991 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10992
10993 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10994
10995 * btrace.c (ftrace_new_function): Start counting at one.
10996 * record-btrace.c (record_btrace_info): Adjust number of calls
10997 and insns.
10998 * NEWS: Announce it.
10999
11000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11001
11002 * record-btrace.c (btrace_call_history_insn_range): Print
11003 insn range as [begin, end].
11004
11005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11006
11007 * btrace.h (struct btrace_func_link): New.
11008 (enum btrace_function_flag): New.
11009 (struct btrace_inst): Rename to ...
11010 (struct btrace_insn): ...this. Update all users.
11011 (struct btrace_func) <ibegin, iend>: Remove.
11012 (struct btrace_func_link): New.
11013 (struct btrace_func): Rename to ...
11014 (struct btrace_function): ...this. Update all users.
11015 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11016 (number, level, flags>: New.
11017 (struct btrace_insn_iterator): Rename to ...
11018 (struct btrace_insn_history): ...this.
11019 Update all users.
11020 (struct btrace_insn_iterator, btrace_call_iterator): New.
11021 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11022 (struct btrace_target_info) <begin, end, level>
11023 <insn_history, call_history>: New.
11024 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11025 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11026 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11027 (btrace_call_number, btrace_call_begin, btrace_call_end)
11028 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11029 (btrace_find_function_by_number, btrace_set_insn_history)
11030 (btrace_set_call_history): New.
11031 * btrace.c (btrace_init_insn_iterator)
11032 (btrace_init_func_iterator, compute_itrace): Remove.
11033 (ftrace_print_function_name, ftrace_print_filename)
11034 (ftrace_skip_file): Change
11035 parameter to const.
11036 (ftrace_init_func): Remove.
11037 (ftrace_debug): Use new btrace_function fields.
11038 (ftrace_function_switched): Also consider gaining and
11039 losing symbol information).
11040 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11041 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11042 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11043 New.
11044 (ftrace_new_function): Move. Remove debug print.
11045 (ftrace_update_lines, ftrace_update_insns): New.
11046 (ftrace_update_function): Check for call, ret, and jump.
11047 (compute_ftrace): Renamed to ...
11048 (btrace_compute_ftrace): ...this. Rewritten to compute call
11049 stack.
11050 (btrace_fetch, btrace_clear): Updated.
11051 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11052 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11053 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11054 (btrace_call_number, btrace_call_begin, btrace_call_end)
11055 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11056 (btrace_find_function_by_number, btrace_set_insn_history)
11057 (btrace_set_call_history): New.
11058 * record-btrace.c (require_btrace): Use new btrace thread
11059 info fields.
11060 (record_btrace_info, btrace_insn_history)
11061 (record_btrace_insn_history, record_btrace_insn_history_range):
11062 Use new btrace thread info fields and new iterator.
11063 (btrace_func_history_src_line): Rename to ...
11064 (btrace_call_history_src_line): ...this. Use new btrace
11065 thread info fields.
11066 (btrace_func_history): Rename to ...
11067 (btrace_call_history): ...this. Use new btrace thread info
11068 fields and new iterator.
11069 (record_btrace_call_history, record_btrace_call_history_range):
11070 Use new btrace thread info fields and new iterator.
11071
11072 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11073
11074 * frame.h (frame_id_build_unavailable_stack_special): New.
11075 * frame.c (frame_id_build_unavailable_stack_special): New.
11076
11077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11078
11079 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11080 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11081 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11082 to gdbarch.
11083 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11084 (i386_insn_is_jump, i386_jmp_p): New.
11085 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11086 insn_is_jump to gdbarch.
11087 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11088 * gdbarch.h: Regenerated.
11089 * gdbarch.c: Regenerated.
11090 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11091 (default_insn_is_jump): New.
11092 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11093 (default_insn_is_jump): New.
11094
11095 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11096
11097 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11098 Change to ...
11099 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11100 (btrace_read_type) <btrace_read_new>: Change to ...
11101 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11102
11103 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11104
11105 * common/linux-btrace.c (linux_read_btrace): Free trace from
11106 previous iteration.
11107
11108 2014-01-15 Doug Evans <dje@google.com>
11109
11110 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11111 uint32_t.
11112
11113 2014-01-15 Tom Tromey <tromey@redhat.com>
11114
11115 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11116 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11117 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11118 (set_objfile_main_name): New function.
11119 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11120 language_of_main>: New fields.
11121 (set_objfile_main_name): Declare.
11122 * symtab.c (find_main_name): Loop over objfiles to find the main
11123 name and language.
11124 (set_main_name): Now static.
11125 (get_main_info): Add comment.
11126 * symtab.h (set_main_name): Don't declare.
11127
11128 2014-01-15 Tom Tromey <tromey@redhat.com>
11129
11130 * symtab.c (main_progspace_key): New global.
11131 (struct main_info): New.
11132 (name_of_main, language_of_main): Remove.
11133 (get_main_info, main_info_cleanup): New function.
11134 (set_main_name, main_name, main_language): Use get_main_info.
11135 (_initialize_symtab): Initialize main_progspace_key.
11136
11137 2014-01-15 Tom Tromey <tromey@redhat.com>
11138
11139 * dbxread.c (process_one_symbol): Update.
11140 * dwarf2read.c (read_partial_die): Update.
11141 * symfile.c (set_initial_language): Call main_language.
11142 * symtab.c (language_of_main): Now static.
11143 (set_main_name): Add 'lang' parameter.
11144 (find_main_name): Update.
11145 (main_language): New function.
11146 (symtab_observer_executable_changed): Update.
11147 * symtab.h (set_main_name): Update.
11148 (language_of_main): Remove.
11149 (main_language): Declare.
11150
11151 2014-01-15 Tom Tromey <tromey@redhat.com>
11152
11153 * symfile.c (init_entry_point_info): Use new "initialized" field.
11154 Update.
11155 * objfiles.h (struct entry_point) <initialized>: New field.
11156 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11157 (struct objfile) <ei>: ...here. Remove.
11158 * objfiles.c (entry_point_address_query): Update.
11159
11160 2014-01-15 Tom Tromey <tromey@redhat.com>
11161
11162 * objfiles.c (entry_point_address_query): Relocate entry point
11163 address.
11164 (objfile_relocate1): Do not relocate entry point address.
11165 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11166 <the_bfd_section_index>: New field.
11167 * symfile.c (init_entry_point_info): Find the entry point's
11168 section.
11169
11170 2014-01-15 Tom Tromey <tromey@redhat.com>
11171
11172 * solib-frv.c (enable_break): Use entry_point_address_query.
11173
11174 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11175
11176 * NEWS: Add note on improved process record-replay on
11177 arm*-linux* targets.
11178
11179 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11180
11181 * arm-tdep.c (enum arm_record_result): New enum.
11182 (arm_record_unsupported_insn): New function.
11183 (arm_record_coproc_data_proc): Removed.
11184 (thumb2_record_ld_st_multiple): New function.
11185 (thumb2_record_ld_st_dual_ex_tbb): New function.
11186 (thumb2_record_data_proc_sreg_mimm): New function.
11187 (thumb2_record_ps_dest_generic): New function.
11188 (thumb2_record_branch_misc_cntrl): New function.
11189 (thumb2_record_str_single_data): New function.
11190 (thumb2_record_ld_mem_hints): New function.
11191 (thumb2_record_ld_word): New function.
11192 (thumb2_record_lmul_lmla_div): New function.
11193 (thumb2_record_decode_insn_handler): New function.
11194 (decode_insn): Add thumb32 instruction handlers.
11195
11196 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11197
11198 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11199 (struct arm_linux_record_tdep): Declare.
11200 (arm_canonicalize_syscall): New function.
11201 (arm_all_but_pc_registers_record): New function.
11202 (arm_linux_syscall_record): New function.
11203 (arm_linux_init_abi): Add syscall recording constructs.
11204 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11205 decoding. (arm_record_coproc_data_proc): Update arm syscall
11206 decoding.
11207 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11208 <arm_syscall_record>: New field.
11209 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11210 gdb_target_obs.
11211
11212 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11213
11214 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11215 register for push instruction recording.
11216
11217 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11218
11219 * arm-tdep.c (thumb_record_misc): Update to correct logical
11220 error while recording ldm, ldmia and pop instructions.
11221
11222 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11223
11224 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11225
11226 2014-01-15 Pedro Alves <palves@redhat.com>
11227
11228 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11229 (go32_resume, go32_fetch_registers, store_register)
11230 (go32_store_registers, go32_prepare_to_store)
11231 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11232 (go32_create_inferior, go32_can_run, go32_terminal_init)
11233 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11234 declarations.
11235
11236 2014-01-15 Tom Tromey <tromey@redhat.com>
11237
11238 * target.h (async_callback_ftype): New typedef.
11239 (struct target_ops) <to_async>: Use it.
11240
11241 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11242
11243 * python/py-value.c (get_field_type): Remove unnecessary curly
11244 braces for single-statement if block.
11245
11246 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11247
11248 * python/py-type.c (convert_field): Add missing empty line
11249 after declarations.
11250
11251 2014-01-14 Doug Evans <dje@google.com>
11252
11253 * symfile.h (expand_symtabs_matching): Renamed from
11254 expand_partial_symbol_names. Update prototype.
11255 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11256 * symfile.c (expand_symtabs_matching): Renamed from
11257 expand_partial_symbol_names. New args file_matcher, kind.
11258 Rename arg fun to symbol_matcher.
11259 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11260 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11261 ada_expand_partial_symbol_name.
11262 (ada_make_symbol_completion_list): Update to call
11263 expand_symtabs_matching.
11264 (ada_add_global_exceptions): Call expand_symtabs_matching.
11265 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11266 call map_symbol_filenames.
11267 * symtab.c (sources_info): Update to call map_symbol_filenames.
11268 (search_symbols): Call expand_symtabs_matching.
11269 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11270 (default_make_symbol_completion_list_break_on): Update to call
11271 expand_symtabs_matching.
11272 (make_source_files_completion_list): Update to call
11273 map_symbol_filenames.
11274
11275 2014-01-14 Doug Evans <dje@google.com>
11276
11277 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11278 (expand_symtabs_symbol_matcher_ftype): New typedef.
11279 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11280 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11281 * symfile.c (expand_partial_symbol_names): Update to use
11282 expand_symtabs_symbol_matcher_ftype.
11283 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11284 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11285 Arg name_matcher renamed to symbol_matcher.
11286 * psymtab.c (recursively_search_psymtabs): Update to use
11287 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11288 sym_matcher.
11289 (expand_symtabs_matching_via_partial): Update to use
11290 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11291 Arg name_matcher renamed to symbol_matcher.
11292
11293 2014-01-14 Doug Evans <dje@google.com>
11294
11295 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11296 (map_partial_symbol_filenames): Ditto.
11297 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11298 (map_partial_symbol_filenames): Ditto.
11299 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11300 (map_partial_symbol_filenames): Ditto.
11301 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11302 (map_partial_symbol_filenames): Ditto.
11303 * symtab.c: Delete #include "psymtab.h".
11304
11305 2014-01-14 Pedro Alves <palves@redhat.com>
11306 Tom Tromey <tromey@redhat.com>
11307
11308 * infrun.c (use_displaced_stepping): Use find_record_target
11309 instead of RECORD_IS_USED.
11310 (adjust_pc_after_break): Use record_full_is_used instead of
11311 RECORD_IS_USED.
11312 * record-btrace.c (record_btrace_open): Call record_preopen
11313 instead of checking RECORD_IS_USED.
11314 * record-full.c (record_full_shortname)
11315 (record_full_core_shortname): New globals.
11316 (record_full_is_used): New function.
11317 (find_full_open): Call record_preopen instead of checking
11318 RECORD_IS_USED.
11319 (init_record_full_ops): Set the target's shortname to
11320 record_full_shortname.
11321 (init_record_full_core_ops): Set the target's shortname to
11322 record_full_core_shortname.
11323 * record-full.h (record_full_is_used): Declare.
11324 * record.c (find_record_target): Make extern.
11325 (record_preopen): New function.
11326 * record.h (RECORD_IS_USED): Delete macro.
11327 (find_record_target, record_preopen): Declare functions.
11328
11329 2014-01-14 Yao Qi <yao@codesourcery.com>
11330
11331 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11332 'len''s type to ULONGEST.
11333 (core_xfer_shared_libraries_aix): Likewise.
11334 * gdbarch.c, gdbarch.h: Regenerated.
11335 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11336 Change type of 'len' to ULONGEST.
11337 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11338 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11339
11340 2014-01-14 Yao Qi <yao@codesourcery.com>
11341
11342 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11343 type of 'len' to ULONGEST.
11344 (linux_xfer_osdata_processgroups): Likewise.
11345 (linux_xfer_osdata_threads): Likewise.
11346 (linux_xfer_osdata_fds): Likewise.
11347 (linux_xfer_osdata_isockets): Likewise.
11348 (linux_xfer_osdata_shm): Likewise.
11349 (linux_xfer_osdata_sem): Likewise.
11350 (linux_xfer_osdata_msg): Likewise.
11351 (linux_common_xfer_osdata): Likewise.
11352 (struct osdata_type) <getter>: Likewise.
11353 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11354 the declaration.
11355
11356 2014-01-14 Yao Qi <yao@codesourcery.com>
11357
11358 * target.h (target_xfer_partial_ftype): Update.
11359 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11360 ULONGEST.
11361 * aix-thread.c (aix_thread_xfer_partial): Change type of
11362 argument 'len' to ULONGEST.
11363 * auxv.c (procfs_xfer_auxv): Likewise.
11364 (ld_so_xfer_auxv): Likewise.
11365 (memory_xfer_auxv): Likewise.
11366 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11367 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11368 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11369 * corelow.c (core_xfer_partial): Likewise.
11370 * ctf.c (ctf_xfer_partial): Likewise.
11371 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11372 '%u'.
11373 (darwin_read_dyld_info): Likewise.
11374 (darwin_xfer_partial): Likewise.
11375 * exec.c (section_table_xfer_memory_partial): Likewise.
11376 (exec_xfer_partial): Likewise.
11377 * exec.h (section_table_xfer_memory_partial): Update
11378 declaration.
11379 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11380 instead of plongest.
11381 (gnu_xfer_partial): Likewise.
11382 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11383 (ia64_hpux_xfer_solib_got): Likewise.
11384 (ia64_hpux_xfer_partial): Likewise.
11385 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11386 * inf-ptrace.c (inf_ptrace_xfer_partial):
11387 * inf-ttrace.c (inf_ttrace_xfer_partial):
11388 * linux-nat.c (linux_xfer_siginfo): Likewise.
11389 (linux_nat_xfer_partial): Likewise.
11390 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11391 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11392 * monitor.c (monitor_xfer_memory): Likewise.
11393 (monitor_xfer_partial): Likewise.
11394 * procfs.c (procfs_xfer_partial): Likewise.
11395 * record-full.c (record_full_xfer_partial): Likewise.
11396 (record_full_core_xfer_partial): Likewise.
11397 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11398 instead of plongest.
11399 (gdbsim_xfer_partial): Likewise.
11400 * remote.c (remote_xfer_partial): Likewise.
11401 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11402 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11403 declaration.
11404 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11405 (rs6000_xfer_shared_libraries): Likewise.
11406 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11407 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11408 (sparc_xfer_partial): Likewise.
11409 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11410 (spu_xfer_partial): Likewise.
11411 * spu-multiarch.c (spu_xfer_partial): Likewise.
11412 * target.c (target_read_live_memory): Likewise.
11413 (memory_xfer_live_readonly_partial): Likewise.
11414 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11415 (target_xfer_partial, default_xfer_partial): Likewise.
11416 (current_xfer_partial): Likewise.
11417 * tracepoint.c (tfile_xfer_partial): Likewise.
11418 * windows-nat.c (windows_xfer_memory): Likewise. Call
11419 pulongest instead of plongest.
11420 (windows_xfer_partial): Likewise.
11421 (windows_xfer_shared_libraries): Likewise.
11422
11423 2014-01-14 Yao Qi <yao@codesourcery.com>
11424
11425 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11426 target_xfer_partial_ftype.
11427
11428 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11429
11430 PR python/15464
11431 PR python/16113
11432 * valops.c (value_struct_elt_bitpos): New function
11433 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11434 object to 'None' if the field name is an empty string ("").
11435 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11436 attribute to look for a field when 'name' is 'None'.
11437 (get_field_type): New function
11438
11439 2014-01-13 Doug Evans <dje@google.com>
11440
11441 PR symtab/16426
11442 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11443 (try_open_dwop_file): Ditto.
11444 * gdb_bfd.c: #include "vec.h".
11445 (bfdp): New typedef.
11446 (struct gdb_bfd_data): New member included_bfds.
11447 (gdb_bfd_unref): Unref all included bfds.
11448 (gdb_bfd_record_inclusion): New function.
11449 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11450
11451 2014-01-13 Tom Tromey <tromey@redhat.com>
11452
11453 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11454
11455 2014-01-13 Tom Tromey <tromey@redhat.com>
11456
11457 * defs.h (use_windows): Remove.
11458 * gdb.c (main): Update.
11459 * main.c (captured_main, gdb_main): Update.
11460 * main.h (struct captured_main_args) <use_windows>: Remove.
11461 * top.c (use_windows): Remove.
11462
11463 2014-01-13 Tom Tromey <tromey@redhat.com>
11464
11465 * defs.h (deprecated_flush_hook): Remove.
11466
11467 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11468
11469 PR threads/16216
11470 * linux-thread-db.c (try_thread_db_load): Add parameter
11471 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11472 (try_thread_db_load_from_pdir_1): Move it there from here.
11473 (try_thread_db_load_from_sdir): Update caller.
11474 (try_thread_db_load_from_dir): Move it there from here.
11475
11476 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11477
11478 * regformats/regdat.sh: Always rewrite the register file.
11479
11480 2014-01-13 Pedro Alves <palves@redhat.com>
11481
11482 * Makefile.in (CHECK_HEADERS): New variable.
11483 (check-headers:): New rule.
11484
11485 2014-01-13 Tom Tromey <tromey@redhat.com>
11486
11487 * cli/cli-setshow.c (do_set_command): Update.
11488 * defs.h (deprecated_set_hook): Remove.
11489 * top.c (deprecated_set_hook): Remove.
11490
11491 2014-01-13 Pedro Alves <palves@redhat.com>
11492
11493 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11494 the tracepoint if the PC is a pseudo-register.
11495
11496 2014-01-13 Tom Tromey <tromey@redhat.com>
11497
11498 * defs.h (XCALLOC): Remove.
11499 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11500 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11501 * dwarf2loc.c (allocate_piece_closure): Likewise.
11502 * elfread.c (elf_symfile_segments): Likewise.
11503 (elf_symfile_segments): Likewise.
11504 * gdbtypes.c (copy_type_recursive): Likewise.
11505 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11506 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11507 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11508 XCALLOC.
11509 * mt-tdep.c (mt_gdbarch_init): Likewise.
11510 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11511 XCALLOC.
11512 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11513 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11514 * registry.c (registry_alloc_data): Likewise.
11515 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11516 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11517 * serial.c (serial_fdopen_ops): Likewise.
11518 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11519 XCALLOC.
11520 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11521 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11522 not XCALLOC.
11523
11524 2014-01-13 Tom Tromey <tromey@redhat.com>
11525
11526 * defs.h (XMALLOC): Remove.
11527 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11528 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11529 * cli-out.c (struct ui_out *): Likewise.
11530 * cli/cli-dump.c (add_dump_command): Likewise.
11531 (add_dump_command): Likewise.
11532 * complaints.c (get_complaints): Likewise.
11533 (find_complaint): Likewise.
11534 * dwarf2-frame.c (execute_cfa_program): Likewise.
11535 * dwarf2read.c (abbrev_table_read_table): Likewise.
11536 * gdbarch.sh: Likewise.
11537 * gdbarch.c: Rebuild.
11538 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11539 * interps.c (interp_new): Likewise.
11540 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11541 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11542 * mi/mi-console.c (mi_console_file_new): Likewise.
11543 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11544 * mi/mi-out.c (mi_out_new): Likewise.
11545 * mi/mi-parse.c (mi_parse): Likewise.
11546 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11547 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11548 * observer.c (xalloc_observer_list_node): Likewise.
11549 * regcache.c (regcache_xmalloc_1): Likewise.
11550 * reggroups.c (reggroup_new): Likewise.
11551 (_initialize_reggroup): Likewise.
11552 * registry.c (register_data_with_cleanup): Likewise.
11553 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11554 * ser-base.c (serial_ttystate): Likewise.
11555 * ser-mingw.c (make_pipe_state): Likewise.
11556 * ser-pipe.c (pipe_open): Likewise.
11557 * serial.c (serial_open): Likewise.
11558 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11559 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11560 (tui_alloc_win_info): Likewise.
11561 (tui_add_content_elements): Likewise.
11562 * tui/tui-file.c (tui_file_new): Likewise.
11563 * tui/tui-out.c (tui_out_new): Likewise.
11564 * ui-file.c (mem_file_new): Likewise.
11565 * ui-out.c (push_level): Likewise.
11566 (make_cleanup_ui_out_end): Likewise.
11567 (append_header_to_list): Likewise.
11568 (ui_out_new): Likewise.
11569 * user-regs.c (user_reg_add_builtin): Likewise.
11570
11571 2014-01-13 Tom Tromey <tromey@redhat.com>
11572
11573 * defs.h (XZALLOC): Remove.
11574 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11575 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11576 (get_ada_tasks_inferior_data): Likewise.
11577 * auto-load.c (get_auto_load_pspace_data): Likewise.
11578 * auxv.c (get_auxv_inferior_data): Likewise.
11579 * bfd-target.c (target_bfd_reopen): Likewise.
11580 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11581 (deprecated_insert_raw_breakpoint): Likewise.
11582 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11583 * corelow.c (core_open): Likewise.
11584 * darwin-nat.c (darwin_check_new_threads): Likewise.
11585 (darwin_attach_pid): Likewise.
11586 * dummy-frame.c (dummy_frame_push): Likewise.
11587 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11588 * dwarf2loc.c (allocate_piece_closure): Likewise.
11589 * elfread.c (elf_symfile_segments): Likewise.
11590 * eval.c (ptrmath_type_p): Likewise.
11591 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11592 * gdbtypes.c (alloc_type_arch): Likewise.
11593 (alloc_type_instance): Likewise.
11594 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11595 * inf-child.c (inf_child_can_use_agent): Likewise.
11596 * inflow.c (get_inflow_inferior_data): Likewise.
11597 * infrun.c (save_infcall_suspend_state): Likewise.
11598 * jit.c (jit_reader_load): Likewise.
11599 (get_jit_objfile_data): Likewise.
11600 (get_jit_program_space_data): Likewise.
11601 (jit_object_open_impl): Likewise.
11602 (jit_symtab_open_impl): Likewise.
11603 (jit_block_open_impl): Likewise.
11604 (jit_frame_sniffer): Likewise.
11605 * linux-fork.c (add_fork): Likewise.
11606 * maint.c (make_command_stats_cleanup): Likewise.
11607 * objfiles.c (get_objfile_pspace_data): Likewise.
11608 * opencl-lang.c (struct lval_closure): Likewise.
11609 * osdata.c (osdata_start_osdata): Likewise.
11610 * progspace.c (new_address_space): Likewise.
11611 (add_program_space): Likewise.
11612 * remote-sim.c (get_sim_inferior_data): Likewise.
11613 * sh-tdep.c (sh_gdbarch_init): Likewise.
11614 * skip.c (Ignore): Likewise.
11615 (skip_delete_command): Likewise.
11616 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11617 (library_list_start_library): Likewise.
11618 (solib_aix_current_sos): Likewise.
11619 * solib-darwin.c (get_darwin_info): Likewise.
11620 (darwin_current_sos): Likewise.
11621 * solib-dsbt.c (get_dsbt_info): Likewise.
11622 * solib-ia64-hpux.c (new_so_list): Likewise.
11623 (ia64_hpux_get_solib_linkage_addr): Likewise.
11624 * solib-spu.c (append_ocl_sos): Likewise.
11625 (spu_current_sos): Likewise.
11626 * solib-svr4.c (get_svr4_info): Likewise.
11627 (svr4_keep_data_in_core): Likewise.
11628 (library_list_start_library): Likewise.
11629 (svr4_default_sos): Likewise.
11630 (svr4_read_so_list): Likewise.
11631 * solib-target.c (library_list_start_library): Likewise.
11632 (solib_target_current_sos): Likewise.
11633 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11634 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11635 * symfile.c (default_symfile_segments): Likewise.
11636 * target-descriptions.c (tdesc_data_init): Likewise.
11637 (tdesc_create_reg): Likewise.
11638 (struct tdesc_type *): Likewise.
11639 (tdesc_create_vector): Likewise.
11640 (tdesc_set_struct_size): Likewise.
11641 (struct tdesc_type *): Likewise.
11642 (tdesc_free_feature): Likewise.
11643 (tdesc_create_feature): Likewise.
11644 * windows-nat.c (windows_add_thread): Likewise.
11645 (windows_make_so): Likewise.
11646 * xml-support.c (gdb_xml_body_text): Likewise.
11647 (gdb_xml_create_parser_and_cleanup): Likewise.
11648 (xml_process_xincludes): Likewise.
11649 * xml-syscall.c (allocate_syscalls_info): Likewise.
11650 (syscall_create_syscall_desc): Likewise.
11651
11652 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11653
11654 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11655 function, with code from i386_stap_parse_special_token.
11656 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11657 (i386_stap_parse_special_token): Move code to the two functions
11658 above; simplify it.
11659
11660 2014-01-09 Pedro Alves <palves@redhat.com>
11661 Hui Zhu <hui@codesourcery.com>
11662
11663 PR gdb/16101
11664 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11665 bp_err_string. Don't mark the location shlib_disabled if the
11666 error thrown wasn't a generic or memory error. Catch errors
11667 thrown while inserting breakpoints in overlayed code. Output
11668 error message of software breakpoints.
11669 * remote.c (remote_insert_breakpoint): If this breakpoint has
11670 target-side commands but this stub doesn't support Z0 packets,
11671 throw NOT_SUPPORTED_ERROR error.
11672 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11673 * target.h (target_insert_breakpoint): Extend comment.
11674 (target_insert_hw_breakpoint): Add comment.
11675
11676 2014-01-08 Pedro Alves <palves@redhat.com>
11677
11678 * remote.c (remote_add_thread): Add threads silently if starting
11679 up.
11680 (remote_notice_new_inferior): If in all-stop, and starting up,
11681 don't call notice_new_inferior.
11682 (get_current_thread): New function, factored out from ...
11683 (add_current_inferior_and_thread): ... this. Adjust.
11684 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11685 found any thread, then select the remote's current thread as GDB's
11686 current thread too.
11687
11688 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11689
11690 * NEWS: Create a new section for the next release branch.
11691 Rename the section of the current branch, now that it has
11692 been cut.
11693
11694 2014-01-08 Joel Brobecker <brobecker@adacore.com>
11695
11696 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11697 * version.in: Bump version to 7.7.50.DATE-cvs.
11698
11699 2014-01-08 Yao Qi <yao@codesourcery.com>
11700
11701 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11702 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11703 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11704
11705 2014-01-08 Yao Qi <yao@codesourcery.com>
11706
11707 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11708 return value of bfd_get_filename to symbol_file_add_from_bfd.
11709
11710 2014-01-08 Pierre Muller <muller@sourceware.org>
11711
11712 Fix PR16201.
11713 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11714 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11715 to prim_record_mininal_symbol_and_info.
11716 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11717 in call to prim_record_minimal_symbol_and_info.
11718 (read_pe_exported_syms): Set index field of section_data.
11719
11720 2014-01-07 Andrew Pinski <apinski@cavium.com>
11721
11722 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11723 * features/aarch64.c: Regenerate.
11724
11725 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11726
11727 * target.c (return_null): Define.
11728 (update_current_target): Use it instead of return_zero for
11729 functions that return a pointer.
11730
11731 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11732
11733 * source.c (add_path): Fix check for duplicated paths in the previously
11734 included paths.
11735
11736 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11737
11738 * ada-lang.c: Remove duplicated include statements.
11739 * alphabsd-nat.c: Ditto.
11740 * amd64-darwin-tdep.c: Ditto.
11741 * amd64fbsd-nat.c: Ditto.
11742 * auto-load.c: Ditto.
11743 * ax-gdb.c: Ditto.
11744 * breakpoint.c: Ditto.
11745 * dbxread.c: Ditto.
11746 * fork-child.c: Ditto.
11747 * gdb_usleep.c: Ditto.
11748 * i386-darwin-tdep.c: Ditto.
11749 * i386fbsd-nat.c: Ditto.
11750 * infcmd.c: Ditto.
11751 * inferior.c: Ditto.
11752 * jv-lang.c: Ditto.
11753 * linux-nat.c: Ditto.
11754 * linux-tdep.c: Ditto.
11755 * m68kbsd-nat.c: Ditto.
11756 * m68klinux-nat.c: Ditto.
11757 * microblaze-tdep.c: Ditto.
11758 * mips-linux-tdep.c: Ditto.
11759 * mn10300-tdep.c: Ditto.
11760 * nto-tdep.c: Ditto.
11761 * opencl-lang.c: Ditto.
11762 * osdata.c: Ditto.
11763 * printcmd.c: Ditto.
11764 * regcache.c: Ditto.
11765 * remote-m32r-sdi.c: Ditto.
11766 * remote.c: Ditto.
11767 * symfile.c: Ditto.
11768 * symtab.c: Ditto.
11769 * tilegx-linux-nat.c: Ditto.
11770 * tilegx-tdep.c: Ditto.
11771 * tracepoint.c: Ditto.
11772 * valops.c: Ditto.
11773 * vaxbsd-nat.c: Ditto.
11774 * windows-nat.c: Ditto.
11775 * xtensa-tdep.c: Ditto.
11776
11777 2014-01-07 Yao Qi <yao@codesourcery.com>
11778
11779 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11780
11781 2014-01-07 Yao Qi <yao@codesourcery.com>
11782 Joel Brobecker <brobecker@adacore.com>
11783
11784 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11785 (pdc_write_regs): Likewise.
11786 (fetch_regs_kernel_thread): Likewise.
11787 (store_regs_kernel_thread): Likewise.
11788
11789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11790
11791 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11792 tagged type objects to their actual type.
11793
11794 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11795
11796 * ada-valprint.c (print_field_values): Add "language" parameter.
11797 Update calls to print_field_values and print_variant_part.
11798 Pass new parameter "language" in call to val_print instead
11799 of "current_language". Replace call to ada_val_print by call
11800 to val_print.
11801 (print_variant_part): Add "language" parameter.
11802 (ada_val_print_struct_union): Update call to print_field_values.
11803
11804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11805
11806 * ada-valprint.c (ui_memcpy): Delete.
11807 (ada_print_floating): Update documentation. Add empty line
11808 between between function documentation and implementation.
11809 Delete variable "buffer". Use ui_file_xstrdup in place of
11810 ui_file_put. Minor adjustments following this change.
11811
11812 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11813
11814 * ada-valprint.c (ada_val_print_string): New function,
11815 extracted from ada_val_print_array.
11816 (ada_val_print_array): Replace extracted code by call
11817 to ada_val_print_string followed by a return. Move
11818 "else" branch to the function's top block.
11819
11820 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11821
11822 * ada-valprint.c (ada_val_print_array): Move implementation
11823 down. Rename parameter "offset" and "val" into "offset_aligned"
11824 and "original_value" respectively. Add parameter "offset".
11825
11826 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11827
11828 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11829 re-organizing the code. Change the "???" message printed
11830 when target type is a TYPE_CODE_UNDEF into
11831 "<ref to undefined type>".
11832
11833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11834
11835 * ada-valprint.c (print_record): Delete, implementation inlined...
11836 (ada_val_print_struct_union): ... here. Remove call to
11837 ada_check_typedef in inlined implementation.
11838
11839 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11840
11841 * ada-valprint.c (ada_val_print_gnat_array): New function,
11842 extracted from ada_val_print_1;
11843 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11844 (ada_val_print_flt, ada_val_print_struct_union)
11845 (ada_val_print_ref): Likewise.
11846 (ada_val_print_1): Delete variables i and elttype.
11847 Replace extracted-out code by call to corresponding
11848 new functions.
11849
11850 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11851
11852 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11853
11854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11855
11856 * ada-valprint.c (ada_val_print_1): Replace calls to
11857 ada_val_print_1 by calls to val_print.
11858
11859 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11860
11861 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11862 Update calls to self accordingly. Replace calls to c_val_print
11863 by calls to val_print.
11864
11865 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11866
11867 * ada-valprint.c (print_record): Delete declaration.
11868 (adjust_type_signedness, ada_val_print_1): Likewise.
11869 (ada_val_print): Move function implementation down.
11870 (print_variant_part, print_field_values, print_record):
11871 Move function implementation up.
11872
11873 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11874
11875 * python/py-type.c (typy_get_name): New function.
11876 (type_object_getset): Add entry for attribute "name".
11877 * NEWS: Add entry mentioning this new attribute.
11878
11879 2014-01-07 Yao Qi <yao@codesourcery.com>
11880
11881 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11882 statement.
11883
11884 2014-01-07 Yao Qi <yao@codesourcery.com>
11885
11886 * gnu-nat.c (info_port_rights): Add qualifier const to
11887 argument args.
11888
11889 2014-01-07 Yao Qi <yao@codesourcery.com>
11890
11891 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11892
11893 2014-01-07 Yao Qi <yao@codesourcery.com>
11894
11895 * gnu-nat.c (make_inf) Update declaration.
11896 (make_inf): Make it static.
11897 (inf_set_traced): Likewise.
11898 (inf_port_to_thread, inf_task_died_status): Likewise.
11899
11900 2014-01-07 Yao Qi <yao@codesourcery.com>
11901
11902 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11903
11904 2014-01-07 Yao Qi <yao@codesourcery.com>
11905
11906 * gnu-nat.c (_initialize_gnu_nat): Declare.
11907
11908 2014-01-07 Yao Qi <yao@codesourcery.com>
11909
11910 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11911 'enum bfd_endian'.
11912 (struct gdbarch_info) <byte_order>: Change type to
11913 'enum bfd_endian'.
11914 <byte_order_for_code>: Likewise.
11915 * gdbarch.c, gdbarch.h: Regenerated.
11916
11917 2014-01-06 Sasha Smundak <asmundak@google.com>
11918
11919 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11920
11921 2014-01-06 Tom Tromey <tromey@redhat.com>
11922
11923 * doublest.c (convert_doublest_to_floatformat): Use const, not
11924 CONST.
11925 * somread.c (som_symtab_read): Likewise.
11926
11927 2014-01-07 Hui Zhu <hui@codesourcery.com>
11928
11929 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11930 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11931 (gdb_bfd_fopen): Ditto.
11932 (gdb_bfd_openr): Ditto.
11933 (gdb_bfd_openw): Ditto.
11934 (gdb_bfd_openr_iovec): Ditto.
11935 (gdb_bfd_fdopenr): Ditto.
11936 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11937 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11938 with xstrdup.
11939 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11940 with xstrdup.
11941 * symfile-mem.c (symbol_file_add_from_memory): Removed
11942 gdb_bfd_stash_filename.
11943
11944 2014-01-03 Doug Evans <dje@google.com>
11945
11946 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11947 output.
11948
11949 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11950
11951 Update year range in copyright notice of all files.
11952
11953 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11954
11955 * top.c (print_gdb_version): Set copyright year to 2014.
11956
11957 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11958
11959 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11960
11961 For older changes see ChangeLog-2013.
11962 \f
11963 Local Variables:
11964 mode: change-log
11965 left-margin: 8
11966 fill-column: 74
11967 version-control: never
11968 coding: utf-8
11969 End: