M68K Linux: Define regset structures.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
08f9f542
AA
12014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * m68klinux-tdep.c: Include "regset.h".
4 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
5 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
6 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
7 (m68k_linux_regset_from_core_section): New function.
8 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
9 method.
10
8f1cee41
AA
112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12
13 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
14 function. Move logic to...
15 (tilegx_linux_regmap): ... this new register map.
16 (tilegx_linux_regset): Refer to register map, replace supply
17 method by regcache_supply_regset, and add collect method.
18 * tilegx-tdep.h (enum tilegx_regnum): New enum value
19 TILEGX_FIRST_EASY_REGNUM.
20
c5741217
AA
212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
22
23 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
24 that calls regcache_supply_regset and handles the EPC register
25 separately. Move main logic to...
26 (score7_linux_gregmap): ... this new register map.
27 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
28 (score7_linux_gregset): Refer to register map. Add collect method.
29 (score7_linux_regset_from_core_section): Replace
30 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
31 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
32 (struct regset): Delete unused forward declaraction.
33 (struct pt_regs): Delete structure definition.
34 (elf_gregset_t): Delete typedef.
35
81580573
AA
362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
37
38 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
39 (nios2_core_regset): Add collect method.
40
ba199d7d
AA
412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
42
43 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
44 platform-independent and don't write to read-only input buffer.
45 (m32r_linux_collect_gregset): New function.
46 (m32r_linux_gregset): Add collect method.
47
0006a9da
AA
482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
49
50 * hppa-linux-tdep.c (greg_map): Rename to...
51 (hppa_linux_gregmap): ... this. Also convert to
52 regcache_map_entry format.
53 (hppa_linux_supply_regset): Delete function.
54 (hppa_linux_supply_fpregset): Delete function. Move logic to...
55 (hppa_linux_fpregmap): ... this new register map.
56 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
57 register map, replace supply method by regcache_supply_regset, and
58 add collect method regcache_collect_regset.
59
901e1b23
AA
602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
61
62 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
63 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
64 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
65 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
66 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
67 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
68 (frv_linux_supply_gregset): Replace main logic by call to
69 regcache_supply_regset, but keep clearing gr32-gr63.
70 (frv_linux_supply_fpregset): Delete function.
71 (frv_linux_gregset): Refer to appropriate register map and add
72 regcache_collect_regset as the collect method.
73 (frv_linux_fpregset): Likewise. Also exchange the supply method
74 by regcache_supply_regset.
75
1d6e7555
AA
762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
77
78 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
79 by call to alpha_supply_int_regs.
80 (alpha_linux_collect_gregset): New function.
81 (alpha_linux_supply_fpregset): Replace logic by call to
82 alpha_supply_fp_regs.
83 (alpha_linux_collect_fpregset): New function.
84 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
85
d4d793bf
AA
862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
87
88 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
89 by call to regcache_collect_regset.
90 (supply_gregset, supply_fpregset): Call regcache_supply_regset
91 instead of aarch64_linux_supply_gregset/_fpregset.
92 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
93 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
94 header file instead.
95 (aarch64_linux_supply_gregset, supply_gregset_from_core)
96 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
97 functions. Move logic to ...
98 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
99 register maps.
100 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
101 refer to new register maps, replace *_regset_from_core by
102 regcache_supply_regset, and also use regcache_collect_regset.
103 * aarch64-linux-tdep.h: Include "regset.h".
104 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
105 Delete prototypes.
106 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
107 macros, moved from C source file.
108 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
109 variable declarations.
110
99b7da5d
AA
1112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
112
113 * s390-linux-nat.c: Include "regset.h".
114 (regmap_gregset): Delete macro.
115 (s390_64_regmap_gregset): New register map for
116 regcache_supply/_collect_regset.
117 (s390_64_gregset): New regset.
118 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
119 (regmap_fpregset): Delete macro.
120 (s390_native_supply, s390_native_collect): Delete functions.
121 (supply_gregset, fill_gregset): Replace s390-specific regmap
122 handling by a call to regcache_supply/_collect_regset.
123 (supply_fpregset, fill_fpregset): Call regcache_supply/
124 _collect_regset instead of s390_native_supply/_collect.
125 (fetch_regset, store_regset): Likewise. Also change the last
126 parameter to a regset instead of a regmap.
127 (s390_linux_fetch_inferior_registers)
128 (390_linux_store_inferior_registers): Adjust last parameter in
129 calls to fetch_regset and store_regset.
130 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
131 (s390_gregmap): ... this. Also make static const and convert to
132 regcache_map_entry format.
133 (s390x_regmap_gregset): Delete.
134 (s390_regmap_fpregset): Rename to...
135 (s390_fpregmap): ... this. Make static const and convert to
136 regcache_map_entry format.
137 (s390_regmap_upper, s390_regmap_last_break)
138 (s390x_regmap_last_break, s390_regmap_system_call)
139 (s390_regmap_tdb): Likewise.
140 (s390_supply_regset, s390_collect_regset): Remove functions.
141 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
142 s390_supply_regset.
143 (s390_gregset, s390_fpregset, s390_upper_regset)
144 (s390_last_break_regset, s390x_last_break_regset)
145 (s390_system_call_regset, s390_tdb_regset): Make global and
146 replace s390_supply/_collect_regset by regcache_supply/
147 _collect_regset.
148 (s390x_gregset): Delete.
149 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
150 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
151 (s390_regmap_fpregset, s390_regmap_last_break)
152 (s390x_regmap_last_break, s390_regmap_system_call)
153 (s390_regmap_tdb): Delete global variable declarations.
154 (s390_gregset, s390_fpregset, s390_last_break_regset)
155 (s390x_last_break_regset, s390_system_call_regset)
156 (s390_tdb_regset): New global variable declarations.
157
0b309272
AA
1582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
159
160 * regcache.c: Include "regset.h".
161 (regcache_transfer_regset): New local function.
162 (regcache_supply_regset, regcache_collect_regset): New functions.
163 * regcache.h (struct regcache_map_entry): New structure.
164 (REGCACHE_MAP_SKIP): New enum value.
165 (regcache_supply_regset, regcache_collect_regset): New prototypes.
166
7fefa8d7
AA
1672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
168
169 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
170 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
171 (ppc_linux_collect_gregset ): Likewise.
172 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
173 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
174 (ppc_collect_vrregset): Likewise.
175 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
176 Likewise.
177
96c4f946
YQ
1782014-08-07 Yao Qi <yao@codesourcery.com>
179
180 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
181 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
182 * remote.c (remote_read_bytes): Likewise.
183
fffbe6a8
YQ
1842014-08-07 Yao Qi <yao@codesourcery.com>
185
186 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
187
5ee8a82c
YQ
1882014-08-07 Yao Qi <yao@codesourcery.com>
189
190 PR remote/17230
191 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
192 TARGET_XFER_OK instead of 0.
193
bb974a24
GB
1942014-08-07 Gary Benson <gbenson@redhat.com>
195
196 * common/common-defs.h: Include errno.h.
197 * defs.h: Do not include errno.h.
198 * ada-typeprint.c: Likewise.
199 * c-typeprint.c: Likewise.
200 * core-regset.c: Likewise.
201 * corefile.c: Likewise.
202 * corelow.c: Likewise.
203 * event-loop.c: Likewise.
204 * f-typeprint.c: Likewise.
205 * gnu-nat.c: Likewise.
206 * go32-nat.c: Likewise.
207 * i386gnu-nat.c: Likewise.
208 * m2-typeprint.c: Likewise.
209 * nat/linux-btrace.c: Likewise.
210 * p-typeprint.c: Likewise.
211 * procfs.c: Likewise.
212 * remote-sim.c: Likewise.
213 * rs6000-nat.c: Likewise.
214 * target.c: Likewise.
215 * typeprint.c: Likewise.
216 * ui-file.c: Likewise.
217 * valops.c: Likewise.
218 * valprint.c: Likewise.
219
6d3d12eb
GB
2202014-08-07 Gary Benson <gbenson@redhat.com>
221
222 * common/common-defs.h: Include string.h.
223 * aarch64-tdep.c: Do not include string.h.
224 * ada-exp.y: Likewise.
225 * ada-lang.c: Likewise.
226 * ada-lex.l: Likewise.
227 * ada-typeprint.c: Likewise.
228 * ada-valprint.c: Likewise.
229 * aix-thread.c: Likewise.
230 * alpha-linux-tdep.c: Likewise.
231 * alpha-mdebug-tdep.c: Likewise.
232 * alpha-nat.c: Likewise.
233 * alpha-osf1-tdep.c: Likewise.
234 * alpha-tdep.c: Likewise.
235 * alphanbsd-tdep.c: Likewise.
236 * amd64-dicos-tdep.c: Likewise.
237 * amd64-linux-tdep.c: Likewise.
238 * amd64-nat.c: Likewise.
239 * amd64-sol2-tdep.c: Likewise.
240 * amd64fbsd-tdep.c: Likewise.
241 * amd64obsd-tdep.c: Likewise.
242 * arch-utils.c: Likewise.
243 * arm-linux-nat.c: Likewise.
244 * arm-linux-tdep.c: Likewise.
245 * arm-tdep.c: Likewise.
246 * arm-wince-tdep.c: Likewise.
247 * armbsd-tdep.c: Likewise.
248 * armnbsd-nat.c: Likewise.
249 * armnbsd-tdep.c: Likewise.
250 * armobsd-tdep.c: Likewise.
251 * avr-tdep.c: Likewise.
252 * ax-gdb.c: Likewise.
253 * ax-general.c: Likewise.
254 * bcache.c: Likewise.
255 * bfin-tdep.c: Likewise.
256 * breakpoint.c: Likewise.
257 * build-id.c: Likewise.
258 * buildsym.c: Likewise.
259 * c-exp.y: Likewise.
260 * c-lang.c: Likewise.
261 * c-typeprint.c: Likewise.
262 * c-valprint.c: Likewise.
263 * charset.c: Likewise.
264 * cli-out.c: Likewise.
265 * cli/cli-cmds.c: Likewise.
266 * cli/cli-decode.c: Likewise.
267 * cli/cli-dump.c: Likewise.
268 * cli/cli-interp.c: Likewise.
269 * cli/cli-logging.c: Likewise.
270 * cli/cli-script.c: Likewise.
271 * cli/cli-setshow.c: Likewise.
272 * cli/cli-utils.c: Likewise.
273 * coffread.c: Likewise.
274 * common/agent.c: Likewise.
275 * common/buffer.c: Likewise.
276 * common/buffer.h: Likewise.
277 * common/common-utils.c: Likewise.
278 * common/filestuff.c: Likewise.
279 * common/filestuff.c: Likewise.
280 * common/format.c: Likewise.
281 * common/print-utils.c: Likewise.
282 * common/rsp-low.c: Likewise.
283 * common/signals.c: Likewise.
284 * common/vec.h: Likewise.
285 * common/xml-utils.c: Likewise.
286 * core-regset.c: Likewise.
287 * corefile.c: Likewise.
288 * corelow.c: Likewise.
289 * cp-abi.c: Likewise.
290 * cp-name-parser.y: Likewise.
291 * cp-support.c: Likewise.
292 * cp-valprint.c: Likewise.
293 * cris-tdep.c: Likewise.
294 * d-exp.y: Likewise.
295 * darwin-nat.c: Likewise.
296 * dbxread.c: Likewise.
297 * dcache.c: Likewise.
298 * demangle.c: Likewise.
299 * dicos-tdep.c: Likewise.
300 * disasm.c: Likewise.
301 * doublest.c: Likewise.
302 * dsrec.c: Likewise.
303 * dummy-frame.c: Likewise.
304 * dwarf2-frame.c: Likewise.
305 * dwarf2loc.c: Likewise.
306 * dwarf2read.c: Likewise.
307 * elfread.c: Likewise.
308 * environ.c: Likewise.
309 * eval.c: Likewise.
310 * event-loop.c: Likewise.
311 * exceptions.c: Likewise.
312 * exec.c: Likewise.
313 * expprint.c: Likewise.
314 * f-exp.y: Likewise.
315 * f-lang.c: Likewise.
316 * f-typeprint.c: Likewise.
317 * f-valprint.c: Likewise.
318 * fbsd-nat.c: Likewise.
319 * findcmd.c: Likewise.
320 * findvar.c: Likewise.
321 * fork-child.c: Likewise.
322 * frame.c: Likewise.
323 * frv-linux-tdep.c: Likewise.
324 * frv-tdep.c: Likewise.
325 * gdb.c: Likewise.
326 * gdb_bfd.c: Likewise.
327 * gdbarch.c: Likewise.
328 * gdbarch.sh: Likewise.
329 * gdbtypes.c: Likewise.
330 * gnu-nat.c: Likewise.
331 * gnu-v2-abi.c: Likewise.
332 * gnu-v3-abi.c: Likewise.
333 * go-exp.y: Likewise.
334 * go-lang.c: Likewise.
335 * go32-nat.c: Likewise.
336 * guile/guile.c: Likewise.
337 * guile/scm-auto-load.c: Likewise.
338 * hppa-hpux-tdep.c: Likewise.
339 * hppa-linux-nat.c: Likewise.
340 * hppanbsd-tdep.c: Likewise.
341 * hppaobsd-tdep.c: Likewise.
342 * i386-cygwin-tdep.c: Likewise.
343 * i386-dicos-tdep.c: Likewise.
344 * i386-linux-tdep.c: Likewise.
345 * i386-nto-tdep.c: Likewise.
346 * i386-sol2-tdep.c: Likewise.
347 * i386-tdep.c: Likewise.
348 * i386bsd-tdep.c: Likewise.
349 * i386gnu-nat.c: Likewise.
350 * i386nbsd-tdep.c: Likewise.
351 * i386obsd-tdep.c: Likewise.
352 * i387-tdep.c: Likewise.
353 * ia64-libunwind-tdep.c: Likewise.
354 * ia64-linux-nat.c: Likewise.
355 * inf-child.c: Likewise.
356 * inf-ptrace.c: Likewise.
357 * inf-ttrace.c: Likewise.
358 * infcall.c: Likewise.
359 * infcmd.c: Likewise.
360 * inflow.c: Likewise.
361 * infrun.c: Likewise.
362 * interps.c: Likewise.
363 * iq2000-tdep.c: Likewise.
364 * irix5-nat.c: Likewise.
365 * jv-exp.y: Likewise.
366 * jv-lang.c: Likewise.
367 * jv-typeprint.c: Likewise.
368 * jv-valprint.c: Likewise.
369 * language.c: Likewise.
370 * linux-fork.c: Likewise.
371 * linux-nat.c: Likewise.
372 * lm32-tdep.c: Likewise.
373 * m2-exp.y: Likewise.
374 * m2-typeprint.c: Likewise.
375 * m32c-tdep.c: Likewise.
376 * m32r-linux-nat.c: Likewise.
377 * m32r-linux-tdep.c: Likewise.
378 * m32r-rom.c: Likewise.
379 * m32r-tdep.c: Likewise.
380 * m68hc11-tdep.c: Likewise.
381 * m68k-tdep.c: Likewise.
382 * m68kbsd-tdep.c: Likewise.
383 * m68klinux-nat.c: Likewise.
384 * m68klinux-tdep.c: Likewise.
385 * m88k-tdep.c: Likewise.
386 * machoread.c: Likewise.
387 * macrocmd.c: Likewise.
388 * main.c: Likewise.
389 * mdebugread.c: Likewise.
390 * mem-break.c: Likewise.
391 * memattr.c: Likewise.
392 * memory-map.c: Likewise.
393 * mep-tdep.c: Likewise.
394 * mi/mi-cmd-break.c: Likewise.
395 * mi/mi-cmd-disas.c: Likewise.
396 * mi/mi-cmd-env.c: Likewise.
397 * mi/mi-cmd-stack.c: Likewise.
398 * mi/mi-cmd-var.c: Likewise.
399 * mi/mi-cmds.c: Likewise.
400 * mi/mi-console.c: Likewise.
401 * mi/mi-getopt.c: Likewise.
402 * mi/mi-interp.c: Likewise.
403 * mi/mi-main.c: Likewise.
404 * mi/mi-parse.c: Likewise.
405 * microblaze-rom.c: Likewise.
406 * microblaze-tdep.c: Likewise.
407 * mingw-hdep.c: Likewise.
408 * minidebug.c: Likewise.
409 * minsyms.c: Likewise.
410 * mips-irix-tdep.c: Likewise.
411 * mips-linux-tdep.c: Likewise.
412 * mips-tdep.c: Likewise.
413 * mips64obsd-tdep.c: Likewise.
414 * mipsnbsd-tdep.c: Likewise.
415 * mipsread.c: Likewise.
416 * mn10300-linux-tdep.c: Likewise.
417 * mn10300-tdep.c: Likewise.
418 * monitor.c: Likewise.
419 * moxie-tdep.c: Likewise.
420 * mt-tdep.c: Likewise.
421 * nat/linux-btrace.c: Likewise.
422 * nat/linux-osdata.c: Likewise.
423 * nat/linux-procfs.c: Likewise.
424 * nat/linux-ptrace.c: Likewise.
425 * nat/linux-waitpid.c: Likewise.
426 * nbsd-tdep.c: Likewise.
427 * nios2-linux-tdep.c: Likewise.
428 * nto-procfs.c: Likewise.
429 * nto-tdep.c: Likewise.
430 * objc-lang.c: Likewise.
431 * objfiles.c: Likewise.
432 * opencl-lang.c: Likewise.
433 * osabi.c: Likewise.
434 * osdata.c: Likewise.
435 * p-exp.y: Likewise.
436 * p-lang.c: Likewise.
437 * p-typeprint.c: Likewise.
438 * parse.c: Likewise.
439 * posix-hdep.c: Likewise.
440 * ppc-linux-nat.c: Likewise.
441 * ppc-sysv-tdep.c: Likewise.
442 * ppcfbsd-tdep.c: Likewise.
443 * ppcnbsd-tdep.c: Likewise.
444 * ppcobsd-tdep.c: Likewise.
445 * printcmd.c: Likewise.
446 * procfs.c: Likewise.
447 * prologue-value.c: Likewise.
448 * python/py-auto-load.c: Likewise.
449 * python/py-gdb-readline.c: Likewise.
450 * ravenscar-thread.c: Likewise.
451 * regcache.c: Likewise.
452 * registry.c: Likewise.
453 * remote-fileio.c: Likewise.
454 * remote-m32r-sdi.c: Likewise.
455 * remote-mips.c: Likewise.
456 * remote-notif.c: Likewise.
457 * remote-sim.c: Likewise.
458 * remote.c: Likewise.
459 * reverse.c: Likewise.
460 * rs6000-aix-tdep.c: Likewise.
461 * ser-base.c: Likewise.
462 * ser-go32.c: Likewise.
463 * ser-mingw.c: Likewise.
464 * ser-pipe.c: Likewise.
465 * ser-tcp.c: Likewise.
466 * ser-unix.c: Likewise.
467 * serial.c: Likewise.
468 * sh-tdep.c: Likewise.
469 * sh64-tdep.c: Likewise.
470 * shnbsd-tdep.c: Likewise.
471 * skip.c: Likewise.
472 * sol-thread.c: Likewise.
473 * solib-dsbt.c: Likewise.
474 * solib-frv.c: Likewise.
475 * solib-osf.c: Likewise.
476 * solib-som.c: Likewise.
477 * solib-spu.c: Likewise.
478 * solib-target.c: Likewise.
479 * solib.c: Likewise.
480 * somread.c: Likewise.
481 * source.c: Likewise.
482 * sparc-nat.c: Likewise.
483 * sparc-sol2-tdep.c: Likewise.
484 * sparc-tdep.c: Likewise.
485 * sparc64-tdep.c: Likewise.
486 * sparc64fbsd-tdep.c: Likewise.
487 * sparc64nbsd-tdep.c: Likewise.
488 * sparcnbsd-tdep.c: Likewise.
489 * spu-linux-nat.c: Likewise.
490 * spu-multiarch.c: Likewise.
491 * spu-tdep.c: Likewise.
492 * stabsread.c: Likewise.
493 * stack.c: Likewise.
494 * std-regs.c: Likewise.
495 * symfile.c: Likewise.
496 * symmisc.c: Likewise.
497 * symtab.c: Likewise.
498 * target.c: Likewise.
499 * thread.c: Likewise.
500 * tilegx-linux-nat.c: Likewise.
501 * tilegx-tdep.c: Likewise.
502 * top.c: Likewise.
503 * tracepoint.c: Likewise.
504 * tui/tui-command.c: Likewise.
505 * tui/tui-data.c: Likewise.
506 * tui/tui-disasm.c: Likewise.
507 * tui/tui-file.c: Likewise.
508 * tui/tui-layout.c: Likewise.
509 * tui/tui-out.c: Likewise.
510 * tui/tui-regs.c: Likewise.
511 * tui/tui-source.c: Likewise.
512 * tui/tui-stack.c: Likewise.
513 * tui/tui-win.c: Likewise.
514 * tui/tui-windata.c: Likewise.
515 * tui/tui-winsource.c: Likewise.
516 * typeprint.c: Likewise.
517 * ui-file.c: Likewise.
518 * ui-out.c: Likewise.
519 * user-regs.c: Likewise.
520 * utils.c: Likewise.
521 * v850-tdep.c: Likewise.
522 * valarith.c: Likewise.
523 * valops.c: Likewise.
524 * valprint.c: Likewise.
525 * value.c: Likewise.
526 * varobj.c: Likewise.
527 * vax-tdep.c: Likewise.
528 * vaxnbsd-tdep.c: Likewise.
529 * vaxobsd-tdep.c: Likewise.
530 * windows-nat.c: Likewise.
531 * xcoffread.c: Likewise.
532 * xml-support.c: Likewise.
533 * xstormy16-tdep.c: Likewise.
534 * xtensa-linux-nat.c: Likewise.
535
dccbb609
GB
5362014-08-07 Gary Benson <gbenson@redhat.com>
537
538 * common/common-defs.h: Include gdb_assert.h.
539 * aarch64-tdep.c: Do not include gdb_assert.h.
540 * addrmap.c: Likewise.
541 * aix-thread.c: Likewise.
542 * alpha-linux-tdep.c: Likewise.
543 * alpha-mdebug-tdep.c: Likewise.
544 * alphanbsd-tdep.c: Likewise.
545 * amd64-nat.c: Likewise.
546 * amd64-tdep.c: Likewise.
547 * amd64bsd-nat.c: Likewise.
548 * amd64fbsd-nat.c: Likewise.
549 * amd64fbsd-tdep.c: Likewise.
550 * amd64nbsd-nat.c: Likewise.
551 * amd64nbsd-tdep.c: Likewise.
552 * amd64obsd-nat.c: Likewise.
553 * amd64obsd-tdep.c: Likewise.
554 * arch-utils.c: Likewise.
555 * arm-tdep.c: Likewise.
556 * armbsd-tdep.c: Likewise.
557 * auxv.c: Likewise.
558 * bcache.c: Likewise.
559 * bfin-tdep.c: Likewise.
560 * blockframe.c: Likewise.
561 * breakpoint.c: Likewise.
562 * bsd-kvm.c: Likewise.
563 * bsd-uthread.c: Likewise.
564 * buildsym.c: Likewise.
565 * c-exp.y: Likewise.
566 * c-lang.c: Likewise.
567 * charset.c: Likewise.
568 * cleanups.c: Likewise.
569 * cli-out.c: Likewise.
570 * cli/cli-decode.c: Likewise.
571 * cli/cli-dump.c: Likewise.
572 * cli/cli-logging.c: Likewise.
573 * cli/cli-script.c: Likewise.
574 * cli/cli-utils.c: Likewise.
575 * coffread.c: Likewise.
576 * common/common-utils.c: Likewise.
577 * common/queue.h: Likewise.
578 * common/signals.c: Likewise.
579 * common/vec.h: Likewise.
580 * complaints.c: Likewise.
581 * completer.c: Likewise.
582 * corelow.c: Likewise.
583 * cp-abi.c: Likewise.
584 * cp-name-parser.y: Likewise.
585 * cp-namespace.c: Likewise.
586 * cp-support.c: Likewise.
587 * cris-tdep.c: Likewise.
588 * dbxread.c: Likewise.
589 * dictionary.c: Likewise.
590 * doublest.c: Likewise.
591 * dsrec.c: Likewise.
592 * dummy-frame.c: Likewise.
593 * dwarf2-frame-tailcall.c: Likewise.
594 * dwarf2-frame.c: Likewise.
595 * dwarf2expr.c: Likewise.
596 * dwarf2loc.c: Likewise.
597 * dwarf2read.c: Likewise.
598 * eval.c: Likewise.
599 * event-loop.c: Likewise.
600 * exceptions.c: Likewise.
601 * expprint.c: Likewise.
602 * f-valprint.c: Likewise.
603 * fbsd-nat.c: Likewise.
604 * findvar.c: Likewise.
605 * frame-unwind.c: Likewise.
606 * frame.c: Likewise.
607 * frv-tdep.c: Likewise.
608 * gcore.c: Likewise.
609 * gdb-dlfcn.c: Likewise.
610 * gdb_bfd.c: Likewise.
611 * gdbarch.c: Likewise.
612 * gdbarch.sh: Likewise.
613 * gdbtypes.c: Likewise.
614 * gnu-nat.c: Likewise.
615 * gnu-v3-abi.c: Likewise.
616 * go-lang.c: Likewise.
617 * guile/scm-exception.c: Likewise.
618 * guile/scm-gsmob.c: Likewise.
619 * guile/scm-lazy-string.c: Likewise.
620 * guile/scm-math.c: Likewise.
621 * guile/scm-pretty-print.c: Likewise.
622 * guile/scm-safe-call.c: Likewise.
623 * guile/scm-utils.c: Likewise.
624 * guile/scm-value.c: Likewise.
625 * h8300-tdep.c: Likewise.
626 * hppa-hpux-nat.c: Likewise.
627 * hppa-tdep.c: Likewise.
628 * hppanbsd-tdep.c: Likewise.
629 * hppaobsd-tdep.c: Likewise.
630 * i386-darwin-nat.c: Likewise.
631 * i386-darwin-tdep.c: Likewise.
632 * i386-nto-tdep.c: Likewise.
633 * i386-tdep.c: Likewise.
634 * i386bsd-nat.c: Likewise.
635 * i386fbsd-tdep.c: Likewise.
636 * i386gnu-nat.c: Likewise.
637 * i386nbsd-tdep.c: Likewise.
638 * i386obsd-tdep.c: Likewise.
639 * i387-tdep.c: Likewise.
640 * ia64-libunwind-tdep.c: Likewise.
641 * ia64-tdep.c: Likewise.
642 * inf-ptrace.c: Likewise.
643 * inf-ttrace.c: Likewise.
644 * infcall.c: Likewise.
645 * infcmd.c: Likewise.
646 * infrun.c: Likewise.
647 * inline-frame.c: Likewise.
648 * interps.c: Likewise.
649 * jv-lang.c: Likewise.
650 * jv-typeprint.c: Likewise.
651 * linux-fork.c: Likewise.
652 * linux-nat.c: Likewise.
653 * linux-thread-db.c: Likewise.
654 * m32c-tdep.c: Likewise.
655 * m32r-linux-nat.c: Likewise.
656 * m32r-tdep.c: Likewise.
657 * m68k-tdep.c: Likewise.
658 * m68kbsd-nat.c: Likewise.
659 * m68kbsd-tdep.c: Likewise.
660 * m88k-tdep.c: Likewise.
661 * machoread.c: Likewise.
662 * macroexp.c: Likewise.
663 * macrotab.c: Likewise.
664 * maint.c: Likewise.
665 * mdebugread.c: Likewise.
666 * memory-map.c: Likewise.
667 * mep-tdep.c: Likewise.
668 * mi/mi-common.c: Likewise.
669 * microblaze-tdep.c: Likewise.
670 * mingw-hdep.c: Likewise.
671 * mips-linux-nat.c: Likewise.
672 * mips-linux-tdep.c: Likewise.
673 * mips-tdep.c: Likewise.
674 * mips64obsd-tdep.c: Likewise.
675 * mipsnbsd-tdep.c: Likewise.
676 * mn10300-linux-tdep.c: Likewise.
677 * mn10300-tdep.c: Likewise.
678 * moxie-tdep.c: Likewise.
679 * mt-tdep.c: Likewise.
680 * nat/linux-btrace.c: Likewise.
681 * nat/linux-osdata.c: Likewise.
682 * nat/linux-ptrace.c: Likewise.
683 * nat/mips-linux-watch.c: Likewise.
684 * nios2-linux-tdep.c: Likewise.
685 * nios2-tdep.c: Likewise.
686 * objc-lang.c: Likewise.
687 * objfiles.c: Likewise.
688 * obsd-nat.c: Likewise.
689 * opencl-lang.c: Likewise.
690 * osabi.c: Likewise.
691 * parse.c: Likewise.
692 * ppc-linux-nat.c: Likewise.
693 * ppc-sysv-tdep.c: Likewise.
694 * ppcfbsd-nat.c: Likewise.
695 * ppcfbsd-tdep.c: Likewise.
696 * ppcnbsd-nat.c: Likewise.
697 * ppcnbsd-tdep.c: Likewise.
698 * ppcobsd-nat.c: Likewise.
699 * ppcobsd-tdep.c: Likewise.
700 * printcmd.c: Likewise.
701 * procfs.c: Likewise.
702 * prologue-value.c: Likewise.
703 * psymtab.c: Likewise.
704 * python/py-lazy-string.c: Likewise.
705 * python/py-value.c: Likewise.
706 * regcache.c: Likewise.
707 * reggroups.c: Likewise.
708 * registry.c: Likewise.
709 * remote-sim.c: Likewise.
710 * remote.c: Likewise.
711 * rs6000-aix-tdep.c: Likewise.
712 * rs6000-tdep.c: Likewise.
713 * s390-linux-tdep.c: Likewise.
714 * score-tdep.c: Likewise.
715 * ser-base.c: Likewise.
716 * ser-mingw.c: Likewise.
717 * sh-tdep.c: Likewise.
718 * sh64-tdep.c: Likewise.
719 * solib-darwin.c: Likewise.
720 * solib-spu.c: Likewise.
721 * solib-svr4.c: Likewise.
722 * source.c: Likewise.
723 * sparc-nat.c: Likewise.
724 * sparc-sol2-tdep.c: Likewise.
725 * sparc-tdep.c: Likewise.
726 * sparc64-sol2-tdep.c: Likewise.
727 * sparc64-tdep.c: Likewise.
728 * sparc64fbsd-tdep.c: Likewise.
729 * sparc64nbsd-tdep.c: Likewise.
730 * sparc64obsd-tdep.c: Likewise.
731 * sparcnbsd-tdep.c: Likewise.
732 * sparcobsd-tdep.c: Likewise.
733 * spu-multiarch.c: Likewise.
734 * spu-tdep.c: Likewise.
735 * stabsread.c: Likewise.
736 * stack.c: Likewise.
737 * symfile.c: Likewise.
738 * symtab.c: Likewise.
739 * target-descriptions.c: Likewise.
740 * target-memory.c: Likewise.
741 * target.c: Likewise.
742 * tic6x-linux-tdep.c: Likewise.
743 * tic6x-tdep.c: Likewise.
744 * tilegx-linux-nat.c: Likewise.
745 * tilegx-tdep.c: Likewise.
746 * top.c: Likewise.
747 * tramp-frame.c: Likewise.
748 * tui/tui-out.c: Likewise.
749 * tui/tui-winsource.c: Likewise.
750 * ui-out.c: Likewise.
751 * user-regs.c: Likewise.
752 * utils.c: Likewise.
753 * v850-tdep.c: Likewise.
754 * valops.c: Likewise.
755 * value.c: Likewise.
756 * varobj.c: Likewise.
757 * vax-nat.c: Likewise.
758 * xml-syscall.c: Likewise.
759 * xml-tdesc.c: Likewise.
760 * xstormy16-tdep.c: Likewise.
761 * xtensa-linux-nat.c: Likewise.
762 * xtensa-tdep.c: Likewise.
763
e76df0d0
GB
7642014-08-07 Gary Benson <gbenson@redhat.com>
765
766 * common/common-defs.h: Include common-utils.h.
767 * defs.h: Do not include common-utils.h.
768 * common/gdb_assert.h: Likewise.
769 * darwin-nat.h: Likewise.
770 * nat/linux-btrace.c: Likewise.
771 * target/waitstatus.h: Likewise.
772
4cb9c816
GB
7732014-08-07 Gary Benson <gbenson@redhat.com>
774
775 * common/common-defs.h: Include ptid.h.
776 * defs.h: Do not include ptid.h.
777 * inferior.h: Likewise.
778 * infrun.h: Likewise.
779 * nat/linux-btrace.h: Likewise.
780 * nat/linux-osdata.h: Likewise.
781 * target/waitstatus.h: Likewise.
782
3995eeee
GB
7832014-08-07 Gary Benson <gbenson@redhat.com>
784
785 * common/common-defs.h: Include gdb_locale.h.
786 * defs.h: Do not include gdb_locale.h.
787
cb9f1a9b
GB
7882014-08-07 Gary Benson <gbenson@redhat.com>
789
790 * common/common-defs.h: Include gdb/signals.h.
791 * defs.h: Do not include gdb/signals.h.
792
a5fceff8
GB
7932014-08-07 Gary Benson <gbenson@redhat.com>
794
795 * common/common-defs.h: Include pathmax.h.
796 * defs.h: Do not include pathmax.h.
797
b9391142
GB
7982014-08-07 Gary Benson <gbenson@redhat.com>
799
800 * common/common-defs.h: Include libiberty.h.
801 * defs.h: Do not include libiberty.h.
802 * common/queue.h: Likewise.
803 * cp-name-parser.y: Likewise.
804 * mi/mi-cmd-catch.c: Likewise.
805 * python/python.c: Likewise.
806
0e443c87
GB
8072014-08-07 Gary Benson <gbenson@redhat.com>
808
809 * common/common-defs.h: Include ansidecl.h.
810 * defs.h: Do not include ansidecl.h.
811 * common/buffer.h: Likewise.
812 * common/common-utils.h: Likewise.
813
8ebb3f56
GB
8142014-08-07 Gary Benson <gbenson@redhat.com>
815
816 * common/common-defs.h: Include stddef.h.
817 * defs.h: Do not include stddef.h.
818 * common/common-utils.h: Likewise.
819 * amd64fbsd-nat.c: Likewise.
820 * bcache.c: Likewise.
821 * charset.c: Likewise.
822 * common/buffer.h: Likewise.
823 * common/vec.h: Likewise.
824 * i386bsd-nat.c: Likewise.
825 * nat/linux-btrace.h: Likewise.
826 * ppcfbsd-nat.c: Likewise.
827 * ppcnbsd-tdep.h: Likewise.
828 * ppcobsd-nat.c: Likewise.
829 * ppcobsd-tdep.h: Likewise.
830 * python/py-gdb-readline.c: Likewise.
831
8980bdf6
GB
8322014-08-07 Gary Benson <gbenson@redhat.com>
833
834 * common/common-defs.h: Include stdarg.h.
835 * defs.h: Do not include stdarg.h.
836 * ada-lang.c: Likewise.
837 * common/common-utils.h: Likewise.
838 * guile/scm-string.c: Likewise.
839 * guile/scm-utils.c: Likewise.
840 * m32c-tdep.c: Likewise.
841
d7096f71
GB
8422014-08-07 Gary Benson <gbenson@redhat.com>
843
844 * common/common-defs.h: Include stdlib.h.
845 * defs.h: Do not include stdlib.h.
846 * addrmap.c: Likewise.
847 * bcache.c: Likewise.
848 * common/buffer.c: Likewise.
849 * common/common-utils.c: Likewise.
850 * cp-name-parser.y: Likewise.
851 * go32-nat.c: Likewise.
852 * mn10300-linux-tdep.c: Likewise.
853 * nat/linux-osdata.c: Likewise.
854 * tui/tui.c: Likewise.
855 * windows-nat.c: Likewise.
856
d02f550d
GB
8572014-08-07 Gary Benson <gbenson@redhat.com>
858
859 * common/common-defs.h: Include stdio.h.
860 * defs.h: Do not include stdio.h.
861 * ada-lang.c: Likewise.
862 * common/buffer.c: Likewise.
863 * common/common-utils.c: Likewise.
864 * cp-name-parser.y: Likewise.
865 * gnu-nat.c: Likewise.
866 * go32-nat.c: Likewise.
867 * i386gnu-nat.c: Likewise.
868 * proc-api.c: Likewise.
869 * proc-events.c: Likewise.
870 * proc-flags.c: Likewise.
871 * proc-why.c: Likewise.
872 * python/python-internal.h: Likewise.
873 * target-memory.c: Likewise.
874 * tui/tui-io.c: Likewise.
875 * tui/tui.c: Likewise.
876
b6d7a4bf
SM
8772014-08-06 Simon Marchi <simon.marchi@ericsson.com>
878
879 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
880 (scan_dyntag_auxv): Same.
881
af19829b
YQ
8822014-08-06 Yao Qi <yao@codesourcery.com>
883
884 * amd64-linux-nat.c: Remove duplicated include
885 "x86-linux-nat.h".
886 * i386-linux-nat.c: Likewise.
887
8e07a239
YQ
8882014-08-06 Yao Qi <yao@codesourcery.com>
889
890 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
891 operand" with "Special opcode" in comments.
892
7bfe8241
GB
8932014-08-05 Gary Benson <gbenson@redhat.com>
894
895 * interps.c (initialize_interps): Remove prototype.
896 (interpreter_initialized): Remove static global.
897 (interp_add): Do not call initialize_interps.
898 (initialize_interps): Remove function.
899
d6c95504
GB
9002014-08-05 Gary Benson <gbenson@redhat.com>
901
902 * utils.c (vwarning): Remove spurious va_end.
903
241fd515
AM
9042014-08-05 Alan Modra <amodra@gmail.com>
905
906 * charset.c (convert_between_encodings): Cast result of obstack_base.
907 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
908 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
909 (read_unwind_info): Use size_t for some locals.
910 * jit.c (finalize_symtab): Likewise.
911 * utils.c (hashtab_obstack_allocate): Likewise.
912 * symmisc.c (print_objfile_statistics): Update format strings.
913
dc304a94
JK
9142014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
915
916 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
917 (Changes in GDB 7.8): ... here.
918
3cecbbbe
TT
9192014-08-04 Tom Tromey <tromey@redhat.com>
920
921 * target.c (set_targetdebug): New function.
922 (initialize_targets): Pass set_targetdebug when creating "set
923 debug target".
924
6908c509
JB
9252014-08-01 Joel Brobecker <brobecker@adacore.com>
926
927 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
928 if detecting a variable-sized field that is not the last field.
929 Fix struct type length computation.
930
53e8f97d
JB
9312014-08-01 Joel Brobecker <brobecker@adacore.com>
932
933 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
934 Add debug trace.
935
e068c55d
JB
9362014-08-01 Joel Brobecker <brobecker@adacore.com>
937
938 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
939 Remove "+ 8" offset in computation of CHAIN_VMA.
940
4d4ca2a1
DE
9412014-07-31 Doug Evans <dje@google.com>
942
943 * inflow.c (child_terminal_inferior): Add comment.
944 (child_terminal_ours_for_output): Add comment.
945 (child_terminal_ours): Add comment.
946 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
947 (linux_nat_terminal_ours): Add comment.
948
462f517e
GB
9492014-07-31 Gary Benson <gbenson@redhat.com>
950
951 * common/btrace-common.h: Do not include defs.h or server.h.
952 * nat/mips-linux-watch.h: Likewise.
953 * gdb-dlfcn.h: Do not include defs.h.
954 * tracefile.h: Likewise.
955
74228e77
RM
9562014-07-30 Roland McGrath <mcgrathr@google.com>
957
958 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
959
014f9477
TT
9602014-07-30 Tom Tromey <tromey@redhat.com>
961
962 * bsd-kvm.c (bsd_kvm_open): Constify.
963 * corelow.c (core_open): Constify.
964 * ctf.c (ctf_open): Constify.
965 * dbug-rom.c (dbug_open): Constify.
966 * exec.c (exec_open): Constify.
967 * m32r-rom.c (m32r_open, mon2000_open): Constify.
968 * microblaze-rom.c (picobug_open): Constify.
969 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
970 Constify.
971 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
972 * record-btrace.c (record_btrace_open): Constify.
973 * record-full.c (record_full_core_open_1, record_full_open_1)
974 (record_full_open): Constify.
975 * remote-m32r-sdi.c (m32r_open): Constify.
976 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
977 (rockhopper_open, lsi_open): Constify.
978 * remote-sim.c (gdbsim_open): Constify.
979 * remote.c (remote_open, extended_remote_open, remote_open_1):
980 Constify.
981 * target.h (struct target_ops) <to_open>: Make "arg" const.
982 * tracefile-tfile.c (tfile_open): Constify.
983
e799154c
TT
9842014-07-30 Tom Tromey <tromey@redhat.com>
985
986 * breakpoint.c (map_breakpoint_numbers): Update.
987 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
988 (get_number_const): New function.
989 (get_number): Rewrite using get_number_const.
990 (init_number_or_range): Make "string" const.
991 (number_is_in_list): Make "list" const.
992 * cli/cli-utils.h (get_number_const): Declare.
993 (struct get_number_or_range_state) <string, end_ptr>: Now const.
994 (init_number_or_range, number_is_in_list): Update.
995 * printcmd.c (map_display_numbers): Update.
996 * value.c (value_from_history_ref): Constify.
997 * value.h (value_from_history_ref): Update.
998
5f08566b
TT
9992014-07-30 Tom Tromey <tromey@redhat.com>
1000
1001 * corefile.c (hook_type, call_extra_exec_file_hooks)
1002 (specify_exec_file_hook): Constify.
1003 * exec.c (exec_file_attach): Make "filename" const.
1004 * gdbcore.h (deprecated_exec_file_display_hook)
1005 (specify_exec_file_hook, exec_file_attach): Constify.
1006 * main.c (captured_main): Use catch_command_errors_const.
1007
8981c758
TT
10082014-07-30 Tom Tromey <tromey@redhat.com>
1009
1010 * target.c (open_target): New function.
1011 (add_target_with_completer, add_deprecated_target_alias): Use
1012 set_cmd_sfunc, set_cmd_context.
1013 (debug_to_open): Remove.
1014 (setup_target_debug): Update.
1015
a1c7835a
YQ
10162014-07-30 Yao Qi <yao@codesourcery.com>
1017
1018 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1019 comments.
1020 * parse.c (exp_iterate): Update comments.
1021
976411d6
GB
10222014-07-30 Gary Benson <gbenson@redhat.com>
1023
1024 * common/common-defs.h: New file.
1025 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1026 * defs.h: Include common-defs.h.
1027 Do not include config.h or build-gnulib/config.h.
1028
5d4848a4
GB
10292014-07-30 Gary Benson <gbenson@redhat.com>
1030
1031 * common/common-utils.h: Do not include config.h.
1032 * nat/linux-btrace.h: Likewise.
1033
d41f6d8e
GB
10342014-07-30 Gary Benson <gbenson@redhat.com>
1035
1036 * btrace.c: Include defs.h.
1037 * common/ptid.c: Include defs.h or server.h as appropriate.
1038 * nat/mips-linux-watch.c: Likewise.
1039
84202f9c
TT
10402014-07-29 Tom Tromey <tromey@redhat.com>
1041
1042 * target.c (target_is_pushed): Simplify.
1043
2530441c
JB
10442014-07-29 Joel Brobecker <brobecker@adacore.com>
1045
1046 GDB 7.8 released.
1047
7e09a223
YQ
10482014-07-29 Yao Qi <yao@codesourcery.com>
1049
1050 PR gdb/17206
1051 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1052
7ebdbe92
DE
10532014-07-28 Doug Evans <xdje42@gmail.com>
1054
1055 PR guile/17203
1056 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1057 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1058 parameters.
1059
f347ffc9
WN
10602014-07-28 Will Newton <will.newton@linaro.org>
1061
1062 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1063 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1064 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1065 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1066 (THUMB2_EABI_SYSCALL): Likewise.
1067 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1068 struct tramp_frame.
1069 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1070 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1071
37c5f1f7
DE
10722014-07-27 Doug Evans <xdje42@gmail.com>
1073
1074 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1075
0c3abbc7
DE
10762014-07-27 Doug Evans <xdje42@gmail.com>
1077
1078 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1079
e76c5d17
DE
10802014-07-26 Ludovic Courtès <ludo@gnu.org>
1081 Doug Evans <xdje42@gmail.com>
1082
1083 PR guile/17146
1084 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1085 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1086 * configure.ac: Try to use guild to compile an scm file, if it fails
1087 then disable guile support.
1088 * configure: Regenerate.
1089 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1090 GUILE_FILE_LIST.
1091 (GUILE_COMPILED_FILES): New variable.
1092 (GUILE_FILES) Update.
1093 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1094 (stamp-guile): Compile scm files.
1095 * guile/guile.c (boot_guile_support): New function.
1096 (standard_throw_args_p): New function.
1097 (print_standard_throw_error, print_throw_error): New functions.
1098 (handle_boot_error): New function.
1099 (initialize_scheme_side): Rewrite to call boot_guile_support.
1100 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1101 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1102
186fcde0
DE
11032014-07-26 Ludovic Courtès <ludo@gnu.org>
1104 Doug Evans <xdje42@gmail.com>
1105
1106 PR guile/17146
1107 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1108 * guile/lib/gdb/support.scm: New file.
1109 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1110 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1111 All uses updated.
1112 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1113 All uses updated.
1114 (%assert-type): Ditto, and renamed to assert-type.
1115 (%exception-print-style): Delete.
1116
4df42755
DE
11172014-07-26 Doug Evans <xdje42@gmail.com>
1118
1119 PR build/17105
1120 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1121 * configure: Regenerate.
1122 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1123 PYTHON_FILES.
1124 (PYTHON_FILES): New variable.
1125 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1126 (GUILE_FILES): New variable.
1127 (stamp-python, install-python, uninstall-python): Handle empty
1128 file list.
1129 (stamp-guile, install-guile, uninstall-guile): Ditto.
1130
ee7333ae
DE
11312014-07-26 Doug Evans <xdje42@gmail.com>
1132
1133 PR guile/17177
1134 * guile/lib/gdb.scm (pretty-printers): Export.
1135 (set-pretty-printers!): Export.
1136 * guile/lib/gdb/printing.scm (gdb module): Update.
1137 (prepend-pretty-printer!, append-pretty-printer!): Update.
1138 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1139 (pretty_printer_list_var): Delete.
1140 (pretty_printer_list): New static global.
1141 (gdbscm_pretty_printers): New function.
1142 (gdbscm_set_pretty_printers_x): New function.
1143 (ppscm_find_pretty_printer_from_gdb): Update.
1144 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1145 (gdbscm_initialize_pretty_printers): Update.
1146
74edf516
DE
11472014-07-26 Doug Evans <xdje42@gmail.com>
1148
1149 PR 17185
1150 * configure.ac: Add check for header gc/gc.h.
1151 Add check for function setenv.
1152 * configure: Regenerate.
1153 * config.in: Regenerate.
1154 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1155
d54398a7
MR
11562014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1157
1158 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1159 variation in gdbarch matching.
1160
ab16fce8
TT
11612014-07-25 Tom Tromey <tromey@redhat.com>
1162
1163 * exec.c (using_exec_ops): Remove.
1164 (exec_close_1): Update. Remove extraneous block, reindent.
1165 (add_target_sections): Use target_is_pushed.
1166
88056fbb
PA
11672014-07-25 Pedro Alves <palves@redhat.com>
1168
1169 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1170 * monitor.c (monitor_create_inferior): Likewise.
1171 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1172 * remote-sim.c (gdbsim_create_inferior): Likewise.
1173 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1174 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1175 * windows-nat.c (do_initial_windows_stuff): Likewise.
1176
70509625
PA
11772014-07-25 Pedro Alves <palves@redhat.com>
1178
1179 * NEWS: Mention signal passing and "signal" command changes.
1180 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1181 comment.
1182 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1183 call.
1184 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1185 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1186 (jump_command): Adjust clear_proceed_status call.
1187 (signal_command): Warn if other thread that are resumed have
1188 signals that will be delivered. Adjust clear_proceed_status call.
1189 (until_next_command, finish_command)
1190 (proceed_after_attach_callback, attach_command_post_wait)
1191 (attach_command): Adjust clear_proceed_status call.
1192 * infrun.c (proceed_after_vfork_done): Likewise.
1193 (proceed_after_attach_callback): Adjust comment.
1194 (clear_proceed_status_thread): Clear stop_signal if not in pass
1195 state.
1196 (clear_proceed_status_callback): Delete.
1197 (clear_proceed_status): New 'step' parameter. Only clear the
1198 proceed status of threads the command being prepared is about to
1199 resume.
1200 (proceed): If passed in an explicit signal, override stop_signal
1201 with it. Don't pass the last stop signal to the thread we're
1202 resuming.
1203 (init_wait_for_inferior): Adjust clear_proceed_status call.
1204 (switch_back_to_stepped_thread): Clear the signal if it should not
1205 be passed.
1206 * infrun.h (clear_proceed_status): New 'step' parameter.
1207 (user_visible_resume_ptid): Add comment.
1208 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1209 signal is in pass state.
1210 * remote.c (append_pending_thread_resumptions): Likewise.
1211 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1212
d8be2939
TT
12132014-07-25 Tom Tromey <tromey@redhat.com>
1214
1215 * target.h (target_stopped_data_address)
1216 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1217 parentheses.
1218
7d0d9d2b
PL
12192014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1220
1221 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1222 comments.
1223 (avr_pointer_to_address): Likewise.
1224
e9e7f724
TT
12252014-07-24 Tom Tromey <tromey@redhat.com>
1226
1227 * monitor.c (compile_pattern): Update.
1228 * target.h (struct target_ops) <to_shortname, to_longname,
1229 to_doc>: Now const.
1230
1947513d
TT
12312014-07-24 Tom Tromey <tromey@redhat.com>
1232
1233 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1234 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1235 (add_info_alias, add_com): Make "doc" const.
1236 (print_doc_line): Make "str" const.
1237 (delete_cmd): Update.
1238 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1239 (print_doc_line): Update.
1240 * cli/cli-script.c (document_command): Update.
1241 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1242 (add_com, add_info, add_info_alias): Update.
1243 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1244 * python/py-cmd.c (cmdpy_destroyer): Update.
1245
64e61d29
TT
12462014-07-24 Tom Tromey <tromey@redhat.com>
1247
1248 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1249 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1250 (help_cmd_list): Constify.
1251 (lookup_cmd): Update.
1252 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1253 const.
1254 (help_cmd_list, apropos_cmd): Update.
1255 * cli/cli-script.c (show_user): Update.
1256 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1257 * cli/cli-setshow.h (cmd_show_list): Update.
1258 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1259 (cmd_show_list): Update.
1260 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1261 * python/py-cmd.c (cmdpy_destroyer): Update.
1262
429e55ea
TT
12632014-07-24 Tom Tromey <tromey@redhat.com>
1264
1265 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1266 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1267 const.
1268 * command.h (deprecate_cmd): Update.
1269 * maint.c (maintenance_do_deprecate): Add casts.
1270
64669f3b
TT
12712014-07-24 Tom Tromey <tromey@redhat.com>
1272
1273 * cli/cli-decode.c (help_cmd): Make parameter "const".
1274 * cli/cli-decode.h (help_cmd): Update.
1275
d3d3328b
TT
12762014-07-24 Tom Tromey <tromey@redhat.com>
1277
1278 * stack.c (up_silently_base, down_silently_base): Make argument
1279 const.
1280
414842dc
TT
12812014-07-24 Tom Tromey <tromey@redhat.com>
1282
1283 * solib.c (solib_add): Make "pattern" const.
1284 * solib.h (solib_add): Update.
1285
baa336ce
TT
12862014-07-24 Tom Tromey <tromey@redhat.com>
1287
1288 * remote.c (remote_serial_open, print_packet, putpkt)
1289 (putpkt_binary): Constify.
1290 * remote.h (putpkt): Update.
1291
5a19e2d0
TT
12922014-07-24 Tom Tromey <tromey@redhat.com>
1293
1294 * monitor.c (monitor_open): Make "args" const.
1295 * monitor.h (monitor_open): Update.
1296
fc4baa5e
TT
12972014-07-24 Tom Tromey <tromey@redhat.com>
1298
1299 * maint.c (match_bfd_flags): Make "string" const.
1300 (print_bfd_section_info): Remove casts.
1301 (print_objfile_section_info): Make "string" const.
1302
0d5f0dbe
TT
13032014-07-24 Tom Tromey <tromey@redhat.com>
1304
1305 * inf-child.c (inf_child_open_target): Make "arg" const.
1306 * inf-child.h (inf_child_open_target): Update.
1307
41c77899
TT
13082014-07-24 Tom Tromey <tromey@redhat.com>
1309
1310 * environ.c (unset_in_environ): Make "var" const.
1311 * environ.h (unset_in_environ): Update.
1312
93db0d79
TT
13132014-07-24 Tom Tromey <tromey@redhat.com>
1314
1315 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1316 Make "cmd" const.
1317 (scan_filename_with_cleanup): Likewise.
1318 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1319 Make arguments const.
1320 (restore_command): Update.
1321
36d6eb95
PA
13222014-07-24 Pedro Alves <palves@redhat.com>
1323
1324 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1325
8009206a
TT
13262014-07-24 Tom Tromey <tromey@redhat.com>
1327 Gary Benson <gbenson@redhat.com>
1328
1329 * nat/linux-ptrace.c (additional_flags): New global.
1330 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1331 additional_flags; don't check GDBSERVER.
1332 (linux_ptrace_set_additional_flags): New function.
1333 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1334 Declare.
1335 * linux-nat.c (_initialize_linux_nat): Call
1336 linux_ptrace_set_additional_flags.
1337
a7068b60
TT
13382014-07-24 Tom Tromey <tromey@redhat.com>
1339
1340 * make-target-delegates (munge_type, write_debugmethod): New
1341 functions.
1342 (debug_names): New global.
1343 ($TARGET_DEBUG_PRINTER): New global.
1344 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1345 name.
1346 Write debug methods. Generate init_debug_target.
1347 * target-debug.h: New file.
1348 * target-delegates.c: Rebuild.
1349 * target.c: Include target-debug.h.
1350 (debug_target): Hoist definition.
1351 (target_kill, target_get_section_table, target_memory_map)
1352 (target_flash_erase, target_flash_done, target_detach)
1353 (target_disconnect, target_wait, target_resume)
1354 (target_pass_signals, target_program_signals, target_follow_fork)
1355 (target_mourn_inferior, target_search_memory)
1356 (target_thread_address_space, target_close)
1357 (target_find_new_threads, target_core_of_thread)
1358 (target_verify_memory, target_insert_mask_watchpoint)
1359 (target_remove_mask_watchpoint): Remove targetdebug code.
1360 (debug_to_post_attach, debug_to_prepare_to_store)
1361 (debug_to_files_info, debug_to_insert_breakpoint)
1362 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1363 (debug_to_region_ok_for_hw_watchpoint)
1364 (debug_to_can_accel_watchpoint_condition)
1365 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1366 (debug_to_watchpoint_addr_within_range)
1367 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1368 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1369 (debug_to_terminal_init, debug_to_terminal_inferior)
1370 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1371 (debug_to_terminal_save_ours, debug_to_terminal_info)
1372 (debug_to_load, debug_to_post_startup_inferior)
1373 (debug_to_insert_fork_catchpoint)
1374 (debug_to_remove_fork_catchpoint)
1375 (debug_to_insert_vfork_catchpoint)
1376 (debug_to_remove_vfork_catchpoint)
1377 (debug_to_insert_exec_catchpoint)
1378 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1379 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1380 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1381 (setup_target_debug): Call init_debug_target.
1382 * target.h (TARGET_DEBUG_PRINTER): New macro.
1383 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1384 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1385
2c51604d
GB
13862014-07-24 Gary Benson <gbenson@redhat.com>
1387
1388 * exceptions.h (throw_vfatal): Renamed to...
1389 (throw_vquit): New declaration.
1390 (throw_quit): Likewise.
1391 * exceptions.c (throw_vfatal): Renamed to...
1392 (throw_vquit): New function.
1393 (throw_quit): Likewise.
1394 (throw_error): Call throw_verror rather than throw_it.
1395 * utils.h (vfatal): Removed.
1396 (fatal): Likewise.
1397 * utils.c (vfatal): Removed.
1398 (fatal): Likewise.
1399 (internal_verror): Replaced call to fatal with call to throw_quit.
1400 (quit): Replaced calls to fatal with calls to throw_quit.
1401
34211963
ME
14022014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1403
1404 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1405 target_read_code.
1406
a52b4d3e
ME
14072014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1408
1409 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1410 less than zero in conditional expression.
1411
a8bdc56b
TT
14122014-07-23 Tom Tromey <tromey@redhat.com>
1413
1414 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1415 ($INTRO_PART): Don't match whitespace.
1416 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1417 argument matching.
1418 ($METHOD): Add $METHOD_TRAILER.
1419 (trim): Rewrite.
1420 (scan_target_h): New sub.
1421 Change main loop not to collect state.
1422 * target-delegates.c: Rebuild.
1423
91b52240
GB
14242014-07-23 Gary Benson <gbenson@redhat.com>
1425
1426 * cp-support.c (gdb_demangle): Fix build on systems without
1427 sigaltstack.
1428
45326f6f
JK
14292014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1430
1431 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1432 for reference entry value target data value.
1433
e214cf6c
JK
14342014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1435
1436 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1437 value_available_contents_eq.
1438
bddbbedd
PA
14392014-07-22 Pedro Alves <palves@redhat.com>
1440
1441 * value.c (allocate_optimized_out_value): Don't mark value as
1442 non-lazy.
1443
45c71484
JW
14442014-07-22 Jiong Wang <jiong.wang@arm.com>
1445
1446 * MAINTAINERS (Write After Approval): Update my email address.
1447
9597b22a
DE
14482014-07-20 Doug Evans <dje@google.com>
1449
1450 PR server/17147
1451 * remote.c (putpkt_binary): Add text to error message.
1452
91101fe5
YQ
14532014-07-20 Yao Qi <yao@codesourcery.com>
1454
1455 * eval.c: Remove "Chill" from comments.
1456 * gdbtypes.h: Likewise.
1457 * symtab.h: Likewise.
1458
c9402c95
YQ
14592014-07-20 Yao Qi <yao@codesourcery.com>
1460
1461 * std-operator.def: Update comments to TERNOP_SLICE.
1462
ae8fddda
YQ
14632014-07-20 Yao Qi <yao@codesourcery.com>
1464
1465 * std-operator.def: Remove BINOP_RANGE.
1466 * breakpoint.c (watchpoint_exp_is_const): Update.
1467 * expprint.c (dump_subexp_body_standard): Likewise.
1468 * eval.c (init_array_element): Remove dead code.
1469 (evaluate_subexp_standard): Likewise.
1470
9c816640
YQ
14712014-07-20 Yao Qi <yao@codesourcery.com>
1472
1473 * std-operator.def: Remove BINOP_IN.
1474 * breakpoint.c (watchpoint_exp_is_const): Update.
1475 * eval.c (evaluate_subexp_standard): Likewise.
1476 * expprint.c (dump_subexp_body_standard): Likewise.
1477
164224e9
ME
14782014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1479
1480 * microblaze-tdep.c (microblaze_register_names): Add
1481 the rshr and rslr register names.
1482 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1483 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1484 Use of tdesc_numbered_register. Use of
1485 microblaze_register_g_packet_guesses. Use of
1486 tdesc_use_registers. Use of set_gdbarch_register_type.
1487 (microblaze_register_g_packet_guesses): New.
1488 * microblaze-tdep.h (microblaze_reg_num): Add
1489 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1490 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1491 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1492 * features/microblaze-core.xml: New file.
1493 * features/microblaze-stack-protect.xml: New file.
1494 * features/microblaze-with-stack-protect.c: New file.
1495 * features/microblaze-with-stack-protect.xml: New file.
1496 * features/microblaze.xml: New file.
1497 * features/microblaze.c: New file.
1498 * features/Makefile (microblaze-with-stack-protect): Add
1499 microblaze-with-stack-protect microblaze and microblaze-expedite.
1500 * regformats/microblaze-with-stack-protect.dat: New file.
1501 * regformats/microblaze.dat: New file.
1502 * doc/gdb.texinfo (MicroBlaze Features): Added.
1503
e8b2341c
TT
15042014-07-18 Tom Tromey <tromey@redhat.com>
1505
1506 * exec.c (exec_ops): Now static.
1507 * exec.h (exec_ops): Don't declare.
1508
44e89118
TT
15092014-07-18 Tom Tromey <tromey@redhat.com>
1510
1511 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1512 to find_target_beneath.
1513 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1514 find_target_beneath.
1515 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1516
b0ed115f
TT
15172014-07-18 Tom Tromey <tromey@redhat.com>
1518
1519 PR gdb/17130:
1520 * utils.c (quit): Use target_supports_terminal_ours.
1521 * target.h (target_supports_terminal_ours): Declare.
1522 * target.c (target_supports_delete_record): Don't check
1523 to_delete_record against NULL.
1524 (target_supports_terminal_ours): New function.
1525
e75fdfca
TT
15262014-07-18 Tom Tromey <tromey@redhat.com>
1527
1528 PR gdb/17130:
1529 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1530 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1531 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1532 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1533 * windows-nat.c (windows_xfer_partial): Always delegate.
1534 * record-btrace.c (record_btrace_xfer_partial): Simplify
1535 delegation.
1536 (record_btrace_fetch_registers, record_btrace_store_registers)
1537 (record_btrace_prepare_to_store, record_btrace_resume)
1538 (record_btrace_wait, record_btrace_find_new_threads)
1539 (record_btrace_thread_alive): Likewise.
1540 * procfs.c (procfs_xfer_partial): Always delegate.
1541 * corelow.c (core_xfer_partial): Always delegate.
1542 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1543
83814951
TT
15442014-07-18 Tom Tromey <tromey@redhat.com>
1545
1546 * exec.c (exec_make_note_section): Move earlier.
1547
b8b8facf
DE
15482014-07-17 Doug Evans <dje@google.com>
1549
74b49205 1550 PR gdb/17170
b8b8facf
DE
1551 * maint.c (count_symtabs_and_blocks): Handle NULL
1552 current_program_space.
1553 (report_command_stats): Check global enabled flag in addition to
1554 recorded enabled flag.
1555 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1556
69ff6be5
PA
15572014-07-16 Pedro Alves <palves@redhat.com>
1558
1559 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1560
252db1b5
TT
15612014-07-16 Tom Tromey <tromey@redhat.com>
1562
1563 * target.h (struct target_ops) <to_delete_record>: Reformat
1564 comment.
1565
a432721e
TT
15662014-07-16 Tom Tromey <tromey@redhat.com>
1567
1568 * target-delegates.c: Rebuild.
1569
487d9753
PL
15702014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
1571
1572 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1573 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1574 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1575 (avr_pointer_to_address): Likewise.
1576 (avr_address_class_type_flags): New function.
1577 (avr_address_class_type_flags_to_name): Likewise.
1578 (avr_address_class_name_to_type_flags): Likewise.
1579 (avr_gdbarch_init): Set address_class_type_flags,
1580 address_class_type_flags_to_name and
1581 address_class_name_to_type_flags.
1582
57745c90
PA
15832014-07-15 Pedro Alves <palves@redhat.com>
1584
1585 * linux-nat.c (kill_callback): Save errno and work with saved
1586 copy.
1587
2d40be18
SM
15882014-07-15 Simon Marchi <simon.marchi@ericsson.com>
1589
1590 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1591
572f6555
EBM
15922014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1593
1594 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1595 breakpoint support correctly.
1596
cc1c52ad
PA
15972014-07-14 Pedro Alves <palves@redhat.com>
1598
1599 * utils.c (prompt_for_continue): Call target_terminal_ours.
1600
1e973570
PA
16012014-07-14 Pedro Alves <palves@redhat.com>
1602
1603 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1604 catch_errors. Don't re-enable stdin or notify observers where,
1605 and rethrow error.
1606 (fetch_inferior_event_wrapper): Delete.
1607
93d6eb10
PA
16082014-07-14 Pedro Alves <palves@redhat.com>
1609
1610 PR gdb/17072
1611 * top.c: Include "inf-loop.h".
1612 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1613 field.
1614 (gdb_readline_wrapper_cleanup): Make the target async again, if it
1615 was async before.
1616 (gdb_readline_wrapper): Store whether the target is async, and
1617 make it sync.
1618
0017922d
PA
16192014-07-14 Pedro Alves <palves@redhat.com>
1620
1621 PR gdb/17072
1622 * top.c (gdb_readline_wrapper_line): Tweak comment.
1623 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1624 the input handler callback.
1625
94696ad3
PA
16262014-07-14 Pedro Alves <palves@redhat.com>
1627
1628 PR gdb/17072
1629 * main.c: Include event-top.h.
1630 (handle_command_errors): New function.
1631 (catch_command_errors, catch_command_errors_const): Use it.
1632
9d1e69a2
PA
16332014-07-14 Pedro Alves <palves@redhat.com>
1634
1635 * exceptions.c (catch_command_errors, catch_command_errors_const):
1636 Moved to main.c.
1637 * exceptions.h (catch_command_errors_ftype)
1638 (catch_command_errors_const_ftype): Moved to main.c.
1639 (catch_command_errors, catch_command_errors_const): Delete
1640 declarations.
1641 * main.c (catch_command_errors_ftype)
1642 (catch_command_errors_const_ftype): Moved here from exceptions.h.
1643 (catch_command_errors, catch_command_errors_const)): Moved here
1644 from exceptions.c and make static.
1645
feefc97b
PA
16462014-07-14 Pedro Alves <palves@redhat.com>
1647
1648 * exceptions.c (print_any_exception): Delete.
1649 (catch_exceptions_with_msg): Use exception_print instead of
1650 print_any_exception.
1651 (catch_errors): Use exception_fprintf instead of
1652 print_any_exception.
1653 (catch_command_errors, catch_command_errors_const): Use
1654 exception_print instead of print_any_exception.
1655
c933f875
PA
16562014-07-14 Pedro Alves <palves@redhat.com>
1657
1658 * infcall.c (run_inferior_call): Set 'sync_execution' while
1659 running the inferior call.
1660
feb6f816
PA
16612014-07-14 Pedro Alves <palves@redhat.com>
1662
1663 * value.c (value_contents_equal): Delete function.
1664 * value.h (value_contents_equal): Delete declaration.
1665
d98b7a16
TT
16662014-07-14 Tom Tromey <tromey@redhat.com>
1667
1668 PR exp/17106:
1669 * gdbtypes.c (is_dynamic_type_internal): New function, from
1670 is_dynamic_type.
1671 (is_dynamic_type): Rewrite.
1672 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1673 (resolve_dynamic_struct): Likewise.
1674 (resolve_dynamic_type_internal): New function, from
1675 resolve_dynamic_type.
1676 (resolve_dynamic_type): Rewrite.
1677
548740d6
TT
16782014-07-14 Tom Tromey <tromey@redhat.com>
1679
1680 * target.c (target_require_runnable): Also check record_stratum.
1681 Update comment.
1682
808f7ab1
YQ
16832014-07-11 Yao Qi <yao@codesourcery.com>
1684
1685 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1686 thumb_instruction_restores_sp return true.
1687
540314bd
YQ
16882014-07-11 Yao Qi <yao@codesourcery.com>
1689
1690 * arm-tdep.c (thumb_instruction_restores_sp): New function.
1691 (thumb_in_function_epilogue_p): Call
1692 thumb_instruction_restores_sp.
1693
1db01f22
YQ
16942014-07-11 Yao Qi <yao@codesourcery.com>
1695
1696 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1697 'add sp, #imm'.
1698 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1699
3116063b
GB
17002014-07-11 Gary Benson <gbenson@redhat.com>
1701
1702 * amd64-linux-nat.c (gdbcore.h): Remove include.
1703 (regset.h): Likewise.
1704 (nat/linux-btrace.h): Likewise.
1705 (btrace.h): Likewise.
1706 (gdb_assert.h): Likewise.
1707 (string.h): Likewise.
1708 (sys/uio.h): Likewise.
1709 (sys/debugreg.h): Likewise.
1710 (sys/syscall.h): Likewise.
1711 (sys/procfs.h): Likewise.
1712 (sys/user.h): Likewise.
1713 (asm/ptrace.h): Likewise.
1714 (i386-nat.h): Likewise.
1715 * i386-linux-nat.c (i386-nat.h): Likewise.
1716 (regset.h): Likewise.
1717 (target.h): Likewise.
1718 (linux-nat.h): Likewise.
1719 (nat/linux-btrace.h): Likewise.
1720 (btrace.h): Likewise.
1721 (gdb_assert.h): Likewise.
1722 (string.h): Likewise.
1723 (sys/uio.h): Likewise.
1724 (sys/user.h): Likewise.
1725 (sys/procfs.h): Likewise.
1726 (sys/reg.h): Likewise.
1727 (sys/debugreg.h): Likewise.
1728 (ORIG_EAX): Remove definition.
1729
040baaf6
GB
17302014-07-11 Gary Benson <gbenson@redhat.com>
1731
1732 * i386-linux-nat.h: New file.
1733 * x86-linux-nat.h: Likewise.
1734 * x86-linux-nat.c: Likewise.
1735 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1736 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1737 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1738 * amd64-linux-nat.c (x86-linux-nat.h): New include.
1739 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1740 (PTRACE_SETREGSET): Likewise.
1741 (arch_lwp_info): Now in x86-linux-nat.c.
1742 (have_ptrace_getregset): Now in x86-linux-nat.h.
1743 (x86_linux_dr_get): Now in x86-linux-nat.c.
1744 (x86_linux_dr_set): Likewise.
1745 (x86_linux_dr_get_addr): Likewise.
1746 (x86_linux_dr_get_control): Likewise.
1747 (x86_linux_dr_get_status): Likewise.
1748 (update_debug_registers_callback): Likewise.
1749 (x86_linux_dr_set_control): Likewise.
1750 (x86_linux_dr_set_addr): Likewise.
1751 (x86_linux_prepare_to_resume): Likewise.
1752 (x86_linux_new_thread): Likewise.
1753 (x86_linux_new_fork): Likewise.
1754 (x86_linux_get_thread_area): Likewise.
1755 (super_post_startup_inferior): Likewise.
1756 (x86_linux_child_post_startup_inferior): Likewise.
1757 (AMD64_LINUX_USER64_CS): Likewise.
1758 (AMD64_LINUX_X32_DS): Likewise.
1759 (x86_linux_read_description): Likewise.
1760 (x86_linux_enable_btrace): Likewise.
1761 (x86_linux_disable_btrace): Likewise.
1762 (x86_linux_teardown_btrace): Likewise.
1763 (x86_linux_read_btrace): Likewise.
1764 (x86_linux_create_target): Likewise.
1765 (x86_linux_add_target): Likewise.
1766 * i386-linux-nat.c (x86-linux-nat.h): New include.
1767 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1768 (PTRACE_SETREGSET): Likewise.
1769 (arch_lwp_info): Now in x86-linux-nat.c.
1770 (have_ptrace_getregset): Now in x86-linux-nat.h.
1771 (x86_linux_dr_get): Now in x86-linux-nat.c.
1772 (x86_linux_dr_set): Likewise.
1773 (x86_linux_dr_get_addr): Likewise.
1774 (x86_linux_dr_get_control): Likewise.
1775 (x86_linux_dr_get_status): Likewise.
1776 (update_debug_registers_callback): Likewise.
1777 (x86_linux_dr_set_control): Likewise.
1778 (x86_linux_dr_set_addr): Likewise.
1779 (x86_linux_prepare_to_resume): Likewise.
1780 (x86_linux_new_thread): Likewise.
1781 (x86_linux_new_fork): Likewise.
1782 (x86_linux_get_thread_area): Likewise.
1783 (super_post_startup_inferior): Likewise.
1784 (x86_linux_child_post_startup_inferior): Likewise.
1785 (AMD64_LINUX_USER64_CS): Likewise.
1786 (AMD64_LINUX_X32_DS): Likewise.
1787 (x86_linux_read_description): Likewise.
1788 (x86_linux_enable_btrace): Likewise.
1789 (x86_linux_disable_btrace): Likewise.
1790 (x86_linux_teardown_btrace): Likewise.
1791 (x86_linux_read_btrace): Likewise.
1792 (x86_linux_create_target): Likewise.
1793 (x86_linux_add_target): Likewise.
1794
1aa7e42c
GB
17952014-07-11 Gary Benson <gbenson@redhat.com>
1796
1797 * amd64-linux-nat.c: Comment and whitespace changes.
1798 * i386-linux-nat.c: Comment and whitespace changes.
1799
c1e246a0
GB
18002014-07-11 Gary Benson <gbenson@redhat.com>
1801
1802 * amd64-linux-nat.c (x86_linux_create_target): New function.
1803 (x86_linux_add_target): Likewise.
1804 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1805 * i386-linux-nat.c (x86_linux_create_target): New function.
1806 (x86_linux_add_target): Likewise.
1807 (_initialize_i386_linux_nat): Delegate to the above new functions.
1808
8c420b8d
GB
18092014-07-11 Gary Benson <gbenson@redhat.com>
1810
1811 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1812 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1813 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1814 (ps_get_thread_area): Delegate to the above.
1815
cb1da100
GB
18162014-07-11 Gary Benson <gbenson@redhat.com>
1817
1818 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1819 x86_linux_read_description. All uses updated. amd64-specific
1820 code conditionalized. Conditionalized i386-specific code added.
1821 Redundant cast removed.
1822 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1823 x86_linux_read_description. All uses updated. i386-specific
1824 code conditionalized. Conditionalized amd64-specific code added.
1825 One sizeof replaced with the actual type it is describing.
1826
2acf3cd0
GB
18272014-07-11 Gary Benson <gbenson@redhat.com>
1828
1829 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1830 x86_linux_dr_get. All uses updated.
1831 (amd64_linux_dr_set): Renamed to
1832 x86_linux_dr_set. All uses updated.
1833 (amd64_linux_dr_get_addr): Renamed to
1834 x86_linux_dr_get_addr. All uses updated.
1835 (amd64_linux_dr_get_control): Renamed to
1836 x86_linux_dr_get_control. All uses updated.
1837 (amd64_linux_dr_get_status): Renamed to
1838 x86_linux_dr_get_status. All uses updated.
1839 (amd64_linux_dr_set_control): Renamed to
1840 x86_linux_dr_set_control. All uses updated.
1841 (amd64_linux_dr_set_addr): Renamed to
1842 x86_linux_dr_set_addr. All uses updated.
1843 (amd64_linux_prepare_to_resume): Renamed to
1844 x86_linux_prepare_to_resume. All uses updated.
1845 (amd64_linux_new_thread): Renamed to
1846 x86_linux_new_thread. All uses updated.
1847 (amd64_linux_new_fork): Renamed to
1848 x86_linux_new_fork. All uses updated.
1849 (amd64_linux_child_post_startup_inferior): Renamed to
1850 x86_linux_child_post_startup_inferior. All uses updated.
1851 (amd64_linux_enable_btrace): Renamed to
1852 x86_linux_enable_btrace. All uses updated.
1853 (amd64_linux_disable_btrace): Renamed to
1854 x86_linux_disable_btrace. All uses updated.
1855 (amd64_linux_teardown_btrace): Renamed to
1856 x86_linux_teardown_btrace. All uses updated.
1857 (amd64_linux_read_btrace): Renamed to
1858 x86_linux_read_btrace. All uses updated.
1859 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1860 x86_linux_dr_get. All uses updated.
1861 (i386_linux_dr_set): Renamed to
1862 x86_linux_dr_set. All uses updated.
1863 (i386_linux_dr_get_addr): Renamed to
1864 x86_linux_dr_get_addr. All uses updated.
1865 (i386_linux_dr_get_control): Renamed to
1866 x86_linux_dr_get_control. All uses updated.
1867 (i386_linux_dr_get_status): Renamed to
1868 x86_linux_dr_get_status. All uses updated.
1869 (i386_linux_dr_set_control): Renamed to
1870 x86_linux_dr_set_control. All uses updated.
1871 (i386_linux_dr_set_addr): Renamed to
1872 x86_linux_dr_set_addr. All uses updated.
1873 (i386_linux_prepare_to_resume): Renamed to
1874 x86_linux_prepare_to_resume. All uses updated.
1875 (i386_linux_new_thread): Renamed to
1876 x86_linux_new_thread. All uses updated.
1877 (i386_linux_new_fork): Renamed to
1878 x86_linux_new_fork. All uses updated.
1879 (i386_linux_child_post_startup_inferior): Renamed to
1880 x86_linux_child_post_startup_inferior. All uses updated.
1881 (i386_linux_enable_btrace): Renamed to
1882 x86_linux_enable_btrace. All uses updated.
1883 (i386_linux_disable_btrace): Renamed to
1884 x86_linux_disable_btrace. All uses updated.
1885 (i386_linux_teardown_btrace): Renamed to
1886 x86_linux_teardown_btrace. All uses updated.
1887 (i386_linux_read_btrace): Renamed to
1888 x86_linux_read_btrace. All uses updated.
1889
b9c1d481
AS
18902014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1891
1892 * remote.c (extended_remote_post_attach): New function.
1893 (init_extended_remote_ops): Install it as to_post_attach method.
1894
7180e04a
PA
18952014-07-09 Pedro Alves <palves@redhat.com>
1896
1897 * infcmd.c (attach_command_post_wait): Don't call
1898 target_terminal_inferior here.
1899 (attach_command): Call it here instead.
1900
9a9a7608
AB
19012014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1904 field.
1905 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1906 from varobj.c, with additional checks.
1907 (c_varobj_ops): Fill in is_path_expr_parent field.
1908 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1909 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1910 field.
1911 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1912 ops method.
1913 (varobj_default_is_path_expr_parent): New function.
1914 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1915 (varobj_default_is_path_expr_parent): Declare new function.
1916
1f267ae3
MM
19172014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1918
1919 * infcmd.c (finish_backward): Turn internal error into normal error.
1920
b2ee242b
PA
19212014-07-07 Pedro Alves <palves@redhat.com>
1922
8a869bca 1923 PR gdb/17096
b2ee242b
PA
1924 * remote.c (async_handle_remote_sigint)
1925 (async_handle_remote_sigint_twice): Call
1926 gdb_call_async_signal_handler instead of
1927 mark_async_signal_handler.
1928
38e229b2
TT
19292014-07-07 Tom Tromey <tromey@redhat.com>
1930
1931 * target-delegates.c: Rebuild.
1932 * target.c (target_info_record): Remove.
1933 * record.c (info_record_command): Unconditionally call
1934 to_info_record.
1935 * target.h (struct target_ops) <to_info_record>: Use
1936 TARGET_DEFAULT_IGNORE.
1937 (target_info_record): Remove.
1938
f0f9ff95
TT
19392014-07-07 Tom Tromey <tromey@redhat.com>
1940
1941 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1942 TARGET_DEFAULT_NORETURN.
1943 * target.c (generic_tls_error): New function.
1944 (target_translate_tls_address): Don't search target stack.
1945 * target-delegates.c: Rebuild.
1946 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1947 stack.
1948 * linux-thread-db.c (thread_db_get_thread_local_address):
1949 Unconditionally call beneath target.
1950
4a5be5ee
MK
19512014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1952
1953 * cli/cli-logging.c (pop_output_files): Assign targerr to
1954 gdb_stdtargerr.
1955
92c3b204
AB
19562014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * MAINTAINERS (Write After Approval): Update my email address.
1959
9b11e3a7
GB
19602014-07-02 Gary Benson <gbenson@redhat.com>
1961
1962 * proc-service.c (ps_xfer_memory): Update comment.
1963 (ps_pstop): Remove unused function.
1964 (ps_pcontinue): Likewise.
1965 (ps_lstop): Likewise.
1966 (ps_lcontinue): Likewise.
1967 (ps_lgetxregsize): Likewise.
1968 (ps_lgetxregs): Likewise.
1969 (ps_lsetxregs): Likewise.
1970 (ps_plog): Likewise.
1971 (ps_ptread): Likewise.
1972 (ps_ptwrite): Likewise.
1973
cf363f18
MW
19742014-07-01 Mark Wielaard <mjw@redhat.com>
1975
1976 * dwarf2read.c (add_array_cv_type): New function.
1977 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1978 (read_tag_volatile_type): Likewise.
1979
82ae6c8d
TT
19802014-07-01 Tom Tromey <tromey@redhat.com>
1981
1982 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1983 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1984 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1985 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1986 * command.h (cmd_cfunc_ftype): Move earlier.
1987 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1988 (add_com, add_info): Use cmd_cfunc_ftype.
1989
96142726
TT
19902014-06-30 Tom Tromey <tromey@redhat.com>
1991
1992 * symtab.c (operator_chars): Make parameters and return type
1993 const.
1994 (file_matches): Make "files" const.
1995 (struct search_symbols_data) <files>: Now const.
1996 (search_symbols): Make "regexp" and "files" parameters const.
1997 Update.
1998 (symtab_symbol_info): Remove cast.
1999 (rbreak_command): Update.
2000 * symtab.h (search_symbols): Update.
2001
b67a2c6f
YQ
20022014-06-27 Yao Qi <yao@codesourcery.com>
2003
2004 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2005 Change parameter type to 'struct thread_info *'. Caller
2006 updated.
2007 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2008 Update declaration.
2009 * dummy-frame.c (struct dummy_frame_id): New.
2010 (dummy_frame_id_eq): New function.
2011 (struct dummy_frame) <id>: Change its type to 'struct
2012 dummy_frame_id'.
2013 (dummy_frame_push): Add parameter ptid and save it in
2014 dummy_frame_id.
2015 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2016 inferior_ptid.
2017 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2018 to inferior_ptid.
2019 (lookup_dummy_frame): Change parameter type to 'struct
2020 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2021 instead of frame_id_eq.
2022 (dummy_frame_pop): Add parameter ptid. Callers updated.
2023 Update comments. Compose dummy_frame_id and pass it to
2024 lookup_dummy_frame.
2025 (dummy_frame_discard): Add parameter ptid.
2026 (dummy_frame_sniffer): Compose dummy_frame_id and call
2027 dummy_frame_id_eq instead of frame_id_eq.
2028 (fprint_dummy_frames): Print ptid.
2029 * dummy-frame.h: Remove comments.
2030 (dummy_frame_push): Add ptid in declaration.
2031 (dummy_frame_pop, dummy_frame_discard): Likewise.
2032
5b10184c
TT
20332014-06-26 Tom Tromey <tromey@redhat.com>
2034
2035 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2036 * command.h (error_no_arg): Update.
2037
06900326
TT
20382014-06-26 Tom Tromey <tromey@redhat.com>
2039
2040 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2041 (do_show_command): Make "arg" const.
2042 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2043
c2bcbb1d
TT
20442014-06-26 Tom Tromey <tromey@redhat.com>
2045
2046 * record-full.c (record_full_get_bookmark): Make "args" const.
2047 (record_full_goto_bookmark): Make "raw_bookmark" const.
2048 * record.c (record_goto): New function.
2049 (cmd_record_goto): Use it. Now static.
2050 * record.h (record_goto): Declare.
2051 (cmd_record_goto): Remove declaration.
2052 * target-delegates.c: Rebuild.
2053 * target.h (struct target_ops) <to_get_bookmark,
2054 to_goto_bookmark>: Make parameter const.
2055
9cbe5fff
TT
20562014-06-26 Tom Tromey <tromey@redhat.com>
2057
2058 * defs.h (generic_load): Update.
2059 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2060 * monitor.c (monitor_load): Make "args" const.
2061 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2062 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2063 const.
2064 (mips_load): Make "file" const.
2065 * remote-sim.c (gdbsim_load): Make "args" const.
2066 * remote.c (remote_load): Make "name" const.
2067 * symfile.c (generic_load): Make "args" const.
2068 * target-delegates.c: Rebuild.
2069 * target.c (target_load): Make "arg" const.
2070 (debug_to_load): Make "args" const.
2071 * target.h (struct target_ops) <to_load>: Make parameter const.
2072 (target_load): Update.
2073
34a68019
TT
20742014-06-26 Tom Tromey <tromey@redhat.com>
2075
2076 PR symtab/16902:
2077 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2078 (dwarf2_physname, read_partial_die)
2079 (guess_partial_die_structure_name, fixup_partial_die)
2080 (guess_full_die_structure_name, anonymous_struct_prefix)
2081 (dwarf2_name): Use per-BFD obstack.
2082
efc889c1
YQ
20832014-06-26 Yao Qi <yao@codesourcery.com>
2084
2085 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2086 dummyframe and this_id into inner block below.
2087
4395285e
YQ
20882014-06-26 Yao Qi <yao@codesourcery.com>
2089
2090 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2091 with "signal_pass[0]" in the initialization of signal_pass.
2092
aef92902
MM
20932014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2094
2095 * record-btrace.c (record_btrace_generating_corefile)
2096 (record_btrace_prepare_to_generate_core)
2097 (record_btrace_done_generating_core): New.
2098 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2099 (record_btrace_store_registers, record_btrace_prepare_to_store):
2100 Forward request when generating a core file.
2101 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2102 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2103 to_done_generating_core.
2104
5fff78c4
MM
21052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2106
2107 * target.h (target_ops) <to_prepare_to_generate_core>
2108 <to_done_generating_core>: New.
2109 (target_prepare_to_generate_core, target_done_generating_core): New.
2110 * target.c (target_prepare_to_generate_core)
2111 (target_done_generating_core): New.
2112 * target-delegates.c: Regenerate.
2113 * gcore.c: (write_gcore_file): Rename to ...
2114 (write_gcore_file_1): ...this.
2115 (write_gcore_file): Call target_prepare_to_generate_core
2116 and target_done_generating_core.
2117
1d1f1ccb
MM
21182014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2119
2120 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2121 * gcore.c (write_gcore_file): Free memory returned from
2122 make_corefile_notes.
2123 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2124 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2125
3343ef86
YQ
21262014-06-24 Yao Qi <yao@codesourcery.com>
2127
2128 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2129 (arm_linux_init_abi): Set skip_trampoline_code with
2130 gdbarch_skip_trampoline_code instead of
2131 find_solib_trampoline_target.
2132
18d18ac8
YQ
21332014-06-24 Yao Qi <yao@codesourcery.com>
2134
2135 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2136 arm_skip_bx_reg returns non-zero.
2137
80d8d390
YQ
21382014-06-24 Yao Qi <yao@codesourcery.com>
2139
2140 * arm-tdep.c (arm_skip_bx_reg): New function.
2141 (arm_skip_stub): Call arm_skip_bx_reg.
2142
6a18a01c
DB
21432014-06-23 Don Breazeal <donb@codesourcery.com>
2144
2145 * MAINTAINERS: Add myself as write-after-approval maintainer.
2146
8e9db26e
PA
21472014-06-23 Pedro Alves <palves@redhat.com>
2148
2149 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2150 DR_CONTROL before setting DR0..DR3.
2151 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2152 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2153 bits of DR_CONTROL related to the debug register slot being
2154 disabled. If all slots are vacant, clear local slowdown as well,
2155 and assert DR_CONTROL is 0.
2156
70afc5b7
SC
21572014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2158
2159 * python/lib/gdb/command/xmethods.py
2160 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2161 current progspace only if the string "progspace" matches LOCUS_RE.
2162
840ed64d
JK
21632014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Fix --with-system-readline with readline-6.3 patch 5.
2166 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2167 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2168 types.
2169
26f2dc30
TT
21702014-06-20 Tom Tromey <tromey@redhat.com>
2171
2172 * dwarf2read.c (dw2_get_real_path): Use correct type in
2173 OBSTACK_CALLOC.
2174 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2175
125f8a3d
GB
21762014-06-20 Gary Benson <gbenson@redhat.com>
2177
2178 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2179 * common/glibc_thread_db.h: Likewise.
2180 * common/i386-cpuid.h: Likewise.
2181 * common/i386-gcc-cpuid.h: Likewise.
2182 * common/linux-btrace.h: Likewise.
2183 * common/linux-osdata.h: Likewise.
2184 * common/linux-procfs.h: Likewise.
2185 * common/linux-ptrace.h: Likewise.
2186 * common/mips-linux-watch.h: Likewise.
2187 * common/linux-btrace.c: Moved to nat.
2188 * common/linux-osdata.c: Likewise.
2189 * common/linux-procfs.c: Likewise.
2190 * common/linux-ptrace.c: Likewise.
2191 * common/mips-linux-watch.c: Likewise.
2192 * nat/gdb_thread_db.h: Moved from common.
2193 * nat/glibc_thread_db.h: Likewise.
2194 * nat/i386-cpuid.h: Likewise.
2195 * nat/i386-gcc-cpuid.h: Likewise.
2196 * nat/linux-btrace.c: Likewise.
2197 * nat/linux-btrace.h: Likewise.
2198 * nat/linux-osdata.c: Likewise.
2199 * nat/linux-osdata.h: Likewise.
2200 * nat/linux-procfs.c: Likewise.
2201 * nat/linux-procfs.h: Likewise.
2202 * nat/linux-ptrace.c: Likewise.
2203 * nat/linux-ptrace.h: Likewise.
2204 * nat/mips-linux-watch.c: Likewise.
2205 * nat/mips-linux-watch.h: Likewise.
2206 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2207 (object file files): Reordered.
2208 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2209 of glibc_thread_db.h.
2210
42995dbd
GB
22112014-06-20 Gary Benson <gbenson@redhat.com>
2212
2213 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2214 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2215 (i386_dr_low): Likewise.
2216 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2217 (i386_dr_low_set_addr): Likewise.
2218 (i386_dr_low_get_addr): Likewise.
2219 (i386_dr_low_can_set_control): Likewise.
2220 (i386_dr_low_set_control): Likewise.
2221 (i386_dr_low_get_control): Likewise.
2222 (i386_dr_low_get_status): Likewise.
2223 (i386_get_debug_register_length): Likewise.
2224 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2225 (i386_dr_low): Likewise.
2226 * nat/i386-dregs.c (i386-low.h): Remove include.
2227 (i386-nat.h): Likewise.
2228 (nat/i386-dregs.h): New include.
2229 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2230 (i386_dr_low_set_addr): Likewise.
2231 (i386_dr_low_get_addr): Likewise.
2232 (i386_dr_low_can_set_control): Likewise.
2233 (i386_dr_low_set_control): Likewise.
2234 (i386_dr_low_get_control): Likewise.
2235 (i386_dr_low_get_status): Likewise.
2236 (i386_get_debug_register_length): Likewise.
2237 (debug_hw_points): Likewise.
2238
3ed9baed
IB
22392014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2240
2241 * Makefile.in (SFILES): Add d-exp.y.
2242 (YYFILES): Add d-exp.c.
2243 (YYOBJ): Add d-exp.o.
2244 (local-maintainer-clean): Delete d-exp.c.
2245 * d-exp.y: New file.
2246 * d-lang.h (d_parse): New declaration.
2247 (d_error): New declaration.
2248 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2249 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2250 PREC_ORDER operators.
2251 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2252
78c164b0
YQ
22532014-06-19 Yao Qi <yao@codesourcery.com>
2254
2255 * gdbthread.h (any_running): Remove the declaration.
2256 * thread.c (any_running): Remove.
2257
f6e29b6e
YQ
22582014-06-19 Yao Qi <yao@codesourcery.com>
2259
2260 * gdbthread.h (struct thread_info) <state>: Change its type to
2261 'enum thread_state'. Update comments.
2262
034f788c
PA
22632014-06-19 Pedro Alves <palves@redhat.com>
2264
2265 * gdbthread.h (ALL_THREADS): Delete.
2266 (ALL_NON_EXITED_THREADS): New macro.
2267 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2268 instead of ALL_THREADS.
2269 * infrun.c (find_thread_needs_step_over)
2270 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2271 instead of ALL_THREADS.
2272 * record-btrace.c (record_btrace_open)
2273 (record_btrace_stop_recording, record_btrace_close)
2274 (record_btrace_is_replaying, record_btrace_resume)
2275 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2276 * remote.c (append_pending_thread_resumptions): Likewise.
2277 * thread.c (thread_apply_all_command): Likewise.
2278
46e33252
GB
22792014-06-19 Gary Benson <gbenson@redhat.com>
2280
2281 * i386-nat.c (i386_stopped_by_watchpoint):
2282 Use i386_dr_stopped_by_watchpoint.
2283 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2284 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2285
3a8ee006
GB
22862014-06-19 Gary Benson <gbenson@redhat.com>
2287
2288 * nat/i386-dregs.c: New file.
2289 * Makefile.in (i386-dregs.o): New rule.
2290 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2291 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2292 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2293 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2294 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2295 * config/i386/go32.mh (NATDEPFILES): Likewise.
2296 * config/i386/linux.mh (NATDEPFILES): Likewise.
2297 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2298 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2299 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2300 * i386-nat.h (debug_hw_points): New declaration.
2301 * i386-nat.c (breakpoint.h): Remove include.
2302 (command.h): Likewise.
2303 (target.h): Likewise.
2304 (gdb_assert.h): Likewise.
2305 (debug_hw_points): Made nonstatic.
2306 (debug_printf): Now in i386-dregs.c.
2307 (TARGET_HAS_DR_LEN_8): Likewise.
2308 (DR_CONTROL_SHIFT): Likewise.
2309 (DR_CONTROL_SIZE): Likewise.
2310 (DR_RW_EXECUTE): Likewise.
2311 (DR_RW_WRITE): Likewise.
2312 (DR_RW_READ): Likewise.
2313 (DR_RW_IORW): Likewise.
2314 (DR_LEN_1): Likewise.
2315 (DR_LEN_2): Likewise.
2316 (DR_LEN_4): Likewise.
2317 (DR_LEN_8): Likewise.
2318 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2319 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2320 (DR_ENABLE_SIZE): Likewise.
2321 (DR_LOCAL_SLOWDOWN): Likewise.
2322 (DR_GLOBAL_SLOWDOWN): Likewise.
2323 (DR_CONTROL_RESERVED): Likewise.
2324 (I386_DR_CONTROL_MASK): Likewise.
2325 (I386_DR_VACANT): Likewise.
2326 (I386_DR_LOCAL_ENABLE): Likewise.
2327 (I386_DR_GLOBAL_ENABLE): Likewise.
2328 (I386_DR_DISABLE): Likewise.
2329 (I386_DR_SET_RW_LEN): Likewise.
2330 (I386_DR_GET_RW_LEN): Likewise.
2331 (I386_DR_WATCH_HIT): Likewise.
2332 (i386_wp_op_t): Likewise.
2333 (i386_show_dr): Likewise.
2334 (i386_length_and_rw_bits): Likewise.
2335 (i386_insert_aligned_watchpoint): Likewise.
2336 (i386_remove_aligned_watchpoint): Likewise.
2337 (i386_handle_nonaligned_watchpoint): Likewise.
2338 (i386_update_inferior_debug_regs): Likewise.
2339 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2340 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2341 (i386_region_ok_for_watchpoint):
2342 Use i386_dr_region_ok_for_watchpoint.
2343 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2344
322a8e06
GB
23452014-06-19 Gary Benson <gbenson@redhat.com>
2346
2347 * i386-nat.c (i386_insert_hw_breakpoint): Use
2348 i386_insert_watchpoint.
2349 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2350
8f26655c
GB
23512014-06-19 Gary Benson <gbenson@redhat.com>
2352
2353 * i386-nat.c (i386_dr_show): Renamed to
2354 i386_show_dr and made static. All uses updated.
2355 (i386_dr_length_and_rw_bits): Renamed to
2356 i386_length_and_rw_bits and made static.
2357 All uses updated.
2358 (i386_dr_insert_aligned_watchpoint): Renamed to
2359 i386_insert_aligned_watchpoint and made static.
2360 All uses updated.
2361 (i386_dr_remove_aligned_watchpoint): Renamed to
2362 i386_remove_aligned_watchpoint and made static.
2363 All uses updated.
2364 (i386_dr_update_inferior_debug_regs): Renamed to
2365 i386_update_inferior_debug_regs and made static.
2366 All uses updated.
2367 * nat/i386-dregs.h (i386_dr_show): Removed.
2368 (i386_dr_length_and_rw_bits): Likewise.
2369 (i386_dr_insert_aligned_watchpoint): Likewise.
2370 (i386_dr_remove_aligned_watchpoint): Likewise.
2371 (i386_dr_update_inferior_debug_regs): Likewise.
2372
992c7d70
GB
23732014-06-19 Gary Benson <gbenson@redhat.com>
2374
2375 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2376 * configure: Regenerate.
2377 * config.in: Likewise.
2378 * main.c (signal.h): New include.
2379 (setup_alternate_signal_stack): New function.
2380 (captured_main): Call the above.
2381 * cp-support.c (signal.h): New include.
2382 (catch_demangler_crashes): New flag.
2383 (SIGJMP_BUF): New define.
2384 (SIGSETJMP): Likewise.
2385 (SIGLONGJMP): Likewise.
2386 (gdb_demangle_jmp_buf): New static global.
2387 (gdb_demangle_attempt_core_dump): Likewise.
2388 (gdb_demangle_signal_handler): New function.
2389 (gdb_demangle): If catch_demangler_crashes is set, install the
2390 above signal handler before calling bfd_demangle, and restore
2391 the original signal handler afterwards. Display the offending
2392 symbol and call demangler_warning the first time a segmentation
2393 fault is caught.
2394 (_initialize_cp_support): New maint set/show command.
2395
eae7090b
GB
23962014-06-19 Gary Benson <gbenson@redhat.com>
2397
2398 * utils.h (resource_limit_kind): New enum.
2399 (can_dump_core): New declaration.
2400 (warn_cant_dump_core): Likewise.
2401 (dump_core): Likewise.
2402 * utils.c (dump_core): Made nonstatic. Added new
2403 parameter "limit_kind".
2404 (can_dump_core): Made nonstatic. Moved printing code to...
2405 (warn_cant_dump_core): New function.
2406 (can_dump_core_warn): Likewise.
2407 (internal_vproblem): Replace calls to can_dump_core with
2408 calls to can_dump_core_warn. Supply new argument to each.
2409
57fcfb1b
GB
24102014-06-19 Gary Benson <gbenson@redhat.com>
2411
2412 * utils.h (demangler_vwarning): New declaration.
2413 (demangler_warning): Likewise.
2414 * utils.c (struct internal_problem)
2415 <user_settable_should_quit>: New field.
2416 <user_settable_should_dump_core>: Likewise
2417 (internal_error_problem): Add values for above new fields.
2418 (internal_warning_problem): Likewise.
2419 (demangler_warning_problem): New static global.
2420 (demangler_vwarning): New function.
2421 (demangler_warning): Likewise.
2422 (add_internal_problem_command): Selectively add commands.
2423 (_initialize_utils): New internal problem command.
2424 * maint.c (maintenance_demangler_warning): New function.
2425 (_initialize_maint_cmds): New command.
2426
17a40b44
TT
24272014-06-18 Tom Tromey <tromey@redhat.com>
2428
2429 * f-valprint.c (info_common_command_for_block): Update.
2430 * symtab.h (struct general_symbol_info) <common_block>: Now
2431 const.
2432
346d1dfe
TT
24332014-06-18 Tom Tromey <tromey@redhat.com>
2434
2435 * symtab.h (struct symtab) <blockvector>: Now const.
2436 * ada-lang.c (ada_add_global_exceptions): Update.
2437 * buildsym.c (augment_type_symtab): Update.
2438 * dwarf2read.c (dw2_lookup_symbol): Update.
2439 * jit.c (finalize_symtab): Update.
2440 * jv-lang.c (add_class_symtab_symbol): Update.
2441 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2442 Update.
2443 * objfiles.c (objfile_relocate1): Update.
2444 * psymtab.c (lookup_symbol_aux_psymtabs)
2445 (maintenance_check_psymtabs): Update.
2446 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2447 Update.
2448 * spu-tdep.c (spu_catch_start): Update.
2449 * symmisc.c (dump_symtab_1): Update.
2450 * symtab.c (lookup_global_symbol_from_objfile)
2451 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2452 (basic_lookup_transparent_type_quick)
2453 (basic_lookup_transparent_type, find_pc_sect_symtab)
2454 (find_pc_sect_line, search_symbols): Update.
2455 * block.c (find_block_in_blockvector): Make "bl" const.
2456 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2457 const.
2458 (blockvector_contains_pc): Make "bv" const.
2459 (block_for_pc_sect): Update.
2460 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2461 (blockvector_contains_pc): Update.
2462 * breakpoint.c (resolve_sal_pc): Update.
2463 * inline-frame.c (block_starting_point_at): Update.
2464
1834676b
TT
24652014-06-18 Tom Tromey <tromey@redhat.com>
2466
2467 * completer.c (complete_line): Make "line_buffer" const.
2468 * completer.h (complete_line): Update.
2469
ac1a991b
TT
24702014-06-18 Tom Tromey <tromey@redhat.com>
2471
2472 * symtab.c (add_macro_name): Remove unneeded cast.
2473
5bc98e52
TT
24742014-06-18 Tom Tromey <tromey@redhat.com>
2475
2476 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2477 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2478
8236def8
TT
24792014-06-18 Tom Tromey <tromey@redhat.com>
2480
2481 * probe.c (info_probes_for_ops): Make "arg" const.
2482 * probe.h (info_probes_for_ops): Update.
2483
3977b71f
TT
24842014-06-18 Tom Tromey <tromey@redhat.com>
2485
2486 * varobj.c (varobj_create): Update.
2487 * valops.c (value_of_this): Update.
2488 * tracepoint.c (add_local_symbols, scope_info): Update.
2489 * symtab.h (struct general_symbol_info) <block>: Now const.
2490 * symtab.c (skip_prologue_sal)
2491 (default_make_symbol_completion_list_break_on)
2492 (skip_prologue_using_sal): Update.
2493 * stack.h (iterate_over_block_locals)
2494 (iterate_over_block_local_vars): Update.
2495 * stack.c (print_frame_args): Update.
2496 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2497 parameter const.
2498 (get_selected_block): Make return type const.
2499 * python/py-frame.c (frapy_block): Update.
2500 * python/py-block.c (gdbpy_block_for_pc): Update.
2501 * p-exp.y (%union) <bval>: Now const.
2502 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2503 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2504 * m2-exp.y (%union) <bval>: Now const.
2505 * linespec.c (get_current_search_block): Make return type const.
2506 (create_sals_line_offset, find_label_symbols): Update.
2507 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2508 Update.
2509 (block_starting_point_at): Make "block" const.
2510 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2511 (check_exception_resume): Update.
2512 * guile/scm-frame.c (gdbscm_frame_block): Update.
2513 * guile/scm-block.c (gdbscm_lookup_block): Update.
2514 * frame.h (get_frame_block): Update.
2515 (get_selected_block): Make return type const.
2516 * frame.c (frame_id_inner): Update.
2517 * f-valprint.c (info_common_command_for_block)
2518 (info_common_command): Update.
2519 * dwarf2loc.c (dwarf2_find_location_expression)
2520 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2521 (locexpr_describe_location_piece): Update.
2522 * c-exp.y (%union) <bval>: Now const.
2523 * breakpoint.c (resolve_sal_pc): Update.
2524 * blockframe.c (get_frame_block):Make return type const.
2525 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2526 (block_innermost_frame): Update.
2527 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2528 (block_for_pc, block_for_pc_sect): Update.
2529 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2530 'pblock' const.
2531 (block_for_pc_sect, block_for_pc): Make return type const.
2532 * ax-gdb.c (gen_expr): Update.
2533 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2534 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2535 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2536 (ada_read_var_value): Update.
2537 * ada-exp.y (struct name_info) <block>: Now const.
2538 (%union): Likewise.
2539 (block_lookup): Constify.
2540
b9228891
GB
25412014-06-18 Gary Benson <gbenson@redhat.com>
2542
2543 * nat/i386-dregs.h: New file.
2544 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2545 * i386-nat.h (i386-dregs.h): New include.
2546 (DR_FIRSTADDR): Now in i386-dregs.h.
2547 (DR_LASTADDR): Likewise.
2548 (DR_NADDR): Likewise.
2549 (DR_STATUS): Likewise.
2550 (DR_CONTROL): Likewise.
2551 (i386_debug_reg_state): Likewise.
2552 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2553
a1aa2221
LM
25542014-06-18 Don Breazeal <donb@codesourcery.com>
2555
2556 * breakpoint.c (set_longjmp_breakpoint): Call
2557 momentary_breakpoint_from_master with additional argument.
2558 (set_longjmp_breakpoint_for_call_dummy): Call
2559 momentary_breakpoint_from_master with additional argument.
2560 (set_std_terminate_breakpoint): Call
2561 momentary_breakpoint_from_master with additional argument.
2562 (momentary_breakpoint_from_master): Add argument to function
2563 definition and use it to initialize structure member flag.
74228e77 2564 (clone_momentary_breakpoint): Call
a1aa2221
LM
2565 momentary_breakpoint_from_master with additional argument.
2566 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2567 member flags set in momentary_breakpoint_from_master.
2568
4be83cc2
GB
25692014-06-18 Gary Benson <gbenson@redhat.com>
2570
2571 * i386-nat.c (i386_show_dr): Renamed to
2572 i386_dr_show and made nonstatic. All uses updated.
2573 (i386_length_and_rw_bits): Renamed to
2574 i386_dr_length_and_rw_bits and made nonstatic.
2575 All uses updated.
2576 (i386_insert_aligned_watchpoint): Renamed to
2577 i386_dr_insert_aligned_watchpoint and made nonstatic.
2578 All uses updated.
2579 (i386_remove_aligned_watchpoint): Renamed to
2580 i386_dr_remove_aligned_watchpoint and made nonstatic.
2581 All uses updated.
2582 (i386_update_inferior_debug_regs): Renamed to
2583 i386_dr_update_inferior_debug_regs and made nonstatic.
2584 All uses updated.
2585
131aa0d4
GB
25862014-06-18 Gary Benson <gbenson@redhat.com>
2587
2588 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2589 (i386_dr_low_can_set_control): Likewise.
2590 (i386_dr_low_set_addr): Likewise.
2591 (i386_dr_low_set_control): Likewise.
2592 (i386_dr_low_get_addr): Likewise.
2593 (i386_dr_low_get_status): Likewise.
2594 (i386_dr_low_get_control): Likewise.
2595 (i386_insert_aligned_watchpoint): Use new macros.
2596 (i386_update_inferior_debug_regs): Likewise.
2597 (i386_stopped_data_address): Likewise.
2598
d9305f7f
GB
25992014-06-18 Gary Benson <gbenson@redhat.com>
2600
2601 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2602 New parameter. All uses updated.
2603
ea008da4
GB
26042014-06-18 Gary Benson <gbenson@redhat.com>
2605
2606 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2607 All uses updated.
2608
1b6d4134
GB
26092014-06-18 Gary Benson <gbenson@redhat.com>
2610
2611 * i386-nat.c (debug_printf): New macro.
2612 (i386_get_debug_register_length): Likewise.
2613 (TARGET_HAS_DR_LEN_8): Use above macro.
2614 (i386_show_dr): Use debug_printf instead of puts_unfiltered
2615 and printf_unfiltered. Use phex to format values.
2616
9b4550ef
GB
26172014-06-18 Gary Benson <gbenson@redhat.com>
2618
2619 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2620 Make const.
2621
6e62758f
GB
26222014-06-18 Gary Benson <gbenson@redhat.com>
2623
2624 * i386-nat.c: Comment changes.
2625
51c79e94
GB
26262014-06-18 Gary Benson <gbenson@redhat.com>
2627
2628 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2629
3e11889a
GB
26302014-06-18 Gary Benson <gbenson@redhat.com>
2631
2632 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2633 (i386_insert_aligned_watchpoint): Likewise.
2634 (i386_remove_aligned_watchpoint): Likewise.
2635 (i386_handle_nonaligned_watchpoint): Likewise.
2636
fc6e2f03
GB
26372014-06-18 Gary Benson <gbenson@redhat.com>
2638
2639 * i386-nat.c: Whitespace changes.
2640
2afe7d50
SB
26412014-06-17 Samuel Bronson <naesten@gmail.com>
2642
2643 * MAINTAINERS: Update Roland McGrath's email address.
2644 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 2645 Red Hat a while ago, and giving me a current address.
2afe7d50 2646
3bca49ee
TT
26472014-06-17 Tom Tromey <tromey@redhat.com>
2648
2649 * utils.h (savestring): Remove declaration.
2650
6e366df1
TT
26512014-06-17 Tom Tromey <tromey@redhat.com>
2652
2653 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2654
6be47f0c
KS
26552014-06-16 Keith Seitz <keiths@redhat.com>
2656
2657 PR mi/15863
2658 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2659 to update the varobj if inferior_ptid is null_ptid.
2660
7bc112c1
TT
26612014-06-16 Tom Tromey <tromey@redhat.com>
2662
2663 * target.h (struct target_ops) <to_info_proc>: Make parameter
2664 const.
2665 (target_info_proc): Update.
2666 * target.c (target_info_proc): Make "args" const.
2667 * procfs.c (procfs_info_proc): Update.
2668 * linux-tdep.c (linux_info_proc): Update.
2669 (linux_core_info_proc_mappings): Make "args" const.
2670 (linux_core_info_proc): Update.
2671 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2672 * gdbarch.c: Rebuild.
2673 * gdbarch.h: Rebuild.
2674 * corelow.c (core_info_proc): Update.
2675
fee354ee
TT
26762014-06-16 Tom Tromey <tromey@redhat.com>
2677
2678 * target.h (struct target_ops) <to_disconnect>: Make parameter
2679 const.
2680 (target_disconnect): Update.
2681 * target.c (target_disconnect): Make "args" const.
2682 * target-delegates.c: Rebuild.
2683 * remote.c (remote_disconnect): Update.
2684 * record.h (record_disconnect): Update.
2685 * record.c (record_disconnect): Update.
2686 * inf-child.c (inf_child_disconnect): Update.
2687
a30bf1f1
TT
26882014-06-16 Tom Tromey <tromey@redhat.com>
2689
2690 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2691 * target.c (debug_to_rcmd, default_rcmd): Update.
2692 * target-delegates.c: Rebuild.
2693 * remote.c (remote_rcmd): Update.
2694 * monitor.c (monitor_rcmd): Update.
2695
d03de421
PA
26962014-06-16 Pedro Alves <palves@redhat.com>
2697
2698 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2699 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2700 have OBJF_SHARED set.
2701 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2702 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
2703 instead of OBJF_USERLOADED.
2704 * objfiles.h (OBJF_SHARED): Update comment.
2705 (userloaded_objfile_contains_address_p): Rename to ...
2706 (shared_objfile_contains_address_p): ... this, and update
2707 comments.
2708 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2709 new objfile.
2710 (remove_symbol_file_command): Skip objfiles that don't have
2711 OBJF_SHARED set.
2712
99f4262f
TT
27132014-06-16 Tom Tromey <tromey@redhat.com>
2714
2715 * minsyms.h (prim_record_minimal_symbol)
2716 (prim_record_minimal_symbol_and_info): Update comments.
2717
97d66cc6
EZ
27182014-06-14 Eli Zaretskii <eliz@gnu.org>
2719
2720 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2721 or --without-guile, according to how GDB was built.
2722
635c7e8a
TT
27232014-06-13 Tom Tromey <tromey@redhat.com>
2724
2725 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2726 to help_list.
2727 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2728 to help_list.
2729 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2730 help_list.
2731 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2732 help_list.Pass all_commands, not -1, to help_list.
2733 * cli/cli-dump.c (dump_command, append_command)
2734 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2735 (binary_dump_command, binary_append_command): Pass all_commands,
2736 not -1, to help_list.
2737 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2738 -1, to help_list.
2739 * valprint.c (set_print, set_print_raw): Pass all_commands, not
2740 -1, to help_list.
2741 * typeprint.c (set_print_type): Pass all_commands, not -1, to
2742 help_list.
2743 * top.c (set_history): Pass all_commands, not -1, to help_list.
2744 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2745 all_commands, not -1, to help_list.
2746 * symfile.c (overlay_command): Pass all_commands, not -1, to
2747 help_list.
2748 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2749 help_list.
2750 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2751 help_list.
2752 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2753 -1, to help_list.
2754 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2755 not -1, to help_list.
2756 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2757 not -1, to help_list.
2758 * maint.c (maintenance_command, maintenance_info_command)
2759 (maintenance_print_command, maintenance_set_cmd): Pass
2760 all_commands, not -1, to help_list.
2761 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2762 help_list.
2763 * language.c (set_check): Pass all_commands, not -1, to help_list.
2764 * infcmd.c (unset_command): Pass all_commands, not -1, to
2765 help_list.
2766 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2767 help_list.
2768 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2769 help_list.
2770 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2771 help_list.
2772 * breakpoint.c (save_command): Pass all_commands, not -1, to
2773 help_list.
2774 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2775 all_commands, not -1, to help_list.
2776
b94ade42
PL
27772014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2778
2779 * regcache.c (struct register_to_invalidate): New structure.
2780 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2781 functions.
2782 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2783
31f628ae
YQ
27842014-06-12 Yao Qi <yao@codesourcery.com>
2785
2786 * varobj.c (varobj_get_num_children): Call
2787 varobj_is_dynamic_p.
2788 (varobj_list_children): Likewise.
2789 (varobj_update): Likewise. Update comments.
2790
cde5ef40
YQ
27912014-06-12 Yao Qi <yao@codesourcery.com>
2792
2793 * varobj.c (varobj_pretty_printed_p): Rename to ...
2794 (varobj_is_dynamic_p): ... this. New function.
2795 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2796 (varobj_is_dynamic_p): Declare.
2797 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2798 (mi_print_value_p, varobj_update_one): Likewise.
2799
576ea091
YQ
28002014-06-12 Pedro Alves <pedro@codesourcery.com>
2801 Yao Qi <yao@codesourcery.com>
2802
2803 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2804 (varobj_get_iterator): Wrap up code for pretty-printer by
2805 "#if HAVE_PYTHON" and "#endif".
2806 (update_dynamic_varobj_children): Likewise.
2807
827f100c
YQ
28082014-06-12 Pedro Alves <pedro@codesourcery.com>
2809 Yao Qi <yao@codesourcery.com>
2810
2811 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2812 gdb_python_initialized is false. Move some code from varobj.c.
2813 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2814 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2815 (struct varobj_item): Moved to varobj-iter.h".
2816 (varobj_clear_saved_item): New function.
2817 (update_dynamic_varobj_children): Move python-related code to
2818 py-varobj.c.
2819 (free_variable): Call varobj_clear_saved_item and
2820 varobj_iter_delete.
2821
e5250216
YQ
28222014-06-12 Pedro Alves <pedro@codesourcery.com>
2823 Yao Qi <yao@codesourcery.com>
2824
2825 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2826 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2827 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2828 (py-varobj.o): New rule.
2829 * python/py-varobj.c: New file.
2830 * python/python-internal.h (py_varobj_get_iterator): Declare.
2831 * varobj-iter.h: New file.
2832 * varobj.c: Include "varobj-iter.h"
2833 (struct varobj) <child_iter>: Change its type from "PyObject *"
2834 to "struct varobj_iter *".
2835 <saved_item>: Likewise.
2836 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2837 [HAVE_PYTHON] (varobj_get_iterator): New function.
2838 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2839 python-specific code to python/py-varobj.c.
2840 (install_visualizer): Call varobj_iter_delete instead of
2841 Py_XDECREF.
2842 * varobj.h (varobj_ensure_python_env): Declare.
2843
5a2e0d6e
YQ
28442014-06-12 Yao Qi <yao@codesourcery.com>
2845
2846 * varobj.c (struct varobj_item): New structure.
2847 (create_child_with_value): Update declaration.
2848 (varobj_add_child): Replace arguments 'name' and 'value' with
2849 'item'. All callers updated.
2850 (install_dynamic_child): Likewise.
2851 (update_dynamic_varobj_children): Likewise.
2852 (varobj_add_child): Likewise.
2853 (create_child_with_value): Likewise.
2854
919b9a93
JB
28552014-06-11 Joel Brobecker <brobecker@adacore.com>
2856
2857 * NEWS: Create a new section for the next release branch.
2858 Rename the section of the current branch, now that it has
2859 been cut.
2860
71a55bdf
JB
28612014-06-11 Joel Brobecker <brobecker@adacore.com>
2862
2863 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2864 * version.in: Bump version to 7.8.50.DATE-cvs.
2865
364fe1f7
PA
28662014-06-11 Pedro Alves <palves@redhat.com>
2867
2868 PR remote/17028
2869 * ser-mingw.c (net_windows_socket_check_pending): New function.
2870 (net_windows_select_thread): Ignore spurious wakeups. Use
2871 net_windows_socket_check_pending.
2872 (net_windows_wait_handle): Check for pending events with
2873 ioctlsocket, through net_windows_socket_check_pending, instead of
2874 checking the socket's event.
2875
5a6c7709
SC
28762014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2877
2878 * python/python-internal.h (gdb_PyObject_GetAttrString)
2879 (gdb_PyObject_HasAttrString): New inline function definitions.
2880 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2881 char * of the second argument to PyObject_GetAttrString.
74228e77 2882
0e58ee40
JB
28832014-06-10 Joel Brobecker <brobecker@adacore.com>
2884
2885 * serial.c (serial_write): Fix index of character to be printed
2886 in call to serial_logchar when serial debug traces are enabled.
2887
d190df30
JB
28882014-06-10 Joel Brobecker <brobecker@adacore.com>
2889
2890 * gdbtypes (resolve_dynamic_range): Add function description.
2891
b4b01d36
PA
28922014-06-09 Pedro Alves <palves@redhat.com>
2893
2894 * linux-nat.c (linux_child_follow_fork): Initialize status with
2895 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2896 inner block. Only pass the signal to PTRACE_DETACH if in pass
2897 state.
2898
3657956b
GB
28992014-06-09 Gary Benson <gbenson@redhat.com>
2900
2901 * common/signals.c (gdb_signal_from_host): Reorder to separate
2902 the always-available ANSI-standard signals from the signals that
2903 require checking.
2904 (do_gdb_signal_to_host): Likewise.
2905 * proc-events.c (signal_table): Likewise.
2906
c077881a
HZ
29072014-06-08 Hui Zhu <hui@codesourcery.com>
2908
2909 * common/linux-ptrace.c (linux_disable_event_reporting): New
2910 function.
2911 * common/linux-ptrace.h (linux_disable_event_reporting): New
2912 declaration.
2913 * linux-nat.c (linux_child_follow_fork): Do a single step before
2914 detach.
2915
4186eb54
KS
29162014-06-07 Keith Seitz <keiths@redhat.com>
2917
2918 Revert:
2919 PR c++/16253
2920 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2921 from symbol_matches_domain in symtab.c. All local callers
2922 of symbol_matches_domain updated.
2923 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2924 search STRUCT_DOMAIN.
2925 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2926 independently. standard_lookup will do that automatically.
2927 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2928 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2929 (cp_lookup_symbol_in_namespace): Likewise.
2930 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2931 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2932 may return a STRUCT_DOMAIN match.
2933 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2934 * cp-support.c: Include language.h.
2935 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2936 VAR_DOMAIN.
2937 * psymtab.c (match_partial_symbol): Compare the requested
2938 domain with the symbol's domain directly.
2939 (lookup_partial_symbol): Likewise.
2940 * symtab.c (lookup_symbol_in_language): Explain when/why
2941 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2942 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2943 appropriate languages.
2944 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2945 and moved to ada-lang.c
2946 (lookup_block_symbol): Explain that this function only returns
2947 symbol matching the requested DOMAIN.
2948 Compare the requested domain with the symbol's domain directly.
2949 (iterate_over_symbols): Compare the requested domain with the
2950 symbol's domain directly.
2951 * symtab.h (symbol_matches_domain): Remove.
2952
25326a28 29532014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2954
2955 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2956 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2957 (gdbscm_guile_version_is_at_least): Declare.
2958 (gdbscm_scm_string_to_int): Declare.
2959 * guile/guile.c (gdbscm_guile_major_version): New global.
2960 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2961 (guile_datadir): New static global.
2962 (gdbscm_guile_data_directory): New function.
2963 (initialize_scheme_side): Update.
2964 (misc_guile_functions): Add guile-data-directory.
2965 (initialize_gdb_module): Fetch guile version number.
2966 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2967 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2968 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2969 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2970 comments.
2971 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2972 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2973 * guile/scm-value.c (gdbscm_value_to_string): Only call
2974 scm_port_conversion_strategy if Guile version >= 2.0.6.
2975
0a770bb2 29762014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2977
2978 * main.c (print_gdb_help): Add -q and --silent.
2979
73ba372c
GB
29802014-06-06 Gary Benson <gbenson@redhat.com>
2981
2982 * common/signals.c: Remove preprocessor conditionals for
2983 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2984 SIGSEGV and SIGTERM.
2985 * proc-events.c: Likewise.
2986
c33b2f12
MM
29872014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2988
2989 * symfile.c (symfile_free_objfile): Remove restriction to
2990 OBJF_USERLOADED.
2991 * symfile-mem.c (symbol_file_add_from_memory): Call
2992 add_target_sections_of_objfile.
2993
fb934770
LC
29942014-06-05 Ludovic Courtès <ludo@gnu.org>
2995
2996 * guile/scm-value.c (gdbscm_history_append_x): Use
2997 'vlscm_get_value_smob_arg_unsafe' instead of
2998 'vlscm_scm_to_value'.
2999
6ef284bd
SM
30002014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3001
3002 PR mi/15806
3003 * utils.c (printchar): Don't escape at all if quoter is NUL.
3004 Update function documentation to clarify effect of parameter
3005 QUOTER.
3006 * remote.c (escape_buffer): Pass '\\' as the quoter to
3007 fputstrn_unfiltered.
3008 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3009 generate the output.
3010 (mi_solib_unloaded): Same.
3011
270c9937
JB
30122014-06-05 Joel Brobecker <brobecker@adacore.com>
3013
3014 * development.sh: Delete.
3015 * Makefile.in (config.status): Adjust dependency on development.sh.
3016 * configure.ac: Adjust development.sh source call.
3017 * configure: Regenerate.
3018
16f691fb
DE
30192014-06-04 Doug Evans <xdje42@gmail.com>
3020
3021 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3022 is_scheme_bkpt, spec.
3023 (bpscm_make_breakpoint_smob): Initialize new members.
3024 (gdbscm_create_breakpoint_x): Split into two ...
3025 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3026 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3027 (scheme_function breakpoint_functions): Update.
3028 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3029 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3030 register-breakpoint!.
3031
ef7cab6b
JB
30322014-06-04 Joel Brobecker <brobecker@adacorer.com>
3033
3034 PR server/17023
3035 * mem-break.c (z_type_supported): Return zero if
3036 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3037
012370f6
TT
30382014-06-04 Tom Tromey <tromey@redhat.com>
3039
3040 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3041 value_from_contents_and_address_unresolved.
3042 (ada_template_to_fixed_record_type_1): Likewise.
3043 (ada_which_variant_applies): Likewise.
3044 * value.h (value_from_contents_and_address_unresolved): Declare.
3045 * value.c (value_from_contents_and_address_unresolved): New
3046 function.
3047 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3048 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3049 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3050
92e2a17f
TT
30512014-06-04 Tom Tromey <tromey@redhat.com>
3052
3053 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3054
c0939df1
TT
30552014-06-04 Tom Tromey <tromey@redhat.com>
3056
3057 * procfs.c (procfs_attach): Make "args" const.
3058 * windows-nat.c (windows_attach): Make "args" const.
3059 * nto-procfs.c (procfs_attach): Make "args" const.
3060 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3061 * go32-nat.c (go32_attach): Make "args" const.
3062 * gnu-nat.c (gnu_attach): Make "args" const.
3063 * darwin-nat.c (darwin_attach): Make "args" const.
3064 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3065 * linux-nat.c (linux_nat_attach): Make "args" const.
3066 * remote.c (extended_remote_attach_1, extended_remote_attach):
3067 Make "args" const.
3068 * target.h (struct target_ops) <to_attach>: Make "args" const.
3069 (find_default_attach): Likewise.
3070 * utils.c (parse_pid_to_attach): Make "args" const.
3071 * utils.h (parse_pid_to_attach): Update.
3072
8eaff7cd
TT
30732014-06-04 Tom Tromey <tromey@redhat.com>
3074
3075 * target-delegates.c: Rebuild.
3076 * target.c (default_thread_address_space): New function.
3077 (target_thread_address_space): Simplify.
3078 * target.h (struct target_ops) <to_thread_address_space>: Add
3079 TARGET_DEFAULT_FUNC.
3080
1913f160
DE
30812014-06-04 Doug Evans <xdje42@gmail.com>
3082
3083 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3084
70ad5bff
MM
30852014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3086
3087 * record-btrace.c: Include event-loop.h and inf-loop.h.
3088 (record_btrace_resume_exec_dir)
3089 (record_btrace_async_inferior_event_handler)
3090 (record_btrace_handle_async_inferior_event): New.
3091 (record_btrace_open): Create async event handler.
3092 (record_btrace_close): Delete async event handler.
3093 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3094 Mark async event handler.
3095 (record_btrace_execution_direction): New.
3096 (init_record_btrace_ops): Initialize to_execution_direction.
3097
b6210538
DE
30982014-06-03 Doug Evans <xdje42@gmail.com>
3099
3100 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3101 (gdbscm_make_parameter): Ditto.
3102
a5b1fd27
DE
31032014-06-03 Doug Evans <dje@google.com>
3104
3105 * exec.c (exec_close_1): Call clear_section_table instead of
3106 resize_section_table.
3107 (clear_section_table): New function.
3108 (resize_section_table): Make static. Rename arg num_added to
3109 adjustment.
3110 * exec.h (clear_section_table): Declare.
3111 (resize_section_table): Delete.
3112 * progspace.c (release_program_space): Call clear_section_table
3113 instead of resize_section_table.
3114
0c6e92a5
SC
31152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3116
3117 * NEWS (Python Scripting): Add entry about the new xmethods
3118 feature.
3119
883964a7
SC
31202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3121
3122 * python/py-xmethods.c: New file.
3123 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3124 (objfpy_dealloc): XDECREF on the new xmethods field.
3125 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3126 field.
3127 (objfpy_get_xmethods): New function.
3128 (objfile_getset): New entry 'xmethods'.
3129 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3130 (pspy_dealloc): XDECREF on the new xmethods field.
3131 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3132 field.
3133 (pspy_get_xmethods): New function.
3134 (pspace_getset): New entry 'xmethods'.
3135 * python/python-internal.h: Add declarations for new functions.
3136 * python/python.c (_initialize_python): Invoke
3137 gdbpy_initialize_xmethods.
3138 * python/lib/gdb/__init__.py (xmethods): New
3139 attribute.
3140 * python/lib/gdb/xmethod.py: New file.
3141 * python/lib/gdb/command/xmethods.py: New file.
3142
58992dc5
SC
31432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3144
3145 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3146 best match method returned by find_overload_match is an xmethod.
3147 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3148 the best matching operator returned by find_overload_match is an
3149 xmethod.
3150 * valops.c: #include "extension.h".
3151 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3152 Return void. The list of matching source methods is returned in
3153 "fn_list" and a vector of matching debug method workers is
3154 returned in "xm_worker_vec". Update all callers.
3155 (value_find_oload_method_list): Likewise.
3156 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3157 non-NULL, then the index of the best matching method in this
3158 vector is returned. Update all callers.
3159 (find_overload_match): Include xmethods while performing overload
3160 resolution.
3161
e81e7f5e
SC
31622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3163
3164 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3165 * extension-priv.h (struct extension_language_ops): Add the
3166 xmethod interface.
3167 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3168 get_matching_xmethod_workers, get_xmethod_argtypes,
3169 invoke_xmethod, free_xmethod_worker,
3170 free_xmethod_worker_vec): New functions.
3171 * extension.h: #include "common/vec.h".
3172 New function declarations.
3173 (struct xmethod_worker): New struct.
3174 (VEC (xmethod_worker_ptr)): New vector type.
3175 (xmethod_worker_ptr): New typedef.
3176 (xmethod_worker_vec): Likewise.
3177 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3178 builtin_type.
3179 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3180 (struct builtin_type): New field "xmethod".
3181 * valarith.c (value_ptradd): Assert that the value argument is not
3182 lval_xcallable.
3183 * valops.c (value_must_coerce_to_target): Return 0 for
3184 lval_xcallable values.
3185 * value.c (struct value): New field XM_WORKER in the field
3186 LOCATION.
3187 (value_address, value_raw_address): Return 0 for lval_xcallable
3188 values.
3189 (set_value_address): Assert that the value is not an
3190 lval_xcallable.
3191 (value_free): Free the associated xmethod worker when freeing
3192 lval_xcallable values.
3193 (set_value_component_location): Assert that the WHOLE value is not
3194 lval_xcallable.
3195 (value_of_xmethod, call_xmethod): New functions.
3196 * value.h: Declare "struct xmethod_worker".
3197 Declare new functions value_of_xmethod, call_xmethod.
3198
ef370185
JB
31992014-06-03 Joel Brobecker <brobecker@adacore.com>
3200 Pedro Alves <palves@redhat.com>
3201
3202 PR breakpoints/17000
3203 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3204 New function, extracted from software_breakpoint_inserted_here_p.
3205 (software_breakpoint_inserted_here_p): Replace factored out code
3206 by call to find_non_raw_software_breakpoint_inserted_here.
3207 (bp_target_info_copy_insertion_state): New function.
3208 (bkpt_insert_location): Handle the case of a single-step
3209 breakpoint already inserted at the same address.
3210 (bkpt_remove_location): Handle the case of a single-step
3211 breakpoint still inserted at the same address.
3212 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3213 breakpoint already inserted at the same address.
3214 (deprecated_remove_raw_breakpoint): Handle the case of a
3215 non-raw breakpoint still inserted at the same address.
3216 (find_single_step_breakpoint): New function, extracted from
3217 single_step_breakpoint_inserted_here_p.
3218 (find_single_step_breakpoint): New function,
3219 factored out from single_step_breakpoint_inserted_here_p.
3220 (single_step_breakpoint_inserted_here_p): Reimplement.
3221
1e2ccb61
BM
32222014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3223
3224 Pushed by Joel Brobecker <brobecker@adacore.com>
3225 * source.c (show_substitute_path_command): Fix display of matching
3226 substitution rules.
3227
d3448d85
GB
32282014-06-03 Gary Benson <gbenson@redhat.com>
3229
3230 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3231
06eb1586
DE
32322014-06-02 Doug Evans <xdje42@gmail.com>
3233
3234 Add parameter support for Guile.
3235 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3236 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3237 (scm-param.o): New rule.
3238 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3239 (gdbscm_misc_error): Declare.
3240 (gdbscm_canonicalize_command_name): Declare.
3241 (gdbscm_scm_to_host_string): Declare.
3242 (gdbscm_scm_from_host_string): Declare.
3243 (gdbscm_initialize_parameters): Declare.
3244 * guile/guile.c (initialize_gdb_module): Call
3245 gdbscm_initialize_parameters.
3246 * guile/lib/gdb.scm: Export parameter symbols.
3247 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3248 cmdscm_canonicalize_name and made public. All callers updated.
3249 * guile/scm-exception.c (gdbscm_misc_error): New function.
3250 * guile/scm-param.c: New file.
3251 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3252 (gdbscm_scm_to_host_string): New function.
3253 (gdbscm_scm_from_host_string): New function.
3254 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3255
e698b8c4
DE
32562014-06-02 Doug Evans <xdje42@gmail.com>
3257
3258 Add command support for Guile.
3259 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3260 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3261 (scm-cmd.o): New rule.
3262 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3263 (gdbscm_user_error_p): Declare.
3264 (gdbscm_parse_command_name): Declare.
3265 (gdbscm_valid_command_class_p): Declare.
3266 (gdbscm_initialize_commands): Declare.
3267 * guile/guile.c (initialize_gdb_module): Call
3268 gdbscm_initialize_commands.
3269 * guile/lib/gdb.scm: Export command symbols.
3270 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3271 (throw-user-error): New function.
3272 * guile/scm-cmd.c: New file.
3273 * guile/scm-exception.c (user_error_symbol): New static global.
3274 (gdbscm_user_error_p): New function.
3275 (gdbscm_initialize_exceptions): Set user_error_symbol.
3276 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3277
fb1f94b0
PM
32782014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3279
3280 * top.c (command_loop): Handle comments here...
3281 (command_line_input): ... not here.
3282
ded03782
DE
32832014-06-02 Doug Evans <xdje42@gmail.com>
3284
3285 Add progspace support for Guile.
3286 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3287 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3288 (scm-progspace.o): New rule.
3289 * guile/guile-internal.h (pspace_smob): New typedef.
3290 (psscm_pspace_smob_pretty_printers): Declare.
3291 (psscm_pspace_smob_from_pspace): Declare.
3292 (psscm_scm_from_pspace): Declare.
3293 * guile/guile.c (initialize_gdb_module): Call
3294 gdbscm_initialize_pspaces.
3295 * guile/lib/gdb.scm: Export progspace symbols.
3296 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3297 support.
3298 (append-pretty-printer!): Ditto.
3299 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3300 Implement.
3301 * guile/scm-progspace.c: New file.
3302
397998fc
AM
33032014-06-03 Alan Modra <amodra@gmail.com>
3304
3305 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3306 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3307
6aa5f3a6
DE
33082014-06-02 Doug Evans <dje@google.com>
3309
3310 Add support for skeletonless type units.
3311 * dwarf2read.c (struct dwarf2_per_objfile): New member
3312 n_allocated_type_units.
3313 (struct dwarf2_per_objfile) <tu_stats>: New member
3314 nr_all_type_units_reallocs.
3315 (create_signatured_type_table_from_index): Initialize
3316 n_allocated_type_units
3317 (create_all_type_units): Ditto.
3318 (add_type_unit): Move up in file. New arg slot.
3319 All callers updated. Increase space for all_type_units more
3320 efficiently.
3321 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3322 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3323 (lookup_dwp_signatured_type): Ditto.
3324 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3325 All callers updated.
3326 (build_type_psymtabs_1): Leave type_unit_groups as
3327 NULL if no TUs present.
3328 (print_tu_stats): New function.
3329 (process_skeletonless_type_unit): New function.
3330 (process_dwo_file_for_skeletonless_type_units): New
3331 function.
3332 (process_skeletonless_type_units): New function.
3333 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3334 Call print tu_stats if debugging enabled.
3335
41fac0cf
PA
33362014-06-02 Pedro Alves <palves@redhat.com>
3337
3338 * breakpoint.c (build_target_command_list): Don't build a command
3339 list if we have any duplicate location that isn't a dprintf.
3340
cd1608cc
PA
33412014-06-02 Pedro Alves <palves@redhat.com>
3342
3343 * breakpoint.c (dprintf_breakpoint_hit): New function.
3344 (initialize_breakpoint_ops): Install it as dprintf's
3345 breakpoint_hit method.
3346
486ef3b9
JB
33472014-06-02 Joel Brobecker <brobecker@adacore.com>
3348
3349 * source.c (substitute_path_rule_matches): Simplify using
3350 filename_ncmp instead of FILENAME_CMP.
3351
230cd560
JB
33522014-06-02 Joel Brobecker <brobecker@adacore.com>
3353
3354 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3355
16954d5d
LC
33562014-06-01 Ludovic Courtès <ludo@gnu.org>
3357
3358 * configure.ac: When Guile is available, check for the
3359 availability of 'scm_new_smob'.
3360 * configure, config.h.in: Regenerate.
3361 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3362 function.
3363
53e8a631
AB
33642014-05-30 Andrew Burgess <aburgess@broadcom.com>
3365
3366 * frame.c (struct frame_info): Add stop_string field.
3367 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3368 (get_prev_frame_always): Old content moved into
3369 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3370 TRY_CATCH, handle MEMORY_ERROR exceptions.
3371 (frame_stop_reason_string): New function definition.
3372 * frame.h (unwind_stop_reason_to_string): Extend comment to
3373 mention frame_stop_reason_string.
3374 (frame_stop_reason_string): New function declaration.
3375 * stack.c (frame_info): Switch to frame_stop_reason_string.
3376 (backtrace_command_1): Switch to frame_stop_reason_string.
3377 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3378 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3379 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3380
70e38b8e
AB
33812014-05-30 Andrew Burgess <aburgess@broadcom.com>
3382
3383 * frame.c (frame_stop_reason_string): Rename to ...
3384 (unwind_stop_reason_to_string): this.
3385 * frame.h (frame_stop_reason_string): Rename to ...
3386 (unwind_stop_reason_to_string): this.
3387 * stack.c (frame_info): Update call to frame_stop_reason_string.
3388 (backtrace_command_1): Likewise.
3389 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3390 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3391
938f0e2f
AB
33922014-05-30 Andrew Burgess <aburgess@broadcom.com>
3393
3394 * frame.c (remove_prev_frame): New function.
3395 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3396 remove_prev_frame.
3397
a09dd441
PA
33982014-05-29 Pedro Alves <palves@redhat.com>
3399
3400 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3401 and make it const. When a single-step decays to a continue,
3402 clear 'step', not 'hw_step'. Pass whether the caller wanted
3403 to step to user_visible_resume_ptid, not what we ask the
3404 target to do.
3405
bdc36728
PA
34062014-05-29 Pedro Alves <palves@redhat.com>
3407
3408 * infrun.c (process_event_stop_test, handle_step_into_function)
3409 (handle_step_into_function_backward): Adjust.
3410 Don't set the even thread's stop_step and call stop_waiting before
3411 calling end_stepping_range. Instead do that ...
3412 (end_stepping_range): ... here. Take an ecs pointer parameter.
3413
22bcd14b
PA
34142014-05-29 Pedro Alves <palves@redhat.com>
3415
3416 * infrun.c (stop_stepping): Rename to ...
3417 (stop_waiting): ... this.
3418 (proceed): Update comment.
3419 (process_event_stop_test, handle_inferior_event)
3420 (handle_signal_stop, handle_step_into_function)
3421 (handle_step_into_function_backward): Update.
3422
4ae57c05
PA
34232014-05-29 Pedro Alves <palves@redhat.com>
3424
3425 * infcall.c (run_inferior_call): Don't check whether the current
3426 thread is running after the proceed call.
3427
329ea579
PA
34282014-05-29 Pedro Alves <palves@redhat.com>
3429 Tom Tromey <tromey@redhat.com>
3430
3431 * NEWS: Mention "maint set target-async", "set mi-async", and that
3432 background execution commands are now always available.
3433 * target.h (target_async_permitted): Update comment.
3434 * target.c (target_async_permitted, target_async_permitted_1):
3435 Default to 1.
3436 (set_target_async_command): Rename to ...
3437 (maint_set_target_async_command): ... this.
3438 (show_target_async_command): Rename to ...
3439 (maint_show_target_async_command): ... this.
3440 (_initialize_target): Adjust.
3441 * infcmd.c (prepare_execution_command): Make extern.
3442 * inferior.h (prepare_execution_command): Declare.
3443 * infrun.c (set_observer_mode): Leave target async alone.
3444 * mi/mi-interp.c (mi_interpreter_init): Install
3445 mi_on_sync_execution_done as sync_execution_done observer.
3446 (mi_on_sync_execution_done): New function.
3447 (mi_execute_command_input_handler): Don't print the prompt if we
3448 just started a synchronous command with an async target.
3449 (mi_on_resume): Check sync_execution before printing prompt.
3450 * mi/mi-main.h (mi_async_p): Declare.
3451 * mi/mi-main.c: Include gdbcmd.h.
3452 (mi_async_p): New function.
3453 (mi_async, mi_async_1): New globals.
3454 (set_mi_async_command, show_mi_async_command, mi_async): New
3455 functions.
3456 (exec_continue): Call prepare_execution_command.
3457 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3458 (mi_execute_async_cli_command): Use mi_async_p.
3459 (_initialize_mi_main): Install "set mi-async". Make
3460 "target-async" a deprecated alias.
3461
92bcb5f9
PA
34622014-05-29 Pedro Alves <palves@redhat.com>
3463
3464 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3465 (_initialize_cli_interp): Adjust.
3466 * event-loop.c: Include "observer.h".
3467 (start_event_loop): Notify 'command_error' observers instead of
3468 calling display_gdb_prompt. Remove FIXME comment.
3469 * event-top.c (display_gdb_prompt): Remove call into the
3470 interpreters.
3471 * inf-loop.c: Include "observer.h".
3472 (inferior_event_handler): Notify 'command_error' observers instead
3473 of calling display_gdb_prompt.
3474 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3475 observers instead of calling display_gdb_prompt.
3476 * interps.c (interp_set): Don't call display_gdb_prompt.
3477 (current_interp_display_prompt_p): Delete.
3478 * interps.h (interp_prompt_p): Delete declaration.
3479 (interp_prompt_p_ftype): Delete.
3480 (struct interp_procs) <prompt_proc_p>: Delete field.
3481 (current_interp_display_prompt_p): Delete declaration.
3482 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3483 (_initialize_mi_interp): Adjust.
3484 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3485 'command_error' observers.
3486 (tui_on_sync_execution_done, tui_on_command_error): New
3487 functions.
3488 (tui_display_prompt_p): Delete.
3489 (_initialize_tui_interp): Adjust.
3490
fd664c91
PA
34912014-05-29 Pedro Alves <palves@redhat.com>
3492
3493 PR gdb/13860
3494 * cli/cli-interp.c: Include infrun.h and observer.h.
3495 (cli_uiout, cli_interp): New globals.
3496 (cli_on_signal_received, cli_on_end_stepping_range)
3497 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3498 functions.
3499 (cli_interpreter_init): Install them as 'end_stepping_range',
3500 'signal_received' 'signal_exited', 'exited' and 'no_history'
3501 observers.
3502 (_initialize_cli_interp): Remove cli_interp local.
3503 * infrun.c (handle_inferior_event): Call the several stop reason
3504 observers instead of printing the stop reason directly.
3505 (end_stepping_range): New function.
3506 (print_end_stepping_range_reason, print_signal_exited_reason)
3507 (print_exited_reason, print_signal_received_reason)
3508 (print_no_history_reason): Make static, and add an uiout
3509 parameter. Print to that instead of to CURRENT_UIOUT.
3510 * infrun.h (print_end_stepping_range_reason)
3511 (print_signal_exited_reason, print_exited_reason)
3512 (print_signal_received_reason print_no_history_reason): New
3513 declarations.
3514 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3515 'mi_uiout'.
3516 <cli_uiout>: New field.
3517 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3518 uiout for CLI output. Install 'signal_received',
3519 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3520 observers.
3521 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3522 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3523 (mi_on_no_history): New functions.
3524 (ui_out_free_cleanup): Delete function.
3525 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3526 instead use the one already stored in the MI interpreter data.
3527 (mi_ui_out): Adjust.
3528 * tui/tui-interp.c: Include infrun.h and observer.h.
3529 (tui_interp): New global.
3530 (tui_on_signal_received, tui_on_end_stepping_range)
3531 (tui_on_signal_exited, tui_on_exited)
3532 (tui_on_no_history): New functions.
3533 (tui_init): Install them as 'end_stepping_range',
3534 'signal_received' 'signal_exited', 'exited' and 'no_history'
3535 observers.
3536 (_initialize_tui_interp): Delete tui_interp local.
3537
8817a6f2
PA
35382014-05-29 Pedro Alves <palves@redhat.com>
3539
3540 PR gdb/15713
3541 * linux-nat.c (linux_nat_resume_callback): Rename the second
3542 parameter to 'except'. Skip LP if it points to EXCEPT.
3543 (linux_nat_resume): Don't mark the event lwp as not stopped
3544 before resuming sibling lwps. Instead ask
3545 linux_nat_resume_callback to skip the event lwp. Mark it as not
3546 stopped after actually resuming it.
3547 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3548 resuming it.
3549 (wait_lwp): Mark the lwp as stopped here.
3550 (stop_wait_callback): Mark the lwp as not stopped right after
3551 resuming it. Don't mark lwps as stopped here.
3552 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3553 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3554
251bde03
PA
35552014-05-29 Pedro Alves <palves@redhat.com>
3556
3557 PR PR15693
3558 * infrun.c (resume): Determine how much to resume depending on
3559 whether the caller wanted a step, not whether we can hardware step
3560 the target. Mark all threads that we intend to run as running,
3561 unless we're calling an inferior function.
3562 (normal_stop): If the thread is running an infcall, don't finish
3563 thread state.
3564 * target.c (target_resume): Don't mark threads as running here.
3565
7f3c0343
JB
35662014-05-28 Joel Brobecker <brobecker@adacore.com>
3567
3568 * serial.c (_initialize_serial): Remove support for
3569 the "set remotebaud" and "show remotebaud" commands.
3570 * NEWS: Add entry documenting the removal of that command.
3571
ee34b3f9
YQ
35722014-05-28 Yao Qi <yao@codesourcery.com>
3573
3574 * charset.c: Fix typo in comments.
3575
add6c04d
GB
35762014-05-27 Gary Benson <gbenson@redhat.com>
3577
3578 * utils.c (internal_vproblem): Prompt for a bug report.
3579
92c48fc5
AW
35802014-05-26 Andy Wingo <wingo@igalia.com>
3581
3582 * guile/scm-arch.c (arscm_mark_arch_smob):
3583 * guile/scm-block.c (bkscm_mark_block_smob)
3584 (bkscm_mark_block_syms_progress_smob):
3585 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3586 * guile/scm-exception.c (exscm_mark_exception_smob):
3587 * guile/scm-frame.c (frscm_mark_frame_smob):
3588 * guile/scm-iterator.c (itscm_mark_iterator_smob):
3589 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3590 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3591 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3592 (ppscm_mark_pretty_printer_worker_smob):
3593 * guile/scm-symbol.c (syscm_mark_symbol_smob):
3594 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3595 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3596 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3597 mark functions.
3598 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3599 function.
3600
b2715b27
AW
36012014-05-26 Andy Wingo <wingo@igalia.com>
3602 Doug Evans <xdje42@gmail.com>
3603
3604 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3605 empty_base_class. All uses updated.
3606 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3607 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3608 Adapt all callers.
3609 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3610 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3611 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3612 (gdbscm_gsmob_has_property_p, add_property_name)
3613 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3614 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3615 (gdb-object-has-property?, gdb-object-properties): Remove.
3616 (gdb-object-kind): Renamed from gsmob-kind.
3617
214ab2da
AW
36182014-05-26 Andy Wingo <wingo@igalia.com>
3619
3620 * configure.ac (try_guile_versions): Allow building with guile 2.2.
3621 * configure: Regenerate.
3622
589fdceb
MM
36232014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3624
3625 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3626
67b5c0c1
MM
36272014-05-23 Markus Metzger <markus.t.metzger@intel.com>
3628
3629 * record-btrace.c (record_btrace_allow_memory_access): Remove.
3630 (replay_memory_access_read_only, replay_memory_access_read_write)
3631 (replay_memory_access_types, replay_memory_access)
3632 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3633 (cmd_set_record_btrace, cmd_show_record_btrace)
3634 (cmd_show_replay_memory_access): New.
3635 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3636 (record_btrace_remove_breakpoint): Replace
3637 record_btrace_allow_memory_access with replay_memory_access.
3638 (_initialize_record_btrace): Add commands.
3639 * NEWS: Announce it.
3640
036cd381
RR
36412014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3642
3643 * aarch64-linux-nat.c (asm/ptrace.h): Include.
3644
c77c1e42
RR
36452014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3646
3647 * MAINTAINERS (Write After Approval): Move self back from
3648 paper trail.
3649
45741a9c
PA
36502014-05-22 Pedro Alves <palves@redhat.com>
3651
3652 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3653 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3654 (disable_randomization, enum exec_direction_kind)
3655 (execution_direction, stop_registers, start_remote)
3656 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3657 (wait_for_inferior, normal_stop, get_last_target_status)
3658 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3659 (insert_step_resume_breakpoint_at_sal)
3660 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3661 (set_step_info, print_stop_event, signal_stop_state)
3662 (signal_print_state, signal_pass_state, signal_stop_update)
3663 (signal_print_update, signal_pass_update)
3664 (update_signals_program_target, clear_exit_convenience_vars)
3665 (displaced_step_dump_bytes, update_observer_mode)
3666 (signal_catch_update, gdb_signal_from_command): Move
3667 declarations ...
3668 * infrun.h: ... to this new file.
3669 * amd64-tdep.c: Include infrun.h.
3670 * annotate.c: Include infrun.h.
3671 * arch-utils.c: Include infrun.h.
3672 * arm-linux-tdep.c: Include infrun.h.
3673 * arm-tdep.c: Include infrun.h.
3674 * break-catch-sig.c: Include infrun.h.
3675 * breakpoint.c: Include infrun.h.
3676 * common/agent.c: Include infrun.h instead of inferior.h.
3677 * corelow.c: Include infrun.h.
3678 * event-top.c: Include infrun.h.
3679 * go32-nat.c: Include infrun.h.
3680 * i386-tdep.c: Include infrun.h.
3681 * inf-loop.c: Include infrun.h.
3682 * infcall.c: Include infrun.h.
3683 * infcmd.c: Include infrun.h.
3684 * infrun.c: Include infrun.h.
3685 * linux-fork.c: Include infrun.h.
3686 * linux-nat.c: Include infrun.h.
3687 * linux-thread-db.c: Include infrun.h.
3688 * monitor.c: Include infrun.h.
3689 * nto-tdep.c: Include infrun.h.
3690 * procfs.c: Include infrun.h.
3691 * record-btrace.c: Include infrun.h.
3692 * record-full.c: Include infrun.h.
3693 * remote-m32r-sdi.c: Include infrun.h.
3694 * remote-mips.c: Include infrun.h.
3695 * remote-notif.c: Include infrun.h.
3696 * remote-sim.c: Include infrun.h.
3697 * remote.c: Include infrun.h.
3698 * reverse.c: Include infrun.h.
3699 * rs6000-tdep.c: Include infrun.h.
3700 * s390-linux-tdep.c: Include infrun.h.
3701 * solib-irix.c: Include infrun.h.
3702 * solib-osf.c: Include infrun.h.
3703 * solib-svr4.c: Include infrun.h.
3704 * target.c: Include infrun.h.
3705 * top.c: Include infrun.h.
3706 * windows-nat.c: Include infrun.h.
3707 * mi/mi-interp.c: Include infrun.h.
3708 * mi/mi-main.c: Include infrun.h.
3709 * python/py-threadevent.c: Include infrun.h.
3710
98eb56a4
PA
37112014-05-22 Pedro Alves <palves@redhat.com>
3712
3713 * infrun.c (handle_inferior_event): Store the exit code for
3714 --return-child-result here, instead of ...
3715 (print_exited_reason): ... here.
3716
17b2616c
PA
37172014-05-21 Pedro Alves <palves@redhat.com>
3718
3719 PR gdb/13860
3720 * gdbthread.h (struct thread_control_state): New field
3721 `command_interp'.
3722 * infrun.c (follow_fork): Copy the new thread control field to the
3723 child fork thread.
3724 (clear_proceed_status_thread): Clear the new thread control field.
3725 (proceed): Set the new thread control field.
3726 * interps.h (command_interp): Declare.
3727 * interps.c (command_interpreter): New global.
3728 (command_interp): New function.
3729 (interp_exec): Set `command_interpreter' while here.
3730 * cli-out.c (cli_uiout_dtor): New function.
3731 (cli_ui_out_impl): Install it.
3732 * mi/mi-interp.c: Include cli-out.h.
3733 (mi_cmd_interpreter_exec): Add comment.
3734 (restore_current_uiout_cleanup): New function.
3735 (ui_out_free_cleanup): New function.
3736 (mi_on_normal_stop): If finishing an execution command started by
3737 a CLI command, or any kind of breakpoint-like event triggered,
3738 print the stop event to the output (CLI) stream.
3739 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3740
5166082f
PA
37412014-05-21 Pedro Alves <palves@redhat.com>
3742
3743 * cli/cli-cmds.c (list_command): Handle the first "list" after the
3744 current source line having changed.
3745 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3746 * infrun.c (normal_stop): Adjust call to
3747 set_current_sal_from_frame.
3748 * source.c (clear_lines_listed_range): New function.
3749 (set_current_source_symtab_and_line, identify_source_line): Clear
3750 the lines listed range.
3751 (line_info): Handle the first "info line" after the current source
3752 line having changed.
3753 * stack.c (print_stack_frame): Remove center handling.
3754 (set_current_sal_from_frame): Remove 'center' parameter. Don't
3755 center sal.line.
3756
c1ee2fb3
PA
37572014-05-21 Pedro Alves <palves@redhat.com>
3758
3759 * inf-child.c (inf_child_mourn_inferior): New function.
3760 * inf-child.h (inf_child_mourn_inferior): New declaration.
3761 * darwin-nat.c (darwin_mourn_inferior): Use
3762 inf_child_mourn_inferior.
3763 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3764 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3765 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3766 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3767 * windows-nat.c (windows_mourn_inferior): Likewise.
3768
5c6d4fb2
DE
37692014-05-21 Doug Evans <xdje42@gmail.com>
3770
250748cb 3771 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 3772
4a2722c5
DE
37732014-05-21 Doug Evans <xdje42@gmail.com>
3774
17292b30 3775 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
3776 (gdbscm_out_of_range_error): Ditto.
3777 (gdbscm_memory_error): Ditto.
250748cb
DE
3778 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3779 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
3780 (gdbscm_out_of_range_error): Update.
3781 (gdbscm_memory_error): Update.
3782 (gdbscm_scm_to_target_string_unsafe): Delete.
3783
6a3cb8e8
PA
37842014-05-21 Pedro Alves <palves@redhat.com>
3785
3786 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3787 globals.
3788 (inf_child_open_target): New function.
3789 (inf_child_open): Use inf_child_open_target to push the target
3790 instead of erroring out.
3791 (inf_child_disconnect, inf_child_close)
3792 (inf_child_maybe_unpush_target): New functions.
3793 (inf_child_target): Install inf_child_disconnect and
3794 inf_child_close. Store a pointer to the returned object.
3795 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3796 declarations.
3797 * target.c (auto_connect_native_target): New global.
3798 (show_default_run_target): New function.
3799 (find_default_run_target): Return NULL if automatically connecting
3800 to the native target is disabled.
3801 (_initialize_target): Install set/show auto-connect-native-target.
3802 * NEWS: Mention "set auto-connect-native-target", and "target
3803 native".
3804 * linux-nat.c (super_close): New global.
3805 (linux_nat_close): Call super_close.
3806 (linux_nat_add_target): Store a pointer to the base class's
3807 to_close method.
3808 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3809 inf_child_maybe_unpush.
3810 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3811 already pushed.
3812 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3813 the inferior. Use inf_child_maybe_unpush_target.
3814 (inf_ttrace_attach): Don't push the target if it is already
3815 pushed.
3816 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3817 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3818 after mourning the inferior. Use inf_child_maybe_unpush_target.
3819 (darwin_attach_pid): Don't push the target if it is already
3820 pushed.
3821 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3822 mourning the inferior. Use inf_child_maybe_unpush_target.
3823 (gnu_detach): Use inf_child_maybe_unpush_target.
3824 * go32-nat.c (go32_create_inferior): Don't push the target if it
3825 is already pushed.
3826 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3827 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3828 (procfs_open): Rename to ...
3829 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3830 comments. Can target_preopen before changing node. Call
3831 inf_child_open_target to push the target explicitly.
3832 (procfs_attach): Don't push the target if it is already pushed.
3833 (procfs_detach): Use inf_child_maybe_unpush_target.
3834 (procfs_create_inferior): Don't push the target if it is already
3835 pushed.
3836 (nto_native_ops): New global.
3837 (procfs_open): Reimplement.
3838 (procfs_native_open): New function.
3839 (init_procfs_targets): Install procfs_native_open as to_open of
3840 "target native". Store a pointer to the "native" target in
3841 nto_native_ops.
3842 * procfs.c (procfs_attach): Don't push the target if it is already
3843 pushed.
3844 (procfs_detach): Use inf_child_maybe_unpush_target.
3845 (procfs_mourn_inferior): Only unpush the target after mourning the
3846 inferior. Use inf_child_maybe_unpush_target.
3847 (procfs_init_inferior): Don't push the target if it is already
3848 pushed.
3849 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3850 if it is already pushed.
3851
930ee1b1
PA
38522014-05-21 Pedro Alves <palves@redhat.com>
3853
3854 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3855 and "procfs" targets are now called "native" instead.
3856
1f5d1b13
PA
38572014-05-21 Pedro Alves <palves@redhat.com>
3858
3859 * go32-nat.c (go32_open): Delete.
3860 (go32_target): Don't override the to_open method.
3861
132f8e03
PA
38622014-05-21 Pedro Alves <palves@redhat.com>
3863
3864 * nto-procfs.c (procfs_can_run): New function.
3865 (nto_procfs_ops): New global.
3866 (init_procfs_targets): New, based on procfs_target. Install
3867 "target native" in addition to "target procfs".
3868 (_initialize_procfs): Call init_procfs_targets instead of adding
3869 the target here.
3870
03c136c3
PA
38712014-05-21 Pedro Alves <palves@redhat.com>
3872
3873 * windows-nat.c (windows_target): Don't override to_shortname,
3874 to_longname or to_doc.
3875
a635d0f3
PA
38762014-05-21 Pedro Alves <palves@redhat.com>
3877
3878 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3879 to_doc.
3880
4f9b5133
PA
38812014-05-21 Pedro Alves <palves@redhat.com>
3882
3883 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3884 to_shortname, to_longname or to_doc.
3885
bc85afde
PA
38862014-05-21 Pedro Alves <palves@redhat.com>
3887
3888 * go32-nat.c (go32_target): Don't override to_shortname,
3889 to_longname or to_doc.
3890
4ebfc96e
PA
38912014-05-21 Pedro Alves <palves@redhat.com>
3892
3893 * inf-child.c (inf_child_open): Remove mention of "child".
3894 (inf_child_target): Rename target to "native" instead of "child".
3895
2648dfed
AA
38962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3897
3898 * Makefile.in (SFILES): Delete "regset.c".
3899 (COMMON_OBS): Delete "regset.o".
3900 * regset.c: Remove.
3901 * regset.h (regset_alloc): Delete prototype.
3902
b13feb94
AA
39032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3904
3905 * sparc-linux-tdep.c (sparc32_linux_gregset)
3906 (sparc32_linux_fpregset): New static regset structures.
3907 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3908 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3909 'fpregset' fields.
3910 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3911 (sparc64_linux_fpregset): New static regset structures.
3912 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3913 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3914 New static regset structures.
3915 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3916 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3917 New static regset structures.
3918 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3919 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3920 New static regset structures.
3921 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3922 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3923 New static regset structures.
3924 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3925
b4fd25c9
AA
39262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3927
3928 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3929 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3930 register maps ("regmaps") from "*regset" to "*regmap". Do this
3931 for all regmap types and variables.
3932 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3933 (sparc32_linux_supply_core_gregset)
3934 (sparc32_linux_collect_core_gregset)
3935 (sparc32_linux_supply_core_fpregset)
3936 (sparc32_linux_collect_core_fpregset): Likewise.
3937 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3938 (sparc_gregmap, sparc_fpregmap): ... these.
3939 (sparc_supply_gregset, sparc_collect_gregset)
3940 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3941 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3942 (_initialize_sparc_nat): Rename regmaps.
3943 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3944 (sparc_gregmap, sparc_fpregmap): ... these.
3945 (sparc_supply_gregset, sparc_collect_gregset)
3946 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3947 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3948 Rename macros to...
3949 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3950 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3951 Likewise.
3952 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3953 Rename to...
3954 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3955 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3956 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3957 regmaps.
3958 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3959 (sparc32_bsd_fpregset): Rename to...
3960 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3961 (sparc32_bsd_fpregmap): ... these.
3962 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3963 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3964 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3965 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3966 (struct sparc_gregmap, struct sparc_fpregmap)
3967 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3968 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3969 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3970 (sparc32_supply_regset, sparc32_collect_gregset)
3971 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3972 prototypes.
3973 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3974 (sparc64_linux_ptrace_gregmap): ... this.
3975 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3976 (_initialize_sparc64_linux_nat): Rename regmaps.
3977 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3978 (sparc64_linux_core_gregmap): ... this.
3979 (sparc64_linux_supply_core_gregset)
3980 (sparc64_linux_collect_core_gregset)
3981 (sparc64_linux_supply_core_fpregset)
3982 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3983 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3984 (sparc64_sol2_fpregset): Rename to...
3985 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3986 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3987 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3988 regmaps.
3989 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3990 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3991 (sparc64_bsd_fpregset): Rename to...
3992 (struct sparc_gregmap, sparc64_sol2_gregmap)
3993 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3994 (sparc64_bsd_fpregmap): ... these.
3995 (sparc64_supply_gregset, sparc64_collect_gregset)
3996 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3997 prototypes.
3998 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3999 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4000 (sparc64fbsd_gregmap): ... this.
4001 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4002 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4003 Rename regmaps.
4004 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4005 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4006 (sparc64nbsd_collect_fpregset): Likewise.
4007 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4008 (sparc64nbsd_gregmap): ... this.
4009 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4010 regmaps.
4011 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4012 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4013 (sparc64obsd_gregmap): ... this.
4014 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4015 regmaps.
4016 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4017 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4018 (sparc32nbsd_gregmap): ... this.
4019 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4020 regmaps.
4021
8fea3224
AA
40222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4023
4024 * score-tdep.c (score7_linux_gregset): New static regset
4025 structure.
4026 (score7_linux_regset_from_core_section): Remove dynamic regset
4027 allocation.
4028 (score_gdbarch_init): Drop allocation of tdep structure.
4029 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4030
24534243
AA
40312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4032
4033 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4034 regset structures.
4035 (am33_regset_from_core_section): Remove dynamic regset
4036 allocations.
4037
b7195f27
AA
40382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4039
4040 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4041 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4042 structures.
4043 (mips_linux_regset_from_core_section): Remove dynamic regset
4044 allocations.
4045 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4046 'gregset64', 'fpregset', and 'fpregset64'.
4047 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4048 deleted tdep fields.
4049
ecc37a5a
AA
40502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4051
4052 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4053 regset structures.
4054 (amd64_regset_from_core_section): Remove dynamic regset
4055 allocations.
4056 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4057 structure.
4058 (amd64obsd_regset_from_core_section): Remove dynamic regset
4059 allocation.
4060 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4061 Likewise.
4062 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4063 x86-common regset supply function.
4064 * i386-tdep.c (i386_collect_gregset): Make static.
4065 (i386_gregset): New global regset structure.
4066 (i386_fpregset, i386_xstateregset): New static regset structures.
4067 (i386_regset_from_core_section): Remove dynamic regset
4068 allocations.
4069 (i386_gdbarch_init): Remove initialization of tdep fields
4070 'gregset', 'fpregset', and 'xstateregset'.
4071 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4072 'fpregset', and 'xstateregset'.
4073 (i386_collect_gregset): Remove prototype.
4074 (i386_gregset): New declaration.
4075 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4076 structure.
4077 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4078 allocation.
4079
b7611c43
AA
40802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4081
4082 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4083 (arm_linux_vfpregset): New static regset structures.
4084 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4085 regset structures.
4086 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4087 and 'vfpregset' fields.
4088
a069a2bd
AA
40892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4090
4091 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4092 (aarch64_linux_fpregset): New static regset structures.
4093 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4094 of regset structures.
4095 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4096 'fpregset' fields.
4097
09424cff
AA
40982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4099
4100 * regset.h (struct regset): Remove gdbarch field.
4101 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4102 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4103 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4104 Likewise.
4105 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4106 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4107 (ppc32_linux_vsxregset): Likewise.
4108 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4109 via the regcache instead of the regset.
4110 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4111 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4112 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4113 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4114 Likewise.
4115
3ca7dae4
AA
41162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4117
4118 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4119 Constify structures.
4120 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4121 (alphanbsd_aout_gregset): Likewise.
4122 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4123 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4124 Likewise.
4125 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4126 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4127 Likewise.
4128 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4129 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4130 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4131 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4132 * m88k-tdep.c (m88k_gregset): Likewise.
4133 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4134 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4135 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4136 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4137 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4138 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4139 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4140 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4141 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4142 Likewise.
4143 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4144 * sh-tdep.h (sh_corefile_gregset): Likewise.
4145 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4146 * vax-tdep.c (vax_gregset): Likewise.
4147
5876f503
JK
41482014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4149
4150 Fix TLS access for -static -pthread.
4151 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4152 (try_thread_db_load_1): Initialize it.
4153 (thread_db_get_thread_local_address): Call it if LM is zero.
4154 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4155 * target.h (struct target_ops) (to_get_thread_local_address): Add
4156 load_module_addr comment.
4157
0256a6ac
PA
41582014-05-21 Pedro Alves <palves@redhat.com>
4159
4160 * dcache.c (dcache_read_memory_partial): If reading the cache line
4161 fails, fallback to reading just the memory the caller wanted.
4162
227533ac
DE
41632014-05-20 Doug Evans <dje@google.com>
4164
4165 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4166 instead of get_current_arch.
4167
936d2992
PA
41682014-05-20 Pedro Alves <palves@redhat.com>
4169
4170 * NEWS: Mention that compare-sections now works with all targets.
4171
4172 * remote.c (PACKET_qCRC): New enum value.
4173 (remote_verify_memory): Don't send qCRC if the target has no
4174 execution. Use packet_support/packet_ok. If the target doesn't
4175 support the qCRC packet, fallback to a deep memory copy.
4176 (compare_sections_command): Say "target image" instead of "remote
4177 executable".
4178 (_initialize_remote): Add PACKET_qCRC to the list of config
4179 packets that have no associated command. Extend comment.
4180 * target.c (simple_verify_memory, default_verify_memory): New
4181 function.
4182 * target.h (struct target_ops) <to_verify_memory>: Default to
4183 default_verify_memory.
4184 (simple_verify_memory): New declaration.
4185 * target-delegates.c: Regenerate.
4186
e59fa00f
MM
41872014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4188
4189 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4190
f2205de0
HZ
41912014-05-20 Hui Zhu <hui@codesourcery.com>
4192 Yao Qi <yao@codesourcery.com>
4193
4194 PR backtrace/16558
4195 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4196 and change address of sp and pc.
4197
c4e54771
TT
41982014-05-19 Tom Tromey <tromey@redhat.com>
4199
4200 * gdbtypes.c (rank_function): Use XNEWVEC.
4201 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4202
73051182
DE
42032014-05-19 Doug Evans <dje@google.com>
4204
4205 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4206 build_type_unit_groups and moved closer to only caller. Remove
4207 arguments. All references updated. Remove outdated .gdb_index
4208 comment.
4209 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4210 build_type_psymtabs_1.
4211
8832e7e3
DE
42122014-05-19 Doug Evans <dje@google.com>
4213
4214 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4215 n_type_unit_groups, all_type_unit_groups. All uses removed.
4216 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4217 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4218 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4219 (add_type_unit_group_to_table): Delete.
4220
cd8ae15e
DE
42212014-05-19 Doug Evans <dje@google.com>
4222
4223 * eval.c (evaluate_subexp_standard): Add some comments.
4224
08f4850b
DE
42252014-05-17 Doug Evans <xdje42@gmail.com>
4226
4227 * progspace.c (remove_program_space): Delete, unused.
4228 * progspace.h (remove_program_space): Ditto.
4229
bed8455c
DE
42302014-05-17 Doug Evans <xdje42@gmail.com>
4231
4232 * inferior.c (prune_inferiors): Fix comment.
4233 (remove_inferior_command): Call prune_program_spaces.
4234
8d551b02
DE
42352014-05-16 Doug Evans <dje@google.com>
4236
4237 New command line option -D.
4238 * NEWS: Mention it.
4239 * main.c (set_gdb_data_directory): New function.
4240 (captured_main): Recognize -D. Flag error for --data-directory "".
4241 Call set_gdb_data_directory.
4242 (print_gdb_help): Print --data-directory, -D.
4243 * main.h (set_gdb_data_directory): Declare.
4244 * top.c (staged_gdb_datadir): New static global.
4245 (set_gdb_datadir): Call set_gdb_data_directory
4246 (show_gdb_datadir): New function.
4247 (init_main): Update init of data-directory parameter.
4248
18848e28
GF
42492014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4250
4251 Import the "dirfd" gnulib module.
4252 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4253 * gnulib/aclocal.m4: Update.
4254 * gnulib/config.in: Update.
4255 * gnulib/configure: Update.
4256 * gnulib/import/Makefile.am: Update.
4257 * gnulib/import/Makefile.in: Update.
4258 * gnulib/import/dirfd.c: New.
4259 * gnulib/import/m4/dirfd.m4: New.
4260 * gnulib/import/m4/gnulib-cache.m4: Update.
4261 * gnulib/import/m4/gnulib-comp.m4: Update.
4262
95c64f92
YQ
42632014-05-16 Pierre Muller <muller@sourceware.org>
4264 Yao Qi <yao@codesourcery.com>
4265
4266 * valprint.c (print_wchar): Move the code on checking whether
4267 W is a printable wide char to the default branch of switch
4268 statement below. Call wchar_printable instead of gdb_iswprint.
4269
cac395ea
TM
42702014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4271
19679eca 4272 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4273 ldr.w and ldrd instructions.
4274
83655187
DE
42752014-05-15 Doug Evans <dje@google.com>
4276
4277 * dwarf2read.c (read_structure_type): Delete outdated comments.
4278
dd756689
TT
42792014-05-14 Tom Tromey <tromey@redhat.com>
4280
4281 * macrocmd.c (print_macro_definition): Reindent.
4282
75ddda77
DE
42832014-05-13 Doug Evans <xdje42@gmail.com>
4284
4285 * python/py-cmd.c (cmdpy_completer): Add comment.
4286 (completers): Make const.
4287
b0f16a3e
SM
42882014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4289
4290 * infrun.c (resume): Remove should_resume (unused). Move up
4291 declaration of resume_ptid.
4292
033c3379
TT
42932014-05-13 Tom Tromey <tromey@redhat.com>
4294
4295 * language.h (unop_type_check): Remove.
4296 (binop_type_check): Don't declare.
4297
9b44a3a5
AA
42982014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4299
4300 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4301 call to regcache_raw_collect.
4302
303a33fa
SM
43032014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4304
4305 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4306 mi_console->quote as the quoting character.
4307
196100a0
SM
43082014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4309
4310 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4311
f989a1c8
TT
43122014-04-29 Tom Tromey <tromey@redhat.com>
4313
4314 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4315 "show debug varobj".
4316
9404b58f
KM
43172014-05-07 Kyle McMartin <kyle@redhat.com>
4318
4319 Pushed by Joel Brobecker <brobecker@adacore.com>.
4320 * aarch64-tdep.c (aarch64_software_single_step): New function.
4321 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4322 with aarch64_software_single_step.
4323
5e49ba57
JB
43242014-05-05 Joel Brobecker <brobecker@adacore.com>
4325
4326 GDB 7.7.1 released.
4327
c888a17d
KS
43282014-05-05 Keith Seitz <keiths@redhat.com>
4329
4330 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4331 variable or history value is successfully parsed.
4332
290a839c
YQ
43332014-05-05 Yao Qi <yao@codesourcery.com>
4334 Pedro Alves <palves@redhat.com>
4335
4336 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4337 address of blocks that intersects the requested range. Trim
4338 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4339 sections.
4340 * ctf.c (ctf_xfer_partial): Likewise.
4341
91256dc2
YQ
43422014-05-05 Yao Qi <yao@codesourcery.com>
4343
4344 * printcmd.c (display_command): Remove the check to
4345 target_has_execution.
4346
07284463
MK
43472014-05-03 Mark Kettenis <kettenis@gnu.org>
4348
4349 * ppcobsd-nat.c: Include "obsd-nat.h".
4350 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4351 add_target.
4352 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4353
30a1e6cc
SDJ
43542014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4355
4356 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4357 and 16-bit signed and unsigned arguments. Update comment.
4358 (stap_parse_probe_arguments): Extend code to handle such
4359 arguments. Use warning instead of complaint to notify about
4360 unrecognized bitness.
4361
f33da99a
SDJ
43622014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4363
4364 PR breakpoints/16889
4365 * stap-probe.c (stap_parse_probe_arguments): Simplify
4366 check for non-prefixed probes (i.e., probes whose
4367 arguments do not start with "N@"). Always set the
4368 argument type to a sane value.
4369
95cf3b38
DT
43702014-05-01 David Taylor <dtaylor@emc.com>
4371
4372 * remote.c (compare_sections_command): Add -r option to compare
4373 all loadable read-only sections.
4374
1cfdf534
SC
43752014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4376
4377 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4378 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4379 Update all callers.
4380 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4381 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4382 Remove unused CORE_ADDR argument. Update all callers.
4383
ca4f7f8b
PA
43842014-04-29 Pedro Alves <palves@redhat.com>
4385
4386 * remote.c (struct packet_config) <detect>: Extend comment.
4387 (add_packet_config_cmd): Don't set the config's detect or support
4388 fields here.
4389 (init_all_packet_configs): Also initialize the config's 'detect'
4390 field.
4391 (reset_all_packet_configs_support): New function.
4392 (remote_open_1): Call reset_all_packet_configs_support instead of
4393 init_all_packet_configs.
4394 (_initialize_remote): Initialize all packet configs. Assert that
4395 all packets have an associated command, except a few known
4396 outliers.
4397
11c1ba78
JB
43982014-04-28 Joel Brobecker <brobecker@adacore.com>
4399
4400 * dwarf2read.c (read_subrange_type): Handle dynamic
4401 DW_AT_lower_bound attributes.
4402
8739bc53
JB
44032014-04-28 Joel Brobecker <brobecker@adacore.com>
4404
4405 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4406 dynamic bounds before computing its upper bound.
4407 (ada_discrete_type_low_bound): Same as above with the lower bound.
4408
6f8a3220
JB
44092014-04-28 Joel Brobecker <brobecker@adacore.com>
4410
4411 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4412 range types. Adjust the array handling implementation to
4413 take advantage of this change.
4414 (resolve_dynamic_range): New function, mostly extracted from
4415 resolve_dynamic_bounds.
4416 (resolve_dynamic_array): New function, mostly extracted from
4417 resolve_dynamic_bounds.
4418 (resolve_dynamic_bounds): Delete.
4419 (resolve_dynamic_type): Reimplement. Add handling of
4420 TYPE_CODE_RANGE types.
4421
4d072ce4
JB
44222014-04-28 Joel Brobecker <brobecker@adacore.com>
4423
4424 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4425 handling of parallel ___XA types.
4426
52865325
JB
44272014-04-28 Joel Brobecker <brobecker@adacore.com>
4428
4429 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4430 unnecessary second call to static_unwrap_type.
4431
433e77fa
HZ
44322014-04-27 Hui Zhu <hui@codesourcery.com>
4433
4434 * stack.c (print_frame_info): Call do_gdb_disassembly with
4435 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4436
b51a69ee
DE
44372014-04-26 Doug Evans <xdje42@gmail.com>
4438
4439 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4440
7ae1a6a6
PA
44412014-04-25 Pedro Alves <palves@redhat.com>
4442
4443 PR server/16255
4444 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4445 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4446 and newline from built string.
4447 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4448 (linux_ptrace_attach_fail_reason): ... this.
4449 * linux-nat.c (linux_nat_attach): Adjust to use
4450 linux_ptrace_attach_fail_reason.
4451
4082afcc
PA
44522014-04-25 Pedro Alves <palves@redhat.com>
4453
4454 * remote.c (struct remote_state): Remove multi_process_aware,
4455 non_stop_aware, cond_tracepoints, cond_breakpoints,
4456 breakpoint_commands, fast_tracepoints, static_tracepoints,
4457 install_in_trace, disconnected_tracing,
4458 enable_disable_tracepoints, string_tracing, and
4459 augmented_libraries_svr4_read fields.
4460 (remote_multi_process_p): Move further below in the file.
4461 (struct packet_config): Add comments.
4462 (update_packet_config): Delete function.
4463 (show_packet_config_cmd): Use packet_config_support.
4464 (add_packet_config_cmd): Use NULL as set callback.
4465 (packet_ok): "set remote foo-packet"-style commands no longer
4466 change config->supported -- adjust.
4467 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4468 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4469 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4470 (PACKET_QNonStop, PACKET_multiprocess_feature)
4471 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4472 (PACKET_DisconnectedTracing_feature)
4473 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4474 (set_remote_protocol_packet_cmd): Delete function.
4475 (packet_config_support, packet_support): New functions.
4476 (set_remote_protocol_Z_packet_cmd): Don't call
4477 update_packet_config.
4478 (remote_query_attached, remote_pass_signals)
4479 (remote_program_signals, remote_threads_info)
4480 (remote_threads_extra_info, remote_start_remote): Use
4481 packet_support.
4482 (remote_start_remote): Use packet_config_support and
4483 packet_support.
4484 (init_all_packet_configs): Set all packets to unknown support,
4485 instead of calling update_packet_config.
4486 (remote_check_symbols): Use packet_support.
4487 (remote_supported_packet): Unconditionally set the packet config's
4488 support status.
4489 (remote_multi_process_feature, remote_non_stop_feature)
4490 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4491 (remote_breakpoint_commands_feature)
4492 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4493 (remote_install_in_trace_feature)
4494 (remote_disconnected_tracing_feature)
4495 (remote_enable_disable_tracepoint_feature)
4496 (remote_string_tracing_feature)
4497 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4498 (remote_protocol_features): Adjust to use remote_supported_packet
4499 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4500 "ConditionalTracepoints", "ConditionalBreakpoints",
4501 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4502 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4503 "EnableDisableTracepoints", and "tracenz".
4504 (remote_query_supported): Use packet_support.
4505 (remote_open_1): Adjust.
4506 (extended_remote_attach_1): Use packet_support. Switch on the
4507 result of packet_ok instead of checking whether the packet ended
4508 up disabled.
4509 (remote_vcont_resume): Use packet_support.
4510 (remote_resume, remote_stop_ns, fetch_register_using_p)
4511 (remote_prepare_to_store, store_register_using_P)
4512 (check_binary_download, remote_write_bytes): Use packet_support.
4513 (remote_vkill): Use packet_support. Switch on the result of
4514 packet_ok instead of checking whether the packet ended up
4515 disabled.
4516 (extended_remote_supports_disable_randomization): Use
4517 packet_support.
4518 (extended_remote_run): Switch on the result of packet_ok instead
4519 of checking whether the packet ended up disabled.
4520 (remote_insert_breakpoint, remote_remove_breakpoint)
4521 (remote_insert_watchpoint, remote_remove_watchpoint)
4522 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4523 packet_support.
4524 (remote_search_memory): Use packet_config_support.
4525 (remote_get_thread_local_address, remote_get_tib_address)
4526 (remote_hostio_send_command, remote_can_execute_reverse): Use
4527 packet_support.
4528 (remote_supports_cond_tracepoints)
4529 (remote_supports_cond_breakpoints)
4530 (remote_supports_fast_tracepoints)
4531 (remote_supports_static_tracepoints)
4532 (remote_supports_install_in_trace)
4533 (remote_supports_enable_disable_tracepoint)
4534 (remote_supports_string_tracing)
4535 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4536 the packet config says the feature is enabled or disabled.
4537 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4538 (remote_get_trace_status): Use packet_support.
4539 (remote_set_disconnected_tracing): Adjust to check whether the
4540 feature is enabled with packet_support.
4541 (remote_set_trace_buffer_size, remote_use_agent)
4542 (remote_can_use_agent, remote_supports_btrace): Use
4543 packet_support.
4544 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4545 Use packet_config_support.
4546 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4547 the packet config says the feature is enabled or disabled.
4548 (set_range_stepping): Use packet_support.
4549
bdb52a22
TT
45502014-04-25 Tom Tromey <tromey@redhat.com>
4551
4552 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4553 argument.
4554
e9475ead
SA
45552014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4556
4557 * NEWS: Mention support for C99 variable length arrays.
4558
82eacd52
JB
45592014-04-24 Joel Brobecker <brobecker@adacore.com>
4560
4561 * ada-lang.c (standard_exc): Expand introductory comment.
4562
01f9f808
MS
45632014-04-24 Michael Sturm <michael.sturm@mintel.com>
4564 Walfred Tedeschi <walfred.tedeschi@intel.com>
4565
4566 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4567 AVX512 registers.
4568 (amd64_linux_read_description): Add code to handle AVX512 xstate
4569 mask and return respective tdesc.
4570 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4571 and features/i386/x32-avx512-linux.c.
4572 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4573 (amd64_linux_core_read_description): Add code to handle AVX512
4574 xstate mask and return respective tdesc.
4575 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4576 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4577 calculation.
4578 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4579 (tdesc_amd64_avx512_linux): New prototype.
4580 (tdesc_x32_avx512_linux): Likewise.
4581 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4582 features/i386/x32-avx512.c.
4583 (amd64_ymm_avx512_names): New register names for pseudo
4584 registers YMM16-31.
4585 (amd64_ymmh_avx512_names): New register names for raw registers
4586 YMMH16-31.
4587 (amd64_k_names): New register names for K registers.
4588 (amd64_zmmh_names): New register names for ZMM raw registers.
4589 (amd64_zmm_names): New registers names for ZMM pseudo registers.
4590 (amd64_xmm_avx512_names): New register names for XMM16-31
4591 registers.
4592 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4593 registers.
4594 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4595 if feature is present.
4596 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4597 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4598 (AMD64_NUM_REGS): Adjust to new number of registers.
4599 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4600 registers supplied via XSTATE by AVX512 registers.
4601 (i386_linux_read_description): Add case for AVX512.
4602 * i386-linux-tdep.c: Include i386-avx512-linux.c.
4603 (i386_linux_gregset_reg_offset): Add AVX512 registers.
4604 (i386_linux_core_read_description): Add case for AVX512.
4605 (i386_linux_init_abi): Install supported register note section
4606 for AVX512.
4607 (_initialize_i386_linux_tdep): Add call to tdesc init function for
4608 AVX512.
4609 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4610 registers to be number of zmm7h + 1.
4611 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4612 * i386-tdep.c: Include features/i386/i386-avx512.c.
4613 (i386_zmm_names): Add ZMM pseudo register names array.
4614 (i386_zmmh_names): Add ZMM raw register names array.
4615 (i386_k_names): Add K raw register names array.
4616 (num_lower_zmm_regs): Add constant for the number of lower ZMM
4617 registers. AVX512 has 16 more ZMM registers than there are YMM
4618 registers.
4619 (i386_zmmh_regnum_p): Add function to look up register number of
4620 ZMM raw registers.
4621 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4622 (i386_k_regnum_p): Likewise for K raw registers.
4623 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4624 registers added by AVX512.
4625 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4626 registers added by AVX512.
4627 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4628 added by AVX512.
4629 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4630 (i386_pseudo_register_name): Add ZMM pseudo registers.
4631 (i386_zmm_type): Construct and return vector registers type for ZMM
4632 registers.
4633 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4634 ZMM0-31 pseudo registers and K registers.
4635 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4636 and YMM16-31 registers from register cache.
4637 (i386_pseudo_register_write): Add code to write K, ZMM and
4638 YMM16-31 registers.
4639 (i386_register_reggroup_p): Add code to include/exclude AVX512
4640 registers in/from respective register groups.
4641 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4642 registers if feature is present in xcr0.
4643 (i386_gdbarch_init): Add code to initialize AVX512 feature
4644 variables in tdep structure, wire in pseudo registers and call
4645 initialize_tdesc_i386_avx512.
4646 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4647 variables.
4648 (i386_regnum): Add AVX512 registers.
4649 (I386_SSE_NUM_REGS): New define for number of SSE registers.
4650 (I386_AVX_NUM_REGS): Likewise for AVX registers.
4651 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4652 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4653 512 bits wide.
4654 (i386_xmm_avx512_regnum_p): New prototype for register look up.
4655 (i386_ymm_avx512_regnum_p): Likewise.
4656 (i386_k_regnum_p): Likewise.
4657 (i386_zmm_regnum_p): Likewise.
4658 (i386_zmmh_regnum_p): Likewise.
4659 * i387-tdep.c : Update year in copyright notice.
4660 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4661 XSAVE buffer.
4662 (XSAVE_YMM_AVX512_ADDR): New macro.
4663 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4664 XSAVE buffer.
4665 (XSAVE_XMM_AVX512_ADDR): New macro.
4666 (xsave_avx512_k_offset): New table for K register offsets in
4667 XSAVE buffer.
4668 (XSAVE_AVX512_K_ADDR): New macro.
4669 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4670 in XSAVE buffer.
4671 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4672 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4673 buffer.
4674 (i387_collect_xsave): Add code to collect AVX512 registers from
4675 XSAVE buffer.
4676 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4677 of XMM16-31 registers.
4678 (I387_NUM_K_REGS): New define for number of K registers.
4679 (I387_K0_REGNUM): New define for K0 register number.
4680 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4681 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4682 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4683 registers.
4684 (I387_YMM16H_REGNUM): New define for YMM16H register number.
4685 (I387_XMM16_REGNUM): New define for XMM16 register number.
4686 (I387_YMM0_REGNUM): New define for YMM0 register number.
4687 (I387_KEND_REGNUM): New define for last K register number.
4688 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4689 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4690 number.
4691 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4692 number.
4693 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4694 size.
4695 * features/Makefile: Add AVX512 related files.
4696 * features/i386/32bit-avx512.xml: New file.
4697 * features/i386/64bit-avx512.xml: Likewise.
4698 * features/i386/amd64-avx512-linux.c: Likewise.
4699 * features/i386/amd64-avx512-linux.xml: Likewise.
4700 * features/i386/amd64-avx512.c: Likewise.
4701 * features/i386/amd64-avx512.xml: Likewise.
4702 * features/i386/i386-avx512-linux.c: Likewise.
4703 * features/i386/i386-avx512-linux.xml: Likewise.
4704 * features/i386/i386-avx512.c: Likewise.
4705 * features/i386/i386-avx512.xml: Likewise.
4706 * features/i386/x32-avx512-linux.c: Likewise.
4707 * features/i386/x32-avx512-linux.xml: Likewise.
4708 * features/i386/x32-avx512.c: Likewise.
4709 * features/i386/x32-avx512.xml: Likewise.
4710 * regformats/i386/amd64-avx512-linux.dat: New file.
4711 * regformats/i386/amd64-avx512.dat: Likewise.
4712 * regformats/i386/i386-avx512-linux.dat: Likewise.
4713 * regformats/i386/i386-avx512.dat: Likewise.
4714 * regformats/i386/x32-avx512-linux.dat: Likewise.
4715 * regformats/i386/x32-avx512.dat: Likewise.
4716 * NEWS: Add note about new support for AVX512.
4717
4718
08351840
PA
47192014-04-23 Pedro Alves <palves@redhat.com>
4720
4721 * breakpoint.c (insert_bp_location): Tolerate errors if the
4722 breakpoint is set in a user-loaded objfile.
4723 (remove_breakpoint_1): Likewise. Also tolerate errors if the
4724 location is marked shlib_disabled. If the breakpoint is set in a
4725 user-loaded objfile is a GDB-side memory breakpoint, validate it
4726 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
4727 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
4728 flag.
4729 * mem-break.c (memory_validate_breakpoint): New function.
4730 * objfiles.c (userloaded_objfile_contains_address_p): New
4731 function.
4732 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4733 * target.h (memory_validate_breakpoint): New declaration.
4734
076855f9
PA
47352014-04-23 Pedro Alves <palves@redhat.com>
4736
4737 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4738 the breakpoint is set in a shared library, only suppress
4739 errors for software breakpoints, not hardware breakpoints.
4740
483805cf
PA
47412014-04-22 Pedro Alves <palves@redhat.com>
4742
4743 * infrun.c (schedlock_applies): New function, factored out from
4744 find_thread_needs_step_over.
4745 (find_thread_needs_step_over): Use it.
4746 (switch_back_to_stepped_thread): Always clear trap_expected if the
4747 step over is finished. Return early if scheduler locking applies.
4748 Look for the stepping thread and a potential step-over thread with
4749 a single loop.
4750 (currently_stepping_or_nexting_callback): Delete.
4751
a75fef0e
NC
47522014-04-22 Nick Clifton <nickc@redhat.com>
4753
4754 * NEWS: Mention that ARM sim now supports tracing.
4755
48b6e87e
YQ
47562014-04-22 Yao Qi <yao@codesourcery.com>
4757
4758 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4759 to ...
4760 * tracefile.c (tracefile_fetch_registers): ... it. New
4761 function.
4762 * tracefile.h (tracefile_fetch_registers): Declare.
4763 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4764 tracefile_fetch_registers.
4765
17617f2d
EZ
47662014-04-19 Eli Zaretskii <eliz@gnu.org>
4767
4768 PR gdb/14018
4769 * windows-nat.c (thread_rec): Don't display a warning when
4770 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4771 fails for any reason, set th->suspended to -1, so that we don't
4772 try to resume such a thread. Also, don't return NULL in these
4773 cases, to avoid completely ruin the session due to "PC register is
4774 not available" error.
4775 (do_windows_fetch_inferior_registers): Check errors in
4776 GetThreadContext call.
4777 (windows_continue): Accept an additional argument KILLED; if not
4778 zero, ignore errors in the SetThreadContext call, since the
4779 inferior was killed and is shutting down.
4780 (windows_resume, get_windows_debug_event)
4781 (windows_create_inferior, windows_mourn_inferior)
4782 (windows_kill_inferior): All callers of windows_continue changed
4783 to adjust to its new calling sequence.
4784
5723a6fd
YQ
47852014-04-19 Yao Qi <yao@codesourcery.com>
4786
4787 * ctf.c (ctf_open): Call post_create_inferior.
4788
614d5099
YQ
47892014-04-19 Yao Qi <yao@codesourcery.com>
4790
4791 * ctf.c (handle_id): New static variable.
4792 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4793 value. Get the declaration of event "register" and get length
4794 of field "contents".
4795
dac3e710
YQ
47962014-04-19 Yao Qi <yao@codesourcery.com>
4797
4798 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4799
2bca57ba
SC
48002014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4801
4802 * valops.c (oload_method_static): Remove unnecessary argument
4803 METHOD. Update all callers.
4804
51d48146
PA
48052014-04-18 Pedro alves <palves@redhat.com>
4806 Tom Tromey <tromey@redhat.com>
4807
4808 PR backtrace/15558
4809 * frame.c (get_prev_frame_1): Rename to ...
4810 (get_prev_frame_always): ... this, and make extern. Adjust.
4811 (skip_artificial_frames): Use get_prev_frame_always.
4812 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4813 (get_frame_unwind_stop_reason): Adjust to rename.
4814 * frame.h (get_prev_frame_always): Declare.
4815 * inline-frame.c: Include frame.h.
4816 (inline_frame_this_id): Use get_prev_frame_always.
4817
1bdad2e0
TG
48182014-04-18 Tristan Gingold <gingold@adacore.com>
4819
4820 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4821 code by using bfd_mach_o_get_base_address.
4822
7ce16bd4
UW
48232014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4824
4825 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4826 (spu_ax_pseudo_register_collect): New function.
4827 (spu_ax_pseudo_register_push_stack): Likewise.
4828 (spu_dwarf_reg_to_regnum): Likewise.
4829 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4830
2ed3c037
UW
48312014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4832
4833 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4834 Replace FRAME argument with FRAME_ID.
4835 * gdbarch.c, gdbarch.h: Regenerate.
4836 * findvar.c (default_value_from_register): Add GDBARCH argument;
4837 replace FRAME by FRAME_ID. No longer call get_frame_id.
4838 (value_from_register): Update call to gdbarch_value_from_register.
4839 * value.h (default_value_from_register): Update prototype.
4840 * s390-linux-tdep.c (s390_value_from_register): Update interface
4841 and call to default_value_from_register.
4842 * spu-tdep.c (spu_value_from_register): Likewise.
4843
4844 * findvar.c (address_from_register): Remove TYPE argument.
4845 Do not call value_from_register; use gdbarch_value_from_register
4846 with null_frame_id instead.
4847 * value.h (address_from_register): Update prototype.
4848 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4849 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4850 address_from_register interface change.
4851
71e50e83
YQ
48522014-04-17 Yao Qi <yao@codesourcery.com>
4853
4854 * gdbtypes.h: Update comments to link to types and macros'
4855 definitions.
4856
7a23c549
SC
48572014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4858
4859 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4860
22869d73
KS
48612014-04-16 Keith Seitz <keiths@redhat.com>
4862
4863 PR gdb/15827
4864 * dwarf2read.c (skip_one_die): Check that all relative-offset
4865 sibling DIEs fall within range of the current reader's buffer.
4866 (read_partial_die): Likewise.
4867
c4f87ca6
KS
48682014-04-16 Keith Seitz <keiths@redhat.com>
4869
4870 PR c++/16597
4871 * cp-namespace.c (lookup_symbol_file): If the type name of
4872 `this' is NULL, return immediately.
4873
b50c8614
KS
48742014-04-14 Keith Seitz <keiths@redhat.com>
4875
4876 PR c++/16253
4877 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4878 from symbol_matches_domain in symtab.c. All local callers
4879 of symbol_matches_domain updated.
4880 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4881 search STRUCT_DOMAIN.
4882 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4883 independently. standard_lookup will do that automatically.
4884 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4885 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4886 (cp_lookup_symbol_in_namespace): Likewise.
4887 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4888 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4889 may return a STRUCT_DOMAIN match.
4890 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4891 * cp-support.c: Include language.h.
4892 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4893 VAR_DOMAIN.
4894 * psymtab.c (match_partial_symbol): Compare the requested
4895 domain with the symbol's domain directly.
4896 (lookup_partial_symbol): Likewise.
4897 * symtab.c (lookup_symbol_in_language): Explain when/why
4898 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4899 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4900 appropriate languages.
4901 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4902 and moved to ada-lang.c
4903 (lookup_block_symbol): Explain that this function only returns
4904 symbol matching the requested DOMAIN.
4905 Compare the requested domain with the symbol's domain directly.
4906 (iterate_over_symbols): Compare the requested domain with the
4907 symbol's domain directly.
4908 * symtab.h (symbol_matches_domain): Remove.
4909
3d567982
TT
49102014-04-14 Tom Tromey <tromey@redhat.com>
4911
4912 PR c++/15246:
4913 * c-exp.y (type_aggregate_p): New function.
4914 (qualified_name, classify_inner_name): Use it.
4915 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4916 and TYPE_TARGET_TYPE of an enum type.
4917 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4918 an enum type.
4919 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4920 handle TYPE_DECLARED_CLASS.
4921 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4922 types.
4923 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4924 * valops.c (enum_constant_from_type): New function.
4925 (value_aggregate_elt): Use it.
4926 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4927 TYPE_CODE_ENUM.
4928
c848d642
TT
49292014-04-14 Tom Tromey <tromey@redhat.com>
4930
4931 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4932 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4933 const.
4934 * value.h (value_aggregate_elt): Update.
4935
0626fc76
TT
49362014-04-14 Tom Tromey <tromey@redhat.com>
4937
4938 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4939
5ecaaa66
SA
49402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4941
4942 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4943 (evaluate_subexp_standard): Pass noside argument.
4944 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4945 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4946 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4947 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4948 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4949
1612e0c0
SA
49502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4951
4952 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4953 points to a constant blob.
4954
c451ebe5
SA
49552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4956
4957 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4958 property and store it as the high bound and flag the range accordingly.
4959 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4960 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4961 * gdbtypes.h (enum range_flags): New enum.
4962 (struct range_bounds): Add flags member.
4963
1d42e4c4
SA
49642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4965
4966 * c-typeprint.c (c_type_print_varspec_suffix): Added
4967 check for not yet resolved high bound. If unresolved, print
4968 "variable length" string to the console instead of random
4969 length.
4970
9f1f738a
SA
49712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4972
4973 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4974 value.
4975 (ada_template_to_fixed_record_type_1): Likewise.
4976 (ada_to_fixed_type_1): Likewise.
4977 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4978 (cp_print_value): Likewise.
4979 * d-valprint.c (dynamic_array_type): Likewise.
4980 * findvar.c (address_of_variable): Likewise.
4981 * jv-valprint.c (java_value_print): Likewise.
4982 * valops.c (value_ind): Likewise.
4983 * value.c (coerce_ref): Likewise.
4984
3c8452d4
SA
49852014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4986
4987 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4988 value and retrieve the dynamic type size.
4989
4ad88275
SA
49902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4991
4992 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4993 passed to sizeof is dynamic evaluate the argument to compute the length.
4994
80180f79
SA
49952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4996 Joel Brobecker <brobecker@adacore.com>
4997
4998 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4999 (dwarf2_evaluate_property): New function.
5000 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5001 * dwarf2read.c (attr_to_dynamic_prop): New function.
5002 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5003 attribute.
5004 * gdbtypes.c: Include dwarf2loc.h.
5005 (is_dynamic_type): New function.
5006 (resolve_dynamic_type): New function.
5007 (resolve_dynamic_bounds): New function.
5008 (get_type_length): New function.
5009 (check_typedef): Use get_type_length to compute type length.
5010 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5011 (TYPE_LOW_BOUND_KIND): New macro.
5012 (is_dynamic_type): New function prototype.
5013 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5014 to resolve dynamic properties of the type. Update comment.
5015 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5016
a1556843
RH
50172014-04-14 Richard Henderson <rth@redhat.com>
5018
5019 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5020
0be03e84
DE
50212014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5022 Doug Evans <xdje42@gmail.com>
5023
5024 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5025 dereference TYPE_CODE_REF values.
5026
6b662e19
JB
50272014-04-11 Joel Brobecker <brobecker@adacore.com>
5028
5029 Revert the following changes due to regressions:
5030
5031 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5032 (dwarf2_evaluate_property): New function.
5033 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5034 * dwarf2read.c (attr_to_dynamic_prop): New function.
5035 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5036 attribute.
5037 * gdbtypes.c: Include dwarf2loc.h.
5038 (is_dynamic_type): New function.
5039 (resolve_dynamic_type): New function.
5040 (resolve_dynamic_bounds): New function.
5041 (get_type_length): New function.
5042 (check_typedef): Use get_type_length to compute type length.
5043 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5044 (TYPE_LOW_BOUND_KIND): New macro.
5045 (is_dynamic_type): New function prototype.
5046 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5047 to resolve dynamic properties of the type. Update comment.
5048 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5049
5050 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5051 passed to sizeof is dynamic evaluate the argument to compute the length.
5052
5053 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5054 value and retrieve the dynamic type size.
5055
5056 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5057 (ada_template_to_fixed_record_type_1): Likewise.
5058 (ada_to_fixed_type_1): Likewise.
5059 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5060 (cp_print_value): Likewise.
5061 * d-valprint.c (dynamic_array_type): Likewise.
5062 * eval.c (evaluate_subexp_with_coercion): Likewise.
5063 * findvar.c (address_of_variable): Likewise.
5064 * jv-valprint.c (java_value_print): Likewise.
5065 * valops.c (value_ind): Likewise.
5066 * value.c (coerce_ref): Likewise.
5067
5068 * c-typeprint.c (c_type_print_varspec_suffix): Added
5069 check for not yet resolved high bound. If unresolved, print
5070 "variable length" string to the console instead of random
5071 length.
5072
5073 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5074 property and store it as the high bound and flag the range accordingly.
5075 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5076 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5077 * gdbtypes.h (enum range_flags): New enum.
5078 (struct range_bounds): Add flags member.
5079
5080 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5081 points to a constant blob.
5082
5083 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5084 (evaluate_subexp_standard): Pass noside argument.
5085 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5086 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5087 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5088 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5089 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5090
245a5f0b
KS
50912014-04-11 Keith Seitz <keiths@redhat.com>
5092
5093 PR c++/16675
5094 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5095 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5096 reference types.
5097
3bce8237
SA
50982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5099
5100 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5101 (evaluate_subexp_standard): Pass noside argument.
5102 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5103 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5104 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5105 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5106 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5107
92b09522
SA
51082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5109
5110 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5111 points to a constant blob.
5112
e1969afb
SA
51132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5114
5115 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5116 property and store it as the high bound and flag the range accordingly.
5117 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5118 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5119 * gdbtypes.h (enum range_flags): New enum.
5120 (struct range_bounds): Add flags member.
5121
b86138fb
SA
51222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5123
5124 * c-typeprint.c (c_type_print_varspec_suffix): Added
5125 check for not yet resolved high bound. If unresolved, print
5126 "variable length" string to the console instead of random
5127 length.
5128
bcd629a4
SA
51292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5130
5131 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5132 (ada_template_to_fixed_record_type_1): Likewise.
5133 (ada_to_fixed_type_1): Likewise.
5134 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5135 (cp_print_value): Likewise.
5136 * d-valprint.c (dynamic_array_type): Likewise.
5137 * eval.c (evaluate_subexp_with_coercion): Likewise.
5138 * findvar.c (address_of_variable): Likewise.
5139 * jv-valprint.c (java_value_print): Likewise.
5140 * valops.c (value_ind): Likewise.
5141 * value.c (coerce_ref): Likewise.
5142
04b19544
SA
51432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5144
5145 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5146 value and retrieve the dynamic type size.
5147
26cb189f
SA
51482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5149
5150 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5151 passed to sizeof is dynamic evaluate the argument to compute the length.
5152
37c1ab67
SA
51532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5154
5155 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5156 (dwarf2_evaluate_property): New function.
5157 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5158 * dwarf2read.c (attr_to_dynamic_prop): New function.
5159 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5160 attribute.
5161 * gdbtypes.c: Include dwarf2loc.h.
5162 (is_dynamic_type): New function.
5163 (resolve_dynamic_type): New function.
5164 (resolve_dynamic_bounds): New function.
5165 (get_type_length): New function.
5166 (check_typedef): Use get_type_length to compute type length.
5167 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5168 (TYPE_LOW_BOUND_KIND): New macro.
5169 (is_dynamic_type): New function prototype.
5170 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5171 to resolve dynamic properties of the type. Update comment.
5172 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5173
729efb13
SA
51742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5175
5176 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5177 declaring high/low bounds and change uses accordingly. Call
5178 create_range_type instead of create_static_range_type.
5179 * gdbtypes.c (create_range_type): New function.
5180 (create_range_type): Convert bounds into struct bound_prop and pass
5181 them to create_range_type.
5182 * gdbtypes.h (struct bound_prop): New struct.
5183 (create_range_type): New function prototype.
5184 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5185 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5186 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5187 part of the bound.
5188 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5189
0c9c3474
SA
51902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5191
5192 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5193 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5194 * ada-lang.c: All uses of create_range_type updated.
5195 * coffread.c: All uses of create_range_type updated.
5196 * dwarf2read.c: All uses of create_range_type updated.
5197 * f-exp.y: All uses of create_range_type updated.
5198 * m2-valprint.c: All uses of create_range_type updated.
5199 * mdebugread.c: All uses of create_range_type updated.
5200 * stabsread.c: All uses of create_range_type updated.
5201 * valops.c: All uses of create_range_type updated.
5202 * valprint.c: All uses of create_range_type updated.
5203
9d497a19
PA
52042014-04-10 Pedro Alves <palves@redhat.com>
5205
5206 * breakpoint.c (single_step_breakpoints)
5207 (single_step_gdbarch): Move up in the file.
5208 (one_breakpoint_xfer_memory): New function, factored out from ...
5209 (breakpoint_xfer_memory): ... here. Also process single-step
5210 breakpoints.
5211
15a9128a
TG
52122014-04-09 Tristan Gingold <gingold@adacore.com>
5213
5214 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5215 comments.
5216 (darwin_decode_exception_message): Free port only after use.
5217
9c97a070
PL
52182014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5219
5220 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5221 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5222 when setting the size of call_length.
5223
7af389b8
SC
52242014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5225
5226 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5227 dereference TYPE_CODE_REF values.
5228
86ad98c3
JB
52292014-04-07 Joel Brobecker <brobecker@adacore.com>
5230
5231 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5232 end of warning message.
5233
b0aeadb3
DE
52342014-04-03 Doug Evans <dje@google.com>
5235
5236 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5237 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5238
5979d6b6
AM
52392014-04-02 Alan Modra <amodra@gmail.com>
5240
5241 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5242 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5243 (struct symbol_file_add_from_memory_args): Add size field.
5244 (find_vdso_size): New function.
5245 (add_vsyscall_page): Attempt to find vdso size.
5246
0d60c288
DE
52472014-04-01 Doug Evans <dje@google.com>
5248
5249 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5250
a41f2563
TG
52512014-04-01 Tristan Gingold <gingold@adacore.com>
5252
5253 * darwin-nat.c (darwin_encode_reply): Add prototype.
5254 (darwin_decode_exception_message): Reply to unknown inferiors.
5255 (darwin_decode_message): Handle message by id. Ignore message
5256 to unknown inferior.
5257 (darwin_wait): Discard unknown messages, add debug trace.
5258
11a865c8
DE
52592014-03-31 Doug Evans <dje@google.com>
5260
5261 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5262 comp_dir_string.
5263
770e7fc7
DE
52642014-03-31 Doug Evans <dje@google.com>
5265
5266 New option "set print symbol-loading".
5267 * NEWS: Mention it.
5268 * solib.c (solib_read_symbols): Only print symbol loading messages
5269 if requested.
5270 (solib_add): If symbol loading is in "brief" mode, notify user
5271 symbols are being loaded.
5272 (reload_shared_libraries_1): Ditto.
5273 * symfile.c (print_symbol_loading_off): New static global.
5274 (print_symbol_loading_brief): New static global.
5275 (print_symbol_loading_full): New static global.
5276 (print_symbol_loading_enums): New static global.
5277 (print_symbol_loading): New static global.
5278 (print_symbol_loading_p): New function.
5279 (symbol_file_add_with_addrs): Only print symbol loading messages
5280 if requested.
5281 (_initialize_symfile): Register "print symbol-loading" set/show
5282 command.
5283 * symfile.h (print_symbol_loading_p): Declare.
5284
c32c64b7
DE
52852014-03-30 Doug Evans <xdje42@gmail.com>
5286
5287 * infrun.c (set_last_target_status): New function.
5288 (handle_inferior_event): Call it.
5289
7c0bc051
DE
52902014-03-30 Doug Evans <xdje42@gmail.com>
5291
5292 * inferior.h (enum stop_kind): Improve comment.
5293
8776cfe9
JB
52942014-03-28 Joel Brobecker <brobecker@adacore.com>
5295
5296 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5297 a reference, strip the reference layer before calling
5298 the lang_ops value_has_mutated callback.
5299
410a0ff2
SDJ
53002014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5301
5302 Remove some globals from our parser.
5303 * language.c (unk_lang_parser): Add "struct parser_state"
5304 argument.
5305 * language.h (struct language_defn) <la_parser>: Likewise.
5306 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5307 (initialize_expout): Add "struct parser_state" argument.
5308 Rewrite function to use the parser state.
5309 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5310 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5311 write_exp_elt_longcst, write_exp_elt_dblcst,
5312 write_exp_elt_decfloatcst, write_exp_elt_type,
5313 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5314 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5315 write_dollar_variable): Likewise.
5316 (parse_exp_in_context_1): Use parser state.
5317 (insert_type_address_space): Add "struct parser_state" argument.
5318 Use parser state.
5319 (increase_expout_size): New function.
5320 * parser-defs.h: Forward declare "struct language_defn" and
5321 "struct parser_state".
5322 (expout, expout_size, expout_ptr): Remove extern declarations.
5323 (parse_gdbarch, parse_language): Rewrite macro declarations to
5324 accept the parser state.
5325 (struct parser_state): New struct.
5326 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5327 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5328 write_exp_elt_decfloatcst, write_exp_elt_type,
5329 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5330 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5331 write_exp_msymbol, write_dollar_variable,
5332 mark_struct_expression, insert_type_address_space): Add "struct
5333 parser_state" argument.
5334 (increase_expout_size): New function.
5335 * utils.c (do_clear_parser_state): New function.
5336 (make_cleanup_clear_parser_state): Likewise.
5337 * utils.h (make_cleanup_clear_parser_state): New function
5338 prototype.
5339 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5340 Update calls to write_exp* in order to pass the parser state.
5341 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5342 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5343 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5344 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5345 * stap-probe.c (stap_parse_register_operand): Likewise.
5346 (stap_parse_single_operand): Likewise.
5347 (stap_parse_argument_1): Likewise.
5348 (stap_parse_argument): Use parser state.
5349 * stap-probe.h: Include "parser-defs.h".
5350 (struct stap_parse_info) <pstate>: New field.
5351 * c-exp.y (parse_type): Rewrite to use parser state.
5352 (yyparse): Redefine to c_parse_internal.
5353 (pstate): New global variable.
5354 (parse_number): Add "struct parser_state" argument.
5355 (write_destructor_name): Likewise.
5356 (type_exp): Update calls to write_exp* and similars in order to
5357 use parser state.
5358 (exp1, exp, variable, qualified_name, space_identifier,
5359 typename, typebase): Likewise.
5360 (write_destructor_name, parse_number, lex_one_token,
5361 classify_name, classify_inner_name, c_parse): Add "struct
5362 parser_state" argument. Update function to use parser state.
5363 * c-lang.h: Forward declare "struct parser_state".
5364 (c_parse): Add "struct parser_state" argument.
5365 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5366 (yyparse): Redefine macro to ada_parse_internal.
5367 (pstate): New variable.
5368 (write_int, write_object_renaming, write_var_or_type,
5369 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5370 type_int, type_long, type_long_long, type_float, type_double,
5371 type_long_double, type_char, type_boolean, type_system_address):
5372 Add "struct parser_state" argument.
5373 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5374 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5375 var_or_type, aggregate, aggregate_component_list,
5376 positional_list, others, component_group,
5377 component_associations): Update calls to write_exp* and similar
5378 functions in order to use parser state.
5379 (ada_parse, write_var_from_sym, write_int,
5380 write_exp_op_with_string, write_object_renaming,
5381 find_primitive_type, write_selectors, write_ambiguous_var,
5382 write_var_or_type, write_name_assoc, type_int, type_long,
5383 type_long_long, type_float, type_double, type_long_double,
5384 type_char, type_boolean, type_system_address): Add "struct
5385 parser_state" argument. Adjust function to use parser state.
5386 * ada-lang.c (parse): Likewise.
5387 * ada-lang.h: Forward declare "struct parser_state".
5388 (ada_parse): Add "struct parser_state" argument.
5389 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5390 calls to both functions.
5391 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5392 parser state.
5393 (yyparse): Redefine macro to f_parse_internal.
5394 (pstate): New variable.
5395 (parse_number): Add "struct parser_state" argument.
5396 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5397 and similars in order to use parser state.
5398 (parse_number): Adjust code to use parser state.
5399 (yylex): Likewise.
5400 (f_parse): New function.
5401 * f-lang.h: Forward declare "struct parser_state".
5402 (f_parse): Add "struct parser_state" argument.
5403 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5404 parser state.
5405 (yyparse): Redefine macro for java_parse_internal.
5406 (pstate): New variable.
5407 (push_expression_name, push_expression_name, insert_exp): Add
5408 "struct parser_state" argument.
5409 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5410 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5411 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5412 PostIncrementExpression, PostDecrementExpression,
5413 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5414 UnaryExpressionNotPlusMinus, CastExpression,
5415 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5416 RelationalExpression, EqualityExpression, AndExpression,
5417 ExclusiveOrExpression, InclusiveOrExpression,
5418 ConditionalAndExpression, ConditionalOrExpression,
5419 ConditionalExpression, Assignment, LeftHandSide): Update
5420 calls to write_exp* and similars in order to use parser state.
5421 (parse_number): Ajust code to use parser state.
5422 (yylex): Likewise.
5423 (java_parse): New function.
5424 (push_variable): Add "struct parser_state" argument. Adjust
5425 code to user parser state.
5426 (push_fieldnames, push_qualified_expression_name,
5427 push_expression_name, insert_exp): Likewise.
5428 * jv-lang.h: Forward declare "struct parser_state".
5429 (java_parse): Add "struct parser_state" argument.
5430 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5431 parser state.
5432 (yyparse): Redefine macro to m2_parse_internal.
5433 (pstate): New variable.
5434 (type_exp, exp, fblock, variable, type): Update calls to
5435 write_exp* and similars to use parser state.
5436 (yylex): Likewise.
5437 (m2_parse): New function.
5438 * m2-lang.h: Forward declare "struct parser_state".
5439 (m2_parse): Add "struct parser_state" argument.
5440 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5441 * objc-lang.h: Forward declare "struct parser_state".
5442 (end_msglist): Add "struct parser_state" argument.
5443 * p-exp.y (parse_type): Rewrite macro to use parser state.
5444 (yyparse): Redefine macro to pascal_parse_internal.
5445 (pstate): New variable.
5446 (parse_number): Add "struct parser_state" argument.
5447 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5448 write_exp* and similars in order to use parser state.
5449 (parse_number, yylex): Adjust code to use parser state.
5450 (pascal_parse): New function.
5451 * p-lang.h: Forward declare "struct parser_state".
5452 (pascal_parse): Add "struct parser_state" argument.
5453 * go-exp.y (parse_type): Rewrite macro to use parser state.
5454 (yyparse): Redefine macro to go_parse_internal.
5455 (pstate): New variable.
5456 (parse_number): Add "struct parser_state" argument.
5457 (type_exp, exp1, exp, variable, type): Update calls to
5458 write_exp* and similars in order to use parser state.
5459 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5460 to use parser state.
5461 (go_parse): Likewise.
5462 * go-lang.h: Forward declare "struct parser_state".
5463 (go_parse): Add "struct parser_state" argument.
5464
342587c4
DE
54652014-03-27 Doug Evans <dje@google.com>
5466
5467 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5468
33e80786
DE
54692014-03-27 Doug Evans <dje@google.com>
5470
5471 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5472 Remove argument abbrev_section. All callers updated.
5473
1dbab08b
DE
54742014-03-27 Doug Evans <dje@google.com>
5475
5476 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5477 addr_base, ranges_base.
5478
318d3177
KS
54792014-03-26 Keith Seitz <keiths@redhat.com>
5480
5481 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5482 types, not VAR_DOMAIN.
5483
1e54db15
SL
54842014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5485
5486 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5487 "ra" registers.
5488 * features/nios2-linux.c: Regenerated.
5489 * features/nios2.c: Regenerated.
5490
d3839ede
PA
54912014-03-25 Pedro Alves <palves@redhat.com>
5492
5493 * cli/cli-script.c (script_from_file): Force the interpreter to
5494 sync mode.
5495
7588d2ec
PL
54962014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5497
5498 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5499 small stack allocation.
5500
a6290449
TG
55012014-03-24 Tristan Gingold <gingold@adacore.com>
5502
5503 * darwin-nat.c (exc_server): Remove unused prototype.
5504 (darwin_dump_message): Correctly display data on x86_64.
5505 (darwin_encode_reply): Fix style.
5506 Add comments and fix indentation.
5507
31ae9d24 55082014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5509
5510 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5511
6339bfc4
DE
55122014-03-22 Doug Evans <xdje42@gmail.com>
5513
5514 * infcmd.c: Whitespace fixes.
5515 (interrupt_command): Merge two function comments into one.
5516
0a07590b
DE
55172014-03-22 Doug Evans <xdje42@gmail.com>
5518
5519 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5520 All uses updated.
5521
b55fbac4
YQ
55222014-03-22 Yao Qi <yao@codesourcery.com>
5523
5524 * remote.c (target_read_live_memory): Remove.
5525 (memory_xfer_live_readonly_partial): Rename it to
5526 remote_xfer_live_readonly_partial. Remove argument 'object'.
5527 All callers updated. Call remote_read_bytes_1
5528 instead of target_read_live_memory.
5529 * tracepoint.c (set_traceframe_number): Remove.
5530 (make_cleanup_restore_traceframe_number): Likewise .
5531 * tracepoint.h (set_traceframe_number): Remove declaration.
5532 (make_cleanup_restore_traceframe_number): Likewise.
5533
9217e74e
YQ
55342014-03-22 Yao Qi <yao@codesourcery.com>
5535
5536 * remote.c (remote_read_bytes): Move code on reading from the
5537 remote stub to ...
5538 (remote_read_bytes_1): ... here. New function.
5539
8acf9577
YQ
55402014-03-22 Yao Qi <yao@codesourcery.com>
5541
5542 * ctf.c (ctf_xfer_partial): Check the return value of
5543 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5544 return TARGET_XFER_UNAVAILABLE.
5545 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5546 * target.c (target_read_live_memory): Move it to remote.c.
5547 (memory_xfer_live_readonly_partial): Likewise.
5548 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5549 * remote.c (target_read_live_memory): Moved from target.c.
5550 (memory_xfer_live_readonly_partial): Likewise.
5551 (remote_read_bytes): Factored out from
5552 memory_xfer_partial_1.
5553
feef67ab
DE
55542014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5555
5556 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5557 NULL pointer.
5558
b65dc60b
PA
55592014-03-21 Pedro Alves <palves@redhat.com>
5560
5561 * infrun.c (normal_stop): Extend comment.
5562
b4ab256d
HZ
55632014-03-21 Hui Zhu <hui@codesourcery.com>
5564 Pedro Alves <palves@redhat.com>
5565
5566 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5567 static buffer.
5568 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5569 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5570 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5571
deba7593
MR
55722014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
5573
5574 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5575 `z' formatted output modifier.
5576
1bff71c3
SDJ
55772014-03-20 Tom Tromey <tromey@redhat.com>
5578 Sergio Durigan Junior <sergiodj@redhat.com>
5579
5580 * probe.c (parse_probes): Turn assert into an ordinary error.
5581 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5582 exceptions when parsing probes. Rearrange the code for clarity.
5583
90e28950
TT
55842014-03-20 Tom Tromey <tromey@redhat.com>
5585
5586 PR gdb/14135
5587 * top.c (execute_command): Only dispatch events if the command
5588 started the target.
5589
beb460e8
PA
55902014-03-20 Tom Tromey <tromey@redhat.com>
5591
5592 PR cli/15718
5593 * infcall.c: Include event-top.h.
5594 (run_inferior_call): Call async_disable_stdin if needed.
5595
99619bea
PA
55962014-03-20 Pedro Alves <palves@redhat.com>
5597
5598 * infrun.c (prepare_to_proceed): Delete.
5599 (thread_still_needs_step_over): New function.
5600 (find_thread_needs_step_over): New function.
5601 (proceed): If the current thread needs a step-over, set its
5602 steping_over_breakpoint flag. Adjust to use
5603 find_thread_needs_step_over instead of prepare_to_proceed.
5604 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5605 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5606 breakpoint.
5607 (switch_back_to_stepped_thread): Step over breakpoints of all
5608 threads not the stepping thread, before switching back to the
5609 stepping thread.
5610
2adfaa28
PA
56112014-03-20 Pedro Alves <palves@redhat.com>
5612
5613 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5614 extern.
5615 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5616 * infrun.c (saved_singlestep_ptid)
5617 (stepping_past_singlestep_breakpoint): Delete.
5618 (resume): Remove stepping_past_singlestep_breakpoint handling.
5619 (proceed): Store the prev_pc of the stepping thread too.
5620 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
5621 singlestep_pc.
5622 (enum infwait_states): Delete infwait_thread_hop_state.
5623 (struct execution_control_state) <hit_singlestep_breakpoint>: New
5624 field.
5625 (handle_inferior_event): Adjust.
5626 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5627 handling and the thread-hop code. Before removing single-step
5628 breakpoints, check whether the thread hit a single-step breakpoint
5629 of another thread. If it did, the trap is not a random signal.
5630 (switch_back_to_stepped_thread): If the event thread hit a
5631 single-step breakpoint, unblock it before switching to the
5632 stepping thread. Handle the case of the stepped thread having
5633 advanced already.
5634 (keep_going): Handle the case of the current thread moving past a
5635 single-step breakpoint.
5636
31e77af2
PA
56372014-03-20 Pedro Alves <palves@redhat.com>
5638
5639 PR breakpoints/7143
5640 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5641 are being stepped over.
5642 (breakpoint_address_match): Make extern.
5643 * breakpoint.h (breakpoint_address_match): New declaration.
5644 * inferior.h (stepping_past_instruction_at): New declaration.
5645 * infrun.c (struct step_over_info): New type.
5646 (step_over_info): New global.
5647 (set_step_over_info, clear_step_over_info)
5648 (stepping_past_instruction_at): New functions.
5649 (handle_inferior_event): Clear the step-over info when
5650 trap_expected is cleared.
5651 (resume): Remove now stale comment.
5652 (clear_proceed_status): Clear step-over info.
5653 (proceed): Adjust step-over handling to set or clear the step-over
5654 info instead of removing all breakpoints.
5655 (handle_signal_stop): When setting up a thread-hop, don't remove
5656 breakpoints here.
5657 (stop_stepping): Clear step-over info.
5658 (keep_going): Adjust step-over handling to set or clear step-over
5659 info and then always inserting breakpoints, instead of removing
5660 all breakpoints when stepping over one.
5661
b9f437de
PA
56622014-03-20 Pedro Alves <palves@redhat.com>
5663
5664 * infrun.c (previous_inferior_ptid): Adjust comment.
5665 (deferred_step_ptid): Delete.
5666 (infrun_thread_ptid_changed, prepare_to_proceed)
5667 (init_wait_for_inferior): Adjust.
5668 (handle_signal_stop): Delete deferred_step_ptid handling.
5669
06c868a8
JK
56702014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5671
5672 PR gdb/15358
5673 * defs.h (sync_quit_force_run): New declaration.
5674 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5675 * event-top.c (async_sigterm_handler): New declaration.
5676 (async_sigterm_token): New variable.
5677 (async_init_signals): Create also async_sigterm_token.
5678 (async_sigterm_handler): New function.
5679 (sync_quit_force_run): New variable.
5680 (handle_sigterm): Replace quit_force call by other calls.
5681 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5682
dea80df0
MR
56832014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
5684
5685 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5686 offset into SPE pseudo registers.
5687
0c7e1a46
PA
56882014-03-18 Pedro Alves <palves@redhat.com>
5689
5690 PR gdb/13860
5691 * inferior.h (print_stop_event): Declare.
5692 * infrun.c (print_stop_event): New, factored out from ...
5693 (normal_stop): ... this.
5694 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5695 of bpstat_print/print_stack_frame.
5696
9c1fcd01
TT
56972014-03-17 Tom Tromey <tromey@redhat.com>
5698
5699 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5700
11aa919a
PMR
57012014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
5702
5703 * ada-lang.c (decode_constrained_packed_array): Perform a
5704 minimal coercion for reference with coerce_ref instead of
5705 ada_coerce_ref.
5706
d4ccb5e0
TG
57072014-03-17 Tristan Gingold <gingold@adacore.com>
5708
5709 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5710 (darwin_solib_create_inferior_hook): Emit a warning if version
5711 is unhandled.
5712
49840f2a
UW
57132014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
5714
5715 * python/py-value.c (get_field_flag): Cast flag_name argument to
5716 PyObject_GetAttrString to support Python 2.4.
5717
ed4123e5
JK
57182014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5719
5720 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5721 (Global Maintainers): Remove Jan Kratochvil.
5722
d6b64346
PA
57232014-03-14 Pedro Alves <palves@redhat.com>
5724
5725 * inferior.h (terminal_ours_for_output): Rename to ...
5726 (child_terminal_ours_for_output): ... this.
5727 (terminal_save_ours): Rename to ...
5728 (child_terminal_save_ours): ... this.
5729 (terminal_ours): Rename to ...
5730 (child_terminal_ours): ... this.
5731 (terminal_inferior): Rename to ...
5732 (child_terminal_inferior): ... this.
5733 (terminal_init_inferior): Rename to ...
5734 (child_terminal_init_inferior): ... this.
5735 (terminal_init_inferior_with_pgrp): Rename to ...
5736 (child_terminal_init_inferior_with_pgrp): ... this.
5737 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5738 (child_terminal_init_with_pgrp): ... this.
5739 (terminal_save_ours): Rename to ...
5740 (child_terminal_save_ours): ... this.
5741 (terminal_init_inferior): Rename to ...
5742 (child_terminal_init): ... this. Adjust.
5743 (terminal_inferior): Rename to ...
5744 (child_terminal_inferior): ... this.
5745 (terminal_ours_for_output): Rename to ...
5746 (child_terminal_ours_for_output): ... this. Adjust.
5747 (terminal_ours): Rename to ...
5748 (child_terminal_ours): ... this.
5749 (terminal_ours_1): Rename to ...
5750 (child_terminal_ours_1): ... this. Adjust.
5751 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5752 * windows-nat.c (do_initial_windows_stuff): Adjust.
5753 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5754 (gnu_terminal_init): ... this. Adjust.
5755 (gnu_target): Adjust.
5756 * inf-child.c (inf_child_target): Adjust.
5757
5a1e8c7a
DE
57582014-03-13 Doug Evans <xdje42@gmail.com>
5759
5760 PR guile/16612
5761 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5762 new eq?-hashtab.
5763
350e1a76
DE
57642014-03-13 Doug Evans <xdje42@gmail.com>
5765
5766 * value.c (record_latest_value): Call release_value_or_incref
5767 instead of release_value.
5768
a69900ae
PA
57692014-03-13 Pedro Alves <palves@redhat.com>
5770
5771 * procfs.c (procfs_target): Don't override to_shortname,
5772 to_longname or to_doc.
5773
5db9f0bd
PA
57742014-03-13 Pedro Alves <palves@redhat.com>
5775
5776 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5777 Unix in user visible strings.
5778
5e3a2c38
SS
57792014-03-12 Stan Shebs <stan@codesourcery.com>
5780
5781 * gdbtypes.h: Annotate comments for Doxygen, add a page
5782 block comment with some general info.
5783
8bc2fe48
PA
57842014-03-12 Pedro Alves <palves@redhat.com>
5785
5786 * infcmd.c (prepare_execution_command): New function, factored out
5787 from several execution commands.
5788 (run_command_1, continue_command, step_1, jump_command)
5789 (signal_command, until_command, advance_command, finish_command)
5790 (attach_command): Use prepare_execution_command.
5791
638c5f49
OJ
57922014-03-12 Omair Javaid <omair.javaid@linaro.org>
5793
5794 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5795 (MAX_BPTS): Define.
5796 (MAX_WPTS): Define.
5797 (struct arm_linux_thread_points): Removed.
5798 (struct arm_linux_process_info): New.
5799 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5800 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5801 (arm_linux_find_breakpoints_by_tid): Removed.
5802 (struct arch_lwp_info): New.
5803 (arm_linux_find_process_pid): New functions.
5804 (arm_linux_add_process): New functions.
5805 (arm_linux_process_info_get): New functions.
5806 (arm_linux_forget_process): New function.
5807 (arm_linux_get_debug_reg_state): New function.
5808 (struct update_registers_data): New.
5809 (update_registers_callback): New function.
5810 (arm_linux_insert_hw_breakpoint1): Updated.
5811 (arm_linux_remove_hw_breakpoint1): Updated.
5812 (arm_linux_insert_hw_breakpoint): Updated.
5813 (arm_linux_remove_hw_breakpoint): Updated.
5814 (arm_linux_insert_watchpoint): Updated.
5815 (arm_linux_remove_watchpoint): Updated.
5816 (arm_linux_new_thread): Updated.
5817 (arm_linux_prepare_to_resume): New function.
5818 (arm_linux_new_fork): New function.
5819 (_initialize_arm_linux_nat): Updated.
5820
6d03af93
PA
58212014-03-12 Pedro Alves <palves@redhat.com>
5822
5823 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5824
b3ccfe11
TT
58252014-03-12 Tom Tromey <tromey@redhat.com>
5826
5827 * inf-child.c (return_zero): New function.
5828 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5829 * aix-thread.c (aix_thread_inferior_created): New function.
5830 (aix_thread_attach): Remove.
5831 (init_aix_thread_ops): Don't set to_attach.
5832 (_initialize_aix_thread): Register inferior_created observer.
5833 * corelow.c (init_core_ops): Don't set to_attach or
5834 to_create_inferior.
5835 * exec.c (init_exec_ops): Don't set to_attach or
5836 to_create_inferior.
5837 * infcmd.c (run_command_1): Use find_run_target. Make direct
5838 target calls.
5839 (attach_command): Use find_attach_target. Make direct target
5840 calls.
5841 * record-btrace.c (init_record_btrace_ops): Don't set
5842 to_create_inferior.
5843 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5844 Remove.
5845 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5846 set to_create_inferior.
5847 * target.c (complete_target_initialization): Add assertion.
5848 (target_create_inferior): Remove.
5849 (find_default_attach, find_default_create_inferior): Remove.
5850 (find_attach_target, find_run_target): New functions.
5851 (find_default_is_async_p, find_default_can_async_p)
5852 (target_supports_non_stop, target_attach): Remove.
5853 (init_dummy_target): Don't set to_create_inferior or
5854 to_supports_non_stop.
5855 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5856 TARGET_DEFAULT_FUNC.
5857 <to_create_inferior>: Add comment.
5858 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5859 TARGET_DEFAULT_RETURN.
5860 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5861 (find_attach_target, find_run_target): Declare.
5862 (target_create_inferior): Remove.
5863 (target_has_execution_1): Update comment.
5864 (target_supports_non_stop): Remove.
5865 * target-delegates.c: Rebuild.
5866
91f83b02
PA
58672014-03-12 Pedro Alves <palves@redhat.com>
5868
5869 * inf-child.h: Update comment to not mention Unix.
5870
f1aea813
PA
58712014-03-12 Pedro Alves <palves@redhat.com>
5872
5873 * inf-child.c: Update top comment to not mention Unix. Add
5874 generic comment describing how this target is meant to be used.
5875 (inf_child_post_attach, inf_child_post_startup_inferior)
5876 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5877 Unix in comment.
5878
ee8e9165
PA
58792014-03-12 Pedro Alves <palves@redhat.com>
5880
5881 * nto-procfs.c: Include inf-child.h.
5882 (procfs_ops): Delete global.
5883 (procfs_can_run): Delete method.
5884 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5885 target pointer instead of referencing procfs_ops.
5886 (procfs_prepare_to_store): Delete.
5887 (init_procfs_ops): Delete function.
5888 (procfs_target): New function, based on init_procfs_ops, but
5889 inherit inf_child_target.
5890 (_initialize_procfs): Use procfs_target.
5891
51a9c8c5
PA
58922014-03-12 Pedro Alves <palves@redhat.com>
5893
5894 * windows-nat.c: Include inf-child.h.
5895 (windows_ops): Delete global.
5896 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5897 methods.
5898 (init_windows_ops): Delete function.
5899 (windows_target): New function, based on init_windows_ops, but
5900 inherit inf_child_target.
5901 (_initialize_windows_nat): Use windows_target. Install x86
5902 specific target methods here.
5903
c1966e26
DE
59042014-03-10 Doug Evans <xdje42@gmail.com>
5905
5906 * guile/guile.c (call_initialize_gdb_module): New function.
5907 (initialize_guile): Replace call to scm_init_guile with call to
5908 scm_with_guile.
5909
023db19c
JB
59102014-03-10 Joel Brobecker <brobecker@adacore.com>
5911
5912 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5913 in call to TYPE_CODE macro.
5914
5ec18f2b
JG
59152014-03-10 Jerome Guitton <guitton@adacore.com>
5916
8668be63
JB
5917 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5918 Resolve tagged types to full view.
5ec18f2b 5919
7d03f2eb
HZ
59202014-03-10 Hui Zhu <hui@codesourcery.com>
5921
5922 * target.h (target_insert_breakpoint): Remove "hardware" from its
5923 comments.
5924
c5164cbc
DE
59252014-03-07 Doug Evans <dje@google.com>
5926
5927 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5928
c4a3fee2
DE
59292014-03-07 Doug Evans <dje@google.com>
5930
5931 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5932 Remove unused local comp_dir_attr. Assert exactly one of
5933 stub_comp_unit_die, stub_comp_dir is non-NULL.
5934
3156469c
JB
59352014-03-07 Joel Brobecker <brobecker@adacore.com>
5936
5937 * target.h (complete_target_initialization, add_target):
5938 Add comment.
5939
c1a7b7c6
PA
59402014-03-07 Pedro Alves <palves@redhat.com>
5941
5942 * go32-nat.c: Include inf-child.h.
5943 (go32_ops): Delete global.
5944 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5945 Delete methods.
5946 (go32_create_inferior): Push the passed in target pointer instead
5947 of referencing go32_ops.
5948 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5949 (go32_target): New function, based on init_go32_ops, but inherit
5950 inf_child_target.
5951 (_initialize_go32_nat): Use go32_target. Move parts of
5952 init_go32_ops here.
5953
d3c1a85f
JB
59542014-03-06 Joel Brobecker <brobecker@adacore.com>
5955
5956 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5957 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5958 SYMBOL_VALUE_ADDRESS.
5959 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5960
5fa1d40e
YQ
59612014-03-06 Yao Qi <yao@codesourcery.com>
5962
5963 * breakpoint.c (get_tracepoint_by_number): Remove argument
5964 optional_p. All callers updated. Adjust comments. Update
5965 output message.
5966 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5967
0c13193f
YQ
59682014-03-06 Yao Qi <yao@codesourcery.com>
5969
5970 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5971 early if get_number returns zero. Use 'p' instead of 'args'.
5972
2217da06
YQ
59732014-03-06 Yao Qi <yao@codesourcery.com>
5974
5975 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5976 message.
5977
cc3da688
YQ
59782014-03-06 Yao Qi <yao@codesourcery.com>
5979
5980 PR breakpoints/16508
5981 * tracepoint.c (check_trace_running): New function.
5982 (trace_find_command): Move code to check_trace_running and
5983 call check_trace_running.
5984 (trace_find_pc_command): Likewise.
5985 (trace_find_tracepoint_command): Likewise.
5986 (trace_find_line_command): Likewise.
5987 (trace_find_range_command): Likewise.
5988 * tracepoint.h (check_trace_running): Likewise.
5989 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5990
6a5f844b
YQ
59912014-03-06 Yao Qi <yao@codesourcery.com>
5992
5993 * target.h (struct target_ops) <to_traceframe_info>: Use
5994 TARGET_DEFAULT_NORETURN (tcomplain ()).
5995 * target-delegates.c: Regenerated.
5996
0f26cec1
PA
59972014-03-05 Pedro Alves <palves@redhat.com>
5998
5999 PR gdb/16575
6000 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6001 void. Update comment.
6002 (dcache_xfer_memory): Delete.
6003 (dcache_read_memory_partial): New, based on the read bits of
6004 dcache_xfer_memory.
6005 (dcache_update): Add status parameter. Use ULONGEST for len, and
6006 adjust. Discard cache lines if the reason for the update was
6007 error.
6008 * dcache.h (dcache_xfer_memory): Delete declaration.
6009 (dcache_read_memory_partial): New declaration.
6010 (dcache_update): Update prototype.
6011 * target.c (raw_memory_xfer_partial): Update the dcache here.
6012 (memory_xfer_partial_1): Don't handle dcache writes here.
6013
b2b255bd
MF
60142014-03-05 Mike Frysinger <vapier@gentoo.org>
6015
6016 * remote-sim.c (gdbsim_load): Add const to prog.
6017
5d9cf8a4
TT
60182014-03-03 Tom Tromey <tromey@redhat.com>
6019
6020 * elfread.c (probe_key): Change to bfd_data.
6021 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6022 now per-BFD, not per-objfile.
6023 * stap-probe.c (stap_probe_destroy): Update comment.
6024 (handle_stap_probe): Allocate on the per-BFD obstack.
6025
729662a5
TT
60262014-03-03 Tom Tromey <tromey@redhat.com>
6027
6028 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6029 * breakpoint.c (create_longjmp_master_breakpoint): Use
6030 get_probe_address.
6031 (add_location_to_breakpoint, bkpt_probe_insert_location)
6032 (bkpt_probe_remove_location): Update.
6033 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6034 * elfread.c (elf_symfile_relocate_probe): Remove.
6035 (elf_probe_fns): Update.
6036 (insert_exception_resume_breakpoint): Change type of "probe"
6037 parameter to bound_probe.
6038 (check_exception_resume): Update.
6039 * objfiles.c (objfile_relocate1): Don't relocate probes.
6040 * probe.c (bound_probe_s): New typedef.
6041 (parse_probes): Use get_probe_address. Set sal's objfile.
6042 (find_probe_by_pc): Return a bound_probe.
6043 (collect_probes): Return a VEC(bound_probe_s).
6044 (compare_probes): Update.
6045 (gen_ui_out_table_header_info): Change type of "probes"
6046 parameter. Update.
6047 (info_probes_for_ops): Update.
6048 (get_probe_address): New function.
6049 (probe_safe_evaluate_at_pc): Update.
6050 * probe.h (struct probe_ops) <get_probe_address>: New field.
6051 <set_semaphore, clear_semaphore>: Add objfile parameter.
6052 (struct probe) <objfile>: Remove field.
6053 <arch>: New field.
6054 <address>: Update comment.
6055 (struct bound_probe): New.
6056 (find_probe_by_pc): Return a bound_probe.
6057 (get_probe_address): Declare.
6058 * solib-svr4.c (struct probe_and_action) <address>: New field.
6059 (hash_probe_and_action, equal_probe_and_action): Update.
6060 (register_solib_event_probe): Add address parameter.
6061 (solib_event_probe_at): Update.
6062 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6063 get_probe_address.
6064 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6065 (stap_get_probe_address): New function.
6066 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6067 (compile_probe_arg): Update.
6068 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6069 address.
6070 (handle_stap_probe): Don't relocate the probe.
6071 (stap_relocate): Remove.
6072 (stap_gen_info_probes_table_values): Update.
6073 (stap_probe_ops): Remove stap_relocate.
6074 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6075 (debug_sym_probe_fns): Update.
6076 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6077 * symtab.c (init_sal): Use memset.
6078 * symtab.h (struct symtab_and_line) <objfile>: New field.
6079 * tracepoint.c (start_tracing, stop_tracing): Update.
6080
ff887920
TT
60812014-03-03 Tom Tromey <tromey@redhat.com>
6082
6083 * probe.h (parse_probes, find_probe_by_pc)
6084 (find_probes_in_objfile): Fix comments.
6085
f0407826
DE
60862014-03-02 Doug Evans <xdje42@gmail.com>
6087
6088 * infrun.c (handle_signal_stop): Replace test for
6089 TARGET_WAITKIND_STOPPED with an assert.
6090
35e6a711
DE
60912014-03-02 Doug Evans <xdje42@gmail.com>
6092
6093 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6094
667f9d0b
DE
60952014-03-02 Doug Evans <xdje42@gmail.com>
6096
6097 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6098
dc92ace0
MK
60992014-03-01 Mark Kettenis <kettenis@gnu.org>
6100
6101 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6102
a900370f
MK
61032014-03-01 Mark Kettenis <kettenis@gnu.org>
6104
6105 * i386obsd-nat.c: Include "obsd-nat.h".
6106 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6107 add_target.
6108 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6109
b72a7981
MK
61102014-03-01 Mark Kettenis <kettenis@gnu.org>
6111
6112 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6113
96c70aba
MK
61142014-03-01 Mark Kettenis <kettenis@gnu.org>
6115
6116 * mips64obsd-nat.c: Include "obsd-nath".
6117 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6118 add_target
6119 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6120
874a80af
MK
61212014-03-01 Mark Kettenis <kettenis@gnu.org>
6122
8fd408f1
MK
6123 * amd64obsd-nat.c: Include "obsd-nat,h.
6124 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6125 add_target.
874a80af
MK
6126 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6127
9cf95373
SC
61282014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6129
6130 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6131 (find_overload_match): Update call to find_oload_champ.
6132 (find_oload_champ_namespace_loop): Likewise
6133
863e4da4
MK
61342014-02-28 Mark Kettenis <kettenis@gnu.org>
6135
025cac40
MK
6136 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6137
1ed586ce
MK
6138 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6139 * config/sparc/obsd64.mh: New file.
6140 * sparc64obsd-nat.c: New file.
6141
863e4da4
MK
6142 * obsd-nat.h: New file.
6143 * obsd-nat.c: New file.
6144 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6145 (ALLDEPFILES): Add obsd-nat.c.
6146
89de4da4
TT
61472014-02-28 Tom Tromey <tromey@redhat.com>
6148
6149 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6150 * cli-out.h (cli_ui_out_impl): Now const.
6151 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6152 * ui-out.c (struct ui_out) <impl>: Now const.
6153 (default_ui_out_impl): Now const.
6154 (ui_out_new): Make 'impl' parameter const.
6155 * ui-out.h (ui_out_new): Update.
6156
c725e7b6
MK
61572014-02-27 Mark Kettenis <kettenis@gnu.org>
6158
6159 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6160
670b46b3
MK
61612014-02-27 Mark Kettenis <kettenis@gnu.org>
6162
6163 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6164
c91550fc
JK
61652014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6166
6167 Additional PR 8882 fix.
6168 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6169
2fa0369e
PA
61702014-02-27 Pedro Alves <palves@redhat.com>
6171
6172 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6173 isn't set.
6174
d632a097
PA
61752014-02-27 Pedro Alves <palves@redhat.com>
6176
6177 PR 12702
6178 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6179 * nat/linux-waitpid.c: Include string.h.
6180 (status_to_str): Moved here and made extern.
6181 * nat/linux-waitpid.h (status_to_str): New declaration.
6182
2ebd5a35
HZ
61832014-02-27 Hui Zhu <hui@codesourcery.com>
6184
6185 PR 12702
6186 * infrun.c (ptid_match): Move ...
6187 * common/ptid.c (ptid_match): ... here.
6188 * inferior.h (ptid_match): Move ...
6189 * common/ptid.h (ptid_match): ... here.
6190
3cdd631f
MK
61912014-02-27 Mark Kettenis <kettenis@gnu.org>
6192
6193 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6194 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6195 gdb_target_obs.
6196
bee30a64
MK
61972014-02-27 Mark Kettenis <kettenis@gnu.org>
6198
6199 * obsd-tdep.c (obsd_auxv_parse): New function.
6200 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6201
6202 * gdbarch.sh (auxv_parse): New.
6203 * gdbarch.h: Regenerated.
6204 * gdbarch.c: Regenerated.
6205 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6206
7a5a839f
LC
62072014-02-26 Ludovic Courtès <ludo@gnu.org>
6208
6209 * guile/scm-value.c (gdbscm_history_append_x): New function.
6210 (value_functions): Add it.
6211
31aa7e4e
JB
62122014-02-27 Joel Brobecker <brobecker@adacore.com>
6213
6214 * dwarf2read.c (attr_value_as_address): New function.
6215 (dwarf2_find_base_address, read_call_site_scope): Use
6216 attr_value_as_address in place of DW_ADDR.
6217 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6218 the low and high addresses. Slight rework of the handling
6219 of the high pc being a constant form, and limit it to
6220 DWARF verson 4 or higher.
6221 (dwarf2_record_block_ranges): Likewise.
6222 (read_partial_die): Likewise.
6223 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6224
9b333ba3
TT
62252014-02-26 Tom Tromey <tromey@redhat.com>
6226
6227 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6228
5f6cac40
TT
62292014-02-26 Tom Tromey <tromey@redhat.com>
6230
6231 * elfread.c (elf_read_minimal_symbols): Return early if
6232 minimal symbols have already been read. Add "ei" parameter.
6233 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6234 * minsyms.c (prim_record_minimal_symbol_full): Update.
6235 * objfiles.h (struct objstats) <n_minsyms>: Move...
6236 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6237 * symmisc.c (print_objfile_statistics): Update.
6238
2750ef27
TT
62392014-02-26 Tom Tromey <tromey@redhat.com>
6240
6241 * elfread.c (elf_read_minimal_symbols): New function, from
6242 elf_symfile_read.
6243 (elf_symfile_read): Call it.
6244
34643a32
TT
62452014-02-26 Tom Tromey <tromey@redhat.com>
6246
6247 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6248 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6249 (lookup_minimal_symbol_solib_trampoline)
6250 (lookup_minimal_symbol_by_pc_section_1)
6251 (lookup_minimal_symbol_and_objfile): Update.
6252 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6253 Don't allocate a minimal symbol if minsyms have already been read.
6254 (build_minimal_symbol_hash_tables): Update.
6255 (install_minimal_symbols): Do nothing if minsyms already read.
6256 Use the per-BFD obstack.
6257 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6258 * objfiles.c (allocate_objfile): Call
6259 terminate_minimal_symbol_table later.
6260 (have_minimal_symbols): Update.
6261 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6262 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6263 Move from struct objfile.
6264 <minsyms_read>: New field.
6265 (struct objfile) <msymbols, minimal_symbol_count,
6266 msymbol_hash, msymbol_demangled_hash>: Move.
6267 (ALL_OBJFILE_MSYMBOLS): Update.
6268 * symfile.c (read_symbols): Set minsyms_read.
6269 (reread_symbols): Update.
6270 * symmisc.c (dump_objfile, dump_msymbols): Update.
6271
2273f0ac
TT
62722014-02-26 Tom Tromey <tromey@redhat.com>
6273
6274 * minsyms.c (msymbols_sort): Remove.
6275 * minsyms.h (msymbols_sort): Remove.
6276 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6277 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6278 * elfread.c (elf_symtab_read): Don't add section offsets.
6279 * xcoffread.c (record_minimal_symbol): Don't add section offset
6280 to minimal symbol address.
6281 * somread.c (text_offset, data_offset): Remove.
6282 (som_symtab_read): Don't add section offsets to minimal symbol
6283 addresses.
6284 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6285 Don't add section offsets to minimal symbols.
6286 * coffread.c (coff_symtab_read): Don't add section offsets
6287 to minimal symbol addresses.
6288 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6289 to minimal symbol addresses.
6290 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6291 section offset to minimal symbol addresses.
6292 * mdebugread.c (parse_partial_symbols): Don't add section
6293 offset to minimal symbol addresses.
6294 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6295 offset to minimal symbol addresses.
6296
77e371c0
TT
62972014-02-26 Tom Tromey <tromey@redhat.com>
6298
6299 * ada-lang.c (ada_main_name): Update.
6300 (ada_add_standard_exceptions): Update.
6301 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6302 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6303 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6304 * auxv.c (ld_so_xfer_auxv): Update.
6305 * avr-tdep.c (avr_scan_prologue): Update.
6306 * ax-gdb.c (gen_var_ref): Update.
6307 * blockframe.c (get_pc_function_start)
6308 (find_pc_partial_function_gnu_ifunc): Update.
6309 * breakpoint.c (create_overlay_event_breakpoint)
6310 (create_longjmp_master_breakpoint)
6311 (create_std_terminate_master_breakpoint)
6312 (create_exception_master_breakpoint): Update.
6313 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6314 * c-valprint.c (c_val_print): Update.
6315 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6316 * common/agent.c (agent_look_up_symbols): Update.
6317 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6318 * dwarf2loc.c (call_site_to_target_addr): Update.
6319 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6320 * elfread.c (elf_gnu_ifunc_record_cache)
6321 (elf_gnu_ifunc_resolve_by_got): Update.
6322 * findvar.c (default_read_var_value): Update.
6323 * frame.c (inside_main_func): Update.
6324 * frv-tdep.c (frv_frame_this_id): Update.
6325 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6326 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6327 Update.
6328 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6329 (hppa_hpux_find_dummy_bpaddr): Update.
6330 * hppa-tdep.c (hppa_symbol_address): Update.
6331 * infcmd.c (until_next_command): Update.
6332 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6333 Update.
6334 * linespec.c (minsym_found, add_minsym): Update.
6335 * linux-nat.c (get_signo): Update.
6336 * linux-thread-db.c (inferior_has_bug): Update.
6337 * m32c-tdep.c (m32c_return_value)
6338 (m32c_m16c_address_to_pointer): Update.
6339 * m32r-tdep.c (m32r_frame_this_id): Update.
6340 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6341 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6342 * maint.c (maintenance_translate_address): Update.
6343 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6344 (frob_address): New function.
6345 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6346 frob_address. Rename parameter to "pc_in".
6347 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6348 addresses.
6349 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6350 Update.
6351 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6352 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6353 * objc-lang.c (find_objc_msgsend): Update.
6354 * objfiles.c (objfile_relocate1): Update.
6355 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6356 * p-valprint.c (pascal_val_print): Update.
6357 * parse.c (write_exp_msymbol): Update.
6358 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6359 (ppc_elfv2_skip_entrypoint): Update.
6360 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6361 * printcmd.c (build_address_symbolic, msym_info)
6362 (address_info): Update.
6363 * proc-service.c (ps_pglobal_lookup): Update.
6364 * psymtab.c (find_pc_sect_psymtab_closer)
6365 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6366 Change msymbol parameter to bound_minimal_symbol.
6367 * ravenscar-thread.c (get_running_thread_id): Update.
6368 * remote.c (remote_check_symbols): Update.
6369 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6370 address.
6371 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6372 * solib-dsbt.c (lm_base): Update.
6373 * solib-frv.c (lm_base, main_got): Update.
6374 * solib-irix.c (locate_base): Update.
6375 * solib-som.c (som_solib_create_inferior_hook)
6376 (link_map_start): Update.
6377 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6378 * solib-svr4.c (elf_locate_base, enable_break): Update.
6379 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6380 (flush_ea_cache): Update.
6381 * stabsread.c (define_symbol, scan_file_globals): Update.
6382 * stack.c (find_frame_funname): Update.
6383 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6384 (debug_qf_find_pc_sect_symtab): Update.
6385 * symfile.c (simple_read_overlay_table)
6386 (simple_overlay_update): Update.
6387 * symfile.h (struct quick_symbol_functions)
6388 <find_pc_sect_symtab>: Change type of msymbol to
6389 bound_minimal_symbol.
6390 * symmisc.c (dump_msymbols): Update.
6391 * symtab.c (find_pc_sect_symtab_via_partial)
6392 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6393 (search_symbols, print_msymbol_info): Update.
6394 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6395 (MSYMBOL_VALUE_ADDRESS): Redefine.
6396 (BMSYMBOL_VALUE_ADDRESS): New macro.
6397 * tracepoint.c (scope_info): Update.
6398 * tui/tui-disasm.c (tui_find_disassembly_address)
6399 (tui_get_begin_asm_address): Update.
6400 * valops.c (find_function_in_inferior): Update.
6401 * value.c (value_static_field, value_fn_field): Update.
6402
3b7344d5
TT
64032014-02-26 Tom Tromey <tromey@redhat.com>
6404
6405 * ada-lang.c (ada_update_initial_language): Update.
6406 (ada_main_name, ada_has_this_exception_support): Update.
6407 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6408 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6409 * arm-tdep.c (arm_skip_stub): Update.
6410 * auxv.c (ld_so_xfer_auxv): Update.
6411 * avr-tdep.c (avr_scan_prologue): Update.
6412 * ax-gdb.c (gen_var_ref): Update.
6413 * breakpoint.c (struct breakpoint_objfile_data)
6414 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6415 type to bound_minimal_symbol.
6416 (create_overlay_event_breakpoint)
6417 (create_longjmp_master_breakpoint)
6418 (create_std_terminate_master_breakpoint)
6419 (create_exception_master_breakpoint): Update.
6420 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6421 * c-exp.y (classify_name): Update.
6422 * coffread.c (coff_symfile_read): Update.
6423 * common/agent.c (agent_look_up_symbols): Update.
6424 * d-lang.c (d_main_name): Update.
6425 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6426 * dec-thread.c (enable_dec_thread): Update.
6427 * dwarf2loc.c (call_site_to_target_addr): Update.
6428 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6429 * eval.c (evaluate_subexp_standard): Update.
6430 * findvar.c (struct minsym_lookup_data) <result>: Change type
6431 to bound_minimal_symbol.
6432 <objfile>: Remove.
6433 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6434 * frame.c (inside_main_func): Update.
6435 * frv-tdep.c (frv_frame_this_id): Update.
6436 * gcore.c (call_target_sbrk): Update.
6437 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6438 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6439 Update.
6440 * go-lang.c (go_main_name): Update.
6441 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6442 (hppa_hpux_find_import_stub_for_addr): Update.
6443 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6444 Update. Change return type.
6445 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6446 type.
6447 * jit.c (jit_breakpoint_re_set_internal): Update.
6448 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6449 Update.
6450 * linux-nat.c (get_signo): Update.
6451 * linux-thread-db.c (inferior_has_bug): Update
6452 * m32c-tdep.c (m32c_return_value)
6453 (m32c_m16c_address_to_pointer): Update.
6454 * m32r-tdep.c (m32r_frame_this_id): Update.
6455 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6456 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6457 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6458 lookup_minimal_symbol. Change return type.
6459 (lookup_minimal_symbol): Remove.
6460 (lookup_bound_minimal_symbol): Update.
6461 (lookup_minimal_symbol_text): Change return type.
6462 (lookup_minimal_symbol_solib_trampoline): Change return type.
6463 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6464 (lookup_minimal_symbol_solib_trampoline): Change return type.
6465 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6466 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6467 (value_nsstring, find_imps): Update.
6468 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6469 * p-lang.c (pascal_main_name): Update.
6470 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6471 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6472 * proc-service.c (ps_pglobal_lookup): Update.
6473 * ravenscar-thread.c (get_running_thread_msymbol): Change
6474 return type.
6475 (has_ravenscar_runtime, get_running_thread_id): Update.
6476 * remote.c (remote_check_symbols): Update.
6477 * sol-thread.c (ps_pglobal_lookup): Update.
6478 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6479 * solib-dsbt.c (lm_base): Update.
6480 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6481 Update.
6482 * solib-irix.c (locate_base): Update.
6483 * solib-som.c (som_solib_create_inferior_hook)
6484 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6485 Update.
6486 * solib-spu.c (spu_enable_break): Update.
6487 * solib-svr4.c (elf_locate_base, enable_break): Update.
6488 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6489 (flush_ea_cache): Update.
6490 * stabsread.c (define_symbol): Update.
6491 * symfile.c (simple_read_overlay_table): Update.
6492 * symtab.c (find_pc_sect_line): Update.
6493 * tracepoint.c (scope_info): Update.
6494 * tui-disasm.c (tui_get_begin_asm_address): Update.
6495 * value.c (value_static_field): Update.
6496
40c1a007
TT
64972014-02-26 Tom Tromey <tromey@redhat.com>
6498
6499 * minsyms.c (prim_record_minimal_symbol_full): Use
6500 SET_MSYMBOL_VALUE_ADDRESS.
6501 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6502 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6503 SET_MSYMBOL_VALUE_ADDRESS.
6504 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6505 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6506
efd66ac6
TT
65072014-02-26 Tom Tromey <tromey@redhat.com>
6508
6509 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6510 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6511 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6512 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6513 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6514 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6515 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6516 * ada-lang.c (ada_main_name): Update.
6517 (ada_lookup_simple_minsym): Update.
6518 (ada_make_symbol_completion_list): Update.
6519 (ada_add_standard_exceptions): Update.
6520 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6521 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6522 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6523 * arm-tdep.c (skip_prologue_function): Update.
6524 (arm_skip_stack_protector, arm_skip_stub): Update.
6525 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6526 (arm_wince_skip_main_prologue): Update.
6527 * auxv.c (ld_so_xfer_auxv): Update.
6528 * avr-tdep.c (avr_scan_prologue): Update.
6529 * ax-gdb.c (gen_var_ref): Update.
6530 * block.c (call_site_for_pc): Update.
6531 * blockframe.c (get_pc_function_start): Update.
6532 (find_pc_partial_function_gnu_ifunc): Update.
6533 * breakpoint.c (create_overlay_event_breakpoint): Update.
6534 (create_longjmp_master_breakpoint): Update.
6535 (create_std_terminate_master_breakpoint): Update.
6536 (create_exception_master_breakpoint): Update.
6537 (resolve_sal_pc): Update.
6538 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6539 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6540 Update.
6541 * c-valprint.c (c_val_print): Update.
6542 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6543 * coffread.c (coff_symfile_read): Update.
6544 * common/agent.c (agent_look_up_symbols): Update.
6545 * dbxread.c (find_stab_function_addr): Update.
6546 (end_psymtab): Update.
6547 * dwarf2loc.c (call_site_to_target_addr): Update.
6548 (func_verify_no_selftailcall): Update.
6549 (tailcall_dump): Update.
6550 (call_site_find_chain_1): Update.
6551 (dwarf_expr_reg_to_entry_parameter): Update.
6552 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6553 (elf_gnu_ifunc_resolve_by_got): Update.
6554 * f-valprint.c (info_common_command): Update.
6555 * findvar.c (read_var_value): Update.
6556 * frame.c (get_prev_frame_1): Update.
6557 (inside_main_func): Update.
6558 * frv-tdep.c (frv_skip_main_prologue): Update.
6559 (frv_frame_this_id): Update.
6560 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6561 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6562 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6563 (gnuv3_skip_trampoline): Update.
6564 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6565 (hppa64_hpux_in_solib_call_trampoline): Update.
6566 (hppa_hpux_skip_trampoline_code): Update.
6567 (hppa64_hpux_search_dummy_call_sequence): Update.
6568 (hppa_hpux_find_import_stub_for_addr): Update.
6569 (hppa_hpux_find_dummy_bpaddr): Update.
6570 * hppa-tdep.c (hppa_symbol_address)
6571 (hppa_lookup_stub_minimal_symbol): Update.
6572 * i386-tdep.c (i386_skip_main_prologue): Update.
6573 (i386_pe_skip_trampoline_code): Update.
6574 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6575 * infcall.c (get_function_name): Update.
6576 * infcmd.c (until_next_command): Update.
6577 * jit.c (jit_breakpoint_re_set_internal): Update.
6578 (jit_inferior_init): Update.
6579 * linespec.c (minsym_found): Update.
6580 (add_minsym): Update.
6581 * linux-fork.c (info_checkpoints_command): Update.
6582 * linux-nat.c (get_signo): Update.
6583 * linux-thread-db.c (inferior_has_bug): Update.
6584 * m32c-tdep.c (m32c_return_value): Update.
6585 (m32c_m16c_address_to_pointer): Update.
6586 (m32c_m16c_pointer_to_address): Update.
6587 * m32r-tdep.c (m32r_frame_this_id): Update.
6588 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6589 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6590 * maint.c (maintenance_translate_address): Update.
6591 * minsyms.c (add_minsym_to_hash_table): Update.
6592 (add_minsym_to_demangled_hash_table): Update.
6593 (msymbol_objfile): Update.
6594 (lookup_minimal_symbol): Update.
6595 (iterate_over_minimal_symbols): Update.
6596 (lookup_minimal_symbol_text): Update.
6597 (lookup_minimal_symbol_by_pc_name): Update.
6598 (lookup_minimal_symbol_solib_trampoline): Update.
6599 (lookup_minimal_symbol_by_pc_section_1): Update.
6600 (lookup_minimal_symbol_and_objfile): Update.
6601 (prim_record_minimal_symbol_full): Update.
6602 (compare_minimal_symbols): Update.
6603 (compact_minimal_symbols): Update.
6604 (build_minimal_symbol_hash_tables): Update.
6605 (install_minimal_symbols): Update.
6606 (terminate_minimal_symbol_table): Update.
6607 (find_solib_trampoline_target): Update.
6608 (minimal_symbol_upper_bound): Update.
6609 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6610 * mips-tdep.c (mips_stub_frame_sniffer): Update.
6611 (mips_skip_pic_trampoline_code): Update.
6612 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6613 * objc-lang.c (selectors_info): Update.
6614 (classes_info): Update.
6615 (find_methods): Update.
6616 (find_imps): Update.
6617 (find_objc_msgsend): Update.
6618 * objfiles.c (objfile_relocate1): Update.
6619 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6620 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6621 * p-valprint.c (pascal_val_print): Update.
6622 * parse.c (write_exp_msymbol): Update.
6623 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6624 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6625 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6626 * printcmd.c (build_address_symbolic): Update.
6627 (sym_info): Update.
6628 (address_info): Update.
6629 * proc-service.c (ps_pglobal_lookup): Update.
6630 * psymtab.c (find_pc_sect_psymtab_closer): Update.
6631 (find_pc_sect_psymtab): Update.
6632 * python/py-framefilter.c (py_print_frame): Update.
6633 * ravenscar-thread.c (get_running_thread_id): Update.
6634 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6635 Update.
6636 * remote.c (remote_check_symbols): Update.
6637 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6638 (rs6000_skip_trampoline_code): Update.
6639 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6640 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6641 * solib-dsbt.c (lm_base): Update.
6642 * solib-frv.c (lm_base): Update.
6643 (main_got): Update.
6644 * solib-irix.c (locate_base): Update.
6645 * solib-som.c (som_solib_create_inferior_hook): Update.
6646 (som_solib_desire_dynamic_linker_symbols): Update.
6647 (link_map_start): Update.
6648 * solib-spu.c (spu_enable_break): Update.
6649 (ocl_enable_break): Update.
6650 * solib-svr4.c (elf_locate_base): Update.
6651 (enable_break): Update.
6652 * spu-tdep.c (spu_get_overlay_table): Update.
6653 (spu_catch_start): Update.
6654 (flush_ea_cache): Update.
6655 * stabsread.c (define_symbol): Update.
6656 (scan_file_globals): Update.
6657 * stack.c (find_frame_funname): Update.
6658 (frame_info): Update.
6659 * symfile.c (simple_read_overlay_table): Update.
6660 (simple_overlay_update): Update.
6661 * symmisc.c (dump_msymbols): Update.
6662 * symtab.c (fixup_section): Update.
6663 (find_pc_sect_line): Update.
6664 (skip_prologue_sal): Update.
6665 (search_symbols): Update.
6666 (print_msymbol_info): Update.
6667 (rbreak_command): Update.
6668 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6669 (completion_list_objc_symbol): Update.
6670 (default_make_symbol_completion_list_break_on): Update.
6671 * tracepoint.c (scope_info): Update.
6672 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6673 (tui_get_begin_asm_address): Update.
6674 * valops.c (find_function_in_inferior): Update.
6675 * value.c (value_static_field): Update.
6676 (value_fn_field): Update.
6677
50e65b17
TT
66782014-02-26 Tom Tromey <tromey@redhat.com>
6679
6680 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6681 bound minimal symbols. Move code that knows about minsym
6682 table layout...
6683 * minsyms.c (minimal_symbol_upper_bound): ... here. New
6684 function.
6685 * minsyms.h (minimal_symbol_upper_bound): Declare.
6686 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6687 minimal_symbol_upper_bound.
6688
1b588015
JB
66892014-02-27 Joel Brobecker <brobecker@adacore.com>
6690
6691 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6692 Use the type's name if its basic type does not have a tag.
6693
dbb9c2b1
JB
66942014-02-27 Joel Brobecker <brobecker@adacore.com>
6695
6696 * dwarf2read.c (read_subrange_type): Add comment.
6697
55426c9d
JB
66982014-02-27 Joel Brobecker <brobecker@adacore.com>
6699
6700 * dwarf2read.c (update_enumeration_type_from_children): New
6701 function, mostly extracted from process_structure_scope.
6702 (read_enumeration_type): Call update_enumeration_type_from_children.
6703 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6704 and flag_flag_enum fields.
6705
f2fce0ca
PA
67062014-02-26 Pedro Alves <palves@redhat.com>
6707
6708 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6709 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6710 to_xfer_partial method.
6711
7a44e40e
PA
67122014-02-26 Pedro Alves <palves@redhat.com>
6713
6714 * target.c (complete_target_initialization): Don't install
6715 default_xfer_partial as to_xfer_partial hook.
6716 (nomemory): Delete.
6717 (update_current_target): Don't INHERIT nor de_fault
6718 deprecated_xfer_memory. Delete de_fault macro.
6719 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6720 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6721 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6722 field.
6723
bd265cd0
PA
67242014-02-26 Pedro Alves <palves@redhat.com>
6725
6726 * go32-nat.c (my_write_child): New function.
6727 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6728 (go32_xfer_partial): New function.
6729 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6730 Instead install a to_xfer_partial hook.
6731
9d46c4e5
PA
67322014-02-26 Pedro Alves <palves@redhat.com>
6733
6734 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6735 to_xfer_partial helper. Rewrite.
6736 (procfs_xfer_partial): New function.
6737 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6738 Install a to_xfer_partial hook.
6739
a1583b1f
PA
67402014-02-26 Pedro Alves <palves@redhat.com>
6741
6742 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6743 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6744 (m32r_xfer_partial): New function.
6745 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6746 Install a to_xfer_partial hook.
6747
6df1b29f
PA
67482014-02-26 Pedro Alves <palves@redhat.com>
6749
6750 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6751 helper.
6752 (mips_xfer_partial): New function.
6753 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6754 hook. Install a to_xfer_partial hook.
6755
dc53a7ad
JB
67562014-02-26 Joel Brobecker <brobecker@adacore.com>
6757
6758 * gdbtypes.h (create_array_type_with_stride): Add declaration.
6759 * gdbtypes.c (create_array_type_with_stride): New function,
6760 renaming create_array_type, but with an added parameter
6761 called "bit_stride".
6762 (create_array_type): Re-implement using
6763 create_array_type_with_stride.
6764 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6765 and DW_AT_bit_stride attributes.
6766
12ab52e9
PA
67672014-02-26 Pedro Alves <palves@redhat.com>
6768
6769 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6770 task-specific breakpoints.
6771
d16461ae
PA
67722014-02-25 Pedro Alves <palves@redhat.com>
6773
6774 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6775 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6776
a8b16220
SS
67772014-02-25 Stan Shebs <stan@codesourcery.com>
6778
6779 * defs.h: Annotate comments for Doxygen.
6780
b9e795ee
TT
67812014-02-25 Tom Tromey <tromey@redhat.com>
6782
6783 * target.h (target_ignore): Don't declare.
6784 * target.c (target_ignore): Remove.
6785
849c862e
JK
67862014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 PR gdb/16626
6789 * auto-load.c (auto_load_objfile_script_1): Change filename to
6790 debugfile.
6791
475109d8
JB
67922014-02-25 Joel Brobecker <brobecker@adacore.com>
6793
6794 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6795 documentation. Adjust prototype to match the target_ops
6796 to_xfer_partial method. Adjust implementation accordingly.
6797
e186c3bd
HZ
67982014-02-25 Hui Zhu <hui@codesourcery.com>
6799
6800 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6801 to_traceframe_info.
6802
6d451942
KB
68032014-02-25 Kevin Buettner <kevinb@redhat.com>
6804
041ab8b4 6805 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6806 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6807 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6808 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6809 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6810 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6811 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6812 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6813 New constants.
6814 (rl78_register_type): Use a data pointer type for SP and
6815 new pseudo registers mentioned above. Use a 16 bit integer
6816 type for all other register pairs.
6817 (rl78_register_name, rl78_g10_register_name): Update for
6818 new pseudo registers.
6819 (rl78_pseudo_register_read): Likewise.
6820 (rl78_pseudo_register_write): Likewise.
6821 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6822 to the newly added pseudo registers.
6823
eddf0bae
DE
68242014-02-24 Doug Evans <dje@google.com>
6825
6826 * value.c (record_latest_value): Fix comment.
6827 * printcmd.c (print_command_1): Remove code to handle -1 return from
6828 record_latest_value.
6829
e96027e0
PA
68302014-02-24 Pedro Alves <palves@redhat.com>
6831
6832 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6833 deprecated_xfer_memory hook.
6834 (procfs_xfer_partial): Call procfs_xfer_memory instead
6835 of the deprecated_xfer_memory target hook.
6836 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6837 helper.
6838
0837c976
YZ
68392014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6840
6841 * windows-nat.c (windows_xfer_shared_libraries): Return
6842 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6843 requested object is TARGET_OBJECT_LIBRARIES.
6844
bc113b4e
YQ
68452014-02-24 Yao Qi <yao@codesourcery.com>
6846
6847 * target.h (enum target_xfer_status)
6848 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6849 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6850 explicitly. New.
6851 * corefile.c (memory_error_message): User updated.
6852 * exec.c (section_table_read_available_memory): Likewise.
6853 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6854 * target.c (target_xfer_status_to_string): Likewise.
6855 (raw_memory_xfer_partial): Likewise.
6856 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6857 * valops.c (read_value_memory): Likewise.
6858 * exec.h: Update comments.
6859
01cb8804
YQ
68602014-02-24 Yao Qi <yao@codesourcery.com>
6861
6862 * target.c (target_xfer_status_to_string): Rename argument err
6863 to status.
6864 * target.h (target_xfer_status_to_string): Update declaration.
6865 Replace target_xfer_error_to_string with
6866 target_xfer_status_to_string in comment.
6867
93063aa6
YQ
68682014-02-24 Yao Qi <yao@codesourcery.com>
6869
6870 * mips-linux-nat.c (super_close): Update its type.
6871 (mips_linux_close): Pass 'self' to super_close.
6872
5c328c05
YQ
68732014-02-24 Yao Qi <yao@codesourcery.com>
6874
6875 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6876 * corefile.c (read_memory): Adjusted.
6877 * target.c (target_write_with_progress): Adjusted.
6878
f73023dd
YQ
68792014-02-23 Yao Qi <yao@codesourcery.com>
6880
6881 Revert two patches:
6882
6883 2013-10-25 Yao Qi <yao@codesourcery.com>
6884
6885 * remote.c (remote_traceframe_info): Return early if
6886 traceframe is not selected.
6887
6888 2013-07-19 Yao Qi <yao@codesourcery.com>
6889
6890 * target.c (update_current_target): Change the default action
6891 of 'to_traceframe_info' from tcomplain to return_zero.
6892 * target.h (struct target_ops) <to_traceframe_info>: Add more
6893 comments.
6894
5a2eb0ef
YQ
68952014-02-23 Yao Qi <yao@codesourcery.com>
6896
6897 * valops.c (read_value_memory): Rewrite it. Call
6898 target_xfer_partial in a loop.
6899 * exec.h (section_table_available_memory): Remove declaration.
6900 Move comments to ...
6901 * exec.c (section_table_available_memory): ... here. Make it
6902 static.
6903
1ee79381
YQ
69042014-02-23 Yao Qi <yao@codesourcery.com>
6905
6906 * exec.c (section_table_read_available_memory): New function.
6907 * exec.h (section_table_read_available_memory): Declare.
6908 * ctf.c (ctf_xfer_partial): Call
6909 section_table_read_available_memory.
6910 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6911
1ca49d37
YQ
69122014-02-23 Yao Qi <yao@codesourcery.com>
6913
6914 * ctf.c (ctf_xfer_partial): Move code to ...
6915 * exec.c (exec_read_partial_read_only): ... it. New function.
6916 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6917 * tracefile.c: Include "exec.h".
6918 * exec.h (exec_read_partial_read_only): Declare.
6919
a283690e
YQ
69202014-02-23 Yao Qi <yao@codesourcery.com>
6921
6922 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6923 (tfile_has_memory): Remove.
6924 (init_tfile_ops): Don't set fields to_has_all_memory and
6925 to_has_memory of tfile_ops.
6926 * tracefile.c (tracefile_has_all_memory): New function.
6927 (tracefile_has_memory): New function.
6928 (init_tracefile_ops): Initialize fields to_has_all_memory and
6929 to_has_memory of 'ops'.
6930
12e03cd0
YQ
69312014-02-23 Yao Qi <yao@codesourcery.com>
6932
6933 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6934 (ctf_thread_alive, ctf_get_trace_status): Remove.
6935 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6936 init_tracefile_ops.
6937 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6938 (tfile_has_stack, tfile_has_registers): Remove.
6939 (tfile_thread_alive): Remove.
6940 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6941 init_tracefile_ops.
6942 * tracefile.c (tracefile_has_stack): New function.
6943 (tracefile_has_registers): New function.
6944 (tracefile_thread_alive): New function.
6945 (tracefile_get_trace_status): New function.
6946 (init_tracefile_ops): New function.
6947 * tracefile.h (init_tracefile_ops): Declare.
6948
11395323
YQ
69492014-02-23 Yao Qi <yao@codesourcery.com>
6950
6951 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6952 (O_LARGEFILE): Likewise.
6953 (tfile_ops): Likewise.
6954 (TRACE_HEADER_SIZE): Likewise.
6955 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6956 (cur_data_size): Likewise.
6957 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6958 (tfile_close, tfile_files_info): Likewise.
6959 (tfile_get_trace_status): Likewise.
6960 (tfile_get_tracepoint_status): Likewise.
6961 (tfile_get_traceframe_address): Likewise.
6962 (tfile_trace_find, match_blocktype): Likewise.
6963 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6964 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6965 (tfile_get_trace_state_variable_value): Likewise.
6966 (tfile_has_all_memory, tfile_has_memory): Likewise.
6967 (tfile_has_stack, tfile_has_registers): Likewise.
6968 (tfile_thread_alive, build_traceframe_info): Likewise.
6969 (tfile_traceframe_info, init_tfile_ops): Likewise.
6970 (_initialize_tracepoint): Don't call init_tfile_ops
6971 and add_target_with_completer.
6972 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6973 exec.h, completer.h and filenames.h.
6974 (_initialize_tracefile_tfile): New function.
6975
7951c4eb
YQ
69762014-02-23 Yao Qi <yao@codesourcery.com>
6977
6978 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6979 tracefile-tfile.o.
6980 (HFILES_NO_SRCDIR): Add tracefile.h.
6981 * ctf.c: Include "tracefile.h".
6982 * tracefile.h: New file.
6983 * tracefile.c: New file
6984 * tracefile-tfile.c: New file.
6985 * tracepoint.c: Include "tracefile.h".
6986 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6987 (stop_reason_names): Add const.
6988 (trace_file_writer_xfree): Move it to tracefile.c.
6989 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6990 (trace_save_ctf): Likewise.
6991 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6992 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6993 (tfile_write_header, tfile_write_regblock_type): Likewise.
6994 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6995 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6996 (tfile_write_raw_data, tfile_end): Likewise.
6997 (tfile_trace_file_writer_new): Likewise.
6998 (free_uploaded_tp): Make it extern.
6999 (free_uploaded_tsv): Make it extern.
7000 (_initialize_tracepoint): Move code to register command 'tsave'
7001 to tracefile.c.
7002 * tracepoint.h (stop_reason_names): Declare.
7003 (struct trace_frame_write_ops): Move it to tracefile.h.
7004 (struct trace_file_write_ops): Likewise.
7005 (struct trace_file_writer): Likewise.
7006 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7007
184cd072
JK
70082014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7009
7010 PR gdb/16594
7011 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7012 process name.
7013 (get_cores_used_by_process): New parameter num_cores, use it.
7014 (linux_xfer_osdata_processes): Pass num_cores to it.
7015 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7016 process name.
7017
c63528fc
AK
70182014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7019
7020 * target.c (memory_xfer_partial): Fix length arg in call to
7021 breakpoint_xfer_memory.
7022
d7b30f67
SDJ
70232014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7024
7025 PR tdep/16397
7026 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7027 number comes after the + or - signs. Adjust length of register
7028 name to be extracted.
7029
8838afaf
TT
70302014-02-20 Tom Tromey <tromey@redhat.com>
7031
7032 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7033 (ada_varobj_ops): Mark "extern".
7034
05227d14
TT
70352014-02-20 Tom Tromey <tromey@redhat.com>
7036
7037 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7038
1254eefc
DE
70392014-02-20 Doug Evans <xdje42@gmail.com>
7040
7041 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7042 All callers updated.
7043 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7044 All callers updated.
7045 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7046 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7047
adde2bff
DE
70482014-02-20 lin zuojian <manjian2006@gmail.com>
7049 Joel Brobecker <brobecker@adacore.com>
7050 Doug Evans <xdje42@gmail.com>
7051
7052 PR symtab/16581
7053 * dwarf2read.c (struct die_info): New member in_process.
7054 (reset_die_in_process): New function.
7055 (process_die): Set it at the start, reset when returning.
7056 (inherit_abstract_dies): Only call process_die if origin_child_die
7057 not already being processed.
7058
3be75f87
JB
70592014-02-20 Joel Brobecker <brobecker@adacore.com>
7060
7061 * windows-nat.c (handle_unload_dll): Add function documentation.
7062 (do_initial_windows_stuff): Add comment explaining why we wait
7063 until after inferior initialization has finished before
7064 processing all DLLs.
7065
47f7ffdb
JB
70662014-02-20 Joel Brobecker <brobecker@adacore.com>
7067
7068 * windows-nat.c (get_module_name): Delete.
7069 (windows_get_exec_module_filename): New function, mostly
7070 inspired from get_module_name.
7071 (windows_pid_to_exec_file): Replace call to get_module_name
7072 by call to windows_get_exec_module_filename.
7073
1cd9feab
JB
70742014-02-20 Joel Brobecker <brobecker@adacore.com>
7075
7076 * windows-nat.c (handle_load_dll): Rewrite this function's
7077 introductory comment. Remove code using get_module_name
7078 to get the DLL's name.
7079
ea39ad35
JB
70802014-02-20 Joel Brobecker <brobecker@adacore.com>
7081
7082 * windows-nat.c (get_windows_debug_event): Ignore
7083 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7084 if windows_initialization_done == 0.
7085 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7086 Adjust implementation to always load all DLLs.
7087 (do_initial_windows_stuff): Replace call to
7088 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7089
95060284
JB
70902014-02-20 Joel Brobecker <brobecker@adacore.com>
7091
7092 * windows-nat.c (_initialize_windows_nat): Deprecate the
7093 "dll-symbols" command. Turn the "add-shared-symbol-files"
7094 and "assf" aliases into commands, and deprecate them as well.
7095 * NEWS: Add entry explaining that "dll-symbols" and its two
7096 aliases are now deprecated.
7097
8d4fdb12
JB
70982014-02-20 Joel Brobecker <brobecker@adacore.com>
7099
7100 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7101 new-line in debug string. Remove trailing spaces.
7102
1b281443
SS
71032014-02-19 Stan Shebs <stan@codesourcery.com>
7104
7105 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7106
f7bd0f78
SC
71072014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7108
7109 * NEWS: Add entry for the new feature
7110 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7111 and class values.
7112
399ebc3d
SS
71132014-02-19 Stan Shebs <stan@codesourcery.com>
7114
7115 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7116
c658158d
PA
71172014-02-19 Pedro Alves <palves@redhat.com>
7118
7119 * common/ptid.h (struct ptid): Mention that process_stratum
7120 targets should prefer ptid.lwp.
7121
ba348170
PA
71222014-02-19 Pedro Alves <palves@redhat.com>
7123
7124 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7125 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7126 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7127 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7128 store remote thread ids rather than ptid.tid.
7129 (_initialize_remote): Adjust.
7130
ac01945b
TT
71312014-02-19 Tom Tromey <tromey@redhat.com>
7132
7133 * target.c (target_get_unwinder): Rewrite.
7134 (target_get_tailcall_unwinder): Rewrite.
7135 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7136 (record_btrace_to_get_tailcall_unwinder): New function.
7137 (init_record_btrace_ops): Update.
7138 * target.h (struct target_ops) <to_get_unwinder,
7139 to_get_tailcall_unwinder>: Now function pointers. Use
7140 TARGET_DEFAULT_RETURN.
7141
8476dc92
TT
71422014-02-19 Tom Tromey <tromey@redhat.com>
7143
7144 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7145 argument.
7146 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7147
c0eca49f
TT
71482014-02-19 Tom Tromey <tromey@redhat.com>
7149
7150 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7151 directly.
7152 * target-delegates.c: Rebuild.
7153 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7154 TARGET_DEFAULT_FUNC.
7155 * target.c (default_target_decr_pc_after_break): Rename from
7156 forward_target_decr_pc_after_break. Simplify.
7157 (target_decr_pc_after_break): Rely on delegation.
7158
596b6b39
TT
71592014-02-19 Tom Tromey <tromey@redhat.com>
7160
7161 * target.c (update_current_target): Do not INHERIT to_doc or
7162 to_magic. Do not de_fault to_open or to_close.
7163
b427c1bc
TT
71642014-02-19 Tom Tromey <tromey@redhat.com>
7165
7166 * gcore.h (objfile_find_memory_regions): Declare.
7167 * gcore.c (objfile_find_memory_regions): No longer static. Add
7168 "self" argument.
7169 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7170 * exec.c: Include gcore.h.
7171 (exec_set_find_memory_regions): Remove.
7172 (exec_find_memory_regions): Remove.
7173 (exec_do_find_memory_regions): Remove.
7174 (init_exec_ops): Update.
7175 * defs.h (exec_set_find_memory_regions): Remove.
7176
9b144037
TT
71772014-02-19 Tom Tromey <tromey@redhat.com>
7178
7179 * target-delegates.c: Rebuild.
7180 * target.h (struct target_ops) <to_extra_thread_info,
7181 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7182 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7183 not 0, in TARGET_DEFAULT_RETURN.
7184
555bbdeb
TT
71852014-02-19 Tom Tromey <tromey@redhat.com>
7186
7187 * target.c (complete_target_initialization): Remove casts. Use
7188 return_zero_has_execution.
7189 (return_zero): Add "ignore" argument.
7190 (return_zero_has_execution): New function.
7191 (init_dummy_target): Remove casts. Use
7192 return_zero_has_execution.
7193
be4ddd36
TT
71942014-02-19 Tom Tromey <tromey@redhat.com>
7195
7196 * target.c (update_current_target): Update comments. Do not
7197 INHERIT to_stratum.
7198
2117c711
TT
71992014-02-19 Tom Tromey <tromey@redhat.com>
7200
7201 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7202 needed.
7203 * corelow.c (core_read_description): Delegate when needed.
7204 * remote.c (remote_read_description): Delegate when needed.
7205 * target-delegates.c: Rebuild.
7206 * target.c (target_read_description): Rewrite.
7207 * target.h (struct target_ops) <to_read_description>: Update
7208 comment. Use TARGET_DEFAULT_RETURN.
7209
e88ef65c
TT
72102014-02-19 Tom Tromey <tromey@redhat.com>
7211
7212 * target-delegates.c: Rebuild.
7213 * target.c (update_current_target): Don't inherit or default
7214 to_can_run.
7215 (find_default_run_target): Check against delegate_can_run.
7216 * target.h (struct target_ops) <to_can_run>: Use
7217 TARGET_DEFAULT_RETURN.
7218
86a0854a
TT
72192014-02-19 Tom Tromey <tromey@redhat.com>
7220
7221 * target-delegates.c: Rebuild.
7222 * target.c (target_disconnect): Unconditionally delegate.
7223 * target.h (struct target_ops) <to_disconnect>: Use
7224 TARGET_DEFAULT_NORETURN.
7225
ee97f592
TT
72262014-02-19 Tom Tromey <tromey@redhat.com>
7227
7228 * record.c (record_stop): Unconditionally delegate.
7229 * target-delegates.c: Rebuild.
7230 * target.c (target_stop_recording): Unconditionally delegate.
7231 * target.h (struct target_ops) <to_stop_recording>: Use
7232 TARGET_DEFAULT_IGNORE.
7233
6dc7fcf4
TT
72342014-02-19 Tom Tromey <tromey@redhat.com>
7235
7236 * target-delegates.c: Rebuild.
7237 * target.c (target_enable_btrace): Unconditionally delegate.
7238 * target.h (struct target_ops) <to_enable_btrace>: Use
7239 TARGET_DEFAULT_NORETURN.
7240
eb5b20d4
TT
72412014-02-19 Tom Tromey <tromey@redhat.com>
7242
7243 * target-delegates.c: Rebuild.
7244 * target.c (target_read_btrace): Unconditionally delegate.
7245 * target.h (struct target_ops) <to_read_btrace>: Use
7246 TARGET_DEFAULT_NORETURN.
7247
9ace480d
TT
72482014-02-19 Tom Tromey <tromey@redhat.com>
7249
7250 * target-delegates.c: Rebuild.
7251 * target.c (target_teardown_btrace): Unconditionally delegate.
7252 * target.h (struct target_ops) <to_teardown_btrace>: Use
7253 TARGET_DEFAULT_NORETURN.
7254
8dc292d3
TT
72552014-02-19 Tom Tromey <tromey@redhat.com>
7256
7257 * target-delegates.c: Rebuild.
7258 * target.c (target_disable_btrace): Unconditionally delegate.
7259 * target.h (struct target_ops) <to_disable_btrace>: Use
7260 TARGET_DEFAULT_NORETURN.
7261
58a5184e
TT
72622014-02-19 Tom Tromey <tromey@redhat.com>
7263
7264 * target-delegates.c: Rebuild.
7265 * target.c (default_search_memory): New function.
7266 (simple_search_memory): Update comment.
7267 (target_search_memory): Unconditionally delegate.
7268 * target.h (struct target_ops) <to_search_memory>: Use
7269 TARGET_DEFAULT_FUNC.
7270
8de71aab
TT
72712014-02-19 Tom Tromey <tromey@redhat.com>
7272
7273 * auxv.c (default_auxv_parse): No longer static.
7274 (target_auxv_parse): Unconditionally delegate.
7275 * auxv.h (default_auxv_parse): Declare.
7276 * target-delegates.c: Rebuild.
7277 * target.c: Include auxv.h.
7278 * target.h (struct target_ops) <to_auxv_parse>: Use
7279 TARGET_DEFAULT_FUNC.
7280
6b2c5a57
TT
72812014-02-19 Tom Tromey <tromey@redhat.com>
7282
7283 * target-delegates.c: Rebuild.
7284 * target.c (target_memory_map): Unconditionally delegate.
7285 * target.h (struct target_ops) <to_memory_map>: Use
7286 TARGET_DEFAULT_RETURN.
7287
cbffc065
TT
72882014-02-19 Tom Tromey <tromey@redhat.com>
7289
7290 * target-delegates.c: Rebuild.
7291 * target.c (target_thread_alive): Unconditionally delegate.
7292 * target.h (struct target_ops) <to_thread_alive>: Use
7293 TARGET_DEFAULT_RETURN.
7294
f09e2107
TT
72952014-02-19 Tom Tromey <tromey@redhat.com>
7296
7297 * target-delegates.c: Rebuild.
7298 * target.c (target_save_record): Unconditionally delegate.
7299 * target.h (struct target_ops) <to_save_record>: Use
7300 TARGET_DEFAULT_NORETURN.
7301
07366925
TT
73022014-02-19 Tom Tromey <tromey@redhat.com>
7303
7304 * target-delegates.c: Rebuild.
7305 * target.c (target_delete_record): Unconditionally delegate.
7306 * target.h (struct target_ops) <to_delete_record>: Use
7307 TARGET_DEFAULT_NORETURN.
7308
dd2e9d25
TT
73092014-02-19 Tom Tromey <tromey@redhat.com>
7310
7311 * target-delegates.c: Rebuild.
7312 * target.c (target_record_is_replaying): Unconditionally
7313 delegate.
7314 * target.h (struct target_ops) <to_record_is_replaying>: Use
7315 TARGET_DEFAULT_RETURN.
7316
671e76cc
TT
73172014-02-19 Tom Tromey <tromey@redhat.com>
7318
7319 * target-delegates.c: Rebuild.
7320 * target.c (target_goto_record_begin): Unconditionally delegate.
7321 * target.h (struct target_ops) <to_goto_record_begin>: Use
7322 TARGET_DEFAULT_NORETURN.
7323
e9179bb3
TT
73242014-02-19 Tom Tromey <tromey@redhat.com>
7325
7326 * target-delegates.c: Rebuild.
7327 * target.c (target_goto_record_end): Unconditionally delegate.
7328 * target.h (struct target_ops) <to_goto_record_end>: Use
7329 TARGET_DEFAULT_NORETURN.
7330
05969c84
TT
73312014-02-19 Tom Tromey <tromey@redhat.com>
7332
7333 * target-delegates.c: Rebuild.
7334 * target.c (target_goto_record): Unconditionally delegate.
7335 * target.h (struct target_ops) <to_goto_record>: Use
7336 TARGET_DEFAULT_NORETURN.
7337
3679abfa
TT
73382014-02-19 Tom Tromey <tromey@redhat.com>
7339
7340 * target-delegates.c: Rebuild.
7341 * target.c (target_insn_history): Unconditionally delegate.
7342 * target.h (struct target_ops) <to_insn_history>: Use
7343 TARGET_DEFAULT_NORETURN.
7344
8444ab58
TT
73452014-02-19 Tom Tromey <tromey@redhat.com>
7346
7347 * target-delegates.c: Rebuild.
7348 * target.c (target_insn_history_from): Unconditionally delegate.
7349 * target.h (struct target_ops) <to_insn_history_from>: Use
7350 TARGET_DEFAULT_NORETURN.
7351
c29302cc
TT
73522014-02-19 Tom Tromey <tromey@redhat.com>
7353
7354 * target-delegates.c: Rebuild.
7355 * target.c (target_insn_history_range): Unconditionally delegate.
7356 * target.h (struct target_ops) <to_insn_history_range>: Use
7357 TARGET_DEFAULT_NORETURN.
7358
170049d4
TT
73592014-02-19 Tom Tromey <tromey@redhat.com>
7360
7361 * target-delegates.c: Rebuild.
7362 * target.c (target_call_history): Unconditionally delegate.
7363 * target.h (struct target_ops) <to_call_history>: Use
7364 TARGET_DEFAULT_NORETURN.
7365
16fc27d6
TT
73662014-02-19 Tom Tromey <tromey@redhat.com>
7367
7368 * target-delegates.c: Rebuild.
7369 * target.c (target_call_history_from): Unconditionally delegate.
7370 * target.h (struct target_ops) <to_call_history_from>: Use
7371 TARGET_DEFAULT_NORETURN.
7372
115d9817
TT
73732014-02-19 Tom Tromey <tromey@redhat.com>
7374
7375 * target-delegates.c: Rebuild.
7376 * target.c (target_call_history_range): Unconditionally delegate.
7377 * target.h (struct target_ops) <to_call_history_range>: Use
7378 TARGET_DEFAULT_NORETURN.
7379
eb276a6b
TT
73802014-02-19 Tom Tromey <tromey@redhat.com>
7381
7382 * target-delegates.c: Rebuild.
7383 * target.c (target_verify_memory): Unconditionally delegate.
7384 * target.h (struct target_ops) <to_verify_memory>: Use
7385 TARGET_DEFAULT_NORETURN.
7386
9e538d0d
TT
73872014-02-19 Tom Tromey <tromey@redhat.com>
7388
7389 * target-delegates.c: Rebuild.
7390 * target.c (target_core_of_thread): Unconditionally delegate.
7391 * target.h (struct target_ops) <to_core_of_thread>: Use
7392 TARGET_DEFAULT_RETURN.
7393
f6fb2925
TT
73942014-02-19 Tom Tromey <tromey@redhat.com>
7395
7396 * target-delegates.c: Rebuild.
7397 * target.c (target_flash_done): Unconditionally delegate.
7398 * target.h (struct target_ops) <to_flash_done>: Use
7399 TARGET_DEFAULT_NORETURN.
7400
e8a6c6ac
TT
74012014-02-19 Tom Tromey <tromey@redhat.com>
7402
7403 * target-delegates.c: Rebuild.
7404 * target.c (target_flash_erase): Unconditionally delegate.
7405 * target.h (struct target_ops) <to_flash_erase>: Use
7406 TARGET_DEFAULT_NORETURN.
7407
7e35c012
TT
74082014-02-19 Tom Tromey <tromey@redhat.com>
7409
7410 * target-delegates.c: Rebuild.
7411 * target.c (target_get_section_table): Unconditionally delegate.
7412 * target.h (struct target_ops) <to_get_section_table>: Use
7413 TARGET_DEFAULT_RETURN.
7414
770234d3
TT
74152014-02-19 Tom Tromey <tromey@redhat.com>
7416
7417 * target-delegates.c: Rebuild.
7418 * target.c (target_pid_to_str): Unconditionally delegate.
7419 (init_dummy_target): Don't initialize to_pid_to_str.
7420 (default_pid_to_str): Rename from dummy_pid_to_str.
7421 * target.h (struct target_ops) <to_pid_to_str>: Use
7422 TARGET_DEFAULT_FUNC.
7423
09b0dc2b
TT
74242014-02-19 Tom Tromey <tromey@redhat.com>
7425
7426 * target-delegates.c: Rebuild.
7427 * target.c (target_find_new_threads): Unconditionally delegate.
7428 * target.h (struct target_ops) <to_find_new_threads>: Use
7429 TARGET_DEFAULT_RETURN.
7430
7d4f8efa
TT
74312014-02-19 Tom Tromey <tromey@redhat.com>
7432
7433 * target-delegates.c: Rebuild.
7434 * target.c (target_program_signals): Unconditionally delegate.
7435 * target.h (struct target_ops) <to_program_signals>: Use
7436 TARGET_DEFAULT_IGNORE.
7437
035cad7f
TT
74382014-02-19 Tom Tromey <tromey@redhat.com>
7439
7440 * target-delegates.c: Rebuild.
7441 * target.c (target_pass_signals): Unconditionally delegate.
7442 * target.h (struct target_ops) <to_pass_signals>: Use
7443 TARGET_DEFAULT_IGNORE.
7444
8d657035
TT
74452014-02-19 Tom Tromey <tromey@redhat.com>
7446
7447 * target-delegates.c: Rebuild.
7448 * target.c (default_mourn_inferior): New function.
7449 (target_mourn_inferior): Unconditionally delegate.
7450 * target.h (struct target_ops) <to_mourn_inferior>: Use
7451 TARGET_DEFAULT_FUNC.
7452
098dba18
TT
74532014-02-19 Tom Tromey <tromey@redhat.com>
7454
7455 * target-delegates.c: Rebuild.
7456 * target.c (default_follow_fork): New function.
7457 (target_follow_fork): Unconditionally delegate.
7458 * target.h (struct target_ops) <to_follow_fork>: Use
7459 TARGET_DEFAULT_FUNC.
7460
423a4807
TT
74612014-02-19 Tom Tromey <tromey@redhat.com>
7462
7463 * target-delegates.c: Rebuild.
7464 * target.c (target_kill): Unconditionally delegate.
7465 * target.h (struct target_ops) <to_kill>: Use
7466 TARGET_DEFAULT_NORETURN.
7467
6c7e5e5c
TT
74682014-02-19 Tom Tromey <tromey@redhat.com>
7469
7470 * target-delegates.c: Rebuild.
7471 * target.c (target_masked_watch_num_registers): Unconditionally
7472 delegate.
7473 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7474 Use TARGET_DEFAULT_RETURN.
7475
8b1c364c
TT
74762014-02-19 Tom Tromey <tromey@redhat.com>
7477
7478 * target-delegates.c: Rebuild.
7479 * target.c (target_remove_mask_watchpoint): Unconditionally
7480 delegate.
7481 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7482 TARGET_DEFAULT_RETURN.
7483
cd4ae029
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target-delegates.c: Rebuild.
7487 * target.c (target_insert_mask_watchpoint): Unconditionally
7488 delegate.
7489 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7490 TARGET_DEFAULT_RETURN.
7491
a134316b
TT
74922014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target-delegates.c: Rebuild.
7495 * target.c (target_ranged_break_num_registers): Unconditionally
7496 delegate.
7497 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7498 Use TARGET_DEFAULT_RETURN.
7499
ad5989bd
TT
75002014-02-19 Tom Tromey <tromey@redhat.com>
7501
7502 * target-delegates.c: Rebuild.
7503 * target.c (target_fetch_registers): Unconditionally delegate.
7504 * target.h (struct target_ops) <to_fetch_registers>: Use
7505 TARGET_DEFAULT_NORETURN.
7506
46ee7e8d
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target-delegates.c: Rebuild.
7510 * target.c (update_current_target): Don't inherit or default
7511 to_stop.
7512 * target.h (struct target_ops) <to_stop>: Use
7513 TARGET_DEFAULT_IGNORE.
7514
843f59ed
TT
75152014-02-19 Tom Tromey <tromey@redhat.com>
7516
7517 * target-delegates.c: Rebuild.
7518 * target.c (update_current_target): Don't inherit or default
7519 to_can_run_breakpoint_commands.
7520 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7521 Use TARGET_DEFAULT_RETURN.
7522
ccfde2a0
TT
75232014-02-19 Tom Tromey <tromey@redhat.com>
7524
7525 * target-delegates.c: Rebuild.
7526 * target.c (update_current_target): Don't inherit or default
7527 to_supports_evaluation_of_breakpoint_conditions.
7528 * target.h (struct target_ops)
7529 <to_supports_evaluation_of_breakpoint_conditions>: Use
7530 TARGET_DEFAULT_RETURN.
7531
0de91722
TT
75322014-02-19 Tom Tromey <tromey@redhat.com>
7533
7534 * target-delegates.c: Rebuild.
7535 * target.c (update_current_target): Don't inherit or default
7536 to_augmented_libraries_svr4_read.
7537 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7538 Use TARGET_DEFAULT_RETURN.
7539
9a7d8b48
TT
75402014-02-19 Tom Tromey <tromey@redhat.com>
7541
7542 * target-delegates.c: Rebuild.
7543 * target.c (update_current_target): Don't inherit or default
7544 to_can_use_agent.
7545 * target.h (struct target_ops) <to_can_use_agent>: Use
7546 TARGET_DEFAULT_RETURN.
7547
d9db5b21
TT
75482014-02-19 Tom Tromey <tromey@redhat.com>
7549
7550 * target-delegates.c: Rebuild.
7551 * target.c (update_current_target): Don't inherit or default
7552 to_use_agent.
7553 * target.h (struct target_ops) <to_use_agent>: Use
7554 TARGET_DEFAULT_NORETURN.
7555
92155eeb
TT
75562014-02-19 Tom Tromey <tromey@redhat.com>
7557
7558 * target-delegates.c: Rebuild.
7559 * target.c (update_current_target): Don't inherit or default
7560 to_traceframe_info.
7561 (return_null): Remove.
7562 * target.h (struct target_ops) <to_traceframe_info>: Use
7563 TARGET_DEFAULT_RETURN.
7564
d6522a22
TT
75652014-02-19 Tom Tromey <tromey@redhat.com>
7566
7567 * target-delegates.c: Rebuild.
7568 * target.c (update_current_target): Don't inherit or default
7569 to_static_tracepoint_markers_by_strid.
7570 * target.h (struct target_ops)
7571 <to_static_tracepoint_markers_by_strid>: Use
7572 TARGET_DEFAULT_NORETURN.
7573
4c3e4425
TT
75742014-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_static_tracepoint_marker_at.
7579 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7580 Use TARGET_DEFAULT_RETURN.
7581
dcd6917f
TT
75822014-02-19 Tom Tromey <tromey@redhat.com>
7583
7584 * target-delegates.c: Rebuild.
7585 * target.c (update_current_target): Don't inherit or default
7586 to_set_permissions.
7587 * target.h (struct target_ops) <to_set_permissions>: Use
7588 TARGET_DEFAULT_IGNORE.
7589
22bcceee
TT
75902014-02-19 Tom Tromey <tromey@redhat.com>
7591
7592 * target-delegates.c: Rebuild.
7593 * target.c (update_current_target): Don't inherit or default
7594 to_get_tib_address.
7595 * target.h (struct target_ops) <to_get_tib_address>: Use
7596 TARGET_DEFAULT_NORETURN.
7597
8586ccaa
TT
75982014-02-19 Tom Tromey <tromey@redhat.com>
7599
7600 * target-delegates.c: Rebuild.
7601 * target.c (update_current_target): Don't inherit or default
7602 to_set_trace_notes.
7603 * target.h (struct target_ops) <to_set_trace_notes>: Use
7604 TARGET_DEFAULT_RETURN.
7605
91df8d1d
TT
76062014-02-19 Tom Tromey <tromey@redhat.com>
7607
7608 * target-delegates.c: Rebuild.
7609 * target.c (update_current_target): Don't initialize
7610 to_set_trace_buffer_size.
7611 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7612 TARGET_DEFAULT_IGNORE.
7613
8d526939
TT
76142014-02-19 Tom Tromey <tromey@redhat.com>
7615
7616 * target-delegates.c: Rebuild.
7617 * target.c (update_current_target): Don't inherit or default
7618 to_set_circular_trace_buffer.
7619 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7620 TARGET_DEFAULT_IGNORE.
7621
0bcfeddf
TT
76222014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * target-delegates.c: Rebuild.
7625 * target.c (update_current_target): Don't inherit or default
7626 to_set_disconnected_tracing.
7627 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7628 TARGET_DEFAULT_IGNORE.
7629
9249843f
TT
76302014-02-19 Tom Tromey <tromey@redhat.com>
7631
7632 * target-delegates.c: Rebuild.
7633 * target.c (update_current_target): Don't inherit or default
7634 to_get_min_fast_tracepoint_insn_len.
7635 (return_minus_one): Remove.
7636 * target.h (struct target_ops)
7637 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7638
ace92e7d
TT
76392014-02-19 Tom Tromey <tromey@redhat.com>
7640
7641 * target-delegates.c: Rebuild.
7642 * target.c (update_current_target): Don't inherit or default
7643 to_get_raw_trace_data.
7644 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7645 TARGET_DEFAULT_NORETURN.
7646
08120467
TT
76472014-02-19 Tom Tromey <tromey@redhat.com>
7648
7649 * target-delegates.c: Rebuild.
7650 * target.c (update_current_target): Don't inherit or default
7651 to_upload_trace_state_variables.
7652 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7653 Use TARGET_DEFAULT_RETURN.
7654
1e949b00
TT
76552014-02-19 Tom Tromey <tromey@redhat.com>
7656
7657 * target-delegates.c: Rebuild.
7658 * target.c (update_current_target): Don't inherit or default
7659 to_upload_tracepoints.
7660 * target.h (struct target_ops) <to_upload_tracepoints>: Use
7661 TARGET_DEFAULT_RETURN.
7662
a2e6c147
TT
76632014-02-19 Tom Tromey <tromey@redhat.com>
7664
7665 * target-delegates.c: Rebuild.
7666 * target.c (update_current_target): Don't inherit or default
7667 to_save_trace_data.
7668 * target.h (struct target_ops) <to_save_trace_data>: Use
7669 TARGET_DEFAULT_NORETURN.
7670
959bcd0b
TT
76712014-02-19 Tom Tromey <tromey@redhat.com>
7672
7673 * target-delegates.c: Rebuild.
7674 * target.c (update_current_target): Don't inherit or default
7675 to_get_trace_state_variable_value.
7676 * target.h (struct target_ops)
7677 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7678
afc94e66
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * target-delegates.c: Rebuild.
7682 * target.c (update_current_target): Don't inherit or default
7683 to_trace_find.
7684 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7685
e51c07ea
TT
76862014-02-19 Tom Tromey <tromey@redhat.com>
7687
7688 * target-delegates.c: Rebuild.
7689 * target.c (update_current_target): Don't inherit or default
7690 to_trace_stop.
7691 * target.h (struct target_ops) <to_trace_stop>: Use
7692 TARGET_DEFAULT_NORETURN.
7693
6fea14cd
TT
76942014-02-19 Tom Tromey <tromey@redhat.com>
7695
7696 * target-delegates.c: Rebuild.
7697 * target.c (update_current_target): Don't inherit or default
7698 to_get_tracepoint_status.
7699 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7700 TARGET_DEFAULT_NORETURN.
7701
4072d4ff
TT
77022014-02-19 Tom Tromey <tromey@redhat.com>
7703
7704 * target-delegates.c: Rebuild.
7705 * target.c (update_current_target): Don't inherit or default
7706 to_get_trace_status.
7707 * target.h (struct target_ops) <to_get_trace_status>: Use
7708 TARGET_DEFAULT_RETURN.
7709
25da2e80
TT
77102014-02-19 Tom Tromey <tromey@redhat.com>
7711
7712 * target-delegates.c: Rebuild.
7713 * target.c (update_current_target): Don't inherit or default
7714 to_trace_start.
7715 * target.h (struct target_ops) <to_trace_start>: Use
7716 TARGET_DEFAULT_NORETURN.
7717
86dd181d
TT
77182014-02-19 Tom Tromey <tromey@redhat.com>
7719
7720 * target-delegates.c: Rebuild.
7721 * target.c (update_current_target): Don't inherit or default
7722 to_trace_set_readonly_regions.
7723 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7724 Use TARGET_DEFAULT_NORETURN.
7725
05c41993
TT
77262014-02-19 Tom Tromey <tromey@redhat.com>
7727
7728 * target-delegates.c: Rebuild.
7729 * target.c (update_current_target): Don't inherit or default
7730 to_disable_tracepoint.
7731 * target.h (struct target_ops) <to_disable_tracepoint>: Use
7732 TARGET_DEFAULT_NORETURN.
7733
151f70f1
TT
77342014-02-19 Tom Tromey <tromey@redhat.com>
7735
7736 * target-delegates.c: Rebuild.
7737 * target.c (update_current_target): Don't inherit or default
7738 to_enable_tracepoint.
7739 * target.h (struct target_ops) <to_enable_tracepoint>: Use
7740 TARGET_DEFAULT_NORETURN.
7741
94eb98b9
TT
77422014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target-delegates.c: Rebuild.
7745 * target.c (update_current_target): Don't inherit or default
7746 to_download_trace_state_variable.
7747 * target.h (struct target_ops) <to_download_trace_state_variable>:
7748 Use TARGET_DEFAULT_NORETURN.
7749
719acc4a
TT
77502014-02-19 Tom Tromey <tromey@redhat.com>
7751
7752 * target-delegates.c: Rebuild.
7753 * target.c (update_current_target): Don't inherit or default
7754 to_can_download_tracepoint.
7755 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7756 TARGET_DEFAULT_RETURN.
7757
9a980a22
TT
77582014-02-19 Tom Tromey <tromey@redhat.com>
7759
7760 * target-delegates.c: Rebuild.
7761 * target.c (update_current_target): Don't inherit or default
7762 to_download_tracepoint.
7763 * target.h (struct target_ops) <to_download_tracepoint>: Use
7764 TARGET_DEFAULT_NORETURN.
7765
5536135b
TT
77662014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target-delegates.c: Rebuild.
7769 * target.c (update_current_target): Don't inherit or default
7770 to_trace_init.
7771 * target.h (struct target_ops) <to_trace_init>: Use
7772 TARGET_DEFAULT_RETURN.
7773
9409d39e
TT
77742014-02-19 Tom Tromey <tromey@redhat.com>
7775
7776 * target-delegates.c: Rebuild.
7777 * target.c (update_current_target): Don't inherit or default
7778 to_supports_string_tracing.
7779 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7780 TARGET_DEFAULT_RETURN.
7781
aab1b22d
TT
77822014-02-19 Tom Tromey <tromey@redhat.com>
7783
7784 * target-delegates.c: Rebuild.
7785 * target.c (update_current_target): Don't inherit or default
7786 to_supports_enable_disable_tracepoint.
7787 * target.h (struct target_ops)
7788 <to_supports_enable_disable_tracepoint>: Use
7789 TARGET_DEFAULT_RETURN.
7790
a7304748
TT
77912014-02-19 Tom Tromey <tromey@redhat.com>
7792
7793 * target-delegates.c: Rebuild.
7794 * target.c (update_current_target): Don't inherit or default
7795 to_supports_multi_process.
7796 * target.h (struct target_ops) <to_supports_multi_process>: Use
7797 TARGET_DEFAULT_RETURN.
7798
4229b31d
TT
77992014-02-19 Tom Tromey <tromey@redhat.com>
7800
7801 * target-delegates.c: Rebuild.
7802 * target.c (update_current_target): Don't inherit or default
7803 to_get_ada_task_ptid.
7804 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7805 TARGET_DEFAULT_FUNC.
7806
43eba180
TT
78072014-02-19 Tom Tromey <tromey@redhat.com>
7808
7809 * target-delegates.c: Rebuild.
7810 * target.c (update_current_target): Don't inherit or default
7811 to_thread_architecture.
7812 * target.h (struct target_ops) <to_thread_architecture>: Use
7813 TARGET_DEFAULT_FUNC.
7814
fe31bf5b
TT
78152014-02-19 Tom Tromey <tromey@redhat.com>
7816
7817 * target-delegates.c: Rebuild.
7818 * target.c (update_current_target): Don't inherit or default
7819 to_execution_direction.
7820 * target.h (struct target_ops) <to_execution_direction>: Use
7821 TARGET_DEFAULT_FUNC.
7822
53e1cfc7
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (update_current_target): Don't inherit or default
7827 to_can_execute_reverse.
7828 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7829 TARGET_DEFAULT_RETURN.
7830 (target_can_execute_reverse): Unconditionally delegate.
7831
9bb9d61d
TT
78322014-02-19 Tom Tromey <tromey@redhat.com>
7833
7834 * target-delegates.c: Rebuild.
7835 * target.c (update_current_target): Don't inherit or default
7836 to_goto_bookmark.
7837 (dummy_goto_bookmark): Remove.
7838 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7839 * target.h (struct target_ops) <to_goto_bookmark>: Use
7840 TARGET_DEFAULT_NORETURN.
7841
3dbafbbb
TT
78422014-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_get_bookmark.
7847 (dummy_get_bookmark): Remove.
7848 (init_dummy_target): Don't inherit or default to_get_bookmark.
7849 * target.h (struct target_ops) <to_get_bookmark>: Use
7850 TARGET_DEFAULT_NORETURN
7851
16f796b1
TT
78522014-02-19 Tom Tromey <tromey@redhat.com>
7853
7854 * target-delegates.c: Rebuild.
7855 * target.c (update_current_target): Don't inherit or default
7856 to_make_corefile_notes.
7857 (init_dummy_target): Don't initialize to_make_corefile_notes.
7858 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7859 TARGET_DEFAULT_FUNC.
7860
0b5a2719
TT
78612014-02-19 Tom Tromey <tromey@redhat.com>
7862
7863 * target-delegates.c: Rebuild.
7864 * target.c (update_current_target): Don't inherit or default
7865 to_find_memory_regions.
7866 (init_dummy_target): Don't initialize to_find_memory_regions.
7867 * target.h (struct target_ops) <to_find_memory_regions>: Use
7868 TARGET_DEFAULT_FUNC.
7869
d9cb0195
TT
78702014-02-19 Tom Tromey <tromey@redhat.com>
7871
7872 * target-delegates.c: Rebuild.
7873 * target.c (update_current_target): Don't inherit or default
7874 to_log_command.
7875 * target.h (struct target_ops) <to_log_command>: Use
7876 TARGET_DEFAULT_IGNORE.
7877 (target_log_command): Unconditionally delegate.
7878
830ca330
TT
78792014-02-19 Tom Tromey <tromey@redhat.com>
7880
7881 * target-delegates.c: Rebuild.
7882 * target.c (update_current_target): Don't inherit or default
7883 to_pid_to_exec_file.
7884 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7885 TARGET_DEFAULT_RETURN.
7886
825828fc
TT
78872014-02-19 Tom Tromey <tromey@redhat.com>
7888
7889 * target-delegates.c: Rebuild.
7890 * target.c (update_current_target): Don't inherit or default
7891 to_thread_name.
7892 (target_thread_name): Unconditionally delegate.
7893 * target.h (struct target_ops) <to_thread_name>: Use
7894 TARGET_DEFAULT_RETURN.
7895
4a7e6dda
TT
78962014-02-19 Tom Tromey <tromey@redhat.com>
7897
7898 * target-delegates.c: Rebuild.
7899 * target.c (update_current_target): Don't inherit or default
7900 to_extra_thread_info.
7901 * target.h (struct target_ops) <to_extra_thread_info>: Use
7902 TARGET_DEFAULT_RETURN.
7903
0db88c1d
TT
79042014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * target-delegates.c: Rebuild.
7907 * target.c (update_current_target): Don't inherit or default
7908 to_has_exited.
7909 * target.h (struct target_ops) <to_has_exited>: Use
7910 TARGET_DEFAULT_RETURN..
7911
6a9fa051
TT
79122014-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_set_syscall_catchpoint.
7917 (return_one): Remove.
7918 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7919 TARGET_DEFAULT_RETURN.
7920
62f64d7a
TT
79212014-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_insert_exec_catchpoint.
7926 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7927 TARGET_DEFAULT_RETURN.
7928
cda0f38c
TT
79292014-01-08 Tom Tromey <tromey@redhat.com>
7930
7931 * target-delegates.c: Rebuild.
7932 * target.c (update_current_target): Don't inherit or default
7933 to_insert_exec_catchpoint.
7934 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7935 TARGET_DEFAULT_RETURN.
7936
95c3375e
TT
79372014-02-19 Tom Tromey <tromey@redhat.com>
7938
7939 * target-delegates.c: Rebuild.
7940 * target.c (update_current_target): Don't inherit or default
7941 to_remove_vfork_catchpoint.
7942 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7943 TARGET_DEFAULT_RETURN.
7944
7e18a8dc
TT
79452014-02-19 Tom Tromey <tromey@redhat.com>
7946
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_insert_vfork_catchpoint.
7950 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7951 TARGET_DEFAULT_RETURN.
7952
e1a21fb7
TT
79532014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target-delegates.c: Rebuild.
7956 * target.c (update_current_target): Don't inherit or default
7957 to_remove_fork_catchpoint.
7958 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7959 TARGET_DEFAULT_RETURN.
7960
5958ebeb
TT
79612014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't inherit or default
7965 to_insert_fork_catchpoint.
7966 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7967 TARGET_DEFAULT_RETURN.
7968
340ba4bf
TT
79692014-02-19 Tom Tromey <tromey@redhat.com>
7970
7971 * target-delegates.c: Rebuild.
7972 * target.c (update_current_target): Don't inherit or default
7973 to_post_startup_inferior.
7974 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7975 TARGET_DEFAULT_IGNORE.
7976
7634da87
TT
79772014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target-delegates.c: Rebuild.
7980 * target.c (update_current_target): Don't inherit or default
7981 to_load.
7982 * target.h (struct target_ops) <to_load>: Use
7983 TARGET_DEFAULT_NORETURN.
7984
e19e919f
TT
79852014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target-delegates.c: Rebuild.
7988 * target.c (update_current_target): Don't inherit or default
7989 to_terminal_info.
7990 * target.h (struct target_ops) <to_terminal_info>: Use
7991 TARGET_DEFAULT_FUNC.
7992
c6ea8f79
TT
79932014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target-delegates.c: Rebuild.
7996 * target.c (update_current_target): Don't inherit or default
7997 to_terminal_save_ours.
7998 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7999 TARGET_DEFAULT_IGNORE.
8000
e4a733f1
TT
80012014-02-19 Tom Tromey <tromey@redhat.com>
8002
8003 * target-delegates.c: Rebuild.
8004 * target.c (update_current_target): Don't inherit or default
8005 to_terminal_ours.
8006 * target.h (struct target_ops) <to_terminal_ours>: Use
8007 TARGET_DEFAULT_IGNORE.
8008
74fcbef9
TT
80092014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (update_current_target): Don't inherit or default
8013 to_terminal_ours_for_output.
8014 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8015 TARGET_DEFAULT_IGNORE.
8016
ddeaacc9
TT
80172014-02-19 Tom Tromey <tromey@redhat.com>
8018
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_terminal_inferior.
8022 * target.h (struct target_ops) <to_terminal_inferior>: Use
8023 TARGET_DEFAULT_IGNORE.
8024
0343661d
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8029 to_terminal_init.
8030 * target.h (struct target_ops) <to_terminal_init>: Use
8031 TARGET_DEFAULT_IGNORE.
8032
77cdffe9
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_can_accel_watchpoint_condition.
8038 * target.h (struct target_ops)
8039 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8040
d03655e4
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_region_ok_for_hw_watchpoint.
8046 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8047 Use TARGET_DEFAULT_FUNC.
8048
65f160a9
TT
80492014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (update_current_target): Don't inherit or default
8053 to_watchpoint_addr_within_range.
8054 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8055 Use TARGET_DEFAULT_FUNC.
8056
61dd109f
TT
80572014-02-19 Tom Tromey <tromey@redhat.com>
8058
8059 * target-delegates.c: Rebuild.
8060 * target.c (update_current_target): Don't inherit or default
8061 to_remove_watchpoint.
8062 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8063 TARGET_DEFAULT_NORETURN.
8064
016facd4
TT
80652014-02-19 Tom Tromey <tromey@redhat.com>
8066
8067 * target-delegates.c: Rebuild.
8068 * target.c (update_current_target): Don't inherit or default
8069 to_insert_watchpoint.
8070 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8071 TARGET_DEFAULT_RETURN.
8072
418dabac
TT
80732014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (update_current_target): Don't inherit or default
8077 to_remove_hw_breakpoint.
8078 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8079 TARGET_DEFAULT_RETURN.
8080
61b371f9
TT
80812014-02-19 Tom Tromey <tromey@redhat.com>
8082
8083 * target-delegates.c: Rebuild.
8084 * target.c (update_current_target): Don't inherit or default
8085 to_insert_hw_breakpoint.
8086 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8087 TARGET_DEFAULT_RETURN.
8088
52b51d06
TT
80892014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target-delegates.c: Rebuild.
8092 * target.c (update_current_target): Don't inherit or default
8093 to_can_use_hw_breakpoint.
8094 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8095 TARGET_DEFAULT_RETURN.
8096
f86e59b2
TT
80972014-02-19 Tom Tromey <tromey@redhat.com>
8098
8099 * target-delegates.c: Rebuild.
8100 * target.c (update_current_target): Don't inherit or default
8101 to_files_info.
8102 * target.h (struct target_ops) <to_files_info>: Use
8103 TARGET_DEFAULT_IGNORE.
8104
6c628163
TT
81052014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (update_current_target): Don't inherit or default
8109 to_store.
8110 * target.h (struct target_ops) <to_store>: Use
8111 TARGET_DEFAULT_NORETURN.
8112
bebd3233
TT
81132014-02-19 Tom Tromey <tromey@redhat.com>
8114
8115 * target-delegates.c: Rebuild.
8116 * target.c (update_current_target): Don't inherit or default
8117 to_post_attach.
8118 * target.h (struct target_ops) <to_post_attach>: Use
8119 TARGET_DEFAULT_IGNORE.
8120
a53f3625
TT
81212014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (update_current_target): Don't inherit or default
8125 to_rcmd.
8126 (default_rcmd): New function.
8127 (do_monitor_command): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_rmcd>: Use
8129 TARGET_DEFAULT_FUNC.
8130
e9a29200
TT
81312014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target-delegates.c: Rebuild.
8134 * target.c (init_dummy_target): Don't initialize to_attach.
8135 (target_attach): Unconditionally delegate.
8136 * target.h (struct target_ops) <to_attach>: Use
8137 TARGET_DEFAULT_FUNC.
8138
09da0d0a
TT
81392014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target-delegates.c: Rebuild.
8142 * target.c (target_detach): Unconditionally delegate.
8143 (init_dummy_target): Don't initialize to_detach.
8144 * target.h (struct target_ops) <to_detach>: Use
8145 TARGET_DEFAULT_IGNORE.
8146
5436ff03
TT
81472014-02-19 Tom Tromey <tromey@redhat.com>
8148
8149 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8150 Add argument.
8151 (target_augmented_libraries_svr4_read): Add argument.
8152 * target.c (update_current_target): Update.
8153 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8154 argument.
8155
f0d960ea
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target.h (struct target_ops) <to_call_history_range>: Add
8159 argument.
8160 * target.c (target_call_history_range): Add argument.
8161 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8162 argument.
8163 (record_btrace_call_history_from): Update.
8164
ec0aea04
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target.h (struct target_ops) <to_call_history_from>: Add
8168 argument.
8169 * target.c (target_call_history_from): Add argument.
8170 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8171 argument.
8172
5df2fcba
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target.h (struct target_ops) <to_call_history>: Add argument.
8176 * target.c (target_call_history): Add argument.
8177 * record-btrace.c (record_btrace_call_history): Add 'self'
8178 argument.
8179
4e99c6b7
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target.h (struct target_ops) <to_insn_history_range>: Add
8183 argument.
8184 * target.c (target_insn_history_range): Add argument.
8185 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8186 argument.
8187 (record_btrace_insn_history_from): Update.
8188
9abc3ff3
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * target.h (struct target_ops) <to_insn_history_from>: Add
8192 argument.
8193 * target.c (target_insn_history_from): Add argument.
8194 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8195 argument.
8196
7a6c5609
TT
81972014-02-19 Tom Tromey <tromey@redhat.com>
8198
8199 * target.h (struct target_ops) <to_insn_history>: Add argument.
8200 * target.c (target_insn_history): Add argument.
8201 * record-btrace.c (record_btrace_insn_history): Add 'self'
8202 argument.
8203
606183ac
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target.h (struct target_ops) <to_goto_record>: Add argument.
8207 * target.c (target_goto_record): Add argument.
8208 * record-full.c (record_full_goto): Add 'self' argument.
8209 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8210
307a1b91
TT
82112014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8214 * target.c (target_goto_record_end): Add argument.
8215 * record-full.c (record_full_goto_end): Add 'self' argument.
8216 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8217
08475817
TT
82182014-02-19 Tom Tromey <tromey@redhat.com>
8219
8220 * target.h (struct target_ops) <to_goto_record_begin>: Add
8221 argument.
8222 * target.c (target_goto_record_begin): Add argument.
8223 * record-full.c (record_full_goto_begin): Add 'self' argument.
8224 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8225 argument.
8226
1c63c994
TT
82272014-02-19 Tom Tromey <tromey@redhat.com>
8228
8229 * target.h (struct target_ops) <to_record_is_replaying>: Add
8230 argument.
8231 * target.c (target_record_is_replaying): Add argument.
8232 * record-full.c (record_full_is_replaying): Add 'self' argument.
8233 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8234 argument.
8235 (record_btrace_xfer_partial, record_btrace_store_registers)
8236 (record_btrace_prepare_to_store, record_btrace_resume)
8237 (record_btrace_wait, record_btrace_decr_pc_after_break)
8238 (record_btrace_find_new_threads, record_btrace_thread_alive):
8239 Update.
8240
d1b55219
TT
82412014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target.h (struct target_ops) <to_delete_record>: Add argument.
8244 * target.c (target_delete_record): Add argument.
8245 * record-full.c (record_full_delete): Add 'self' argument.
8246
1390f529
TT
82472014-02-19 Tom Tromey <tromey@redhat.com>
8248
8249 * target.h (struct target_ops) <to_save_record>: Add argument.
8250 * target.c (target_save_record): Add argument.
8251 * record-full.c (record_full_save): Add 'self' argument.
8252 (record_full_save): Add 'self' argument.
8253
630d6a4a
TT
82542014-02-19 Tom Tromey <tromey@redhat.com>
8255
8256 * target.h (struct target_ops) <to_info_record>: Add argument.
8257 * target.c (target_info_record): Add argument.
8258 * record.c (info_record_command): Add argument.
8259 * record-full.c (record_full_info): Add 'self' argument.
8260 * record-btrace.c (record_btrace_info): Add 'self' argument.
8261
c6cd7c02
TT
82622014-02-19 Tom Tromey <tromey@redhat.com>
8263
8264 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8265 * target.c (target_stop_recording): Add argument.
8266 * record.c (record_stop): Add argument.
8267 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8268 argument.
8269
39c49f83
TT
82702014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8273 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8274 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8275 argument.
8276 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8277 (_initialize_amd64_linux_nat): Use it.
8278 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8279 (_initialize_i386_linux_nat): Use it.
8280
1777056d
TT
82812014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8284 * target.c (target_teardown_btrace): Add argument.
8285 * remote.c (remote_teardown_btrace): Add 'self' argument.
8286 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8287 argument.
8288 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8289 argument.
8290
25e95349
TT
82912014-02-19 Tom Tromey <tromey@redhat.com>
8292
8293 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8294 * target.c (target_disable_btrace): Add argument.
8295 * remote.c (remote_disable_btrace): Add 'self' argument.
8296 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8297 argument.
8298 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8299 argument.
8300
e3c49f88
TT
83012014-02-19 Tom Tromey <tromey@redhat.com>
8302
8303 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8304 * target.c (target_enable_btrace): Add argument.
8305 * remote.c (remote_enable_btrace): Add 'self' argument.
8306 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8307 argument.
8308 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8309 argument.
8310
fe38f897
TT
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8314 (target_can_use_agent): Add argument.
8315 * target.c (update_current_target): Update.
8316 * remote.c (remote_can_use_agent): Add 'self' argument.
8317 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8318
2c152180
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target.h (struct target_ops) <to_use_agent>: Add argument.
8322 (target_use_agent): Add argument.
8323 * target.c (update_current_target): Update.
8324 * remote.c (remote_use_agent): Add 'self' argument.
8325 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8326
a893e81f
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8330 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8331 (target_traceframe_info): Add argument.
8332 * target.c (update_current_target): Update.
8333 * remote.c (remote_traceframe_info): Add 'self' argument.
8334 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8335
c686c57f
TT
83362014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target.h (target_static_tracepoint_markers_by_strid): Add
8339 argument.
8340 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8341 'self' argument.
8342 * target.c (update_current_target): Update.
8343 * remote.c (struct target_ops)
8344 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8345 * linux-nat.c (struct target_ops)
8346 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8347
61fc905d
TT
83482014-02-19 Tom Tromey <tromey@redhat.com>
8349
8350 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8351 Add argument.
8352 (target_static_tracepoint_marker_at): Add argument.
8353 * target.c (update_current_target): Update.
8354 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8355 argument.
8356
c378d69d
TT
83572014-02-19 Tom Tromey <tromey@redhat.com>
8358
8359 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8360 (target_set_permissions): Add argument.
8361 * target.c (update_current_target): Update.
8362 * remote.c (remote_set_permissions): Add 'self' argument.
8363 (remote_start_remote): Update.
8364
bd7ae0f5
TT
83652014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8368 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8369 (target_get_tib_address): Add argument.
8370 * target.c (update_current_target): Update.
8371 * remote.c (remote_get_tib_address): Add 'self' argument.
8372
d9e68a2c
TT
83732014-02-19 Tom Tromey <tromey@redhat.com>
8374
8375 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8376 (target_set_trace_notes): Add argument.
8377 * target.c (update_current_target): Update.
8378 * remote.c (remote_set_trace_notes): Add 'self' argument.
8379
4da384be
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8383 argument.
8384 (target_set_trace_buffer_size): Add argument.
8385 * target.c (update_current_target): Update.
8386 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8387
736d5b1f
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8391 argument.
8392 (target_set_circular_trace_buffer): Add argument.
8393 * target.c (update_current_target): Update.
8394 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8395 argument.
8396
37b25738
TT
83972014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8400 argument.
8401 (target_set_disconnected_tracing): Add argument.
8402 * target.c (update_current_target): Update.
8403 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8404
0e67620a
TT
84052014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target.h (struct target_ops)
8408 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8409 (target_get_min_fast_tracepoint_insn_len): Add argument.
8410 * target.c (update_current_target): Update.
8411 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8412 argument.
8413
88ee6f45
TT
84142014-02-19 Tom Tromey <tromey@redhat.com>
8415
8416 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8417 argument.
8418 (target_get_raw_trace_data): Add argument.
8419 * target.c (update_current_target): Update.
8420 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8421
181e3713
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8425 Add argument.
8426 (target_upload_trace_state_variables): Add argument.
8427 * target.c (update_current_target): Update.
8428 * remote.c (remote_upload_trace_state_variables): Add 'self'
8429 argument.
8430 (remote_start_remote): Update.
8431
ab6617cc
TT
84322014-02-19 Tom Tromey <tromey@redhat.com>
8433
8434 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8435 argument.
8436 (target_upload_tracepoints): Add argument.
8437 * target.c (update_current_target): Update.
8438 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8439 (remote_start_remote): Update.
8440
dc3decaf
TT
84412014-02-19 Tom Tromey <tromey@redhat.com>
8442
8443 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8444 (target_save_trace_data): Add argument.
8445 * target.c (update_current_target): Update.
8446 * remote.c (remote_save_trace_data): Add 'self' argument.
8447
4011015b
TT
84482014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8451 argument.
8452 * target.h (struct target_ops)
8453 <to_get_trace_state_variable_value>: Add argument.
8454 (target_get_trace_state_variable_value): Add argument.
8455 * target.c (update_current_target): Update.
8456 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8457 argument.
8458 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8459
bd4c6793
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8463 * target.h (struct target_ops) <to_trace_find>: Add argument.
8464 (target_trace_find): Add argument.
8465 * target.c (update_current_target): Update.
8466 * remote.c (remote_trace_find): Add 'self' argument.
8467 * ctf.c (ctf_trace_find): Add 'self' argument.
8468
74499f1b
TT
84692014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8472 (target_trace_stop): Add argument.
8473 * target.c (update_current_target): Update.
8474 * remote.c (remote_trace_stop): Add 'self' argument.
8475
db90e85c
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8479 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8480 argument.
8481 (target_get_tracepoint_status): Add argument.
8482 * target.c (update_current_target): Update.
8483 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8484
8bd200f1
TT
84852014-02-19 Tom Tromey <tromey@redhat.com>
8486
8487 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8488 * target.h (struct target_ops) <to_get_trace_status>: Add
8489 argument.
8490 (target_get_trace_status): Add argument.
8491 * target.c (update_current_target): Update.
8492 * remote.c (remote_get_trace_status): Add 'self' argument.
8493 (remote_start_remote, remote_can_download_tracepoint): Update.
8494 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8495
e2d1aae3
TT
84962014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target.h (struct target_ops) <to_trace_start>: Add argument.
8499 (target_trace_start): Add argument.
8500 * target.c (update_current_target): Update.
8501 * remote.c (remote_trace_start): Add 'self' argument.
8502
583f9a86
TT
85032014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8506 Add argument.
8507 (target_trace_set_readonly_regions): Add argument.
8508 * target.c (update_current_target): Update.
8509 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8510 argument.
8511
780b049c
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8515 argument.
8516 (target_disable_tracepoint): Add argument.
8517 * target.c (update_current_target): Update.
8518 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8519
46670d57
TT
85202014-02-19 Tom Tromey <tromey@redhat.com>
8521
8522 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8523 argument.
8524 (target_enable_tracepoint): Add argument.
8525 * target.c (update_current_target): Update.
8526 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8527
559d2b81
TT
85282014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target.h (struct target_ops) <to_download_trace_state_variable>:
8531 Add argument.
8532 (target_download_trace_state_variable): Add argument.
8533 * target.c (update_current_target): Update.
8534 * remote.c (remote_download_trace_state_variable): Add 'self'
8535 argument.
8536
a52a8357
TT
85372014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8540 argument.
8541 (target_can_download_tracepoint): Add argument.
8542 * target.c (update_current_target): Update.
8543 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8544
548f7808
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * target.h (struct target_ops) <to_download_tracepoint>: Add
8548 argument.
8549 (target_download_tracepoint): Add argument.
8550 * target.c (update_current_target): Update.
8551 * remote.c (remote_download_tracepoint): Add 'self' argument.
8552
ecae04e1
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 * target.h (struct target_ops) <to_trace_init>: Add argument.
8556 (target_trace_init): Add argument.
8557 * target.c (update_current_target): Update.
8558 * remote.c (remote_trace_init): Add 'self' argument.
8559
fab5aa7c
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8563 * target.c (target_fileio_readlink): Add argument.
8564 * remote.c (remote_hostio_readlink): Add 'self' argument.
8565 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8566
dbbca37d
TT
85672014-02-19 Tom Tromey <tromey@redhat.com>
8568
8569 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8570 * target.c (target_fileio_unlink): Add argument.
8571 * remote.c (remote_hostio_unlink): Add 'self' argument.
8572 (remote_file_delete): Update.
8573 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8574
df39ea25
TT
85752014-02-19 Tom Tromey <tromey@redhat.com>
8576
8577 * target.h (struct target_ops) <to_fileio_close>: Add argument.
8578 * target.c (target_fileio_close): Add argument.
8579 * remote.c (remote_hostio_close): Add 'self' argument.
8580 (remote_hostio_close_cleanup): Update.
8581 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8582 Update.
8583 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8584
a3be983c
TT
85852014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8588 * target.c (target_fileio_pread): Add argument.
8589 * remote.c (remote_hostio_pread): Add 'self' argument.
8590 (remote_bfd_iovec_pread, remote_file_get): Update.
8591 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8592
0d866f62
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8596 * target.c (target_fileio_pwrite): Add argument.
8597 * remote.c (remote_hostio_pwrite): Add 'self' argument.
8598 (remote_file_put): Update.
8599 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8600
cd897586
TT
86012014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target.h (struct target_ops) <to_fileio_open>: Add argument.
8604 * target.c (target_fileio_open): Add argument.
8605 * remote.c (remote_hostio_open): Add 'self' argument.
8606 (remote_bfd_iovec_open): Add 'self' argument.
8607 (remote_file_put): Add 'self' argument.
8608 (remote_file_get): Add 'self' argument.
8609 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8610
78eff0ec
TT
86112014-02-19 Tom Tromey <tromey@redhat.com>
8612
8613 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8614 Add argument.
8615 (target_can_run_breakpoint_commands): Add argument.
8616 * target.c (update_current_target): Update.
8617 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8618 argument.
8619 (remote_insert_breakpoint): Add 'self' argument.
8620 (remote_insert_hw_breakpoint): Add 'self' argument.
8621 (remote_can_run_breakpoint_commands): Add 'self' argument.
8622
efcc2da7
TT
86232014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target.h (struct target_ops)
8626 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8627 (target_supports_evaluation_of_breakpoint_conditions): Add
8628 argument.
8629 * target.c (update_current_target): Update.
8630 * remote.c (remote_supports_cond_breakpoints): Add 'self'
8631 argument.
8632 (remote_insert_breakpoint): Add 'self' argument.
8633 (remote_insert_hw_breakpoint): Add 'self' argument.
8634 (remote_supports_cond_breakpoints): Add 'self' argument.
8635
6de37a3a
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target.h (struct target_ops) <to_supports_string_tracing>: Add
8639 argument.
8640 (target_supports_string_tracing): Add argument.
8641 * target.c (update_current_target): Update.
8642 * remote.c (remote_supports_string_tracing): Add 'self' argument.
8643
2bfc0540
TT
86442014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target.h (struct target_ops)
8647 <to_supports_disable_randomization>: Add argument.
8648 * target.c (find_default_supports_disable_randomization): Add
8649 argument.
8650 (target_supports_disable_randomization): Add argument.
8651 (find_default_supports_disable_randomization): Add 'self'
8652 argument.
8653 * remote.c (extended_remote_supports_disable_randomization): Add
8654 'self' argument.
8655 (remote_supports_disable_randomization): Add 'self' argument.
8656 (extended_remote_create_inferior): Update.
8657 * linux-nat.c (linux_nat_supports_disable_randomization): Add
8658 'self' argument.
8659
7d178d6a
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target.h (struct target_ops)
8663 <to_supports_enable_disable_tracepoint>: Add argument.
8664 (target_supports_enable_disable_tracepoint): Add argument.
8665 * target.c (update_current_target): Update.
8666 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8667 argument.
8668
86ce2668
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target.h (struct target_ops) <to_supports_multi_process>: Add
8672 argument.
8673 (target_supports_multi_process): Add argument.
8674 * target.c (update_current_target): Update.
8675 * remote.c (remote_supports_multi_process): Add 'self' argument.
8676 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8677 argument.
8678 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8679 argument.
8680
4c612759
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target.h (struct target_ops) <to_execution_direction>: Add
8684 argument.
8685 (target_execution_direction): Add argument.
8686 * target.c (default_execution_direction): Add 'self' argument.
8687 * record-full.c (record_full_execution_direction): Add 'self'
8688 argument.
8689
19db3e69
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target.h (struct target_ops) <to_can_execute_reverse>: Add
8693 argument.
8694 (target_can_execute_reverse): Add argument.
8695 * remote.c (remote_can_execute_reverse): Add 'self' argument.
8696 * record-full.c (record_full_can_execute_reverse): Add 'self'
8697 argument.
8698 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8699 argument.
8700
1e6b91a4
TT
87012014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8704 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8705 argument.
8706 (target_get_ada_task_ptid): Add argument.
8707 * target.c (update_current_target): Update.
8708 (default_get_ada_task_ptid): Add 'self' argument.
8709 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8710 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8711 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8712 argument.
8713 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8714 argument.
8715 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8716 argument.
8717 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8718 argument.
8719 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8720 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8721 argument.
8722
3c80fb48
TT
87232014-02-19 Tom Tromey <tromey@redhat.com>
8724
8725 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8726 (target_goto_bookmark): Add argument.
8727 * target.c (dummy_goto_bookmark): Add 'self' argument.
8728 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8729
dd0e2830
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8733 (target_get_bookmark): Add argument.
8734 * target.c (dummy_get_bookmark): Add 'self' argument.
8735 * record-full.c (record_full_get_bookmark): Add 'self' argument.
8736
fc6691b2
TT
87372014-02-19 Tom Tromey <tromey@redhat.com>
8738
8739 * target.h (struct target_ops) <to_make_corefile_notes>: Add
8740 argument.
8741 (target_make_corefile_notes): Add argument.
8742 * target.c (dummy_make_corefile_notes): Add 'self' argument.
8743 * procfs.c (procfs_make_note_section): Add 'self' argument.
8744 (procfs_make_note_section): Add 'self' argument.
8745 (procfs_make_note_section): Add 'self' argument.
8746 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8747 argument.
8748 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8749 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8750 * exec.c (exec_make_note_section): Add 'self' argument.
8751 (exec_make_note_section): Add 'self' argument.
8752
2e73927c
TT
87532014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target.h (struct target_ops) <to_find_memory_regions>: Add
8756 argument.
8757 (target_find_memory_regions): Add argument.
8758 * target.c (dummy_find_memory_regions): Add 'self' argument.
8759 * procfs.c (proc_find_memory_regions): Add 'self' argument.
8760 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8761 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8762 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8763 * exec. (exec_do_find_memory_regions): New global.
8764 (exec_set_find_memory_regions): Rewrite.
8765 (exec_find_memory_regions): New function.
8766 (init_exec_ops): Use exec_find_memory_regions.
8767
2a9a2795
TT
87682014-02-19 Tom Tromey <tromey@redhat.com>
8769
8770 * target.h (struct target_ops) <to_supports_non_stop>: Add
8771 argument.
8772 * target.c (find_default_supports_non_stop): Add argument.
8773 (target_supports_non_stop): Add argument.
8774 (find_default_supports_non_stop): Add 'self' argument.
8775 * remote.c (remote_supports_non_stop): Add 'self' argument.
8776 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8777
4ab76ea3
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target.h (struct target_ops) <to_log_command>: Add argument.
8781 (target_log_command): Add argument.
8782 * serial.h (serial_log_command): Add 'self' argument.
8783 * serial.c (serial_log_command): Add 'self' argument.
8784
8dd27370
TT
87852014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8788 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8789 argument.
8790 (target_pid_to_exec_file): Add argument.
8791 * target.c (debug_to_pid_to_exec_file): Add argument.
8792 (update_current_target): Update.
8793 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8794 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8795 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8796 (linux_handle_extended_wait): Update.
8797 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8798 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8799 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8800 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8801
1aac633b
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (struct target_ops) <to_rcmd>: Add argument.
8805 (target_rcmd): Add argument.
8806 * target.c (debug_to_rcmd): Add argument.
8807 (update_current_target, do_monitor_command): Update.
8808 * remote.c (remote_rcmd): Add 'self' argument.
8809 * monitor.c (monitor_rcmd): Add 'self' argument.
8810
1eab8a48
TT
88112014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * windows-nat.c (windows_stop): Add 'self' argument.
8814 * target.h (struct target_ops) <to_stop>: Add argument.
8815 * target.c (target_stop): Add argument.
8816 (debug_to_stop): Add argument.
8817 (update_current_target): Update.
8818 * remote.c (remote_stop): Add 'self' argument.
8819 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8820 (gdbsim_cntrl_c): Update.
8821 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8822 * procfs.c (procfs_stop): Add 'self' argument.
8823 * nto-procfs.c (procfs_stop): Add 'self' argument.
8824 * monitor.c (monitor_stop): Add 'self' argument.
8825 (monitor_open): Update.
8826 * linux-nat.c (linux_nat_stop): Add argument.
8827 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8828 * gnu-nat.c (gnu_stop): Add 'self' argument.
8829 * darwin-nat.c (darwin_stop): Add 'self' argument.
8830
503a628d
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target.h (struct target_ops) <to_thread_name>: Add argument.
8834 * target.c (target_thread_name): Add argument.
8835 (update_current_target): Update.
8836 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8837
c15906d8
TT
88382014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target.h (struct target_ops) <to_extra_thread_info>: Add
8841 argument.
8842 (target_extra_thread_info): Add argument.
8843 * target.c (update_current_target): Update.
8844 * remote.c (remote_threads_extra_info): Add 'self' argument.
8845 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8846 argument.
8847 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8848 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8849 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8850 argument.
8851 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8852 argument.
8853 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8854 argument.
8855 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8856 argument.
8857
daf5e9b6
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target.h (struct target_ops) <to_program_signals>: Add argument.
8861 * target.c (target_program_signals): Add argument.
8862 * remote.c (remote_program_signals): Add 'self' argument.
8863
94bedb42
TT
88642014-02-19 Tom Tromey <tromey@redhat.com>
8865
8866 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8867 * target.c (target_pass_signals): Add argument.
8868 * remote.c (remote_pass_signals): Add 'self' argument.
8869 (remote_start_remote): Update.
8870 * procfs.c (procfs_pass_signals): Add 'self' argument.
8871 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8872 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8873 (linux_nat_create_inferior, linux_nat_attach): Update.
8874
da82bd6b
TT
88752014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * windows-nat.c (windows_can_run): Add 'self' argument.
8878 * target.h (struct target_ops) <to_can_run>: Add argument.
8879 (target_can_run): Add argument.
8880 * target.c (debug_to_can_run): Add argument.
8881 (update_current_target): Update.
8882 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8883 * inf-child.c (inf_child_can_run): Add 'self' argument.
8884 * go32-nat.c (go32_can_run): Add 'self' argument.
8885
d796e1d6
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target.h (struct target_ops) <to_has_exited>: Add argument.
8889 (target_has_exited): Add argument.
8890 * target.c (debug_to_has_exited): Add argument.
8891 (update_current_target): Update.
8892
ff214e67
TT
88932014-02-19 Tom Tromey <tromey@redhat.com>
8894
8895 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8896 argument.
8897 (target_set_syscall_catchpoint): Add argument.
8898 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8899 argument.
8900 * target.c (update_current_target): Update.
8901
758e29d2
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8905 argument.
8906 (target_remove_exec_catchpoint): Add argument.
8907 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8908 (update_current_target): Update.
8909 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8910 argument.
8911
ba025e51
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8915 argument.
8916 (target_insert_exec_catchpoint): Add argument.
8917 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8918 (update_current_target): Update.
8919 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8920 argument.
8921
e98cf0cd
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8925 argument.
8926 (target_remove_vfork_catchpoint): Add argument.
8927 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8928 (update_current_target): Update.
8929 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8930 argument.
8931
3ecc7da0
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8935 argument.
8936 (target_insert_vfork_catchpoint): Add argument.
8937 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8938 (update_current_target): Update.
8939 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8940 argument.
8941
973fc227
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8945 argument.
8946 (target_remove_fork_catchpoint): Add argument.
8947 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8948 (update_current_target): Update.
8949 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8950 argument.
8951
a863b201
TT
89522014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8955 argument.
8956 (target_insert_fork_catchpoint): Add argument.
8957 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8958 (update_current_target): Update.
8959 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8960 argument.
8961
2e97a79e
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8965 argument.
8966 (target_post_startup_inferior): Add argument.
8967 * target.c (debug_to_post_startup_inferior): Add argument.
8968 (update_current_target): Update.
8969 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8970 argument.
8971 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8972 argument.
8973 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8974 argument.
8975 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8976 argument.
8977 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8978 'self' argument.
8979 (super_post_startup_inferior): Likewise.
8980 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8981 'self' argument.
8982 (super_post_startup_inferior): Likewise.
8983 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8984 Add 'self' argument.
8985 (super_post_startup_inferior): Likewise.
8986
71a9f134
TT
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_load>: Add argument.
8990 * target.c (target_load): Add argument.
8991 (debug_to_load): Add argument.
8992 (update_current_target): Update.
8993 * remote.c (remote_load): Add 'self' argument.
8994 * remote-sim.c (gdbsim_load): Add 'self' argument.
8995 * remote-mips.c (mips_load): Add 'self' argument.
8996 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8997 * monitor.c (monitor_load): Add 'self' argument.
8998 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8999
0a4f40a2
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9003 (target_terminal_info): Add argument.
9004 * target.c (debug_to_terminal_info): Add argument.
9005 (default_terminal_info): Likewise.
9006 * inflow.c (child_terminal_info): Add 'self' argument.
9007 * inferior.h (child_terminal_info): Add 'self' argument.
9008 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9009
ae3bd431
TT
90102014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9013 argument.
9014 (target_terminal_save_ours): Add argument.
9015 * target.c (debug_to_terminal_save_ours): Add argument.
9016 (update_current_target): Update.
9017 * inflow.c (terminal_save_ours): Add 'self' argument.
9018 * inferior.h (terminal_save_ours): Add 'self' argument.
9019
e3594fd1
TT
90202014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9023 (target_terminal_ours): Add argument.
9024 * target.c (debug_to_terminal_ours): Add argument.
9025 (update_current_target): Update.
9026 * remote.c (remote_terminal_ours): Add 'self' argument.
9027 (remote_close): Update.
9028 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9029 * inflow.c (terminal_ours): Add 'self' argument.
9030 * inferior.h (terminal_ours): Add 'self' argument.
9031 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9032
2e1e1a19
TT
90332014-02-19 Pedro Alves <palves@redhat.com>
9034 Tom Tromey <tromey@redhat.com>
9035
9036 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9037 argument.
9038 (target_terminal_ours_for_output): Add argument.
9039 * target.c (debug_to_terminal_ours_for_output): Add argument.
9040 (update_current_target): Update.
9041 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9042 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9043 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9044
d2f640d4
TT
90452014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target.h (struct target_ops) <to_terminal_inferior>: Add
9048 argument.
9049 * target.c (target_terminal_inferior): Add argument.
9050 (update_current_target): Update.
9051 * remote.c (remote_terminal_inferior): Add 'self' argument.
9052 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9053 * inflow.c (terminal_inferior): Add 'self' argument.
9054 * inferior.h (terminal_inferior): Add 'self' argument.
9055 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9056 (go32_terminal_inferior): Add 'self' argument.
9057
c42bf286
TT
90582014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9061 (target_terminal_init): Add argument.
9062 * target.c (debug_to_terminal_init): Add argument.
9063 (update_current_target): Update.
9064 * inflow.c (terminal_init_inferior): Add 'self' argument.
9065 * inferior.h (terminal_init_inferior): Add 'self' argument.
9066 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9067 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9068
c3a5ff89
TT
90692014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target.h (struct target_ops)
9072 <to_can_accel_watchpoint_condition>: Add argument.
9073 (target_can_accel_watchpoint_condition): Add argument.
9074 * target.c (debug_to_can_accel_watchpoint_condition): Add
9075 argument.
9076 (update_current_target): Update.
9077 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9078 'self' argument.
9079
31568a15
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9083 Add argument.
9084 (target_region_ok_for_hw_watchpoint): Add argument.
9085 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9086 (default_region_ok_for_hw_watchpoint): Add argument.
9087 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9088 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9089 argument.
9090 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9091 argument.
9092 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9093 argument.
9094 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9095 'self' argument.
9096 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9097 'self' argument.
9098 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9099 'self' argument.
9100 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9101 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9102 'self' argument.
9103 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9104 Add 'self' argument.
9105
7bb99c53
TT
91062014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9109 argument.
9110 (target_insert_watchpoint): Add argument.
9111 * target.c (debug_to_insert_watchpoint): Add argument.
9112 (update_current_target): Update.
9113 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9114 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9115 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9116 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9117 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9118 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9119 argument.
9120 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9121 (procfs_insert_hw_watchpoint): Add 'self' argument.
9122 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9123 argument.
9124 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9125 argument.
9126 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9127 argument.
9128 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9129 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9130 argument.
9131 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9132 'self' argument.
9133
11b5219a
TT
91342014-02-19 Tom Tromey <tromey@redhat.com>
9135
9136 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9137 argument.
9138 (target_remove_watchpoint): Add argument.
9139 * target.c (debug_to_remove_watchpoint): Add argument.
9140 (update_current_target): Update.
9141 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9142 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9143 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9144 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9145 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9146 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9147 argument.
9148 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9149 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9150 argument.
9151 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9152 argument.
9153 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9154 argument.
9155 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9156 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9157 argument.
9158 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9159 'self' argument.
9160
a64dc96c
TT
91612014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9164 argument.
9165 (target_remove_hw_breakpoint): Add argument.
9166 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9167 (update_current_target): Update.
9168 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9169 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9170 argument.
9171 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9172 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9173 argument.
9174 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9175 'self' argument.
9176
23a26771
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9180 argument.
9181 (target_insert_hw_breakpoint): Add argument.
9182 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9183 (update_current_target): Update.
9184 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9185 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9186 argument.
9187 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9188 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9189 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9190 argument.
9191 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9192 'self' argument.
9193
5461485a
TT
91942014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9197 argument.
9198 (target_can_use_hardware_watchpoint): Add argument.
9199 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9200 (update_current_target): Update.
9201 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9202 argument.
9203 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9204 argument.
9205 * remote.c (remote_check_watch_resources): Add 'self' argument.
9206 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9207 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9208 argument.
9209 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9210 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9211 argument.
9212 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9213 argument.
9214 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9215 argument.
9216 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9217 argument.
9218 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9219 argument.
9220 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9221 argument.
9222 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9223 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9224 argument.
9225 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9226 'self' argument.
9227
f045800c
TT
92282014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target.h (struct target_ops) <to_post_attach>: Add argument.
9231 (target_post_attach): Add argument.
9232 * target.c (debug_to_post_attach): Add argument.
9233 (update_current_target): Update.
9234 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9235 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9236 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9237 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9238 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9239
de90e03d
TT
92402014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * windows-nat.c (windows_close): Add 'self' argument.
9243 * tracepoint.c (tfile_close): Add 'self' argument.
9244 * target.h (struct target_ops) <to_close>: Add argument.
9245 * target.c (target_close): Add argument.
9246 (update_current_target): Update.
9247 * remote.c (remote_close): Add 'self' argument.
9248 * remote-sim.c (gdbsim_close): Add 'self' argument.
9249 * remote-mips.c (mips_close): Add 'self' argument.
9250 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9251 * record-full.c (record_full_close): Add 'self' argument.
9252 * record-btrace.c (record_btrace_close): Add 'self' argument.
9253 * monitor.h (monitor_close): Add 'self' argument.
9254 * monitor.c (monitor_close): Add 'self' argument.
9255 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9256 * linux-nat.c (linux_nat_close): Add argument.
9257 * go32-nat.c (go32_close): Add 'self' argument.
9258 * exec.c (exec_close_1): Add 'self' argument.
9259 * ctf.c (ctf_close): Add 'self' argument.
9260 * corelow.c (core_close): Add 'self' argument.
9261 (core_close_cleanup): Update.
9262 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9263 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9264
9dd130a0
TT
92652014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * remote.c (remote_load): New function.
9268 (init_remote_ops): Use it.
9269
46917d26
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9273 argument.
9274 * common/linux-btrace.h (linux_supports_btrace): Update.
9275 * remote.c (remote_supports_btrace): Add "self" argument.
9276 * target-delegates.c: Rebuild.
9277 * target.c (target_supports_btrace): Remove.
9278 * target.h (struct target_ops) <to_supports_btrace>: Add
9279 target_ops argument.
9280 (target_supports_btrace): New define.
9281
6b84065d
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * record-full.c (record_full_beneath_to_resume_ops)
9285 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9286 (record_full_beneath_to_wait)
9287 (record_full_beneath_to_store_registers_ops)
9288 (record_full_beneath_to_store_registers)
9289 (record_full_beneath_to_xfer_partial_ops)
9290 (record_full_beneath_to_xfer_partial)
9291 (record_full_beneath_to_insert_breakpoint_ops)
9292 (record_full_beneath_to_insert_breakpoint)
9293 (record_full_beneath_to_remove_breakpoint_ops)
9294 (record_full_beneath_to_remove_breakpoint)
9295 (record_full_beneath_to_stopped_by_watchpoint)
9296 (record_full_beneath_to_stopped_data_address)
9297 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9298 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9299 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9300 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9301 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9302 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9303 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9304 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9305 (record_full_resume, record_full_wait_1)
9306 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9307 (record_full_store_registers, record_full_xfer_partial)
9308 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9309 (record_full_async, record_full_core_xfer_partial): Use target
9310 delegation.
9311 * target-delegates.c: Rebuild.
9312 * target.c (current_xfer_partial): Remove.
9313 (update_current_target): Do not INHERIT or de_fault
9314 to_insert_breakpoint, to_remove_breakpoint,
9315 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9316 to_is_async_p, to_async. Do not set to_xfer_partial field.
9317 (default_xfer_partial): Simplify.
9318 (current_xfer_partial): Remove.
9319 (target_wait, target_resume): Simplify.
9320 (find_default_can_async_p, find_default_is_async_p): Update.
9321 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9322 to_xfer_partial, to_stopped_by_watchpoint,
9323 to_stopped_data_address.
9324 (target_store_registers): Simplify.
9325 (forward_target_remove_breakpoint)
9326 (forward_target_insert_breakpoint): Remove.
9327 (target_remove_breakpoint, target_insert_breakpoint)
9328 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9329 * target.h (struct target_ops) <to_resume, to_wait,
9330 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9331 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9332 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9333 markup.
9334 (forward_target_remove_breakpoint)
9335 (forward_target_insert_breakpoint): Remove.
9336 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9337 directly.
9338 (record_btrace_insert_breakpoint): Delegate directly.
9339
1101cb7b
TT
93402014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 PR build/7701:
9343 * target-delegates.c: New file.
9344 * target.c: Include target-delegates.c.
9345 (init_dummy_target): Call install_dummy_methods.
9346 (complete_target_initialization): Call install_delegators.
9347 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9348 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9349 * make-target-delegates: New file.
9350
8b06beed
TT
93512014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * record.c (find_record_target): Use find_target_at.
9354 * target.c (find_target_at): New function.
9355 * target.h (find_target_at): Declare.
9356
6a109b6b
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9360 Add 'ops' argument.
9361 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9362 'ops' argument.
9363 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9364 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9365 'ops' argument.
9366 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9367 argument.
9368 * linux-nat.c (save_sigtrap): Update.
9369 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9370 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9371 (linux_nat_close): Update.
9372 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9373 argument.
9374 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9375 argument.
9376 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9377 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9378 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9379 (tmp_to_async): Add 'ops' argument.
9380 (record_full_stopped_by_watchpoint, record_full_async)
9381 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9382 argument.
9383 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9384 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9385 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9386 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9387 (remote_is_async_p, remote_async): Add 'ops' argument.
9388 (remote_stopped_data_address): Update.
9389 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9390 * target.c (update_current_target)
9391 (find_default_can_async_p, find_default_is_async_p): Update.
9392 (init_dummy_target): Update.
9393 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9394 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9395 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9396 (target_can_async_p, target_is_async_p, target_async)
9397 (target_stopped_by_watchpoint): Update.
9398
e095146b
YQ
93992014-02-19 Yao Qi <yao@codesourcery.com>
9400
9401 PR gdb/16220
9402 * gdbarch.sh: Remove startup_gdbarch.
9403 * gdbarch.c: Regenerated.
9404 * gdbarch.h: Likewise.
9405
bc3c6b36
KB
94062014-02-17 Kevin Buettner <kevinb@redhat.com>
9407
9408 * rl78-tdep.c (rl78_g10_register_name): New function.
9409 (rl78_return_value): Add g10 support.
9410 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9411 g10.
9412
98dc0167 94132014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9414
9415 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9416 (SUBDIR_GUILE_SRCS): Ditto.
9417 (scm-gsmob.o): Ditto.
9418
842c05cd
YQ
94192014-02-17 Yao Qi <yao@codesourcery.com>
9420
9421 * gnu-nat.c (ILL_RPC): Declare defined function.
9422
25c0bd04
YQ
94232014-02-17 Yao Qi <yao@codesourcery.com>
9424
9425 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9426 mach_msg_type_number_t.
9427 (gnu_write_inferior): Likewise.
9428
a9a758e3
YQ
94292014-02-17 Yao Qi <yao@codesourcery.com>
9430
9431 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9432 in format string.
9433 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9434 (inf_validate_procs, inf_signal): Likewise.
9435 (S_exception_raise_request): Likewise.
9436 (do_mach_notify_dead_name): Likewise.
9437 (steal_exc_port): Likewise.
9438 (gnu_read_inferior): Change 'copy_count''s type to
9439 mach_msg_type_number_t.
9440 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9441 format string.
9442
bae8023e
TS
94432014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9444
c82f56d9
TS
9445 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9446 flag. Adjust all users; in particular...
9447 (gnu_wait): ..., don't decrement its value in here...
9448 (gnu_create_inferior): ..., and instead set the flag in here,
9449 around the startup_inferior call, and call that one with
9450 START_INFERIOR_TRAPS_EXPECTED.
9451
3398af6a
TS
9452 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9453 (ILL_RPC): ... new macro.
9454 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9455 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9456 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9457 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9458 functions with ILL_RPC macro.
9459 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9460 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9461 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9462 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9463 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9464 (S_proc_getlogin_reply, S_proc_getsid_reply)
9465 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9466 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9467 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9468 (S_proc_getnports_reply, S_proc_is_important_reply)
9469 (S_proc_get_code_reply): New stub functions, generated with
9470 ILL_RPC macro.
9471
d47642c9
TS
9472 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9473 collected the type check structures.
9474
bae8023e
TS
9475 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9476
8a55ffb0
DE
94772014-02-14 Doug Evans <dje@google.com>
9478
9479 * target.c (target_write_partial): Fix result type.
9480
c2853f3d
JM
94812014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9482
9483 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9484 the proper offsets to access fpregset_t.
9485
ac61d2db
SA
94862014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9487
9488 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9489 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9490 * h8300-tdep.c (setmachinelist): Remove global.
9491 * hppa-tdep.c (hppa_sigtramp): Remove global.
9492 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9493 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9494 * ravenscar-thread.c (update_target_observer): Remove global.
9495 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9496
9d2d0b8b
TT
94972014-02-12 Tom Tromey <tromey@redhat.com>
9498
9499 * common/rsp-low.c: Update comments.
9500 * common/rsp-low.h: Update comments.
9501
a7191e8b
TT
95022014-02-12 Tom Tromey <tromey@redhat.com>
9503
9504 * common/rsp-low.c (convert_ascii_to_int): Remove.
9505 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9506
ff0e980e
TT
95072014-02-12 Tom Tromey <tromey@redhat.com>
9508
9509 * common/rsp-low.h (unhexify): Don't declare.
9510 * common/rsp-low.c (unhexify): Remove.
9511
e9371aff
TT
95122014-02-12 Tom Tromey <tromey@redhat.com>
9513
9514 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9515 * common/rsp-low.c (convert_int_to_ascii): Remove.
9516
971dc0b8
TT
95172014-02-12 Tom Tromey <tromey@redhat.com>
9518
9519 * common/rsp-low.h (hexify): Don't declare.
9520 * common/rsp-low.c (hexify): Remove.
9521
0a822afb
TT
95222014-02-12 Tom Tromey <tromey@redhat.com>
9523
9524 * common/rsp-low.c (hexify): Never take strlen of argument.
9525
9f1b45b0
TT
95262014-02-12 Tom Tromey <tromey@redhat.com>
9527
9528 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9529 * remote.c (extended_remote_run, remote_rcmd)
9530 (remote_download_trace_state_variable, remote_save_trace_data)
9531 (remote_set_trace_notes): Update.
9532 * tracepoint.c (encode_source_string, tfile_write_status)
9533 (tfile_write_uploaded_tsv): Update.
9534
9c3d6531
TT
95352014-02-12 Tom Tromey <tromey@redhat.com>
9536
9537 * tracepoint.c: Include rsp-low.h.
9538 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9539 * remote.c: Include rsp-low.h.
9540 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9541 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9542 (remote_unescape_input): Move to common/rsp-low.c.
9543 * common/rsp-low.h: New file.
9544 * common/rsp-low.c: New file.
9545 * Makefile.in (SFILES): Add common/rsp-low.c.
9546 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9547 (COMMON_OBS): Add rsp-low.o.
9548 (rsp-low.o): New target.
9549
01fd3ea5
TT
95502014-02-12 Tom Tromey <tromey@redhat.com>
9551
9552 * utils.h: Include print-utils.h.
9553 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9554 (int_string, core_addr_to_string, core_addr_to_string_nz)
9555 (hex_string, hex_string_custom): Don't declare.
9556 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9557 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9558 (hex_string_custom, int_string, core_addr_to_string)
9559 (core_addr_to_string_nz, host_address_to_string): Move to
9560 common/print-utils.c.
9561 * common/print-utils.h: New file.
9562 * common/print-utils.c: New file
9563 * Makefile.in (SFILES): Add common/print-utils.c.
9564 (HFILES_NO_SRCDIR): Add common/print-utils.h.
9565 (COMMON_OBS): Add print-utils.o.
9566 (print-utils.o): New target.
9567
9fb50108
TT
95682014-02-12 Tom Tromey <tromey@redhat.com>
9569
9570 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9571
0548b5db
MK
95722014-02-12 Mark Kettenis <kettenis@gnu.org>
9573
9574 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9575
493443a4
MK
95762014-02-12 Mark Kettenis <kettenis@gnu.org>
9577
9578 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9579 if a PT_IO ptrace request returns sucessfully but indicates that 0
9580 bytes were transferred.
9581
706d0883
PA
95822014-02-12 Pedro Alves <palves@redhat.com>
9583 Kevin Buettner <kevinb@redhat.com>
9584
9585 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9586 TYPE_INSTANCE_FLAG_CODE_SPACE.
9587
5caa2f0b
PA
95882014-02-12 Pedro Alves <palves@redhat.com>
9589
9590 * h8300-tdep.c (pseudo_from_raw_register)
9591 (raw_from_pseudo_register): New functions.
9592 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9593 them.
9594
76fd5f74
PA
95952014-02-12 Pedro Alves <palves@redhat.com>
9596
9597 * h8300-tdep.c (h8300_register_sim_regno): New function.
9598 (h8300_gdbarch_init): Install h8300_register_sim_regno as
9599 gdbarch_register_sim_regno hook.
9600
8f008406
SA
96012014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9602
9603 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9604
195abc10
SA
96052014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
9606
9607 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9608
93ffa5b9
MK
96092014-02-12 Mark Kettenis <kettenis@gnu.org>
9610
9611 * obsd-tdep.h (obsd_init_abi): New prototype.
9612 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9613 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9614 (obsd_init_abi): New functions.
9615 * i386obsd-tdep.c: Include "obsd-tdep.h".
9616 (i386obsd_init_abi): Call obsd_init_abi.
9617 * amd64obsd-tdep.c: Include "obsd-tdep.h".
9618 (amd64obsd_init_abi): Call obsd_init_abi.
9619 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9620 obsd-tdep.c to gdb_target_obs.
9621
49caec94
JM
96222014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
9623
9624 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9625 double float arguments to 16-byte in the argument slots.
9626
e1402065
DE
96272014-02-11 Doug Evans <xdje42@gmail.com>
9628
9629 * configure.ac: Don't crash if pkg-config is not found and guile
9630 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
9631 in guile checks.
9632 * configure: Regenerate.
9633
edcc890f
YQ
96342014-02-11 Yao Qi <yao@codesourcery.com>
9635
9636 * aix-thread.c (aix_thread_xfer_partial): Update comments.
9637 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9638 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9639 * gnu-nat.c (gnu_xfer_memory): Likewise.
9640 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9641 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9642 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9643 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9644
9b409511
YQ
96452014-02-11 Yao Qi <yao@codesourcery.com>
9646
9647 * target.h (enum target_xfer_error): Rename to ...
9648 (enum target_xfer_status): ... it. New. All users updated.
9649 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9650 New.
9651 (TARGET_XFER_STATUS_ERROR_P): New macro.
9652 (target_xfer_error_to_string): Remove declaration.
9653 (target_xfer_status_to_string): Declare.
9654 (target_xfer_partial_ftype): Adjust it.
9655 (struct target_ops) <to_xfer_partial>: Return
9656 target_xfer_status. Add argument xfered_len. Update
9657 comments.
9658 * target.c (target_xfer_error_to_string): Rename to ...
9659 (target_xfer_status_to_string): ... it. New. All callers
9660 updated.
9661 (target_read_live_memory): Likewise. Call target_xfer_partial
9662 instead of target_read.
9663 (memory_xfer_live_readonly_partial): Return
9664 target_xfer_status. Add argument xfered_len.
9665 (raw_memory_xfer_partial): Likewise.
9666 (memory_xfer_partial_1): Likewise.
9667 (memory_xfer_partial): Likewise.
9668 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
9669 properly. Update debug message.
9670 (default_xfer_partial, current_xfer_partial): Likewise.
9671 (target_write_partial): Likewise.
9672 (target_read_partial): Likewise. All callers updated.
9673 (read_whatever_is_readable): Likewise.
9674 (target_write_with_progress): Likewise.
9675 (target_read_alloc_1): Likewise.
9676
9677 * aix-thread.c (aix_thread_xfer_partial): Likewise.
9678 * auxv.c (procfs_xfer_auxv): Likewise.
9679 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9680 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9681 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9682 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9683 * corefile.c (read_memory): Adjust.
9684 * corelow.c (core_xfer_partial): Likewise.
9685 * ctf.c (ctf_xfer_partial): Likewise.
9686 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
9687 updated.
9688 (darwin_xfer_partial): Likewise.
9689 * exec.c (section_table_xfer_memory_partial): Likewise. All
9690 callers updated.
9691 (exec_xfer_partial): Likewise.
9692 * exec.h (section_table_xfer_memory_partial): Update
9693 declaration.
9694 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
9695 negative.
9696 (gnu_xfer_partial): Likewise.
9697 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9698 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9699 (ia64_hpux_xfer_solib_got): Likewise.
9700 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
9701 type of 'partial_len' to ULONGEST.
9702 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9703 * linux-nat.c (linux_xfer_siginfo ): Likewise.
9704 (linux_nat_xfer_partial): Likewise.
9705 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9706 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9707 * monitor.c (monitor_xfer_memory): Likewise.
9708 (monitor_xfer_partial): Likewise.
9709 * procfs.c (procfs_xfer_partial): Likewise.
9710 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9711 * record-full.c (record_full_xfer_partial): Likewise.
9712 (record_full_core_xfer_partial): Likewise.
9713 * remote-sim.c (gdbsim_xfer_memory): Likewise.
9714 (gdbsim_xfer_partial): Likewise.
9715 * remote.c (remote_write_bytes_aux): Likewise. All callers
9716 updated.
9717 (remote_write_bytes, remote_read_bytes): Likewise. All
9718 callers updated.
9719 (remote_flash_erase): Likewise. All callers updated.
9720 (remote_write_qxfer): Likewise. All callers updated.
9721 (remote_read_qxfer): Likewise. All callers updated.
9722 (remote_xfer_partial): Likewise.
9723 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9724 (rs6000_xfer_shared_libraries): Likewise.
9725 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9726 (sol_thread_xfer_partial): Likewise.
9727 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9728 (sparc_xfer_partial): Likewise.
9729 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
9730 updated.
9731 (spu_xfer_partial): Likewise.
9732 * spu-multiarch.c (spu_xfer_partial): Likewise.
9733 * tracepoint.c (tfile_xfer_partial): Likewise.
9734 * windows-nat.c (windows_xfer_memory): Likewise.
9735 (windows_xfer_shared_libraries): Likewise.
9736 (windows_xfer_partial): Likewise.
9737 * valprint.c: Replace 'target_xfer_error' with
9738 'target_xfer_status' in comments.
9739
a8e63083
JB
97402014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
9741
9742 Checked in by Joel Brobecker <brobecker@adacore.com>.
9743 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9744
e86b67d3
JB
97452014-02-11 Joel Brobecker <brobecker@adacore.com>
9746
9747 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9748 function parameters.
9749
4b7d1f7f
WN
97502014-02-10 Will Newton <will.newton@linaro.org>
9751
9752 * elfread.c (elf_rel_plt_read): Look for a .got section if
9753 looking up .got.plt fails.
9754 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9755 on address passed to elf_gnu_ifunc_record_cache.
9756 (elf_gnu_ifunc_resolve_addr): Likewise.
9757 (elf_gnu_ifunc_resolver_return_stop): Likewise.
9758
961842b2
JM
97592014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
9760
9761 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9762 (X_RETTURN): New macro.
9763 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9764
9765 * sparc64-tdep.c (sparc64_init_abi): Hook
9766 sparc_in_function_epilogue_p.
9767
3f03e7b1
GB
97682014-02-10 Gary Benson <gbenson@redhat.com>
9769
9770 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9771 Rename name_matcher to symbol_matcher.
9772
96f861ef
GB
97732014-02-10 Gary Benson <gbenson@redhat.com>
9774
9775 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9776 Use expand_symtabs_file_matcher_ftype and
9777 expand_symtabs_symbol_matcher_ftype.
9778
ee01b665
JB
97792014-02-10 Joel Brobecker <brobecker@adacore.com>
9780
9781 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9782 (struct ada_symbol_cache): New.
9783 (ada_free_symbol_cache): Forward declare.
9784 (struct ada_pspace_data): New.
9785 (ada_pspace_data_handle): New static global.
9786 (get_ada_pspace_data, ada_pspace_data_cleanup)
9787 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9788 (cache_space, cache): Delete, now folded inside struct
9789 ada_pspace_data.
9790 (ada_get_symbol_cache): New function.
9791 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9792 implementation.
9793 (_initialize_ada_language): Remove initialization of cache_space.
9794 Move call to observer_attach_inferior_exit up, grouping it
9795 with the other observer registrations inside this function.
9796 Rename command to be more general. Add call to
9797 register_program_space_data_with_cleanup.
9798
143adbbf
JB
97992014-02-10 Joel Brobecker <brobecker@adacore.com>
9800
9801 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9802 ada_new_objfile_observer.
9803 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9804 (_initialize_tasks): Update uses of ada_new_objfile_observer
9805 and ada_tasks_normal_stop_observer.
9806
aa4fb036
JB
98072014-02-10 Joel Brobecker <brobecker@adacore.com>
9808
9809 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9810 returned by the 'Length attribute to integer.
9811
9dee8cc6
JB
98122014-02-10 Joel Brobecker <brobecker@adacore.com>
9813
9814 * ada-lang.c (_initialize_ada_language): Initialize
9815 cache_space obstack.
9816
3d9434b5
JB
98172014-02-10 Joel Brobecker <brobecker@adacore.com>
9818
9819 * ada-lang.c (HASH_SIZE): New macro.
9820 (struct cache_entry): New type.
9821 (cache_space, cache): New static globals.
9822 (ada_clear_symbol_cache, find_entry): New functions.
9823 (lookup_cached_symbol, cache_symbol): Implement.
9824 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9825 (_initialize_ada_language): Attach ada_new_objfile_observer
9826 and ada_free_objfile_observer.
9827
f0c5f9b2
JB
98282014-02-10 Joel Brobecker <brobecker@adacore.com>
9829
9830 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9831 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9832 struct block * parameter.
9833 (ada_lookup_symbol_list_worker): Constify local variable "block".
9834 Remove cast which is no longer necessary.
9835
ed3ef339
DE
98362014-02-10 Doug Evans <xdje42@gmail.com>
9837
9838 Add Guile as an extension language.
9839 * NEWS: Mention Guile scripting.
9840 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9841 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9842 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9843 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9844 (CLIBS): Add GUILE_LIBS.
9845 (install-guile): New rule.
9846 (guile.o): New rule.
9847 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9848 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9849 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9850 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9851 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9852 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9853 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9854 * configure.ac: New option --with-guile.
9855 * configure: Regenerate.
9856 * config.in: Regenerate.
9857 * auto-load.c: Remove #include "python/python.h". Add #include
9858 "gdb/section-scripts.h".
9859 (source_section_scripts): Handle Guile scripts.
9860 (_initialize_auto_load): Add name of Guile objfile script to
9861 scripts-directory help text.
9862 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9863 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9864 (struct breakpoint): New member scm_bp_object.
9865 * defs.h (enum command_control_type): New value guile_control.
9866 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9867 "extension.h".
9868 (show_user): Update comment.
9869 (_initialize_cli_cmds): Update help text for "show user". Update help
9870 text for max-user-call-depth.
9871 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9872 "extension.h".
9873 (multi_line_command_p): Add guile_control.
9874 (print_command_lines): Handle guile_control.
9875 (execute_control_command, recurse_read_control_structure): Ditto.
9876 (process_next_line): Recognize "guile" commands.
9877 * disasm.c (gdb_disassemble_info): Make non-static.
9878 * disasm.h: #include "dis-asm.h".
9879 (struct gdbarch): Add forward decl.
9880 (gdb_disassemble_info): Declare.
9881 * extension.c: #include "guile/guile.h".
9882 (extension_languages): Add guile.
9883 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9884 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9885 * gdbtypes.c (get_unsigned_type_max): New function.
9886 (get_signed_type_minmax): New function.
9887 * gdbtypes.h (get_unsigned_type_max): Declare.
9888 (get_signed_type_minmax): Declare.
9889 * guile/README: New file.
9890 * guile/guile-internal.h: New file.
9891 * guile/guile.c: New file.
9892 * guile/guile.h: New file.
9893 * guile/scm-arch.c: New file.
9894 * guile/scm-auto-load.c: New file.
9895 * guile/scm-block.c: New file.
9896 * guile/scm-breakpoint.c: New file.
9897 * guile/scm-disasm.c: New file.
9898 * guile/scm-exception.c: New file.
9899 * guile/scm-frame.c: New file.
9900 * guile/scm-gsmob.c: New file.
9901 * guile/scm-iterator.c: New file.
9902 * guile/scm-lazy-string.c: New file.
9903 * guile/scm-math.c: New file.
9904 * guile/scm-objfile.c: New file.
9905 * guile/scm-ports.c: New file.
9906 * guile/scm-pretty-print.c: New file.
9907 * guile/scm-safe-call.c: New file.
9908 * guile/scm-string.c: New file.
9909 * guile/scm-symbol.c: New file.
9910 * guile/scm-symtab.c: New file.
9911 * guile/scm-type.c: New file.
9912 * guile/scm-utils.c: New file.
9913 * guile/scm-value.c: New file.
9914 * guile/lib/gdb.scm: New file.
9915 * guile/lib/gdb/boot.scm: New file.
9916 * guile/lib/gdb/experimental.scm: New file.
9917 * guile/lib/gdb/init.scm: New file.
9918 * guile/lib/gdb/iterator.scm: New file.
9919 * guile/lib/gdb/printing.scm: New file.
9920 * guile/lib/gdb/types.scm: New file.
9921 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9922 (VPATH): Add $(GUILE_SRCDIR).
9923 (GUILE_DIR): New variable.
9924 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9925 (all): Add stamp-guile dependency.
9926 (stamp-guile): New rule.
9927 (clean-guile, install-guile, uninstall-guile): New rules.
9928 (install-only): Add install-guile dependency.
9929 (uninstall): Add uninstall-guile dependency.
9930 (clean): Add clean-guile dependency.
9931
ac020ec5
DE
99322014-02-09 Doug Evans <xdje42@gmail.com>
9933
9934 Revert this patch (which I approved, mea culpa).
9935
9936 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9937
9938 * Makefile.in (all-lib): Remove.
9939 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9940
2a081c59
JK
99412014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9942
9943 Fix Python stack corruption.
9944 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9945 gdb_py_longest.
9946
0a6bd22d
MK
99472014-02-08 Mark Kettenis <kettenis@gnu.org>
9948
9949 * Makefile.in (all-lib): Remove.
9950 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9951
1a860409
DE
99522014-02-07 Doug Evans <dje@google.com>
9953
9954 * extension-priv.h (extension_language_script_ops): Add comment.
9955 (extension_language_ops): Add comment.
caf5a491 9956 (active_ext_lang_state): Fix typo in comment.
1a860409 9957
d137e6dc
PA
99582014-02-07 Pedro Alves <palves@redhat.com>
9959
0dcb32c3 9960 PR breakpoints/16292
d137e6dc
PA
9961 * infrun.c (handle_signal_stop) <signal arrives while stepping
9962 over a breakpoint>: Switch back to the stepping thread.
9963
ce6d0892
YQ
99642014-02-07 Yao Qi <yao@codesourcery.com>
9965
9966 * target.c (target_xfer_partial): Return zero if LEN is zero.
9967
2ed4b548
YQ
99682014-02-07 Yao Qi <yao@codesourcery.com>
9969
9970 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9971 (ld_so_xfer_auxv): Likewise.
9972 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9973 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9974 * corelow.c (core_xfer_partial): Likewise.
9975 * ctf.c (ctf_xfer_partial): Likewise.
9976 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9977 (darwin_xfer_partial): Likewise.
9978 * exec.c (exec_xfer_partial): Likewise.
9979 * gnu-nat.c (gnu_xfer_partial): Likewise.
9980 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9981 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9982 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9983 * linux-nat.c (linux_xfer_siginfo): Likewise.
9984 (linux_proc_xfer_spu): Likewise.
9985 * procfs.c (procfs_xfer_partial): Likewise.
9986 * record-full.c (record_full_xfer_partial): Likewise.
9987 (record_full_core_xfer_partial): Likewise.
9988 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9989 * remote.c (remote_write_qxfer): Likewise.
9990 (remote_write_qxfer, remote_read_qxfer): Likewise.
9991 (remote_xfer_partial): Likewise.
9992 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9993 (rs6000_xfer_shared_libraries): Likewise.
9994 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9995 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9996 (spu_xfer_partial): Likewise.
9997 * target.c (memory_xfer_partial_1): Likewise.
9998 * tracepoint.c (tfile_xfer_partial): Likewise.
9999 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10000 (windows_xfer_partial): Likewise.
10001
c09f20e4
YQ
100022014-02-07 Yao Qi <yao@codesourcery.com>
10003
10004 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10005 comments.
10006 (core_xfer_shared_libraries_aix): Likewise.
10007 * gdbarch.c, gdbarch.h: Regenerated.
10008 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10009 ULONGEST. Change 'len_avail' type to ULONGEST.
10010 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10011 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10012 declaration.
10013 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10014
8635b3bf
YQ
100152014-02-07 Yao Qi <yao@codesourcery.com>
10016
10017 * corefile.c (memory_error): Get 'exception' from ERR and pass
10018 'exception' to throw_error.
10019
6dddc817
DE
100202014-02-06 Doug Evans <xdje42@gmail.com>
10021
10022 * configure.ac (libpython checking): Remove all but python.o from
10023 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10024 * configure: Regenerate.
10025
10026 * Makefile.in (SFILES): Add extension.c.
10027 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10028 (COMMON_OBS): Add extension.o.
10029 * extension.h: New file.
10030 * extension-priv.h: New file.
10031 * extension.c: New file.
10032
10033 * python/python-internal.h: #include "extension.h".
10034 (gdbpy_auto_load_enabled): Declare.
10035 (gdbpy_apply_val_pretty_printer): Declare.
10036 (gdbpy_apply_frame_filter): Declare.
10037 (gdbpy_preserve_values): Declare.
10038 (gdbpy_breakpoint_cond_says_stop): Declare.
10039 (gdbpy_breakpoint_has_cond): Declare.
10040 (void source_python_script_for_objfile): Delete.
10041 * python/python.c: #include "extension-priv.h".
10042 Delete inclusion of "observer.h".
10043 (extension_language_python): Moved here and renamed from
10044 script_language_python in py-auto-load.c.
10045 Redefined to be of type extension_language_defn.
10046 (python_extension_script_ops): New global.
10047 (python_extension_ops): New global.
10048 (struct python_env): New member previous_active.
10049 (restore_python_env): Call restore_active_ext_lang.
10050 (ensure_python_env): Call set_active_ext_lang.
10051 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10052 New arg extlang.
10053 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10054 New arg extlang.
10055 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10056 New arg extlang.
10057 (gdbpy_eval_from_control_command): Renamed from
10058 eval_python_from_control_command, made static. New arg extlang.
10059 (gdbpy_source_script) Renamed from source_python_script, made static.
10060 New arg extlang.
10061 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10062 result to int. New arg extlang.
10063 (gdbpy_source_objfile_script): Renamed from
10064 source_python_script_for_objfile, made static. New arg extlang.
10065 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10066 static. New args extlang, extlang_printers. Change result type to
10067 "void".
10068 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10069 static. New arg extlang. Rename arg printers to extlang_printers
10070 and change type to ext_lang_type_printers *.
10071 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10072 static. Replace argument arg with extlang, extlang_printers.
10073 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10074 (!HAVE_PYTHON, source_python_script): Delete.
10075 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10076 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10077 (!HAVE_PYTHON, start_type_printers): Delete.
10078 (!HAVE_PYTHON, apply_type_printers): Delete.
10079 (!HAVE_PYTHON, free_type_printers): Delete.
10080 (_initialize_python): Delete call to observer_attach_before_prompt.
10081 (finalize_python): Set/restore active extension language.
10082 (gdbpy_finish_initialization) Renamed from
10083 finish_python_initialization, made static. New arg extlang.
10084 (gdbpy_initialized): New function.
10085 * python/python.h: #include "extension.h". Delete #include
10086 "value.h", "mi/mi-cmds.h".
10087 (extension_language_python): Declare.
10088 (GDBPY_AUTO_FILE_NAME): Delete.
10089 (enum py_bt_status): Moved to extension.h and renamed to
10090 ext_lang_bt_status.
10091 (enum frame_filter_flags): Moved to extension.h.
10092 (enum py_frame_args): Moved to extension.h and renamed to
10093 ext_lang_frame_args.
10094 (finish_python_initialization): Delete.
10095 (eval_python_from_control_command): Delete.
10096 (source_python_script): Delete.
10097 (apply_val_pretty_printer): Delete.
10098 (apply_frame_filter): Delete.
10099 (preserve_python_values): Delete.
10100 (gdbpy_script_language_defn): Delete.
10101 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10102 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10103
10104 * auto-load.c: #include "extension.h".
10105 (GDB_AUTO_FILE_NAME): Delete.
10106 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10107 (script_language_gdb): Delete, moved to extension.c and renamed to
10108 extension_language_gdb.
10109 (source_gdb_script_for_objfile): Delete.
10110 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10111 (loaded_script): Change type of language member to
10112 struct extension_language_defn *.
10113 (init_loaded_scripts_info): Initialize
10114 unsupported_script_warning_printed.
10115 (maybe_add_script): Make static. Change type of language arg to
10116 struct extension_language_defn *.
10117 (clear_section_scripts): Reset unsupported_script_warning_printed.
10118 (auto_load_objfile_script_1): Rewrite to use extension language API.
10119 (auto_load_objfile_script): Make public. Remove support-compiled-in
10120 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10121 (source_section_scripts): Rewrite to use extension language API.
10122 (load_auto_scripts_for_objfile): Rewrite to use
10123 auto_load_scripts_for_objfile.
10124 (collect_matching_scripts_data): Change type of language member to
10125 struct extension_language_defn *.
10126 (auto_load_info_scripts): Change type of language arg to
10127 struct extension_language_defn *.
10128 (unsupported_script_warning_print): New function.
10129 (script_not_found_warning_print): Make static.
10130 (_initialize_auto_load): Rewrite construction of scripts-directory
10131 help.
10132 * auto-load.h (struct objfile): Add forward decl.
10133 (struct script_language): Delete.
10134 (struct auto_load_pspace_info): Add forward decl.
10135 (struct extension_language_defn): Add forward decl.
10136 (maybe_add_script): Delete.
10137 (auto_load_objfile_script): Declare.
10138 (script_not_found_warning_print): Delete.
10139 (auto_load_info_scripts): Update prototype.
10140 (auto_load_gdb_scripts_enabled): Declare.
10141 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10142 auto_load_python_scripts_enabled and made public.
10143 (script_language_python): Delete, moved to python.c.
10144 (gdbpy_script_language_defn): Delete.
10145 (info_auto_load_python_scripts): Update to use
10146 extension_language_python.
10147
10148 * breakpoint.c (condition_command): Replace call to
10149 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10150 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10151 with call to breakpoint_ext_lang_cond_says_stop.
10152 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10153 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10154 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10155 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10156 New arg slang.
10157 (local_setattro): Print name of extension language with existing
10158 stop condition.
10159
10160 * valprint.c (val_print, value_print): Update to call
10161 apply_ext_lang_val_pretty_printer.
10162 * cp-valprint.c (cp_print_value): Update call to
10163 apply_ext_lang_val_pretty_printer.
10164 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10165 (gdbpy_apply_val_pretty_printer): Renamed from
10166 apply_val_pretty_printer. New arg extlang.
10167 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10168
10169 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10170 extension language API.
10171 * cli/cli-script.c (execute_control_command): Update to call
10172 eval_ext_lang_from_control_command.
10173
10174 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10175 enum ext_lang_bt_status values. Update call to
10176 apply_ext_lang_frame_filter.
10177 (mi_cmd_stack_list_locals): Ditto.
10178 (mi_cmd_stack_list_args): Ditto.
10179 (mi_cmd_stack_list_variables): Ditto.
10180 * mi/mi-main.c: Delete #include "python/python-internal.h".
10181 Add #include "extension.h".
10182 (mi_cmd_list_features): Replace reference to python internal variable
10183 gdb_python_initialized with call to ext_lang_initialized_p.
10184
10185 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10186 Update to use enum ext_lang_frame_args. Update to call
10187 apply_ext_lang_frame_filter.
10188 * python/py-framefilter.c (extract_sym): Update to use enum
10189 ext_lang_bt_status.
10190 (extract_value, py_print_type, py_print_value): Ditto.
10191 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10192 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10193 (py_print_frame): Ditto.
10194 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10195 New arg extlang. Update to use enum ext_lang_bt_status.
10196
10197 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10198 finish_python_initialization. Replace with call to
10199 finish_ext_lang_initialization.
10200
10201 * typeprint.c (do_free_global_table): Update to call
10202 free_ext_lang_type_printers.
10203 (create_global_typedef_table): Update to call
10204 start_ext_lang_type_printers.
10205 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10206 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10207 (type_print_options): Change type of global_printers from "void *"
10208 to "struct ext_lang_type_printers *".
10209
10210 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10211 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10212 (gdbpy_preserve_values): Renamed from preserve_python_values.
10213 New arg extlang.
10214 (!HAVE_PYTHON, preserve_python_values): Delete.
10215
10216 * utils.c (quit_flag): Delete, moved to extension.c.
10217 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10218 extension.c.
10219
10220 * eval.c: Delete #include "python/python.h".
10221 * main.c: Delete #include "python/python.h".
10222
10223 * defs.h: Update comment.
10224
6af79985
JB
102252014-02-06 Joel Brobecker <brobecker@adacore.com>
10226
10227 GDB 7.7 released.
10228
12c5175d
MK
102292014-02-05 Mark Kettenis <kettenis@gnu.org>
10230
10231 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10232 defined.
10233
8dc5b319
YQ
102342014-02-05 Yao Qi <yao@codesourcery.com>
10235
10236 * remote.c (remote_pass_signals): Remove local 'buf' and use
10237 rs->buf.
10238 (remote_program_signals): Likewise.
10239
de7b2893
YQ
102402014-02-05 Yao Qi <yao@codesourcery.com>
10241
10242 * ctf.c: Include "inferior.h" and "gdbthread.h".
10243 (CTF_PID): A new macro.
10244 (ctf_open): Call inferior_appeared and add_thread_silent.
10245 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10246 (ctf_thread_alive): New function.
10247 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10248
66d032ac
YQ
102492014-02-05 Yao Qi <yao@codesourcery.com>
10250
10251 Revert this patch:
10252
10253 2013-05-24 Yao Qi <yao@codesourcery.com>
10254
10255 * tracepoint.c (TFILE_PID): Remove.
10256 (tfile_open): Don't add thread and inferior.
10257 (tfile_close): Don't set 'inferior_ptid'. Don't call
10258 exit_inferior_silent.
10259 (tfile_thread_alive): Remove.
10260 (init_tfile_ops): Don't set field 'to_thread_alive' of
10261 tfile_ops.
10262
f4ccffad
CE
102632014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10264
10265 * remote.c (remote_start_remote): Call remote_check_symbols even
10266 if only symbol-file (not file) has been given.
10267
591a12a1
UW
102682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10269
10270 * gdbarch.sh (skip_entrypoint): New callback.
10271 * gdbarch.c, gdbarch.h: Regenerate.
10272 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10273 * infrun.c (fill_in_stop_func): Likewise.
10274 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10275 (ppc_elfv2_elf_make_msymbol_special): New function.
10276 (ppc_elfv2_skip_entrypoint): Likewise.
10277 (ppc_linux_init_abi): Install them for ELFv2.
10278
cc0e89c5
UW
102792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10280
10281 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10282 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10283 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10284 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10285 structures returned in GPRs.
10286
52f548e4
UW
102872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10288
10289 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10290 offset to the stack parameter list for the ELFv2 ABI.
10291
d4094b6a
UW
102922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10293
10294 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10295 set_gdbarch_convert_from_func_ptr_addr and
10296 set_gdbarch_elf_make_msymbol_special for ELFv1.
10297 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10298 function descriptors on ELFv1.
10299 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10300 set up r12 at function entry.
10301
cd453cd0
UW
103022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10303
10304 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10305 (struct gdbarch_tdep): New member elf_abi.
10306
10307 * rs6000-tdep.c: Include "elf/ppc64.h".
10308 (rs6000_gdbarch_init): Detect ELF ABI version.
10309
0ff3e01f
UW
103102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10311
10312 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10313 within a register pair holding a DFP 128-bit value on little-endian.
10314 (ppc64_sysv_abi_return_value_base): Likewise.
10315 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10316 (dfp_pseudo_register_write): Likewise.
10317
5b757e5d
UW
103182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10319
10320 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10321 offset on little-endian when passing _Decimal32.
10322 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10323
084ee545
UW
103242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10325
10326 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10327 of the overlapped FP register within the VSX register on little-
10328 endian platforms.
10329 (efpr_pseudo_register_write): Likewise.
10330
d63167af
UW
103312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10332
10333 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10334 offset on little-endian when passing small structures.
10335
e765b44c
UW
103362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10337
10338 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10339 (struct ppc64_sysv_argpos): New data structure.
10340 (ppc64_sysv_abi_push_float): Remove.
10341 (ppc64_sysv_abi_push_val): New function.
10342 (ppc64_sysv_abi_push_integer): Likewise.
10343 (ppc64_sysv_abi_push_freg): Likewise.
10344 (ppc64_sysv_abi_push_vreg): Likewise.
10345 (ppc64_sysv_abi_push_param): Likewise.
10346 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10347 (ppc64_sysv_abi_return_value_base): New function.
10348 (ppc64_sysv_abi_return_value): Refactor to use it.
10349
36c24d95
UW
103502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10351
10352 * NEWS: Document new target powerpc64le-*-linux*.
10353
26fd9228
MK
103542014-02-04 Mark Kettenis <kettenis@gnu.org>
10355
10356 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10357 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10358 core dumps.
10359 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10360 register set used in ELF core dumps. Add floating-point register set.
10361
c5bb7362
KB
103622014-02-03 Kevin Buettner <kevinb@redhat.com>
10363
74228e77 10364 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10365 dwarf2_to_gdb[] table using symbolic constants. Adjust
10366 penultimate entry from number representing the PC register
10367 to symbolic constant representing the MDR register. Add
10368 constant for the PC register to the end of the table.
10369
af09351e
MK
103702014-02-03 Mark Kettenis <kettenis@gnu.org>
10371
10372 * bsd-kvm.c: Include <sys/param.h>
10373
8507e05d
MK
103742014-02-03 Mark Kettenis <kettenis@gnu.org>
10375
10376 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10377
ae56bfb8
JB
103782014-01-31 Joel Brobecker <brobecker@adacore.com>
10379
10380 * ada-lang.h (clear_ada_sym_cache): Delete.
10381
718ee4dc
UW
103822014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10383
10384 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10385
401e27fd
JM
103862014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10387
10388 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10389 the sigreturn register save area only if the syscall is
10390 sigreturn.
10391
a7c88acd
JB
103922014-01-29 Joel Brobecker <brobecker@adacore.com>
10393
10394 * valops.c (value_slice): Minor reformatting.
10395
fa0079ea
UW
103962014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10397
10398 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10399
c6044dd1
JB
104002014-01-28 Joel Brobecker <brobecker@adacore.com>
10401
10402 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10403 New static globals.
10404 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10405 (ada_ignore_descriptive_types_p): New static global.
10406 (find_parallel_type_by_descriptive_type): Return immediately
10407 if ada_ignore_descriptive_types_p is set.
10408 (_initialize_ada_language): Register new commands "maintenance
10409 set ada", "maintenance show ada", "maintenance set ada
10410 ignore-descriptive-types" and "maintenance show ada
10411 ignore-descriptive-types".
10412 * NEWS: Add entry for new "maint ada set/show
10413 ignore-descriptive-types" commands.
10414
568e808b
MM
104152014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10416
10417 * record-btrace.c (record_btrace_close): Call btrace_teardown
10418 for all threads.
10419
467d141b
JB
104202014-01-27 Joel Brobecker <brobecker@adacore.com>
10421
10422 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10423 "ui-out.h".
10424
fb151210
JB
104252014-01-27 Joel Brobecker <brobecker@adacore.com>
10426
10427 * ada-typeprint (type_is_full_subrange_of_target_type):
10428 New function.
10429 (print_range): Add parameter bounds_prefered_p. If not set,
10430 try printing range types using the name of their base type.
10431 (print_range_type): Add parameter bounds_prefered_p.
10432 Use it in call to print_range.
10433 (print_array_type, ada_print_type): Update calls to print_range
10434 and print_range_type.
10435
aba02109
JB
104362014-01-27 Joel Brobecker <brobecker@adacore.com>
10437
10438 * ada-typeprint.c (print_array_type, print_choices, print_range)
10439 (print_range_bound, print_dynamic_range_bound, print_range_type):
10440 Remove declaration.
10441
e62e21fd
JB
104422014-01-27 Joel Brobecker <brobecker@adacore.com>
10443
10444 * ada-typeprint.c (print_range): Add missing empty line
10445 after local declaration.
10446
859cf5d1
JB
104472014-01-27 Joel Brobecker <brobecker@adacore.com>
10448
10449 * ada-valprint.c (print_optional_low_bound): Get index_type's
10450 target type for as long as it is a TYPE_CODE_RANGE.
10451
25790f6f
JB
104522014-01-27 Joel Brobecker <brobecker@adacore.com>
10453
10454 * procfs.c (procfs_make_note_section): Remove assertion and
10455 associated comment.
10456
6b6aa828
YQ
104572014-01-24 Yao Qi <yao@codesourcery.com>
10458
10459 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10460 * corelow.c (get_core_siginfo): Likewise.
10461
5d6df423
YQ
104622014-01-24 Yao Qi <yao@codesourcery.com>
10463
10464 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10465 ULONGEST. Don't check 'len' is negative.
10466 (remote_write_bytes): Change type of 'len' to ULONGEST.
10467
83b645b8
TT
104682014-01-23 Tom Tromey <tromey@redhat.com>
10469
10470 PR python/16485:
10471 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10472 Handle exception from frame.block.
10473 (FrameVars.fetch_frame_locals): Likewise.
10474
0740f8d8
TT
104752014-01-23 Tom Tromey <tromey@redhat.com>
10476
10477 PR python/16487:
10478 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10479 on a NULL pointer. Move "goto error" to correct place.
10480
21909fa1
TT
104812014-01-23 Tom Tromey <tromey@redhat.com>
10482
10483 PR python/16491:
10484 * python/py-framefilter.c (apply_frame_filter): Call
10485 ensure_python_env after computing gdbarch.
10486
17fde6d0
YQ
104872014-01-23 Yao Qi <yao@codesourcery.com>
10488
10489 * target.c (raw_memory_xfer_partial): Change argument type
10490 from void * to gdb_byte *.
10491 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10492
87ce2a04
DE
104932014-01-22 Doug Evans <dje@google.com>
10494
10495 New gdbserver option --debug-format=timestamp.
10496 * NEWS: Mention it.
10497
237b092b
AA
104982014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10499
10500 * syscalls/s390x-linux.xml: New file.
10501 * syscalls/s390-linux.xml: New file.
10502 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10503 (XML_SYSCALL_FILENAME_S390X): Likewise.
10504 (op_svc): New enum value for SVC opcode.
10505 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10506 (s390_linux_get_syscall_number): New function.
10507 (s390_gdbarch_init): Register '*get_syscall_number' and the
10508 syscall xml file name.
10509 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10510 "s390-linux.xml" and "s390x-linux.xml".
10511 * NEWS: Announce new feature.
10512
54bff650
BS
105132014-01-22 Baruch Siach <baruch@tkos.co.il>
10514
10515 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10516
14e361d7
PA
105172014-01-22 Pedro Alves <palves@redhat.com>
10518
10519 * xtensa-config.c: Include defs.h.
10520
46bbb3ed
JB
105212014-01-22 Joel Brobecker <brobecker@adacore.com>
10522
10523 * common/common-utils.h: Add "ARI:" comment beside __func__
10524 reference.
10525
3a80edfc
JB
105262014-01-22 Joel Brobecker <brobecker@adacore.com>
10527
10528 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10529 documentation a bit.
10530
4869db5e
RM
105312014-01-21 Roland McGrath <mcgrathr@google.com>
10532
10533 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10534 * configure: Regenerate.
10535 * aclocal.m4: Regenerate.
10536 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10537 New substituted variables.
10538 (install-strip): New target.
10539 (INSTALL_SCRIPT): New substituted variable.
10540 (FLAGS_TO_PASS): Add it.
10541 (install-only): Use $(INSTALL_SCRIPT) rather than
10542 $(INSTALL_PROGRAM) for gcore.
10543
9ea4267d
TT
105442014-01-20 Tom Tromey <tromey@redhat.com>
10545
10546 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10547 together.
10548
1f2bdf09
TT
105492014-01-20 Tom Tromey <tromey@redhat.com>
10550
10551 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10552 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10553 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10554 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10555 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10556 (struct cmd_list_element) <flags>: Remove.
10557 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10558 doc_allocated>: New fields.
10559 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10560 bitfields.
10561 * maint.c (maintenance_do_deprecate): Update.
10562 * top.c (execute_command): Update.
10563
e671835b
BS
105642014-01-20 Baruch Siach <baruch@tkos.co.il>
10565
10566 * xtensa-linux-nat.c: Include asm/ptrace.h.
10567
50367cd2
IB
105682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10569
10570 * Makefile.in (SFILES): Add d-support.c.
10571 (COMMON_OBS): Add d-support.o.
10572 * d-lang.h (d_parse_symbol): Add comment, now defined in
10573 d-support.c.
10574 * d-lang.c (parse_call_convention)
10575 (parse_attributes, parse_function_types)
10576 (parse_function_args, parse_type, parse_identifier)
10577 (call_convention_p, d_parse_symbol): Move functions to ...
10578 * d-support.c: ... New file.
10579
ec9f644a
IB
105802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10581
10582 * d-lang.h (d_parse_symbol): Add declaration.
10583 * d-lang.c (extract_identifiers)
10584 (extract_type_info): Remove functions.
10585 (parse_call_convention, parse_attributes)
10586 (parse_function_types, parse_function_args)
10587 (parse_type, parse_identifier, call_convention_p)
10588 (d_parse_symbol): New functions.
10589 (d_demangle): Use d_parse_symbol to demangle D symbols.
10590
94b1b47e
IB
105912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10592
10593 * d-lang.h (struct builtin_d_type): New data type.
10594 (builtin_d_type): Add declaration.
10595 * d-lang.c (d_language_arch_info, build_d_types)
10596 (builtin_d_type): New functions.
10597 (enum d_primitive_types): New data type.
10598 (d_language_defn): Change c_language_arch_info to
10599 d_language_arch_info.
10600 (d_type_data): New static variable.
10601 (_initialize_d_language): Initialize d_type_data.
10602
63778547
IB
106032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10604
10605 * d-lang.h (d_main_name): Add declaration.
10606 * d-lang.c (d_main_name): New function.
10607 * symtab.c (find_main_name): Add call to d_main_name.
10608
3271ba66
IB
106092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10610
10611 * d-lang.c (d_language_defn): Change macro_expansion_c to
10612 macro_expansion_no.
10613
d36b3012
IB
106142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
10615
10616 * MAINTAINERS: Add myself as a write-after-approval maintainer.
10617
c90a6fb7
SDJ
106182014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
10619
10620 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10621 gdb_exception" declaration.
10622 * remote.c (getpkt_or_notif_sane): Likewise.
10623
749234e5
DE
106242014-01-17 Doug Evans <dje@google.com>
10625
10626 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10627 function, contents of dirnames_to_char_ptr_vec_append moved here.
10628 (delim_string_to_char_ptr_vec): New function.
10629 (dirnames_to_char_ptr_vec_append): Rewrite.
10630 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10631
df049a58
DE
106322014-01-17 Doug Evans <dje@google.com>
10633
10634 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10635 and moved here ...
10636 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10637 #include "common-utils.h".
10638 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10639 * common/vec.h (VEC_ASSERT_PASS): Update.
10640 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10641 (MACH_CHECK_ERROR): Update.
10642
69f97648
SM
106432014-01-17 Simon Marchi <simon.marchi@ericsson.com>
10644
10645 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10646 comments.
10647 * gdbarch.h: Regenerate.
10648
98b1cfdc
TT
106492014-01-16 Tom Tromey <tromey@redhat.com>
10650
10651 * value.c (struct value) <regnum>: Move earlier.
10652
77a19445
TT
106532014-01-16 Tom Tromey <tromey@redhat.com>
10654
10655 * remote.c (extended_remote_create_inferior): Rename from
10656 extended_remote_create_inferior_1. Add "ops" argument. Remove
10657 old implementation.
10658
62261490
PA
106592014-01-16 Pedro Alves <palves@redhat.com>
10660
10661 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10662 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10663 the backchain.
10664
4d65956b
DE
106652014-01-16 Doug Evans <dje@google.com>
10666
10667 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10668
52834460
MM
106692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10670
10671 * btrace.h (btrace_thread_flag): New.
10672 (struct btrace_thread_info) <flags>: New.
10673 * record-btrace.c (record_btrace_resume_thread)
10674 (record_btrace_find_thread_to_move, btrace_step_no_history)
10675 (btrace_step_stopped, record_btrace_start_replaying)
10676 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10677 (record_btrace_find_resume_thread): New.
10678 (record_btrace_resume, record_btrace_wait): Extend.
10679 (record_btrace_can_execute_reverse): New.
10680 (record_btrace_open): Fail in non-stop mode.
10681 (record_btrace_set_replay): Split into this, ...
10682 (record_btrace_stop_replaying): ... this, ...
10683 (record_btrace_clear_histories): ... and this.
10684 (init_record_btrace_ops): Init to_can_execute_reverse.
10685 * NEWS: Announce it.
10686
118e6252
MM
106872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10688
10689 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10690 (forward_target_decr_pc_after_break)
10691 (target_decr_pc_after_break): New.
10692 * target.c (forward_target_decr_pc_after_break)
10693 (target_decr_pc_after_break): New.
10694 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10695 instead of gdbarch_decr_pc_after_break.
10696 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10697 instead of gdbarch_decr_pc_after_break.
10698 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10699 instead of gdbarch_decr_pc_after_break.
10700 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10701 instead of gdbarch_decr_pc_after_break.
10702 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10703 instead of gdbarch_decr_pc_after_break.
10704 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10705 instead of gdbarch_decr_pc_after_break.
10706
6e07b1d2
MM
107072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10708
10709 * btrace.c: Include regcache.h.
10710 (btrace_add_pc): New.
10711 (btrace_enable): Call btrace_add_pc.
10712 (btrace_is_empty): New.
10713 * btrace.h (btrace_is_empty): New.
10714 * record-btrace.c (require_btrace, record_btrace_info): Call
10715 btrace_is_empty.
10716
969c39fb
MM
107172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10718
10719 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10720 Support delta reads.
10721 (linux_disable_btrace): Change return type.
10722 * common/linux-btrace.h (linux_read_btrace): Change parameters
10723 and return type to allow error reporting. Update users.
10724 (linux_disable_btrace): Change return type. Update users.
10725 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10726 New.
10727 (btrace_error): New.
10728 (btrace_block) <begin>: Comment on BEGIN == 0.
10729 * btrace.c (btrace_compute_ftrace): Start from the end of
10730 the current trace.
10731 (btrace_stitch_trace, btrace_clear_history): New.
10732 (btrace_fetch): Read delta trace, return if replaying.
10733 (btrace_clear): Move clear history code to btrace_clear_history.
10734 (parse_xml_btrace): Throw an error if parsing failed.
10735 * target.h (struct target_ops) <to_read_btrace>: Change parameters
10736 and return type to allow error reporting.
10737 (target_read_btrace): Change parameters and return type to allow
10738 error reporting.
10739 * target.c (target_read_btrace): Update.
10740 * remote.c (remote_read_btrace): Support delta reads. Pass
10741 errors on.
10742 * NEWS: Announce it.
10743
0b722aec
MM
107442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10745
10746 * record.h (record_btrace_frame_unwind)
10747 (record_btrace_tailcall_frame_unwind): New declarations.
10748 * dwarf2-frame: Include record.h
10749 (dwarf2_frame_cfa): Throw an error for btrace frames.
10750 * record-btrace.c: Include hashtab.h.
10751 (btrace_get_bfun_name): New.
10752 (btrace_call_history): Call btrace_get_bfun_name.
10753 (struct btrace_frame_cache): New.
10754 (bfcache): New.
10755 (bfcache_hash, bfcache_eq, bfcache_new): New.
10756 (btrace_get_frame_function): New.
10757 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10758 (record_btrace_frame_this_id): Compute own id.
10759 (record_btrace_frame_prev_register): Provide PC, throw_error
10760 for all other registers.
10761 (record_btrace_frame_sniffer): Detect btrace frames.
10762 (record_btrace_tailcall_frame_sniffer): New.
10763 (record_btrace_frame_dealloc_cache): New.
10764 (record_btrace_frame_unwind): Add new functions.
10765 (record_btrace_tailcall_frame_unwind): New.
10766 (_initialize_record_btrace): Allocate cache.
10767 * btrace.c (btrace_clear): Call reinit_frame_cache.
10768 * NEWS: Announce it.
10769
066ce621
MM
107702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10771
10772 * record-btrace.c (record_btrace_set_replay)
10773 (record_btrace_goto_begin, record_btrace_goto_end)
10774 (record_btrace_goto): New.
10775 (init_record_btrace_ops): Initialize them.
10776 * NEWS: Announce it.
10777
e2887aa3
MM
107782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10779
10780 * record-btrace.c (record_btrace_find_new_threads)
10781 (record_btrace_thread_alive): New.
10782 (init_record_btrace_ops): Initialize to_find_new_threads and
10783 to_thread_alive.
10784
b2f4cfde
MM
107852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10786
10787 * record-btrace.c (record_btrace_resume): New.
10788 (record_btrace_wait): New.
10789 (init_record_btrace_ops): Initialize to_wait and to_resume.
10790
633785ff
MM
107912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10792
10793 * record-btrace.c (record_btrace_xfer_partial)
10794 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10795 (record_btrace_allow_memory_access): New.
10796 (init_record_btrace_ops): Initialize new methods.
10797 * target.c (raw_memory_xfer_partial): Bail out if target reports
10798 that this memory is not available.
10799
3db08215
MM
108002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10801
10802 * target.h (target_ops) <to_insert_breakpoint>
10803 <to_remove_breakpoint>: Add target_ops parameter.
10804 (forward_target_insert_breakpoint): New.
10805 (forward_target_remove_breakpoint): New.
10806 (memory_remove_breakpoint, memory_insert_breakpoint):
10807 Add target_ops parameter.
10808 * target.c (target_insert_breakpoint): Split into this and ...
10809 (forward_target_insert_breakpoint): ... this.
10810 (target_remove_breakpoint): Split into this and ...
10811 (forward_target_remove_breakpoint): ... this.
10812 (debug_to_insert_breakpoint): Add target_ops parameter.
10813 Call forward_target_insert_breakpoint.
10814 (debug_to_remove_breakpoint): Add target_ops parameter.
10815 Call forward_target_remove_breakpoint.
10816 (update_current_target): Do not inherit or default to_insert_breakpoint
10817 and to_remove_breakpoint.
10818 * corelow.c (ignore): Add target_ops parameter.
10819 * exec.c (ignore): Add target_ops parameter.
10820 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10821 Add target_ops parameter.
10822 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10823 Add target_ops parameter.
10824 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10825 Add target_ops parameter.
10826 * record-full.c (record_full_beneath_to_insert_breakpoint)
10827 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10828 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10829 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10830 (record_full_core_remove_breakpoint): Add target_ops parameter.
10831 Update users.
10832 (record_full_beneath_to_insert_breakpoint_ops)
10833 (record_full_beneath_to_remove_breakpoint_ops)
10834 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10835 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10836 tmp_to_remove_breakpoint_ops,
10837 record_full_beneath_to_insert_breakpoint_ops, and
10838 record_full_beneath_to_remove_breakpoint_ops.
10839 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10840 (m32r_remove_breakpoint): Add target_ops parameter.
10841 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10842 Add target_ops parameter.
10843 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10844 Add target_ops parameter.
10845
cecac1ab
MM
108462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10847 Markus Metzger <markus.t.metzger@intel.com>
10848
10849 * record-btrace.c: Include frame-unwind.h.
10850 (record_btrace_frame_unwind_stop_reason)
10851 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10852 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10853 New.
10854 (init_record_btrace_ops): Install it.
10855
824344ca
MM
108562014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10857
10858 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10859 get_prev_frame_1.
10860
32261e52
MM
108612014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10862
10863 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10864 earlier.
10865
ea001bdc
MM
108662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10867
10868 * frame-unwind.c: Include target.h.
10869 (frame_unwind_try_unwinder): New function with code from ...
10870 (frame_unwind_find_by_frame): ... here. New variable
10871 unwinder_from_target, call also target_get_unwinder)
10872 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10873 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10874 * target.h (struct target_ops): New fields to_get_unwinder and
10875 to_get_tailcall_unwinder.
10876 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10877
1f3ef581
MM
108782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10879
10880 * record-btrace.c (record_btrace_fetch_registers)
10881 (record_btrace_store_registers)
10882 (record_btrace_to_prepare_to_store): New.
10883 (init_record_btrace_ops): Add the above.
10884
f32dbf8c
MM
108852014-01-16 Tom Tromey <tromey@redhat.com>
10886
10887 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10888 * target.h (struct target_ops) <to_prepare_to_store>: Add
10889 argument.
10890 (target_prepare_to_store): Add argument.
10891 * target.c (debug_to_prepare_to_store): Add argument.
10892 (update_current_target): Update.
10893 * remote.c (remote_prepare_to_store): Add 'self' argument.
10894 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10895 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10896 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10897 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10898 argument.
10899 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10900 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10901 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10902 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10903 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10904
07bbe694
MM
109052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10906
10907 * btrace.h (replay) <replay>: New.
10908 (btrace_is_replaying): New.
10909 * btrace.c (btrace_clear): Free replay iterator.
10910 (btrace_is_replaying): New.
10911 * record-btrace.c (record_btrace_is_replaying): New.
10912 (record_btrace_info): Print insn number if replaying.
10913 (record_btrace_insn_history): Start at replay position.
10914 (record_btrace_call_history): Start at replay position.
10915 (init_record_btrace_ops): Init to_record_is_replaying.
10916
0688d04e
MM
109172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10918
10919 * record-btrace.c (record_btrace_insn_history_range): Include
10920 end.
10921 (record_btrace_insn_history_from): Adjust range.
10922 (record_btrace_call_history_range): Include
10923 end.
10924 (record_btrace_call_history_from): Adjust range.
10925 * NEWS: Announce changes.
10926
8710b709
MM
109272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10928
10929 * record.h (enum record_print_flag)
10930 <record_print_indent_calls>: New.
10931 * record.c (get_call_history_modifiers): Recognize /c modifier.
10932 (_initialize_record): Document /c modifier.
10933 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10934 Reorder fields. Optionally indent the function name. Update
10935 all users.
10936 * NEWS: Announce changes.
10937
d0fa7535
MM
109382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10939
10940 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10941
5de9129b
MM
109422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10943
10944 * btrace.c (ftrace_new_function): Start counting at one.
10945 * record-btrace.c (record_btrace_info): Adjust number of calls
10946 and insns.
10947 * NEWS: Announce it.
10948
7acbe133
MM
109492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10950
10951 * record-btrace.c (btrace_call_history_insn_range): Print
10952 insn range as [begin, end].
10953
23a7fe75
MM
109542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10955
10956 * btrace.h (struct btrace_func_link): New.
10957 (enum btrace_function_flag): New.
10958 (struct btrace_inst): Rename to ...
10959 (struct btrace_insn): ...this. Update all users.
10960 (struct btrace_func) <ibegin, iend>: Remove.
10961 (struct btrace_func_link): New.
10962 (struct btrace_func): Rename to ...
10963 (struct btrace_function): ...this. Update all users.
10964 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10965 (number, level, flags>: New.
10966 (struct btrace_insn_iterator): Rename to ...
10967 (struct btrace_insn_history): ...this.
10968 Update all users.
10969 (struct btrace_insn_iterator, btrace_call_iterator): New.
10970 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10971 (struct btrace_target_info) <begin, end, level>
10972 <insn_history, call_history>: New.
10973 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10974 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10975 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10976 (btrace_call_number, btrace_call_begin, btrace_call_end)
10977 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10978 (btrace_find_function_by_number, btrace_set_insn_history)
10979 (btrace_set_call_history): New.
10980 * btrace.c (btrace_init_insn_iterator)
10981 (btrace_init_func_iterator, compute_itrace): Remove.
10982 (ftrace_print_function_name, ftrace_print_filename)
10983 (ftrace_skip_file): Change
10984 parameter to const.
10985 (ftrace_init_func): Remove.
10986 (ftrace_debug): Use new btrace_function fields.
10987 (ftrace_function_switched): Also consider gaining and
10988 losing symbol information).
10989 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10990 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10991 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10992 New.
10993 (ftrace_new_function): Move. Remove debug print.
10994 (ftrace_update_lines, ftrace_update_insns): New.
10995 (ftrace_update_function): Check for call, ret, and jump.
10996 (compute_ftrace): Renamed to ...
10997 (btrace_compute_ftrace): ...this. Rewritten to compute call
10998 stack.
10999 (btrace_fetch, btrace_clear): Updated.
11000 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11001 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11002 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11003 (btrace_call_number, btrace_call_begin, btrace_call_end)
11004 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11005 (btrace_find_function_by_number, btrace_set_insn_history)
11006 (btrace_set_call_history): New.
11007 * record-btrace.c (require_btrace): Use new btrace thread
11008 info fields.
11009 (record_btrace_info, btrace_insn_history)
11010 (record_btrace_insn_history, record_btrace_insn_history_range):
11011 Use new btrace thread info fields and new iterator.
11012 (btrace_func_history_src_line): Rename to ...
11013 (btrace_call_history_src_line): ...this. Use new btrace
11014 thread info fields.
11015 (btrace_func_history): Rename to ...
11016 (btrace_call_history): ...this. Use new btrace thread info
11017 fields and new iterator.
11018 (record_btrace_call_history, record_btrace_call_history_range):
11019 Use new btrace thread info fields and new iterator.
11020
8372a7cb
MM
110212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11022
11023 * frame.h (frame_id_build_unavailable_stack_special): New.
11024 * frame.c (frame_id_build_unavailable_stack_special): New.
11025
c2170eef
MM
110262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11027
11028 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11029 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11030 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11031 to gdbarch.
11032 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11033 (i386_insn_is_jump, i386_jmp_p): New.
11034 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11035 insn_is_jump to gdbarch.
11036 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11037 * gdbarch.h: Regenerated.
11038 * gdbarch.c: Regenerated.
11039 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11040 (default_insn_is_jump): New.
11041 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11042 (default_insn_is_jump): New.
11043
864089d2
MM
110442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11045
11046 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11047 Change to ...
11048 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11049 (btrace_read_type) <btrace_read_new>: Change to ...
11050 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11051
ed9edfb5
MM
110522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11053
11054 * common/linux-btrace.c (linux_read_btrace): Free trace from
11055 previous iteration.
11056
fbcbc3fd
DE
110572014-01-15 Doug Evans <dje@google.com>
11058
11059 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11060 uint32_t.
11061
3d548a53
TT
110622014-01-15 Tom Tromey <tromey@redhat.com>
11063
11064 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11065 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11066 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11067 (set_objfile_main_name): New function.
11068 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11069 language_of_main>: New fields.
11070 (set_objfile_main_name): Declare.
11071 * symtab.c (find_main_name): Loop over objfiles to find the main
11072 name and language.
11073 (set_main_name): Now static.
11074 (get_main_info): Add comment.
11075 * symtab.h (set_main_name): Don't declare.
11076
32ac0d11
TT
110772014-01-15 Tom Tromey <tromey@redhat.com>
11078
11079 * symtab.c (main_progspace_key): New global.
11080 (struct main_info): New.
11081 (name_of_main, language_of_main): Remove.
11082 (get_main_info, main_info_cleanup): New function.
11083 (set_main_name, main_name, main_language): Use get_main_info.
11084 (_initialize_symtab): Initialize main_progspace_key.
11085
9e6c82ad
TT
110862014-01-15 Tom Tromey <tromey@redhat.com>
11087
11088 * dbxread.c (process_one_symbol): Update.
11089 * dwarf2read.c (read_partial_die): Update.
11090 * symfile.c (set_initial_language): Call main_language.
11091 * symtab.c (language_of_main): Now static.
11092 (set_main_name): Add 'lang' parameter.
11093 (find_main_name): Update.
11094 (main_language): New function.
11095 (symtab_observer_executable_changed): Update.
11096 * symtab.h (set_main_name): Update.
11097 (language_of_main): Remove.
11098 (main_language): Declare.
11099
6ef55de7
TT
111002014-01-15 Tom Tromey <tromey@redhat.com>
11101
11102 * symfile.c (init_entry_point_info): Use new "initialized" field.
11103 Update.
11104 * objfiles.h (struct entry_point) <initialized>: New field.
11105 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11106 (struct objfile) <ei>: ...here. Remove.
11107 * objfiles.c (entry_point_address_query): Update.
11108
53eddfa6
TT
111092014-01-15 Tom Tromey <tromey@redhat.com>
11110
11111 * objfiles.c (entry_point_address_query): Relocate entry point
11112 address.
11113 (objfile_relocate1): Do not relocate entry point address.
11114 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11115 <the_bfd_section_index>: New field.
11116 * symfile.c (init_entry_point_info): Find the entry point's
11117 section.
11118
d56e56aa
TT
111192014-01-15 Tom Tromey <tromey@redhat.com>
11120
11121 * solib-frv.c (enable_break): Use entry_point_address_query.
11122
33a97bbe
OJ
111232014-01-15 Omair Javaid <omair.javaid@linaro.org>
11124
11125 * NEWS: Add note on improved process record-replay on
11126 arm*-linux* targets.
11127
c6ec2b30
OJ
111282014-01-15 Omair Javaid <omair.javaid@linaro.org>
11129
11130 * arm-tdep.c (enum arm_record_result): New enum.
11131 (arm_record_unsupported_insn): New function.
11132 (arm_record_coproc_data_proc): Removed.
11133 (thumb2_record_ld_st_multiple): New function.
11134 (thumb2_record_ld_st_dual_ex_tbb): New function.
11135 (thumb2_record_data_proc_sreg_mimm): New function.
11136 (thumb2_record_ps_dest_generic): New function.
11137 (thumb2_record_branch_misc_cntrl): New function.
11138 (thumb2_record_str_single_data): New function.
11139 (thumb2_record_ld_mem_hints): New function.
11140 (thumb2_record_ld_word): New function.
11141 (thumb2_record_lmul_lmla_div): New function.
11142 (thumb2_record_decode_insn_handler): New function.
11143 (decode_insn): Add thumb32 instruction handlers.
11144
97dfe206
OJ
111452014-01-15 Omair Javaid <omair.javaid@linaro.org>
11146
11147 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11148 (struct arm_linux_record_tdep): Declare.
11149 (arm_canonicalize_syscall): New function.
11150 (arm_all_but_pc_registers_record): New function.
11151 (arm_linux_syscall_record): New function.
11152 (arm_linux_init_abi): Add syscall recording constructs.
11153 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11154 decoding. (arm_record_coproc_data_proc): Update arm syscall
11155 decoding.
11156 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11157 <arm_syscall_record>: New field.
11158 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11159 gdb_target_obs.
11160
9904a494
OJ
111612014-01-15 Omair Javaid <omair.javaid@linaro.org>
11162
11163 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11164 register for push instruction recording.
11165
f969241e
OJ
111662014-01-15 Omair Javaid <omair.javaid@linaro.org>
11167
11168 * arm-tdep.c (thumb_record_misc): Update to correct logical
11169 error while recording ldm, ldmia and pop instructions.
11170
bfbbec00
OJ
111712014-01-15 Omair Javaid <omair.javaid@linaro.org>
11172
11173 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11174
e40adcc9
PA
111752014-01-15 Pedro Alves <palves@redhat.com>
11176
11177 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11178 (go32_resume, go32_fetch_registers, store_register)
11179 (go32_store_registers, go32_prepare_to_store)
11180 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11181 (go32_create_inferior, go32_can_run, go32_terminal_init)
11182 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11183 declarations.
11184
b0a16e66
TT
111852014-01-15 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (async_callback_ftype): New typedef.
11188 (struct target_ops) <to_async>: Use it.
11189
bf7105a4
JB
111902014-01-15 Joel Brobecker <brobecker@adacore.com>
11191
11192 * python/py-value.c (get_field_type): Remove unnecessary curly
11193 braces for single-statement if block.
11194
a8f35c2e
JB
111952014-01-15 Joel Brobecker <brobecker@adacore.com>
11196
11197 * python/py-type.c (convert_field): Add missing empty line
11198 after declarations.
11199
bb4142cf
DE
112002014-01-14 Doug Evans <dje@google.com>
11201
11202 * symfile.h (expand_symtabs_matching): Renamed from
11203 expand_partial_symbol_names. Update prototype.
11204 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11205 * symfile.c (expand_symtabs_matching): Renamed from
11206 expand_partial_symbol_names. New args file_matcher, kind.
11207 Rename arg fun to symbol_matcher.
11208 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11209 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11210 ada_expand_partial_symbol_name.
11211 (ada_make_symbol_completion_list): Update to call
11212 expand_symtabs_matching.
11213 (ada_add_global_exceptions): Call expand_symtabs_matching.
11214 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11215 call map_symbol_filenames.
11216 * symtab.c (sources_info): Update to call map_symbol_filenames.
11217 (search_symbols): Call expand_symtabs_matching.
11218 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11219 (default_make_symbol_completion_list_break_on): Update to call
11220 expand_symtabs_matching.
11221 (make_source_files_completion_list): Update to call
11222 map_symbol_filenames.
11223
206f2a57
DE
112242014-01-14 Doug Evans <dje@google.com>
11225
11226 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11227 (expand_symtabs_symbol_matcher_ftype): New typedef.
11228 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11229 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11230 * symfile.c (expand_partial_symbol_names): Update to use
11231 expand_symtabs_symbol_matcher_ftype.
11232 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11233 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11234 Arg name_matcher renamed to symbol_matcher.
11235 * psymtab.c (recursively_search_psymtabs): Update to use
11236 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11237 sym_matcher.
11238 (expand_symtabs_matching_via_partial): Update to use
11239 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11240 Arg name_matcher renamed to symbol_matcher.
11241
540c2971
DE
112422014-01-14 Doug Evans <dje@google.com>
11243
11244 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11245 (map_partial_symbol_filenames): Ditto.
11246 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11247 (map_partial_symbol_filenames): Ditto.
11248 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11249 (map_partial_symbol_filenames): Ditto.
11250 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11251 (map_partial_symbol_filenames): Ditto.
11252 * symtab.c: Delete #include "psymtab.h".
11253
8213266a
PA
112542014-01-14 Pedro Alves <palves@redhat.com>
11255 Tom Tromey <tromey@redhat.com>
11256
11257 * infrun.c (use_displaced_stepping): Use find_record_target
11258 instead of RECORD_IS_USED.
11259 (adjust_pc_after_break): Use record_full_is_used instead of
11260 RECORD_IS_USED.
11261 * record-btrace.c (record_btrace_open): Call record_preopen
11262 instead of checking RECORD_IS_USED.
11263 * record-full.c (record_full_shortname)
11264 (record_full_core_shortname): New globals.
11265 (record_full_is_used): New function.
11266 (find_full_open): Call record_preopen instead of checking
11267 RECORD_IS_USED.
11268 (init_record_full_ops): Set the target's shortname to
11269 record_full_shortname.
11270 (init_record_full_core_ops): Set the target's shortname to
11271 record_full_core_shortname.
11272 * record-full.h (record_full_is_used): Declare.
11273 * record.c (find_record_target): Make extern.
11274 (record_preopen): New function.
11275 * record.h (RECORD_IS_USED): Delete macro.
11276 (find_record_target, record_preopen): Declare functions.
11277
7ec1862d
YQ
112782014-01-14 Yao Qi <yao@codesourcery.com>
11279
11280 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11281 'len''s type to ULONGEST.
11282 (core_xfer_shared_libraries_aix): Likewise.
11283 * gdbarch.c, gdbarch.h: Regenerated.
11284 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11285 Change type of 'len' to ULONGEST.
11286 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11287 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11288
dea80a27
YQ
112892014-01-14 Yao Qi <yao@codesourcery.com>
11290
11291 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11292 type of 'len' to ULONGEST.
11293 (linux_xfer_osdata_processgroups): Likewise.
11294 (linux_xfer_osdata_threads): Likewise.
11295 (linux_xfer_osdata_fds): Likewise.
11296 (linux_xfer_osdata_isockets): Likewise.
11297 (linux_xfer_osdata_shm): Likewise.
11298 (linux_xfer_osdata_sem): Likewise.
11299 (linux_xfer_osdata_msg): Likewise.
11300 (linux_common_xfer_osdata): Likewise.
11301 (struct osdata_type) <getter>: Likewise.
11302 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11303 the declaration.
11304
b55e14c7
YQ
113052014-01-14 Yao Qi <yao@codesourcery.com>
11306
11307 * target.h (target_xfer_partial_ftype): Update.
11308 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11309 ULONGEST.
11310 * aix-thread.c (aix_thread_xfer_partial): Change type of
11311 argument 'len' to ULONGEST.
11312 * auxv.c (procfs_xfer_auxv): Likewise.
11313 (ld_so_xfer_auxv): Likewise.
11314 (memory_xfer_auxv): Likewise.
11315 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11316 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11317 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11318 * corelow.c (core_xfer_partial): Likewise.
11319 * ctf.c (ctf_xfer_partial): Likewise.
11320 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11321 '%u'.
11322 (darwin_read_dyld_info): Likewise.
11323 (darwin_xfer_partial): Likewise.
11324 * exec.c (section_table_xfer_memory_partial): Likewise.
11325 (exec_xfer_partial): Likewise.
11326 * exec.h (section_table_xfer_memory_partial): Update
11327 declaration.
11328 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11329 instead of plongest.
11330 (gnu_xfer_partial): Likewise.
11331 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11332 (ia64_hpux_xfer_solib_got): Likewise.
11333 (ia64_hpux_xfer_partial): Likewise.
11334 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11335 * inf-ptrace.c (inf_ptrace_xfer_partial):
11336 * inf-ttrace.c (inf_ttrace_xfer_partial):
11337 * linux-nat.c (linux_xfer_siginfo): Likewise.
11338 (linux_nat_xfer_partial): Likewise.
11339 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11340 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11341 * monitor.c (monitor_xfer_memory): Likewise.
11342 (monitor_xfer_partial): Likewise.
11343 * procfs.c (procfs_xfer_partial): Likewise.
11344 * record-full.c (record_full_xfer_partial): Likewise.
11345 (record_full_core_xfer_partial): Likewise.
11346 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11347 instead of plongest.
11348 (gdbsim_xfer_partial): Likewise.
11349 * remote.c (remote_xfer_partial): Likewise.
11350 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11351 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11352 declaration.
11353 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11354 (rs6000_xfer_shared_libraries): Likewise.
11355 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11356 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11357 (sparc_xfer_partial): Likewise.
11358 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11359 (spu_xfer_partial): Likewise.
11360 * spu-multiarch.c (spu_xfer_partial): Likewise.
11361 * target.c (target_read_live_memory): Likewise.
11362 (memory_xfer_live_readonly_partial): Likewise.
11363 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11364 (target_xfer_partial, default_xfer_partial): Likewise.
11365 (current_xfer_partial): Likewise.
11366 * tracepoint.c (tfile_xfer_partial): Likewise.
11367 * windows-nat.c (windows_xfer_memory): Likewise. Call
11368 pulongest instead of plongest.
11369 (windows_xfer_partial): Likewise.
11370 (windows_xfer_shared_libraries): Likewise.
11371
05804640
YQ
113722014-01-14 Yao Qi <yao@codesourcery.com>
11373
11374 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11375 target_xfer_partial_ftype.
11376
b5b08fb4
SC
113772014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11378
11379 PR python/15464
11380 PR python/16113
11381 * valops.c (value_struct_elt_bitpos): New function
11382 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11383 object to 'None' if the field name is an empty string ("").
11384 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11385 attribute to look for a field when 'name' is 'None'.
11386 (get_field_type): New function
11387
13aaf454
DE
113882014-01-13 Doug Evans <dje@google.com>
11389
11390 PR symtab/16426
11391 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11392 (try_open_dwop_file): Ditto.
11393 * gdb_bfd.c: #include "vec.h".
11394 (bfdp): New typedef.
11395 (struct gdb_bfd_data): New member included_bfds.
11396 (gdb_bfd_unref): Unref all included bfds.
11397 (gdb_bfd_record_inclusion): New function.
11398 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11399
c2cec97c
TT
114002014-01-13 Tom Tromey <tromey@redhat.com>
11401
11402 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11403
78e5999d
TT
114042014-01-13 Tom Tromey <tromey@redhat.com>
11405
11406 * defs.h (use_windows): Remove.
11407 * gdb.c (main): Update.
11408 * main.c (captured_main, gdb_main): Update.
11409 * main.h (struct captured_main_args) <use_windows>: Remove.
11410 * top.c (use_windows): Remove.
11411
f2052bbe
TT
114122014-01-13 Tom Tromey <tromey@redhat.com>
11413
11414 * defs.h (deprecated_flush_hook): Remove.
11415
fde4f8ed
JK
114162014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11417
11418 PR threads/16216
11419 * linux-thread-db.c (try_thread_db_load): Add parameter
11420 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11421 (try_thread_db_load_from_pdir_1): Move it there from here.
11422 (try_thread_db_load_from_sdir): Update caller.
11423 (try_thread_db_load_from_dir): Move it there from here.
11424
bdf61915
PP
114252014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11426
11427 * regformats/regdat.sh: Always rewrite the register file.
11428
f71e1a8d
PA
114292014-01-13 Pedro Alves <palves@redhat.com>
11430
11431 * Makefile.in (CHECK_HEADERS): New variable.
11432 (check-headers:): New rule.
11433
42c85435
TT
114342014-01-13 Tom Tromey <tromey@redhat.com>
11435
11436 * cli/cli-setshow.c (do_set_command): Update.
11437 * defs.h (deprecated_set_hook): Remove.
11438 * top.c (deprecated_set_hook): Remove.
11439
f8de5129
PA
114402014-01-13 Pedro Alves <palves@redhat.com>
11441
11442 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11443 the tracepoint if the PC is a pseudo-register.
11444
fc270c35
TT
114452014-01-13 Tom Tromey <tromey@redhat.com>
11446
11447 * defs.h (XCALLOC): Remove.
11448 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11449 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11450 * dwarf2loc.c (allocate_piece_closure): Likewise.
11451 * elfread.c (elf_symfile_segments): Likewise.
11452 (elf_symfile_segments): Likewise.
11453 * gdbtypes.c (copy_type_recursive): Likewise.
11454 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11455 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11456 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11457 XCALLOC.
11458 * mt-tdep.c (mt_gdbarch_init): Likewise.
11459 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11460 XCALLOC.
11461 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11462 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11463 * registry.c (registry_alloc_data): Likewise.
11464 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11465 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11466 * serial.c (serial_fdopen_ops): Likewise.
11467 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11468 XCALLOC.
11469 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11470 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11471 not XCALLOC.
11472
70ba0933
TT
114732014-01-13 Tom Tromey <tromey@redhat.com>
11474
11475 * defs.h (XMALLOC): Remove.
11476 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11477 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11478 * cli-out.c (struct ui_out *): Likewise.
11479 * cli/cli-dump.c (add_dump_command): Likewise.
11480 (add_dump_command): Likewise.
11481 * complaints.c (get_complaints): Likewise.
11482 (find_complaint): Likewise.
11483 * dwarf2-frame.c (execute_cfa_program): Likewise.
11484 * dwarf2read.c (abbrev_table_read_table): Likewise.
11485 * gdbarch.sh: Likewise.
11486 * gdbarch.c: Rebuild.
11487 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11488 * interps.c (interp_new): Likewise.
11489 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11490 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11491 * mi/mi-console.c (mi_console_file_new): Likewise.
11492 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11493 * mi/mi-out.c (mi_out_new): Likewise.
11494 * mi/mi-parse.c (mi_parse): Likewise.
11495 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11496 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11497 * observer.c (xalloc_observer_list_node): Likewise.
11498 * regcache.c (regcache_xmalloc_1): Likewise.
11499 * reggroups.c (reggroup_new): Likewise.
11500 (_initialize_reggroup): Likewise.
11501 * registry.c (register_data_with_cleanup): Likewise.
11502 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11503 * ser-base.c (serial_ttystate): Likewise.
11504 * ser-mingw.c (make_pipe_state): Likewise.
11505 * ser-pipe.c (pipe_open): Likewise.
11506 * serial.c (serial_open): Likewise.
11507 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11508 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11509 (tui_alloc_win_info): Likewise.
11510 (tui_add_content_elements): Likewise.
11511 * tui/tui-file.c (tui_file_new): Likewise.
11512 * tui/tui-out.c (tui_out_new): Likewise.
11513 * ui-file.c (mem_file_new): Likewise.
11514 * ui-out.c (push_level): Likewise.
11515 (make_cleanup_ui_out_end): Likewise.
11516 (append_header_to_list): Likewise.
11517 (ui_out_new): Likewise.
11518 * user-regs.c (user_reg_add_builtin): Likewise.
11519
41bf6aca
TT
115202014-01-13 Tom Tromey <tromey@redhat.com>
11521
11522 * defs.h (XZALLOC): Remove.
11523 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11524 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11525 (get_ada_tasks_inferior_data): Likewise.
11526 * auto-load.c (get_auto_load_pspace_data): Likewise.
11527 * auxv.c (get_auxv_inferior_data): Likewise.
11528 * bfd-target.c (target_bfd_reopen): Likewise.
11529 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11530 (deprecated_insert_raw_breakpoint): Likewise.
11531 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11532 * corelow.c (core_open): Likewise.
11533 * darwin-nat.c (darwin_check_new_threads): Likewise.
11534 (darwin_attach_pid): Likewise.
11535 * dummy-frame.c (dummy_frame_push): Likewise.
11536 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11537 * dwarf2loc.c (allocate_piece_closure): Likewise.
11538 * elfread.c (elf_symfile_segments): Likewise.
11539 * eval.c (ptrmath_type_p): Likewise.
11540 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11541 * gdbtypes.c (alloc_type_arch): Likewise.
11542 (alloc_type_instance): Likewise.
11543 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11544 * inf-child.c (inf_child_can_use_agent): Likewise.
11545 * inflow.c (get_inflow_inferior_data): Likewise.
11546 * infrun.c (save_infcall_suspend_state): Likewise.
11547 * jit.c (jit_reader_load): Likewise.
11548 (get_jit_objfile_data): Likewise.
11549 (get_jit_program_space_data): Likewise.
11550 (jit_object_open_impl): Likewise.
11551 (jit_symtab_open_impl): Likewise.
11552 (jit_block_open_impl): Likewise.
11553 (jit_frame_sniffer): Likewise.
11554 * linux-fork.c (add_fork): Likewise.
11555 * maint.c (make_command_stats_cleanup): Likewise.
11556 * objfiles.c (get_objfile_pspace_data): Likewise.
11557 * opencl-lang.c (struct lval_closure): Likewise.
11558 * osdata.c (osdata_start_osdata): Likewise.
11559 * progspace.c (new_address_space): Likewise.
11560 (add_program_space): Likewise.
11561 * remote-sim.c (get_sim_inferior_data): Likewise.
11562 * sh-tdep.c (sh_gdbarch_init): Likewise.
11563 * skip.c (Ignore): Likewise.
11564 (skip_delete_command): Likewise.
11565 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11566 (library_list_start_library): Likewise.
11567 (solib_aix_current_sos): Likewise.
11568 * solib-darwin.c (get_darwin_info): Likewise.
11569 (darwin_current_sos): Likewise.
11570 * solib-dsbt.c (get_dsbt_info): Likewise.
11571 * solib-ia64-hpux.c (new_so_list): Likewise.
11572 (ia64_hpux_get_solib_linkage_addr): Likewise.
11573 * solib-spu.c (append_ocl_sos): Likewise.
11574 (spu_current_sos): Likewise.
11575 * solib-svr4.c (get_svr4_info): Likewise.
11576 (svr4_keep_data_in_core): Likewise.
11577 (library_list_start_library): Likewise.
11578 (svr4_default_sos): Likewise.
11579 (svr4_read_so_list): Likewise.
11580 * solib-target.c (library_list_start_library): Likewise.
11581 (solib_target_current_sos): Likewise.
11582 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11583 * symfile-debug.c (install_symfile_debug_logging): Likewise.
11584 * symfile.c (default_symfile_segments): Likewise.
11585 * target-descriptions.c (tdesc_data_init): Likewise.
11586 (tdesc_create_reg): Likewise.
11587 (struct tdesc_type *): Likewise.
11588 (tdesc_create_vector): Likewise.
11589 (tdesc_set_struct_size): Likewise.
11590 (struct tdesc_type *): Likewise.
11591 (tdesc_free_feature): Likewise.
11592 (tdesc_create_feature): Likewise.
11593 * windows-nat.c (windows_add_thread): Likewise.
11594 (windows_make_so): Likewise.
11595 * xml-support.c (gdb_xml_body_text): Likewise.
11596 (gdb_xml_create_parser_and_cleanup): Likewise.
11597 (xml_process_xincludes): Likewise.
11598 * xml-syscall.c (allocate_syscalls_info): Likewise.
11599 (syscall_create_syscall_desc): Likewise.
11600
5acfdbae
SDJ
116012014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
11602
11603 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11604 function, with code from i386_stap_parse_special_token.
11605 (i386_stap_parse_special_token_three_arg_disp): Likewise.
11606 (i386_stap_parse_special_token): Move code to the two functions
11607 above; simplify it.
11608
0000e5cc
PA
116092014-01-09 Pedro Alves <palves@redhat.com>
11610 Hui Zhu <hui@codesourcery.com>
11611
11612 PR gdb/16101
11613 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11614 bp_err_string. Don't mark the location shlib_disabled if the
11615 error thrown wasn't a generic or memory error. Catch errors
11616 thrown while inserting breakpoints in overlayed code. Output
11617 error message of software breakpoints.
11618 * remote.c (remote_insert_breakpoint): If this breakpoint has
11619 target-side commands but this stub doesn't support Z0 packets,
11620 throw NOT_SUPPORTED_ERROR error.
11621 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11622 * target.h (target_insert_breakpoint): Extend comment.
11623 (target_insert_hw_breakpoint): Add comment.
11624
b7ea362b
PA
116252014-01-08 Pedro Alves <palves@redhat.com>
11626
11627 * remote.c (remote_add_thread): Add threads silently if starting
11628 up.
11629 (remote_notice_new_inferior): If in all-stop, and starting up,
11630 don't call notice_new_inferior.
11631 (get_current_thread): New function, factored out from ...
11632 (add_current_inferior_and_thread): ... this. Adjust.
11633 (remote_start_remote) <all-stop>: Fetch the thread list. If we
11634 found any thread, then select the remote's current thread as GDB's
11635 current thread too.
11636
b7bba001
JB
116372014-01-08 Joel Brobecker <brobecker@adacore.com>
11638
11639 * NEWS: Create a new section for the next release branch.
11640 Rename the section of the current branch, now that it has
11641 been cut.
11642
16dfbded
JB
116432014-01-08 Joel Brobecker <brobecker@adacore.com>
11644
11645 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11646 * version.in: Bump version to 7.7.50.DATE-cvs.
11647
22c90ac1
YQ
116482014-01-08 Yao Qi <yao@codesourcery.com>
11649
11650 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11651 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
11652 (spu_xfer_partial): Cast 'buf' to 'const char *'.
11653
d64ad97c
YQ
116542014-01-08 Yao Qi <yao@codesourcery.com>
11655
11656 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11657 return value of bfd_get_filename to symbol_file_add_from_bfd.
11658
f93ba80c
PM
116592014-01-08 Pierre Muller <muller@sourceware.org>
11660
11661 Fix PR16201.
11662 * coff-pe-read.c (struct read_pe_section_data): Add index field.
11663 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11664 to prim_record_mininal_symbol_and_info.
11665 (add_pe_forwarded_sym): Use known section number of forwarded symbol
11666 in call to prim_record_minimal_symbol_and_info.
11667 (read_pe_exported_syms): Set index field of section_data.
11668
a4d9ba85
AP
116692014-01-07 Andrew Pinski <apinski@cavium.com>
11670
11671 * features/aarch64-core.xml (cpsr): Change to be 64bit.
11672 * features/aarch64.c: Regenerate.
11673
1b67eb02
AS
116742014-01-07 Andreas Schwab <schwab@linux-m68k.org>
11675
11676 * target.c (return_null): Define.
11677 (update_current_target): Use it instead of return_zero for
11678 functions that return a pointer.
11679
5e3f4fab
EBM
116802014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11681
11682 * source.c (add_path): Fix check for duplicated paths in the previously
11683 included paths.
11684
e2616788
HK
116852014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
11686
11687 * ada-lang.c: Remove duplicated include statements.
11688 * alphabsd-nat.c: Ditto.
11689 * amd64-darwin-tdep.c: Ditto.
11690 * amd64fbsd-nat.c: Ditto.
11691 * auto-load.c: Ditto.
11692 * ax-gdb.c: Ditto.
11693 * breakpoint.c: Ditto.
11694 * dbxread.c: Ditto.
11695 * fork-child.c: Ditto.
11696 * gdb_usleep.c: Ditto.
11697 * i386-darwin-tdep.c: Ditto.
11698 * i386fbsd-nat.c: Ditto.
11699 * infcmd.c: Ditto.
11700 * inferior.c: Ditto.
11701 * jv-lang.c: Ditto.
11702 * linux-nat.c: Ditto.
11703 * linux-tdep.c: Ditto.
11704 * m68kbsd-nat.c: Ditto.
11705 * m68klinux-nat.c: Ditto.
11706 * microblaze-tdep.c: Ditto.
11707 * mips-linux-tdep.c: Ditto.
11708 * mn10300-tdep.c: Ditto.
11709 * nto-tdep.c: Ditto.
11710 * opencl-lang.c: Ditto.
11711 * osdata.c: Ditto.
11712 * printcmd.c: Ditto.
11713 * regcache.c: Ditto.
11714 * remote-m32r-sdi.c: Ditto.
11715 * remote.c: Ditto.
11716 * symfile.c: Ditto.
11717 * symtab.c: Ditto.
11718 * tilegx-linux-nat.c: Ditto.
11719 * tilegx-tdep.c: Ditto.
11720 * tracepoint.c: Ditto.
11721 * valops.c: Ditto.
11722 * vaxbsd-nat.c: Ditto.
11723 * windows-nat.c: Ditto.
11724 * xtensa-tdep.c: Ditto.
11725
bd1f7788
YQ
117262014-01-07 Yao Qi <yao@codesourcery.com>
11727
11728 * spu-linux-nat.c (_initialize_spu_nat): Declare.
11729
79301218
JB
117302014-01-07 Yao Qi <yao@codesourcery.com>
11731 Joel Brobecker <brobecker@adacore.com>
11732
11733 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11734 (pdc_write_regs): Likewise.
11735 (fetch_regs_kernel_thread): Likewise.
11736 (store_regs_kernel_thread): Likewise.
11737
117382014-01-07 Joel Brobecker <brobecker@adacore.com>
11739
11740 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11741 tagged type objects to their actual type.
11742
8e355c5d
JB
117432014-01-07 Joel Brobecker <brobecker@adacore.com>
11744
11745 * ada-valprint.c (print_field_values): Add "language" parameter.
11746 Update calls to print_field_values and print_variant_part.
11747 Pass new parameter "language" in call to val_print instead
11748 of "current_language". Replace call to ada_val_print by call
11749 to val_print.
11750 (print_variant_part): Add "language" parameter.
11751 (ada_val_print_struct_union): Update call to print_field_values.
11752
4fbf5aa5
JB
117532014-01-07 Joel Brobecker <brobecker@adacore.com>
11754
11755 * ada-valprint.c (ui_memcpy): Delete.
11756 (ada_print_floating): Update documentation. Add empty line
11757 between between function documentation and implementation.
11758 Delete variable "buffer". Use ui_file_xstrdup in place of
11759 ui_file_put. Minor adjustments following this change.
11760
71855601
JB
117612014-01-07 Joel Brobecker <brobecker@adacore.com>
11762
11763 * ada-valprint.c (ada_val_print_string): New function,
11764 extracted from ada_val_print_array.
11765 (ada_val_print_array): Replace extracted code by call
11766 to ada_val_print_string followed by a return. Move
11767 "else" branch to the function's top block.
11768
4eb27a30
JB
117692014-01-07 Joel Brobecker <brobecker@adacore.com>
11770
11771 * ada-valprint.c (ada_val_print_array): Move implementation
11772 down. Rename parameter "offset" and "val" into "offset_aligned"
11773 and "original_value" respectively. Add parameter "offset".
11774
34b27950
JB
117752014-01-07 Joel Brobecker <brobecker@adacore.com>
11776
11777 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11778 re-organizing the code. Change the "???" message printed
11779 when target type is a TYPE_CODE_UNDEF into
11780 "<ref to undefined type>".
11781
079e4591
JB
117822014-01-07 Joel Brobecker <brobecker@adacore.com>
11783
11784 * ada-valprint.c (print_record): Delete, implementation inlined...
11785 (ada_val_print_struct_union): ... here. Remove call to
11786 ada_check_typedef in inlined implementation.
11787
8004dfd1
JB
117882014-01-07 Joel Brobecker <brobecker@adacore.com>
11789
11790 * ada-valprint.c (ada_val_print_gnat_array): New function,
11791 extracted from ada_val_print_1;
11792 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11793 (ada_val_print_flt, ada_val_print_struct_union)
11794 (ada_val_print_ref): Likewise.
11795 (ada_val_print_1): Delete variables i and elttype.
11796 Replace extracted-out code by call to corresponding
11797 new functions.
11798
760a2db0
JB
117992014-01-07 Joel Brobecker <brobecker@adacore.com>
11800
11801 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11802
3a92c861
JB
118032014-01-07 Joel Brobecker <brobecker@adacore.com>
11804
11805 * ada-valprint.c (ada_val_print_1): Replace calls to
11806 ada_val_print_1 by calls to val_print.
11807
cd1630f9
JB
118082014-01-07 Joel Brobecker <brobecker@adacore.com>
11809
11810 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11811 Update calls to self accordingly. Replace calls to c_val_print
11812 by calls to val_print.
11813
bdf779a0
JB
118142014-01-07 Joel Brobecker <brobecker@adacore.com>
11815
11816 * ada-valprint.c (print_record): Delete declaration.
11817 (adjust_type_signedness, ada_val_print_1): Likewise.
11818 (ada_val_print): Move function implementation down.
11819 (print_variant_part, print_field_values, print_record):
11820 Move function implementation up.
11821
c0d48811
JB
118222014-01-07 Joel Brobecker <brobecker@adacore.com>
11823
11824 * python/py-type.c (typy_get_name): New function.
11825 (type_object_getset): Add entry for attribute "name".
11826 * NEWS: Add entry mentioning this new attribute.
11827
c26e9cbb
YQ
118282014-01-07 Yao Qi <yao@codesourcery.com>
11829
11830 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11831 statement.
11832
0cc6f43d
YQ
118332014-01-07 Yao Qi <yao@codesourcery.com>
11834
11835 * gnu-nat.c (info_port_rights): Add qualifier const to
11836 argument args.
11837
eec03155
YQ
118382014-01-07 Yao Qi <yao@codesourcery.com>
11839
11840 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11841
f04a82ef
YQ
118422014-01-07 Yao Qi <yao@codesourcery.com>
11843
11844 * gnu-nat.c (make_inf) Update declaration.
11845 (make_inf): Make it static.
11846 (inf_set_traced): Likewise.
11847 (inf_port_to_thread, inf_task_died_status): Likewise.
11848
d57dda0a
YQ
118492014-01-07 Yao Qi <yao@codesourcery.com>
11850
11851 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11852
3aa8c969
YQ
118532014-01-07 Yao Qi <yao@codesourcery.com>
11854
11855 * gnu-nat.c (_initialize_gnu_nat): Declare.
11856
94123b4f
YQ
118572014-01-07 Yao Qi <yao@codesourcery.com>
11858
11859 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11860 'enum bfd_endian'.
11861 (struct gdbarch_info) <byte_order>: Change type to
11862 'enum bfd_endian'.
11863 <byte_order_for_code>: Likewise.
11864 * gdbarch.c, gdbarch.h: Regenerated.
11865
dc81d70a
TT
118662014-01-06 Sasha Smundak <asmundak@google.com>
11867
11868 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11869
cc2f3c35
TT
118702014-01-06 Tom Tromey <tromey@redhat.com>
11871
11872 * doublest.c (convert_doublest_to_floatformat): Use const, not
11873 CONST.
11874 * somread.c (som_symtab_read): Likewise.
11875
adcf2eed
HZ
118762014-01-07 Hui Zhu <hui@codesourcery.com>
11877
11878 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11879 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11880 (gdb_bfd_fopen): Ditto.
11881 (gdb_bfd_openr): Ditto.
11882 (gdb_bfd_openw): Ditto.
11883 (gdb_bfd_openr_iovec): Ditto.
11884 (gdb_bfd_fdopenr): Ditto.
11885 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11886 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11887 with xstrdup.
11888 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11889 with xstrdup.
11890 * symfile-mem.c (symbol_file_add_from_memory): Removed
11891 gdb_bfd_stash_filename.
11892
50722198
DE
118932014-01-03 Doug Evans <dje@google.com>
11894
11895 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11896 output.
11897
2fa4b862
JB
118982014-01-01 Joel Brobecker <brobecker@adacore.com>
11899
11900 Update year range in copyright notice of all files.
11901
28498c42
JB
119022014-01-01 Joel Brobecker <brobecker@adacore.com>
11903
11904 * top.c (print_gdb_version): Set copyright year to 2014.
11905
7b6e1046
JB
119062014-01-01 Joel Brobecker <brobecker@adacore.com>
11907
11908 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11909
df96af55 11910For older changes see ChangeLog-2013.
c906108c
SS
11911\f
11912Local Variables:
11913mode: change-log
11914left-margin: 8
11915fill-column: 74
11916version-control: never
57da7796 11917coding: utf-8
c906108c 11918End:
This page took 4.874339 seconds and 4 git commands to generate.